createAccount
@@ -12142,6 +12154,7 @@ Usage and SDK Samples
const summarizeErrors = true;
const unitdp = 4;
const idempotencyKey = 'KEY_VALUE';
+const allowBackorders = true;
const dateValue = '2020-10-10'
const dueDateValue = '2020-10-28'
@@ -12181,7 +12194,7 @@ Usage and SDK Samples
};
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)
@@ -12349,6 +12362,26 @@ Parameters
+
+
+ allowBackorders
+
+
+
+
+
+
+
+ Boolean
+
+
+
+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
+
+
+
+
+
@@ -21503,9 +21536,10 @@ Usage and SDK Samples
const page = 1;
const unitdp = 4;
const pageSize = 100;
+const references = ["Ref1", "Ref2"];
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)
@@ -21685,6 +21719,26 @@ Parameters
+
+
+ References
+
+
+
+
+
+
+
+ array[String]
+
+
+
+Filter by a comma-separated list of References
+
+
+
+
+
@@ -31779,9 +31833,10 @@ Usage and SDK Samples
const unitdp = 4;
const pageSize = 100;
const invoiceNumbers = ["INV-001", "INV-002"];
+const references = ["Ref1", "Ref2"];
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)
@@ -31915,7 +31970,7 @@ Parameters
-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
@@ -31981,6 +32036,26 @@ Parameters
+
+
+ References
+
+
+
+
+
+
+
+ array[String]
+
+
+
+Filter by a comma-separated list of References
+
+
+
+
+
@@ -41065,6 +41140,7 @@ Usage and SDK Samples
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"
@@ -41075,7 +41151,7 @@ Usage and SDK Samples
};
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)
@@ -41244,6 +41320,26 @@ Parameters
+
+
+ allowBackorders
+
+
+
+
+
+
+
+ Boolean
+
+
+
+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
+
+
+
+
+
@@ -42942,6 +43038,7 @@ Usage and SDK Samples
const summarizeErrors = true;
const unitdp = 4;
const idempotencyKey = 'KEY_VALUE';
+const allowBackorders = true;
const dateValue = '2020-10-10'
const dueDateValue = '2020-10-28'
@@ -42973,7 +43070,7 @@ Usage and SDK Samples
};
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)
@@ -43140,6 +43237,26 @@ Parameters
+
+
+ allowBackorders
+
+
+
+
+
+
+
+ Boolean
+
+
+
+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
+
+
+
+
+
diff --git a/docs/appstore/index.html b/docs/appstore/index.html
index dcc12e3e..28674e5d 100644
--- a/docs/appstore/index.html
+++ b/docs/appstore/index.html
@@ -1243,7 +1243,7 @@
-
+
getSubscription
diff --git a/docs/assets/index.html b/docs/assets/index.html
index dc685762..738371a0 100644
--- a/docs/assets/index.html
+++ b/docs/assets/index.html
@@ -1421,7 +1421,7 @@
-
+
createAsset
diff --git a/docs/bankfeeds/index.html b/docs/bankfeeds/index.html
index 61fa6857..76e1542c 100644
--- a/docs/bankfeeds/index.html
+++ b/docs/bankfeeds/index.html
@@ -1270,7 +1270,7 @@
-
+
createFeedConnections
diff --git a/docs/files/index.html b/docs/files/index.html
index d6801891..2e53ce6d 100644
--- a/docs/files/index.html
+++ b/docs/files/index.html
@@ -1182,7 +1182,7 @@
-
+
createFileAssociation
diff --git a/docs/finance/index.html b/docs/finance/index.html
index 42ab97cf..d7aba6f5 100644
--- a/docs/finance/index.html
+++ b/docs/finance/index.html
@@ -2377,7 +2377,7 @@
-
+
getBankStatementAccounting
diff --git a/docs/payroll-au-v2/index.html b/docs/payroll-au-v2/index.html
index 0d7bce63..ce77e3dd 100644
--- a/docs/payroll-au-v2/index.html
+++ b/docs/payroll-au-v2/index.html
@@ -1161,7 +1161,7 @@
-
+
approveTimesheet
diff --git a/docs/payroll-au/index.html b/docs/payroll-au/index.html
index 699817db..b44b9b08 100644
--- a/docs/payroll-au/index.html
+++ b/docs/payroll-au/index.html
@@ -3451,7 +3451,7 @@
-
+
approveLeaveApplication
diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html
index 3fce766e..97b1809c 100644
--- a/docs/payroll-nz/index.html
+++ b/docs/payroll-nz/index.html
@@ -4069,7 +4069,7 @@
-
+
approveTimesheet
diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html
index 3ffeae62..ea0ab7c8 100644
--- a/docs/payroll-uk/index.html
+++ b/docs/payroll-uk/index.html
@@ -3702,7 +3702,7 @@
-
+
approveTimesheet
diff --git a/docs/projects/index.html b/docs/projects/index.html
index ebc07f81..30a722cb 100644
--- a/docs/projects/index.html
+++ b/docs/projects/index.html
@@ -1464,7 +1464,7 @@
-
+
createProject
diff --git a/package.json b/package.json
index ca493af2..46629e0f 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts
index 93cf43f2..b1a7cd97 100644
--- a/src/gen/api/accountingApi.ts
+++ b/src/gen/api/accountingApi.ts
@@ -2,7 +2,7 @@
* Xero Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -86,7 +86,7 @@ export enum AccountingApiApiKeys {
export class AccountingApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
@@ -2338,8 +2338,9 @@ export class AccountingApi {
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
+ * @param allowBackorders 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
*/
- public async createInvoices (xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Invoices; }> {
+ public async createInvoices (xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, allowBackorders?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Invoices; }> {
const localVarPath = this.basePath + '/Invoices';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -2368,6 +2369,10 @@ export class AccountingApi {
localVarQueryParameters['unitdp'] = ObjectSerializer.serialize(unitdp, "number");
}
+ if (allowBackorders !== undefined) {
+ localVarQueryParameters['allowBackorders'] = ObjectSerializer.serialize(allowBackorders, "boolean");
+ }
+
localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string");
localVarHeaderParams['Idempotency-Key'] = ObjectSerializer.serialize(idempotencyKey, "string");
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
@@ -6898,8 +6903,9 @@ export class AccountingApi {
* @param page Up to 100 bank transactions will be returned in a single API call with line items details
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
* @param pageSize Number of records to retrieve per page
+ * @param references Filter by a comma-separated list of References
*/
- public async getBankTransactions (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: BankTransactions; }> {
+ public async getBankTransactions (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, references?: Array, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: BankTransactions; }> {
const localVarPath = this.basePath + '/BankTransactions';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -6935,6 +6941,10 @@ export class AccountingApi {
localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number");
}
+ if (references !== undefined) {
+ localVarQueryParameters['References'] = ObjectSerializer.serialize(references, "Array");
+ }
+
localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string");
localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date");
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
@@ -12615,12 +12625,13 @@ export class AccountingApi {
* @param ifModifiedSince Only records created or modified since this timestamp will be returned
* @param where Filter by an any element
* @param order Order by an any element
- * @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
+ * @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
* @param pageSize Number of records to retrieve per page
* @param invoiceNumbers Filter by a comma-separated list of InvoiceNumbers
+ * @param references Filter by a comma-separated list of References
*/
- public async getPrepayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, invoiceNumbers?: Array, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Prepayments; }> {
+ public async getPrepayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, invoiceNumbers?: Array, references?: Array, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Prepayments; }> {
const localVarPath = this.basePath + '/Prepayments';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -12660,6 +12671,10 @@ export class AccountingApi {
localVarQueryParameters['InvoiceNumbers'] = ObjectSerializer.serialize(invoiceNumbers, "Array");
}
+ if (references !== undefined) {
+ localVarQueryParameters['References'] = ObjectSerializer.serialize(references, "Array");
+ }
+
localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string");
localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date");
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
@@ -17417,8 +17432,9 @@ export class AccountingApi {
* @param invoices
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
+ * @param allowBackorders 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
*/
- public async updateInvoice (xeroTenantId: string, invoiceID: string, invoices: Invoices, unitdp?: number, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Invoices; }> {
+ public async updateInvoice (xeroTenantId: string, invoiceID: string, invoices: Invoices, unitdp?: number, idempotencyKey?: string, allowBackorders?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Invoices; }> {
const localVarPath = this.basePath + '/Invoices/{InvoiceID}'
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
let localVarQueryParameters: any = {};
@@ -17449,6 +17465,10 @@ export class AccountingApi {
localVarQueryParameters['unitdp'] = ObjectSerializer.serialize(unitdp, "number");
}
+ if (allowBackorders !== undefined) {
+ localVarQueryParameters['allowBackorders'] = ObjectSerializer.serialize(allowBackorders, "boolean");
+ }
+
localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string");
localVarHeaderParams['Idempotency-Key'] = ObjectSerializer.serialize(idempotencyKey, "string");
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
@@ -18225,8 +18245,9 @@ export class AccountingApi {
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
+ * @param allowBackorders 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
*/
- public async updateOrCreateInvoices (xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Invoices; }> {
+ public async updateOrCreateInvoices (xeroTenantId: string, invoices: Invoices, summarizeErrors?: boolean, unitdp?: number, idempotencyKey?: string, allowBackorders?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Invoices; }> {
const localVarPath = this.basePath + '/Invoices';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders);
@@ -18255,6 +18276,10 @@ export class AccountingApi {
localVarQueryParameters['unitdp'] = ObjectSerializer.serialize(unitdp, "number");
}
+ if (allowBackorders !== undefined) {
+ localVarQueryParameters['allowBackorders'] = ObjectSerializer.serialize(allowBackorders, "boolean");
+ }
+
localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string");
localVarHeaderParams['Idempotency-Key'] = ObjectSerializer.serialize(idempotencyKey, "string");
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts
index 5764fc3f..c07bb0cf 100644
--- a/src/gen/api/appStoreApi.ts
+++ b/src/gen/api/appStoreApi.ts
@@ -2,7 +2,7 @@
* Xero AppStore API
* These endpoints are for Xero Partners to interact with the App Store Billing platform
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ export enum AppStoreApiApiKeys {
export class AppStoreApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts
index 5cf53425..61951fae 100644
--- a/src/gen/api/assetApi.ts
+++ b/src/gen/api/assetApi.ts
@@ -2,7 +2,7 @@
* Xero Assets API
* The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,7 +37,7 @@ export enum AssetApiApiKeys {
export class AssetApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts
index 08878faf..1364869f 100644
--- a/src/gen/api/bankfeedsApi.ts
+++ b/src/gen/api/bankfeedsApi.ts
@@ -2,7 +2,7 @@
* Xero Bank Feeds API
* The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner.
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ export enum BankFeedsApiApiKeys {
export class BankFeedsApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts
index a38e5b8c..8b098230 100644
--- a/src/gen/api/filesApi.ts
+++ b/src/gen/api/filesApi.ts
@@ -2,7 +2,7 @@
* Xero Files API
* These endpoints are specific to Xero Files API
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ export enum FilesApiApiKeys {
export class FilesApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts
index c54eccb4..7aa2b884 100644
--- a/src/gen/api/financeApi.ts
+++ b/src/gen/api/financeApi.ts
@@ -2,7 +2,7 @@
* Xero Finance API
* The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -40,7 +40,7 @@ export enum FinanceApiApiKeys {
export class FinanceApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts
index bf48f163..57c1de86 100644
--- a/src/gen/api/payrollAUApi.ts
+++ b/src/gen/api/payrollAUApi.ts
@@ -2,7 +2,7 @@
* Xero Payroll AU API
* This is the Xero Payroll API for orgs in Australia region.
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,7 +53,7 @@ export enum PayrollAuApiApiKeys {
export class PayrollAuApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/payrollAUV2Api.ts b/src/gen/api/payrollAUV2Api.ts
index f2d59de0..171355cf 100644
--- a/src/gen/api/payrollAUV2Api.ts
+++ b/src/gen/api/payrollAUV2Api.ts
@@ -2,7 +2,7 @@
* Xero Payroll AU API 2.0
* This is the Xero Payroll API 2.0 for orgs in Australia region.
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,7 +38,7 @@ export enum PayrollAuV2ApiApiKeys {
export class PayrollAuV2Api {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts
index 007b4ba1..dccd726d 100644
--- a/src/gen/api/payrollNZApi.ts
+++ b/src/gen/api/payrollNZApi.ts
@@ -2,7 +2,7 @@
* Xero Payroll NZ
* This is the Xero Payroll API for orgs in the NZ region.
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -97,7 +97,7 @@ export enum PayrollNzApiApiKeys {
export class PayrollNzApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts
index 7d58a0db..e4d9440c 100644
--- a/src/gen/api/payrollUKApi.ts
+++ b/src/gen/api/payrollUKApi.ts
@@ -2,7 +2,7 @@
* Xero Payroll UK
* This is the Xero Payroll API for orgs in the UK region.
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -93,7 +93,7 @@ export enum PayrollUkApiApiKeys {
export class PayrollUkApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts
index bcb7a38d..387374c5 100644
--- a/src/gen/api/projectApi.ts
+++ b/src/gen/api/projectApi.ts
@@ -2,7 +2,7 @@
* Xero Projects API
* This is the Xero Projects API
*
- * The version of the OpenAPI document: 16.1.0
+ * The version of the OpenAPI document: 16.2.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -44,7 +44,7 @@ export enum ProjectApiApiKeys {
export class ProjectApi {
protected _basePath = defaultBasePath;
- protected defaultHeaders : any = {'user-agent': 'xero-node-19.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-19.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/model/accounting/item.ts b/src/gen/model/accounting/item.ts
index 54f736a5..c9b69b47 100644
--- a/src/gen/model/accounting/item.ts
+++ b/src/gen/model/accounting/item.ts
@@ -41,10 +41,18 @@ export class Item {
*/
'totalCostPool'?: number;
/**
- * The quantity of the item on hand
+ * The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0.
*/
'quantityOnHand'?: number;
/**
+ * The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0.
+ */
+ 'quantityAvailable'?: number;
+ /**
+ * The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0.
+ */
+ 'quantityOnBackOrder'?: number;
+ /**
* Last modified date in UTC format
*/
'updatedDateUTC'?: Date;
@@ -124,6 +132,16 @@ export class Item {
"baseName": "QuantityOnHand",
"type": "number"
},
+ {
+ "name": "quantityAvailable",
+ "baseName": "QuantityAvailable",
+ "type": "number"
+ },
+ {
+ "name": "quantityOnBackOrder",
+ "baseName": "QuantityOnBackOrder",
+ "type": "number"
+ },
{
"name": "updatedDateUTC",
"baseName": "UpdatedDateUTC",