fix(core): update
This commit is contained in:
@@ -4,7 +4,7 @@ import { MonetaryAccount } from './bunq.classes.monetaryaccount';
|
||||
export class Transaction {
|
||||
public static fromApiObject(monetaryAccountRefArg: MonetaryAccount, apiObjectArg: any) {
|
||||
const newTransaction = new this(monetaryAccountRefArg);
|
||||
Object.assign(newTransaction, apiObjectArg);
|
||||
Object.assign(newTransaction, apiObjectArg.Payment);
|
||||
return newTransaction;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user