Skip to content

Commit

Permalink
added the new invoice changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Jun 28, 2024
1 parent e07dda4 commit 5ec0b8a
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 11 deletions.
163 changes: 155 additions & 8 deletions docs/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2970,7 +2970,7 @@
"minItems" : 1,
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/Invoices"
"$ref" : "#/components/schemas/Invoice"
}
}
},
Expand Down Expand Up @@ -20736,9 +20736,10 @@ <h3>Usage and SDK Samples</h3>
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)
Expand Down Expand Up @@ -20898,6 +20899,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">pageSize</td>
<td>


<div id="d2e199_getBankTransactions_pageSize">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>

<div class="inner description marked">
Number of records to retrieve per page
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -24109,9 +24130,10 @@ <h3>Usage and SDK Samples</h3>
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)
Expand Down Expand Up @@ -24334,6 +24356,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">pageSize</td>
<td>


<div id="d2e199_getContacts_pageSize">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>

<div class="inner description marked">
Number of records to retrieve per page
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -25206,9 +25248,10 @@ <h3>Usage and SDK Samples</h3>
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)
Expand Down Expand Up @@ -25368,6 +25411,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">pageSize</td>
<td>


<div id="d2e199_getCreditNotes_pageSize">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>

<div class="inner description marked">
Number of records to retrieve per page
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -27132,9 +27195,10 @@ <h3>Usage and SDK Samples</h3>
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)
Expand Down Expand Up @@ -27440,6 +27504,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">pageSize</td>
<td>


<div id="d2e199_getInvoices_pageSize">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>

<div class="inner description marked">
Number of records to retrieve per page
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -29211,9 +29295,10 @@ <h3>Usage and SDK Samples</h3>
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)
Expand Down Expand Up @@ -29353,6 +29438,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">pageSize</td>
<td>


<div id="d2e199_getManualJournals_pageSize">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>

<div class="inner description marked">
Number of records to retrieve per page
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -30661,9 +30766,10 @@ <h3>Usage and SDK Samples</h3>
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)
Expand Down Expand Up @@ -30803,6 +30909,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">pageSize</td>
<td>


<div id="d2e199_getPayments_pageSize">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>

<div class="inner description marked">
Number of records to retrieve per page
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -32198,9 +32324,10 @@ <h3>Usage and SDK Samples</h3>
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)
Expand Down Expand Up @@ -32380,6 +32507,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">pageSize</td>
<td>


<div id="d2e199_getPurchaseOrders_pageSize">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>

<div class="inner description marked">
Number of records to retrieve per page
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
6 changes: 3 additions & 3 deletions src/gen/model/accounting/getInvoicesResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Invoices } from '././invoices';
import { Invoice } from '././invoice';
import { PageInfo } from '././pageInfo';

export class GetInvoicesResponse {
Expand All @@ -7,7 +7,7 @@ export class GetInvoicesResponse {
'providerName'?: string;
'dateTimeUTC'?: string;
'pageInfo'?: PageInfo;
'invoices'?: Array<Invoices>;
'invoices'?: Array<Invoice>;

static discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -40,7 +40,7 @@ export class GetInvoicesResponse {
{
"name": "invoices",
"baseName": "Invoices",
"type": "Array<Invoices>"
"type": "Array<Invoice>"
} ];

static getAttributeTypeMap() {
Expand Down

0 comments on commit 5ec0b8a

Please sign in to comment.