fix(core): update

This commit is contained in:
2020-06-20 01:47:53 +00:00
parent 9fbaac20d3
commit 01dbf842e9
13 changed files with 3861 additions and 618 deletions

View File

@@ -32,7 +32,7 @@ export class MonetaryAccount {
throw new Error('unknown accoun type');
}
Object.assign(newMonetaryAccount, apiObject[accessor], {type});
Object.assign(newMonetaryAccount, apiObject[accessor], { type });
return newMonetaryAccount;
}
@@ -82,7 +82,6 @@ export class MonetaryAccount {
public auto_save_id: null;
public all_auto_save_id: any[];
public bunqAccountRef: BunqAccount;
constructor(bunqAccountRefArg: BunqAccount) {
this.bunqAccountRef = bunqAccountRefArg;
@@ -101,9 +100,11 @@ export class MonetaryAccount {
newer_id: startingIdArg
};
const apiTransactions = await this.bunqAccountRef.bunqJSClient.api.payment.list(this.bunqAccountRef.userId, this.id, paginationOptions);
const apiTransactions = await this.bunqAccountRef.bunqJSClient.api.payment.list(
this.bunqAccountRef.userId,
this.id,
paginationOptions
);
const transactionsArray: Transaction[] = [];
for (const apiTransaction of apiTransactions) {
transactionsArray.push(Transaction.fromApiObject(this, apiTransaction));