Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 125 additions & 8 deletions docs/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3519,10 +3519,22 @@
},
"QuantityOnHand" : {
"type" : "number",
"description" : "The quantity of the item on hand",
"description" : "The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0.",
"format" : "double",
"x-is-money" : true
},
"QuantityAvailable" : {
"type" : "number",
"description" : "The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0.",
"format" : "double",
"readOnly" : true
},
"QuantityOnBackOrder" : {
"type" : "number",
"description" : "The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0.",
"format" : "double",
"readOnly" : true
},
"UpdatedDateUTC" : {
"type" : "string",
"description" : "Last modified date in UTC format",
Expand Down Expand Up @@ -6495,7 +6507,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
<li data-group="Accounting" data-name="createAccount" class="">
<a href="#api-Accounting-createAccount">createAccount</a>
Expand Down Expand Up @@ -12142,6 +12154,7 @@ <h3>Usage and SDK Samples</h3>
const summarizeErrors = true;
const unitdp = 4;
const idempotencyKey = 'KEY_VALUE';
const allowBackorders = true;
const dateValue = '2020-10-10'
const dueDateValue = '2020-10-28'

Expand Down Expand Up @@ -12181,7 +12194,7 @@ <h3>Usage and SDK Samples</h3>
};

try {
const response = await xero.accountingApi.createInvoices(xeroTenantId, invoices, summarizeErrors, unitdp,idempotencyKey);
const response = await xero.accountingApi.createInvoices(xeroTenantId, invoices, summarizeErrors, unitdp,idempotencyKey, allowBackorders);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -12349,6 +12362,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_createInvoices_allowBackorders">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Boolean
</span>

<div class="inner description marked">
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -21503,9 +21536,10 @@ <h3>Usage and SDK Samples</h3>
const page = 1;
const unitdp = 4;
const pageSize = 100;
const references = [&quot;Ref1&quot;, &quot;Ref2&quot;];

try {
const response = await xero.accountingApi.getBankTransactions(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
const response = await xero.accountingApi.getBankTransactions(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, references);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -21685,6 +21719,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_getBankTransactions_references">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
array[String]
</span>

<div class="inner description marked">
Filter by a comma-separated list of References
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -31779,9 +31833,10 @@ <h3>Usage and SDK Samples</h3>
const unitdp = 4;
const pageSize = 100;
const invoiceNumbers = [&quot;INV-001&quot;, &quot;INV-002&quot;];
const references = [&quot;Ref1&quot;, &quot;Ref2&quot;];

try {
const response = await xero.accountingApi.getPrepayments(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers);
const response = await xero.accountingApi.getPrepayments(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers, references);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -31915,7 +31970,7 @@ <h2>Parameters</h2>
</span>

<div class="inner description marked">
e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
</div>
</div>
</div>
Expand Down Expand Up @@ -31981,6 +32036,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_getPrepayments_references">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
array[String]
</span>

<div class="inner description marked">
Filter by a comma-separated list of References
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -41065,6 +41140,7 @@ <h3>Usage and SDK Samples</h3>
const invoiceID = '00000000-0000-0000-0000-000000000000';
const unitdp = 4;
const idempotencyKey = 'KEY_VALUE';
const allowBackorders = true;

const invoice: Invoice = {
reference: "I am Iron man"
Expand All @@ -41075,7 +41151,7 @@ <h3>Usage and SDK Samples</h3>
};

try {
const response = await xero.accountingApi.updateInvoice(xeroTenantId, invoiceID, invoices, unitdp,idempotencyKey);
const response = await xero.accountingApi.updateInvoice(xeroTenantId, invoiceID, invoices, unitdp,idempotencyKey, allowBackorders);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -41244,6 +41320,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_updateInvoice_allowBackorders">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Boolean
</span>

<div class="inner description marked">
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -42942,6 +43038,7 @@ <h3>Usage and SDK Samples</h3>
const summarizeErrors = true;
const unitdp = 4;
const idempotencyKey = 'KEY_VALUE';
const allowBackorders = true;
const dateValue = '2020-10-10'
const dueDateValue = '2020-10-28'

Expand Down Expand Up @@ -42973,7 +43070,7 @@ <h3>Usage and SDK Samples</h3>
};

try {
const response = await xero.accountingApi.updateOrCreateInvoices(xeroTenantId, invoices, summarizeErrors, unitdp,idempotencyKey);
const response = await xero.accountingApi.updateOrCreateInvoices(xeroTenantId, invoices, summarizeErrors, unitdp,idempotencyKey, allowBackorders);
console.log(response.body || response.response.statusCode)
} catch (err) {
const error = JSON.stringify(err.response.body, null, 2)
Expand Down Expand Up @@ -43140,6 +43237,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_updateOrCreateInvoices_allowBackorders">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Boolean
</span>

<div class="inner description marked">
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
<li data-group="AppStore" data-name="getSubscription" class="">
<a href="#api-AppStore-getSubscription">getSubscription</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
<li data-group="Asset" data-name="createAsset" class="">
<a href="#api-Asset-createAsset">createAsset</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/bankfeeds/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
<li data-group="Files" data-name="createFileAssociation" class="">
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2377,7 +2377,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getBankStatementAccounting" class="">
<a href="#api-Finance-getBankStatementAccounting">getBankStatementAccounting</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll-au-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAuV2"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="PayrollAuV2"><a href="#api-PayrollAuV2">Methods</a></li>
<li data-group="PayrollAuV2" data-name="approveTimesheet" class="">
<a href="#api-PayrollAuV2-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll-au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3451,7 +3451,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll-nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4069,7 +4069,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3702,7 +3702,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>19.0.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>19.1.0</li>
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
<li data-group="Project" data-name="createProject" class="">
<a href="#api-Project-createProject">createProject</a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xero-node",
"version": "19.0.0",
"version": "19.1.0",
"description": "Xero NodeJS OAuth 2.0 client for xero-node",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Loading
Loading