Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 5a3165a

Browse files
authored
Automated update by SDK Generator version:3.7.6 commit:a5459f0 (#226)
1 parent 6bd067a commit 5a3165a

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/gen/docs/apis/AccountingApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,7 @@ const params = {
12891289
currency: 'USD'
12901290
},
12911291
discount_percentage: 5.5,
1292+
source_document_url: 'https://www.invoicesolution.com/bill/123456',
12921293
tracking_categories: [
12931294
{
12941295
id: '123456',
@@ -1712,6 +1713,7 @@ const params = {
17121713
currency: 'USD'
17131714
},
17141715
discount_percentage: 5.5,
1716+
source_document_url: 'https://www.invoicesolution.com/bill/123456',
17151717
tracking_categories: [
17161718
{
17171719
id: '123456',

src/gen/docs/models/Bill.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Name | Type | Description | Notes
3535
`accounting_by_row` | **boolean** | Indicates if accounting by row is used (true) or not (false). Accounting by row means that a separate ledger transaction is created for each row. | [optional]
3636
`bank_account` | [**BankAccount**](BankAccount.md) | | [optional]
3737
`discount_percentage` | **number** | Discount percentage applied to this transaction. | [optional]
38+
`source_document_url` | **string** | URL link to a source document - shown as \'Go to [appName]\' in the downstream app. Currently only supported for Xero. | [optional]
3839
`tracking_categories` | [**LinkedTrackingCategories**](LinkedTrackingCategories.md) | | [optional]
3940
`updated_by` | **string** | The user who last updated the object. | [optional]
4041
`created_by` | **string** | The user who created the object. | [optional]
@@ -104,6 +105,7 @@ Name | Type | Description | Notes
104105

105106
* [`BankAccount`](BankAccount.md)
106107

108+
107109
* [`LinkedTrackingCategories`](LinkedTrackingCategories.md)
108110

109111

src/gen/models/Bill.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ export interface Bill {
216216
* @memberof Bill
217217
*/
218218
discount_percentage?: number | null
219+
/**
220+
* URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.
221+
* @type {string}
222+
* @memberof Bill
223+
*/
224+
source_document_url?: string | null
219225
/**
220226
*
221227
* @type {LinkedTrackingCategories}
@@ -352,6 +358,9 @@ export function BillFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bill
352358
discount_percentage: !exists(json, 'discount_percentage')
353359
? undefined
354360
: json['discount_percentage'],
361+
source_document_url: !exists(json, 'source_document_url')
362+
? undefined
363+
: json['source_document_url'],
355364
tracking_categories: !exists(json, 'tracking_categories')
356365
? undefined
357366
: LinkedTrackingCategoriesFromJSON(json['tracking_categories']),
@@ -433,6 +442,7 @@ export function BillToJSON(value?: Bill | null): any {
433442
accounting_by_row: value.accounting_by_row,
434443
bank_account: BankAccountToJSON(value.bank_account),
435444
discount_percentage: value.discount_percentage,
445+
source_document_url: value.source_document_url,
436446
tracking_categories: LinkedTrackingCategoriesToJSON(value.tracking_categories),
437447
row_version: value.row_version,
438448
custom_fields:

src/gen/tests/apis/AccountingApiTest.api.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,7 @@ describe('AccountingApi', () => {
11571157
currency: 'USD'
11581158
},
11591159
discount_percentage: 5.5,
1160+
source_document_url: 'https://www.invoicesolution.com/bill/123456',
11601161
tracking_categories: [
11611162
{
11621163
id: '123456',
@@ -1337,6 +1338,7 @@ describe('AccountingApi', () => {
13371338
currency: 'USD'
13381339
},
13391340
discount_percentage: 5.5,
1341+
source_document_url: 'https://www.invoicesolution.com/bill/123456',
13401342
tracking_categories: [
13411343
{
13421344
id: '123456',
@@ -1584,6 +1586,7 @@ describe('AccountingApi', () => {
15841586
currency: 'USD'
15851587
},
15861588
discount_percentage: 5.5,
1589+
source_document_url: 'https://www.invoicesolution.com/bill/123456',
15871590
tracking_categories: [
15881591
{
15891592
id: '123456',
@@ -1783,6 +1786,7 @@ describe('AccountingApi', () => {
17831786
currency: 'USD'
17841787
},
17851788
discount_percentage: 5.5,
1789+
source_document_url: 'https://www.invoicesolution.com/bill/123456',
17861790
tracking_categories: [
17871791
{
17881792
id: '123456',

0 commit comments

Comments
 (0)