fix(core): update

This commit is contained in:
Philipp Kunz 2022-10-30 15:22:13 +01:00
parent 4301a0337c
commit 5227cebc98
2 changed files with 3 additions and 5 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@mojoio/tink',
version: '3.1.4',
version: '3.1.5',
description: 'an unofficial api abstraction for tink.com'
}

View File

@ -111,10 +111,8 @@ export class BankAccount {
return {
id: this.data.id,
name: this.data.name,
accountNumber:
this.data.identifiers.iban?.iban ||
this.data.identifiers?.financialInstitution?.accountNumber ||
null,
accountNumber: this.data.identifiers?.financialInstitution?.accountNumber || null,
iban: this.data.identifiers.iban?.iban || null,
bookedValue: tinkHelpers.getNormalizedAmount(this.data.balances.booked?.amount),
availableValue: tinkHelpers.getNormalizedAmount(this.data.balances.available?.amount),
};