Compare commits

..

8 Commits

Author SHA1 Message Date
d208b83fce 3.1.8 2023-05-25 20:23:37 +02:00
585876eacf fix(core): update 2023-05-25 20:23:36 +02:00
0512630a59 3.1.7 2022-10-30 17:40:16 +01:00
bc5846751a fix(core): update 2022-10-30 17:40:16 +01:00
ab1ac03993 3.1.6 2022-10-30 17:27:13 +01:00
3ee4a1677e fix(core): update 2022-10-30 17:27:13 +01:00
29bd68f57d 3.1.5 2022-10-30 15:22:13 +01:00
5227cebc98 fix(core): update 2022-10-30 15:22:13 +01:00
4 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/tink", "name": "@apiclient.xyz/tink",
"version": "3.1.4", "version": "3.1.8",
"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

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @pushrocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '@mojoio/tink', name: '@apiclient.xyz/tink',
version: '3.1.4', version: '3.1.8',
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),
}; };

View File

@ -102,11 +102,14 @@ export class BankTransaction {
public getNormalizedData() { public getNormalizedData() {
return { return {
id: this.data.id, id: this.data.id,
date: new Date(this.data.dates.booked).getTime(),
amount: tinkHelpers.getNormalizedAmount(this.data.amount), amount: tinkHelpers.getNormalizedAmount(this.data.amount),
name: this.data.descriptions.display, name: this.data.descriptions.display,
description: this.data.descriptions.original, description: this.data.descriptions.original,
originAccountId: this.data.accountId,
justForLooks: { justForLooks: {
originalScaledAmount: this.data.amount originalScaledAmount: this.data.amount,
dateIso: new Date(this.data.dates.booked).toISOString()
} }
} }