diff --git a/src/gen/model/accounting/bankTransaction.ts b/src/gen/model/accounting/bankTransaction.ts index 1a6be3865..a278f6eb2 100644 --- a/src/gen/model/accounting/bankTransaction.ts +++ b/src/gen/model/accounting/bankTransaction.ts @@ -1,4 +1,5 @@ import { Account } from '././account'; +import { BatchPayment } from '././batchPayment'; import { Contact } from '././contact'; import { CurrencyCode } from '././currencyCode'; import { LineAmountTypes } from '././lineAmountTypes'; @@ -10,6 +11,7 @@ export class BankTransaction { * See Bank Transaction Types */ 'type': BankTransaction.TypeEnum; + 'batchPayment'?: BatchPayment; 'contact'?: Contact; /** * See LineItems @@ -91,6 +93,11 @@ export class BankTransaction { "baseName": "Type", "type": "BankTransaction.TypeEnum" }, + { + "name": "batchPayment", + "baseName": "BatchPayment", + "type": "BatchPayment" + }, { "name": "contact", "baseName": "Contact", diff --git a/src/test/bankTransaction.spec.ts b/src/test/bankTransaction.spec.ts new file mode 100644 index 000000000..0a01e1093 --- /dev/null +++ b/src/test/bankTransaction.spec.ts @@ -0,0 +1,15 @@ +import { BankTransaction } from '../gen/model/accounting/bankTransaction'; + +describe('BankTransaction', () => { + it('includes BatchPayment in the attribute map', () => { + expect(BankTransaction.getAttributeTypeMap()).toEqual( + expect.arrayContaining([ + { + name: 'batchPayment', + baseName: 'BatchPayment', + type: 'BatchPayment', + }, + ]), + ); + }); +});