diff --git a/src/gen/docs/apis/AccountingApi.md b/src/gen/docs/apis/AccountingApi.md index 2c835f0a0..eded4d987 100644 --- a/src/gen/docs/apis/AccountingApi.md +++ b/src/gen/docs/apis/AccountingApi.md @@ -900,6 +900,58 @@ const params = { ], note: 'Some notes about this credit note', terms: 'Some terms about this credit note', + billing_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, + shipping_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, row_version: '1-12345' } } @@ -1252,6 +1304,58 @@ const params = { ], note: 'Some notes about this credit note', terms: 'Some terms about this credit note', + billing_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, + shipping_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, row_version: '1-12345' } } @@ -2833,6 +2937,14 @@ const params = { nominal_code: 'N091', code: '453' }, + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345' } } @@ -3257,6 +3369,14 @@ const params = { nominal_code: 'N091', code: '453' }, + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345' } } @@ -4853,6 +4973,15 @@ const params = { } ], note: 'Some notes about this payment', + number: 'Some notes about this payment', + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', display_id: '123456' } @@ -5200,6 +5329,15 @@ const params = { } ], note: 'Some notes about this payment', + number: 'Some notes about this payment', + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', display_id: '123456' } diff --git a/src/gen/docs/models/CreditNote.md b/src/gen/docs/models/CreditNote.md index 168f7c576..f0e6f3f8b 100644 --- a/src/gen/docs/models/CreditNote.md +++ b/src/gen/docs/models/CreditNote.md @@ -28,6 +28,8 @@ Name | Type | Description | Notes `allocations` | **Array<object>** | | [optional] `note` | **string** | Optional note to be associated with the credit note. | [optional] `terms` | **string** | Optional terms to be associated with the credit note. | [optional] +`billing_address` | [**Address**](Address.md) | | [optional] +`shipping_address` | [**Address**](Address.md) | | [optional] `custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional] `row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional] `updated_by` | **string** | The user who last updated the object. | [optional] @@ -91,6 +93,8 @@ Name | Type | Description | Notes +* [`Address`](Address.md) +* [`Address`](Address.md) diff --git a/src/gen/docs/models/Invoice.md b/src/gen/docs/models/Invoice.md index f7c905d0e..528cd4b7d 100644 --- a/src/gen/docs/models/Invoice.md +++ b/src/gen/docs/models/Invoice.md @@ -43,6 +43,7 @@ Name | Type | Description | Notes `bank_account` | [**BankAccount**](BankAccount.md) | | [optional] `ledger_account` | [**LinkedLedgerAccount**](LinkedLedgerAccount.md) | | [optional] `custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional] +`custom_fields` | [**Array<CustomField>**](CustomField.md) | | [optional] `row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional] `updated_by` | **string** | The user who last updated the object. | [optional] `created_by` | **string** | The user who created the object. | [optional] @@ -134,6 +135,7 @@ Name | Type | Description | Notes * [`BankAccount`](BankAccount.md) * [`LinkedLedgerAccount`](LinkedLedgerAccount.md) +* [`CustomField`](CustomField.md) diff --git a/src/gen/docs/models/Payment.md b/src/gen/docs/models/Payment.md index 1004ad09e..0e2d115cd 100644 --- a/src/gen/docs/models/Payment.md +++ b/src/gen/docs/models/Payment.md @@ -26,6 +26,8 @@ Name | Type | Description | Notes `type` | **string** | Type of payment | [optional] `allocations` | [**Array<PaymentAllocations>**](PaymentAllocations.md) | | [optional] `note` | **string** | Optional note to be associated with the payment. | [optional] +`number` | **string** | Payment number. | [optional] +`custom_fields` | [**Array<CustomField>**](CustomField.md) | | [optional] `row_version` | **string** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional] `display_id` | **string** | Payment id to be displayed. | [optional] `custom_mappings` | **object** | When custom mappings are configured on the resource, the result is included here. | [optional] @@ -99,6 +101,8 @@ Name | Type | Description | Notes * [`PaymentAllocations`](PaymentAllocations.md) +* [`CustomField`](CustomField.md) + diff --git a/src/gen/models/CreditNote.ts b/src/gen/models/CreditNote.ts index 489c63bd6..2ca11c71d 100644 --- a/src/gen/models/CreditNote.ts +++ b/src/gen/models/CreditNote.ts @@ -13,6 +13,7 @@ */ import { exists } from '../runtime' +import { Address, AddressFromJSON, AddressToJSON } from './Address' import { Currency, CurrencyFromJSON, CurrencyToJSON } from './Currency' import { InvoiceLineItem, InvoiceLineItemFromJSON, InvoiceLineItemToJSON } from './InvoiceLineItem' import { LinkedCustomer, LinkedCustomerFromJSON, LinkedCustomerToJSON } from './LinkedCustomer' @@ -166,6 +167,18 @@ export interface CreditNote { * @memberof CreditNote */ terms?: string | null + /** + * + * @type {Address} + * @memberof CreditNote + */ + billing_address?: Address + /** + * + * @type {Address} + * @memberof CreditNote + */ + shipping_address?: Address /** * When custom mappings are configured on the resource, the result is included here. * @type {object} @@ -262,6 +275,12 @@ export function CreditNoteFromJSONTyped(json: any, ignoreDiscriminator: boolean) allocations: !exists(json, 'allocations') ? undefined : json['allocations'], note: !exists(json, 'note') ? undefined : json['note'], terms: !exists(json, 'terms') ? undefined : json['terms'], + billing_address: !exists(json, 'billing_address') + ? undefined + : AddressFromJSON(json['billing_address']), + shipping_address: !exists(json, 'shipping_address') + ? undefined + : AddressFromJSON(json['shipping_address']), custom_mappings: !exists(json, 'custom_mappings') ? undefined : json['custom_mappings'], row_version: !exists(json, 'row_version') ? undefined : json['row_version'], updated_by: !exists(json, 'updated_by') ? undefined : json['updated_by'], @@ -318,6 +337,8 @@ export function CreditNoteToJSON(value?: CreditNote | null): any { allocations: value.allocations, note: value.note, terms: value.terms, + billing_address: AddressToJSON(value.billing_address), + shipping_address: AddressToJSON(value.shipping_address), row_version: value.row_version } } diff --git a/src/gen/models/Invoice.ts b/src/gen/models/Invoice.ts index 18e15f498..c7fd04752 100644 --- a/src/gen/models/Invoice.ts +++ b/src/gen/models/Invoice.ts @@ -16,6 +16,7 @@ import { exists } from '../runtime' import { Address, AddressFromJSON, AddressToJSON } from './Address' import { BankAccount, BankAccountFromJSON, BankAccountToJSON } from './BankAccount' import { Currency, CurrencyFromJSON, CurrencyToJSON } from './Currency' +import { CustomField, CustomFieldFromJSON, CustomFieldToJSON } from './CustomField' import { InvoiceLineItem, InvoiceLineItemFromJSON, InvoiceLineItemToJSON } from './InvoiceLineItem' import { LinkedCustomer, LinkedCustomerFromJSON, LinkedCustomerToJSON } from './LinkedCustomer' import { @@ -263,6 +264,12 @@ export interface Invoice { * @memberof Invoice */ readonly custom_mappings?: object | null + /** + * + * @type {Array} + * @memberof Invoice + */ + custom_fields?: Array /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. * @type {string} @@ -393,6 +400,9 @@ export function InvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): I ? undefined : LinkedLedgerAccountFromJSON(json['ledger_account']), custom_mappings: !exists(json, 'custom_mappings') ? undefined : json['custom_mappings'], + custom_fields: !exists(json, 'custom_fields') + ? undefined + : (json['custom_fields'] as Array).map(CustomFieldFromJSON), row_version: !exists(json, 'row_version') ? undefined : json['row_version'], updated_by: !exists(json, 'updated_by') ? undefined : json['updated_by'], created_by: !exists(json, 'created_by') ? undefined : json['created_by'], @@ -465,6 +475,10 @@ export function InvoiceToJSON(value?: Invoice | null): any { accounting_by_row: value.accounting_by_row, bank_account: BankAccountToJSON(value.bank_account), ledger_account: LinkedLedgerAccountToJSON(value.ledger_account), + custom_fields: + value.custom_fields === undefined + ? undefined + : (value.custom_fields as Array).map(CustomFieldToJSON), row_version: value.row_version } } diff --git a/src/gen/models/Payment.ts b/src/gen/models/Payment.ts index f331eaa16..42a66a909 100644 --- a/src/gen/models/Payment.ts +++ b/src/gen/models/Payment.ts @@ -14,6 +14,7 @@ import { exists } from '../runtime' import { Currency, CurrencyFromJSON, CurrencyToJSON } from './Currency' +import { CustomField, CustomFieldFromJSON, CustomFieldToJSON } from './CustomField' import { LinkedCustomer, LinkedCustomerFromJSON, LinkedCustomerToJSON } from './LinkedCustomer' import { LinkedLedgerAccount, @@ -159,6 +160,18 @@ export interface Payment { * @memberof Payment */ note?: string | null + /** + * Payment number. + * @type {string} + * @memberof Payment + */ + number?: string | null + /** + * + * @type {Array} + * @memberof Payment + */ + custom_fields?: Array /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. * @type {string} @@ -266,6 +279,10 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P ? undefined : (json['allocations'] as Array).map(PaymentAllocationsFromJSON), note: !exists(json, 'note') ? undefined : json['note'], + number: !exists(json, 'number') ? undefined : json['number'], + custom_fields: !exists(json, 'custom_fields') + ? undefined + : (json['custom_fields'] as Array).map(CustomFieldFromJSON), row_version: !exists(json, 'row_version') ? undefined : json['row_version'], display_id: !exists(json, 'display_id') ? undefined : json['display_id'], custom_mappings: !exists(json, 'custom_mappings') ? undefined : json['custom_mappings'], @@ -314,6 +331,11 @@ export function PaymentToJSON(value?: Payment | null): any { ? undefined : (value.allocations as Array).map(PaymentAllocationsToJSON), note: value.note, + number: value.number, + custom_fields: + value.custom_fields === undefined + ? undefined + : (value.custom_fields as Array).map(CustomFieldToJSON), row_version: value.row_version, display_id: value.display_id } diff --git a/src/gen/tests/apis/AccountingApiTest.api.test.ts b/src/gen/tests/apis/AccountingApiTest.api.test.ts index 6b0d6bb66..551d4b5b4 100644 --- a/src/gen/tests/apis/AccountingApiTest.api.test.ts +++ b/src/gen/tests/apis/AccountingApiTest.api.test.ts @@ -1022,6 +1022,58 @@ describe('AccountingApi', () => { ], note: 'Some notes about this credit note', terms: 'Some terms about this credit note', + billing_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, + shipping_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, row_version: '1-12345' } } as any @@ -1136,6 +1188,58 @@ describe('AccountingApi', () => { ], note: 'Some notes about this credit note', terms: 'Some terms about this credit note', + billing_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, + shipping_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, custom_mappings: {}, row_version: '1-12345', updated_by: '12345', @@ -1315,6 +1419,58 @@ describe('AccountingApi', () => { ], note: 'Some notes about this credit note', terms: 'Some terms about this credit note', + billing_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, + shipping_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, custom_mappings: {}, row_version: '1-12345', updated_by: '12345', @@ -1441,6 +1597,58 @@ describe('AccountingApi', () => { ], note: 'Some notes about this credit note', terms: 'Some terms about this credit note', + billing_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, + shipping_address: { + id: '123', + type: 'primary', + string: '25 Spring Street, Blackburn, VIC 3130', + name: 'HQ US', + line1: 'Main street', + line2: 'apt #', + line3: 'Suite #', + line4: 'delivery instructions', + street_number: '25', + city: 'San Francisco', + state: 'CA', + postal_code: '94104', + country: 'US', + latitude: '40.759211', + longitude: '-73.984638', + county: 'Santa Clara', + contact_name: 'Elon Musk', + salutation: 'Mr', + phone_number: '111-111-1111', + fax: '122-111-1111', + email: 'elon@musk.com', + website: 'https://elonmusk.com', + notes: 'Address notes or delivery instructions.', + row_version: '1-12345' + }, row_version: '1-12345' } } as any @@ -2959,6 +3167,14 @@ describe('AccountingApi', () => { nominal_code: 'N091', code: '453' }, + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345' } } as any @@ -3146,6 +3362,14 @@ describe('AccountingApi', () => { code: '453' }, custom_mappings: {}, + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', updated_by: '12345', created_by: '12345', @@ -3398,6 +3622,14 @@ describe('AccountingApi', () => { code: '453' }, custom_mappings: {}, + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', updated_by: '12345', created_by: '12345', @@ -3596,6 +3828,14 @@ describe('AccountingApi', () => { nominal_code: 'N091', code: '453' }, + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345' } } as any @@ -5218,6 +5458,15 @@ describe('AccountingApi', () => { } ], note: 'Some notes about this payment', + number: 'Some notes about this payment', + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', display_id: '123456' } @@ -5321,6 +5570,15 @@ describe('AccountingApi', () => { } ], note: 'Some notes about this payment', + number: 'Some notes about this payment', + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', display_id: '123456', custom_mappings: {}, @@ -5489,6 +5747,15 @@ describe('AccountingApi', () => { } ], note: 'Some notes about this payment', + number: 'Some notes about this payment', + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', display_id: '123456', custom_mappings: {}, @@ -5609,6 +5876,15 @@ describe('AccountingApi', () => { } ], note: 'Some notes about this payment', + number: 'Some notes about this payment', + custom_fields: [ + { + id: '2389328923893298', + name: 'employee_level', + description: 'Employee Level', + value: 'Uses Salesforce and Marketo' + } + ], row_version: '1-12345', display_id: '123456' }