Handle unavailable properties in Yodlee response
This commit is contained in:
parent
c6e249bb67
commit
fdc67cd5fb
|
|
@ -151,7 +151,7 @@ class IncomeTransformer implements BankRevenueInterface
|
||||||
'category_type' => $transaction->categoryType,
|
'category_type' => $transaction->categoryType,
|
||||||
'date' => $transaction->date,
|
'date' => $transaction->date,
|
||||||
'bank_account_id' => $transaction->accountId,
|
'bank_account_id' => $transaction->accountId,
|
||||||
'description' => $transaction->description->original,
|
'description' => $transaction?->description?->original ?? '',
|
||||||
'base_type' => property_exists($transaction, 'baseType') ? $transaction->baseType : $this->calculateBaseType($transaction),
|
'base_type' => property_exists($transaction, 'baseType') ? $transaction->baseType : $this->calculateBaseType($transaction),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue