Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
0512630a59 | |||
bc5846751a | |||
ab1ac03993 | |||
3ee4a1677e | |||
29bd68f57d | |||
5227cebc98 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/tink",
|
||||
"version": "3.1.4",
|
||||
"version": "3.1.7",
|
||||
"private": false,
|
||||
"description": "an unofficial api abstraction for tink.com",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@mojoio/tink',
|
||||
version: '3.1.4',
|
||||
version: '3.1.7',
|
||||
description: 'an unofficial api abstraction for tink.com'
|
||||
}
|
||||
|
@ -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),
|
||||
};
|
||||
|
@ -102,11 +102,14 @@ export class BankTransaction {
|
||||
public getNormalizedData() {
|
||||
return {
|
||||
id: this.data.id,
|
||||
date: new Date(this.data.dates.booked).getTime(),
|
||||
amount: tinkHelpers.getNormalizedAmount(this.data.amount),
|
||||
name: this.data.descriptions.display,
|
||||
description: this.data.descriptions.original,
|
||||
originAccountId: this.data.accountId,
|
||||
justForLooks: {
|
||||
originalScaledAmount: this.data.amount
|
||||
originalScaledAmount: this.data.amount,
|
||||
dateIso: new Date(this.data.dates.booked).toISOString()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user