Working on bank integration

This commit is contained in:
David Bomba 2022-08-08 17:56:21 +10:00
parent 0228f5aec3
commit 357cb17ebf
2 changed files with 7 additions and 1 deletions

View File

@ -140,6 +140,9 @@ class IncomeTransformer implements BankRevenueInterface
'date' => $transaction->date,
'account_id' => $transaction->accountId,
'description' => $transaction->description->original,
'invoice_id' => '',
'expense_id' => '',
'payment_id' => '',
];
}

View File

@ -478,10 +478,13 @@ class BankIntegrationController extends BaseController
$bank_account_id = auth()->user()->account->bank_integration_account_id;
$bank_account_id = 'sbMem62e1e69547bfb1';
if(!$bank_account_id)
return response()->json(['message' => 'Not yet authenticated with Bank Integration service'], 400);
$yodlee = new Yodlee($bank_account_id);
$yodlee->setTestMode();
$data = [
'CONTAINER' => 'bank',
@ -492,7 +495,7 @@ class BankIntegrationController extends BaseController
$transactions = $yodlee->getTransactions($data);
return response()->json($transactions, 200)
return response()->json($transactions, 200, [], JSON_PRETTY_PRINT);
}
}