diff --git a/app/Helpers/Bank/Yodlee/Transformer/IncomeTransformer.php b/app/Helpers/Bank/Yodlee/Transformer/IncomeTransformer.php index 8e33d2243986..0ffe92486780 100644 --- a/app/Helpers/Bank/Yodlee/Transformer/IncomeTransformer.php +++ b/app/Helpers/Bank/Yodlee/Transformer/IncomeTransformer.php @@ -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' => '', ]; } diff --git a/app/Http/Controllers/BankIntegrationController.php b/app/Http/Controllers/BankIntegrationController.php index 7989a4795386..29ac2592ccba 100644 --- a/app/Http/Controllers/BankIntegrationController.php +++ b/app/Http/Controllers/BankIntegrationController.php @@ -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); } } \ No newline at end of file