mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Working on bank integration
This commit is contained in:
parent
0228f5aec3
commit
357cb17ebf
@ -140,6 +140,9 @@ class IncomeTransformer implements BankRevenueInterface
|
|||||||
'date' => $transaction->date,
|
'date' => $transaction->date,
|
||||||
'account_id' => $transaction->accountId,
|
'account_id' => $transaction->accountId,
|
||||||
'description' => $transaction->description->original,
|
'description' => $transaction->description->original,
|
||||||
|
'invoice_id' => '',
|
||||||
|
'expense_id' => '',
|
||||||
|
'payment_id' => '',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -478,10 +478,13 @@ class BankIntegrationController extends BaseController
|
|||||||
|
|
||||||
$bank_account_id = auth()->user()->account->bank_integration_account_id;
|
$bank_account_id = auth()->user()->account->bank_integration_account_id;
|
||||||
|
|
||||||
|
$bank_account_id = 'sbMem62e1e69547bfb1';
|
||||||
|
|
||||||
if(!$bank_account_id)
|
if(!$bank_account_id)
|
||||||
return response()->json(['message' => 'Not yet authenticated with Bank Integration service'], 400);
|
return response()->json(['message' => 'Not yet authenticated with Bank Integration service'], 400);
|
||||||
|
|
||||||
$yodlee = new Yodlee($bank_account_id);
|
$yodlee = new Yodlee($bank_account_id);
|
||||||
|
$yodlee->setTestMode();
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'CONTAINER' => 'bank',
|
'CONTAINER' => 'bank',
|
||||||
@ -492,7 +495,7 @@ class BankIntegrationController extends BaseController
|
|||||||
|
|
||||||
$transactions = $yodlee->getTransactions($data);
|
$transactions = $yodlee->getTransactions($data);
|
||||||
|
|
||||||
return response()->json($transactions, 200)
|
return response()->json($transactions, 200, [], JSON_PRETTY_PRINT);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user