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 = { export const commitinfo = {
name: '@mojoio/tink', name: '@mojoio/tink',
version: '3.1.4', version: '3.1.5',
description: 'an unofficial api abstraction for tink.com' description: 'an unofficial api abstraction for tink.com'
} }

View File

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