From 5ec0b8a33a002c96897bcf47c01644dba6838883 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 28 Jun 2024 12:08:50 +0530 Subject: [PATCH] added the new invoice changes --- docs/accounting/index.html | 163 +++++++++++++++++- .../model/accounting/getInvoicesResponse.ts | 6 +- 2 files changed, 158 insertions(+), 11 deletions(-) diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 6d33d504..180c5c45 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -2970,7 +2970,7 @@ "minItems" : 1, "type" : "array", "items" : { - "$ref" : "#/components/schemas/Invoices" + "$ref" : "#/components/schemas/Invoice" } } }, @@ -20736,9 +20736,10 @@

Usage and SDK Samples

const order = 'Type ASC'; const page = 1; const unitdp = 4; +const pageSize = 100; try { - const response = await xero.accountingApi.getBankTransactions(xeroTenantId, ifModifiedSince, where, order, page, unitdp); + const response = await xero.accountingApi.getBankTransactions(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -20898,6 +20899,26 @@

Parameters

+ + + pageSize + + + +
+
+
+ + Integer + + +
+Number of records to retrieve per page +
+
+
+
+ @@ -24109,9 +24130,10 @@

Usage and SDK Samples

const includeArchived = true; const summaryOnly = true; const searchTerm = 'Joe Bloggs'; +const pageSize = 100; try { - const response = await xero.accountingApi.getContacts(xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly, searchTerm); + const response = await xero.accountingApi.getContacts(xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly, searchTerm, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -24334,6 +24356,26 @@

Parameters

+ + + pageSize + + + +
+
+
+ + Integer + + +
+Number of records to retrieve per page +
+
+
+
+ @@ -25206,9 +25248,10 @@

Usage and SDK Samples

const order = 'CreditNoteNumber ASC'; const page = 1; const unitdp = 4; +const pageSize = 100; try { - const response = await xero.accountingApi.getCreditNotes(xeroTenantId, ifModifiedSince, where, order, page, unitdp); + const response = await xero.accountingApi.getCreditNotes(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -25368,6 +25411,26 @@

Parameters

+ + + pageSize + + + +
+
+
+ + Integer + + +
+Number of records to retrieve per page +
+
+
+
+ @@ -27132,9 +27195,10 @@

Usage and SDK Samples

const createdByMyApp = false; const unitdp = 4; const summaryOnly = true; +const pageSize = 100; try { - const response = await xero.accountingApi.getInvoices(xeroTenantId, ifModifiedSince, where, order, iDs, invoiceNumbers, contactIDs, statuses, page, includeArchived, createdByMyApp, unitdp, summaryOnly); + const response = await xero.accountingApi.getInvoices(xeroTenantId, ifModifiedSince, where, order, iDs, invoiceNumbers, contactIDs, statuses, page, includeArchived, createdByMyApp, unitdp, summaryOnly, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -27440,6 +27504,26 @@

Parameters

+ + + pageSize + + + +
+
+
+ + Integer + + +
+Number of records to retrieve per page +
+
+
+
+ @@ -29211,9 +29295,10 @@

Usage and SDK Samples

const where = 'Status=="DRAFT"'; const order = 'Date ASC'; const page = 1; +const pageSize = 100; try { - const response = await xero.accountingApi.getManualJournals(xeroTenantId, ifModifiedSince, where, order, page); + const response = await xero.accountingApi.getManualJournals(xeroTenantId, ifModifiedSince, where, order, page, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -29353,6 +29438,26 @@

Parameters

+ + + pageSize + + + +
+
+
+ + Integer + + +
+Number of records to retrieve per page +
+
+
+
+ @@ -30661,9 +30766,10 @@

Usage and SDK Samples

const where = 'Status=="AUTHORISED"'; const order = 'Amount ASC'; const page = 1; +const pageSize = 100; try { - const response = await xero.accountingApi.getPayments(xeroTenantId, ifModifiedSince, where, order, page); + const response = await xero.accountingApi.getPayments(xeroTenantId, ifModifiedSince, where, order, page, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -30803,6 +30909,26 @@

Parameters

+ + + pageSize + + + +
+
+
+ + Integer + + +
+Number of records to retrieve per page +
+
+
+
+ @@ -32198,9 +32324,10 @@

Usage and SDK Samples

const dateTo = '2019-12-31'; const order = 'PurchaseOrderNumber ASC'; const page = 1; +const pageSize = 100; try { - const response = await xero.accountingApi.getPurchaseOrders(xeroTenantId, ifModifiedSince, status, dateFrom, dateTo, order, page); + const response = await xero.accountingApi.getPurchaseOrders(xeroTenantId, ifModifiedSince, status, dateFrom, dateTo, order, page, pageSize); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -32380,6 +32507,26 @@

Parameters

+ + + pageSize + + + +
+
+
+ + Integer + + +
+Number of records to retrieve per page +
+
+
+
+ diff --git a/src/gen/model/accounting/getInvoicesResponse.ts b/src/gen/model/accounting/getInvoicesResponse.ts index 858ca4e3..261826d1 100644 --- a/src/gen/model/accounting/getInvoicesResponse.ts +++ b/src/gen/model/accounting/getInvoicesResponse.ts @@ -1,4 +1,4 @@ -import { Invoices } from '././invoices'; +import { Invoice } from '././invoice'; import { PageInfo } from '././pageInfo'; export class GetInvoicesResponse { @@ -7,7 +7,7 @@ export class GetInvoicesResponse { 'providerName'?: string; 'dateTimeUTC'?: string; 'pageInfo'?: PageInfo; - 'invoices'?: Array; + 'invoices'?: Array; static discriminator: string | undefined = undefined; @@ -40,7 +40,7 @@ export class GetInvoicesResponse { { "name": "invoices", "baseName": "Invoices", - "type": "Array" + "type": "Array" } ]; static getAttributeTypeMap() {