Compare commits

..

2 Commits

Author SHA1 Message Date
29bd68f57d 3.1.5 2022-10-30 15:22:13 +01:00
5227cebc98 fix(core): update 2022-10-30 15:22:13 +01:00
3 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/tink", "name": "@mojoio/tink",
"version": "3.1.4", "version": "3.1.5",
"private": false, "private": false,
"description": "an unofficial api abstraction for tink.com", "description": "an unofficial api abstraction for tink.com",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

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),
}; };