mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04:00
Improve account resolution from Yodlee API
This commit is contained in:
parent
3345984b65
commit
64fb9c9a85
@ -87,7 +87,8 @@ class AccountTransformer implements AccountTransformerInterface
|
|||||||
return [
|
return [
|
||||||
'id' => $account->id,
|
'id' => $account->id,
|
||||||
'account_type' => $account->CONTAINER,
|
'account_type' => $account->CONTAINER,
|
||||||
'account_name' => $account->accountName,
|
// 'account_name' => $account->accountName,
|
||||||
|
'account_name' => property_exists($account, 'accountName') ? $account->accountName : $account->nickname,
|
||||||
'account_status' => $account->accountStatus,
|
'account_status' => $account->accountStatus,
|
||||||
'account_number' => property_exists($account, 'accountNumber') ? '**** ' . substr($account?->accountNumber, -7) : '',
|
'account_number' => property_exists($account, 'accountNumber') ? '**** ' . substr($account?->accountNumber, -7) : '',
|
||||||
'provider_account_id' => $account->providerAccountId,
|
'provider_account_id' => $account->providerAccountId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user