Skip to content

Commit

Permalink
Automated update by SDK Generator version:3.2.2 commit:984efdc
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 8, 2024
1 parent 9a69a2f commit 744df83
Show file tree
Hide file tree
Showing 8 changed files with 481 additions and 0 deletions.
138 changes: 138 additions & 0 deletions src/gen/docs/apis/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]',
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: '[email protected]',
website: 'https://elonmusk.com',
notes: 'Address notes or delivery instructions.',
row_version: '1-12345'
},
row_version: '1-12345'
}
}
Expand Down Expand Up @@ -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: '[email protected]',
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: '[email protected]',
website: 'https://elonmusk.com',
notes: 'Address notes or delivery instructions.',
row_version: '1-12345'
},
row_version: '1-12345'
}
}
Expand Down Expand Up @@ -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'
}
}
Expand Down Expand Up @@ -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'
}
}
Expand Down Expand Up @@ -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'
}
Expand Down Expand Up @@ -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'
}
Expand Down
4 changes: 4 additions & 0 deletions src/gen/docs/models/CreditNote.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -91,6 +93,8 @@ Name | Type | Description | Notes



* [`Address`](Address.md)
* [`Address`](Address.md)



Expand Down
2 changes: 2 additions & 0 deletions src/gen/docs/models/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -134,6 +135,7 @@ Name | Type | Description | Notes
* [`BankAccount`](BankAccount.md)
* [`LinkedLedgerAccount`](LinkedLedgerAccount.md)

* [`CustomField`](CustomField.md)



Expand Down
4 changes: 4 additions & 0 deletions src/gen/docs/models/Payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -99,6 +101,8 @@ Name | Type | Description | Notes
* [`PaymentAllocations`](PaymentAllocations.md)


* [`CustomField`](CustomField.md)




Expand Down
21 changes: 21 additions & 0 deletions src/gen/models/CreditNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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'],
Expand Down Expand Up @@ -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
}
}
14 changes: 14 additions & 0 deletions src/gen/models/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -263,6 +264,12 @@ export interface Invoice {
* @memberof Invoice
*/
readonly custom_mappings?: object | null
/**
*
* @type {Array<CustomField>}
* @memberof Invoice
*/
custom_fields?: Array<CustomField>
/**
* 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}
Expand Down Expand Up @@ -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<any>).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'],
Expand Down Expand Up @@ -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<any>).map(CustomFieldToJSON),
row_version: value.row_version
}
}
22 changes: 22 additions & 0 deletions src/gen/models/Payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -159,6 +160,18 @@ export interface Payment {
* @memberof Payment
*/
note?: string | null
/**
* Payment number.
* @type {string}
* @memberof Payment
*/
number?: string | null
/**
*
* @type {Array<CustomField>}
* @memberof Payment
*/
custom_fields?: Array<CustomField>
/**
* 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}
Expand Down Expand Up @@ -266,6 +279,10 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
? undefined
: (json['allocations'] as Array<any>).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<any>).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'],
Expand Down Expand Up @@ -314,6 +331,11 @@ export function PaymentToJSON(value?: Payment | null): any {
? undefined
: (value.allocations as Array<any>).map(PaymentAllocationsToJSON),
note: value.note,
number: value.number,
custom_fields:
value.custom_fields === undefined
? undefined
: (value.custom_fields as Array<any>).map(CustomFieldToJSON),
row_version: value.row_version,
display_id: value.display_id
}
Expand Down
Loading

0 comments on commit 744df83

Please sign in to comment.