diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 5e644ecd..1ff891f4 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -4758,6 +4758,11 @@ "description" : "Returns Invoice number field. Reference field isn't available.", "readOnly" : true }, + "InvoiceNumber" : { + "type" : "string", + "description" : "Returns Invoice number for prepayment receive document only.", + "readOnly" : true + }, "UpdatedDateUTC" : { "type" : "string", "description" : "UTC timestamp of last update to the prepayment", @@ -6351,7 +6356,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods createAccount @@ -31710,9 +31715,10 @@ Usage and SDK Samples const page = 1; const unitdp = 4; const pageSize = 100; +const invoiceNumbers = ["INV-001", "INV-002"]; try { - const response = await xero.accountingApi.getPrepayments(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); + const response = await xero.accountingApi.getPrepayments(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers); console.log(response.body || response.response.statusCode) } catch (err) { const error = JSON.stringify(err.response.body, null, 2) @@ -31892,6 +31898,26 @@ Parameters + + + InvoiceNumbers + + + + + + + + array[String] + + + +Filter by a comma-separated list of InvoiceNumbers + + + + + diff --git a/docs/appstore/index.html b/docs/appstore/index.html index 9e7db0fa..c5deecc8 100644 --- a/docs/appstore/index.html +++ b/docs/appstore/index.html @@ -1243,7 +1243,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods getSubscription diff --git a/docs/assets/index.html b/docs/assets/index.html index e860c65d..77b52ade 100644 --- a/docs/assets/index.html +++ b/docs/assets/index.html @@ -1421,7 +1421,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods createAsset diff --git a/docs/bankfeeds/index.html b/docs/bankfeeds/index.html index 0f7ea6cf..27c461eb 100644 --- a/docs/bankfeeds/index.html +++ b/docs/bankfeeds/index.html @@ -1270,7 +1270,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods createFeedConnections diff --git a/docs/files/index.html b/docs/files/index.html index 88bb44a8..2758d0b2 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -1172,7 +1172,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods createFileAssociation diff --git a/docs/finance/index.html b/docs/finance/index.html index 9e6d7a58..032e11be 100644 --- a/docs/finance/index.html +++ b/docs/finance/index.html @@ -2377,7 +2377,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods getBankStatementAccounting diff --git a/docs/payroll-au-v2/index.html b/docs/payroll-au-v2/index.html index c8a53f46..d43e090a 100644 --- a/docs/payroll-au-v2/index.html +++ b/docs/payroll-au-v2/index.html @@ -1161,7 +1161,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods approveTimesheet diff --git a/docs/payroll-au/index.html b/docs/payroll-au/index.html index a01aefc3..d6ce3c0f 100644 --- a/docs/payroll-au/index.html +++ b/docs/payroll-au/index.html @@ -3448,7 +3448,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods approveLeaveApplication diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html index 939be625..d1b9dbd7 100644 --- a/docs/payroll-nz/index.html +++ b/docs/payroll-nz/index.html @@ -4069,7 +4069,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods approveTimesheet diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html index 5c609749..b1ef432d 100644 --- a/docs/payroll-uk/index.html +++ b/docs/payroll-uk/index.html @@ -1460,7 +1460,7 @@ "earningsType" : { "type" : "string", "description" : "Indicates how an employee will be paid when taking this type of earning", - "enum" : [ "Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay", "StatutoryNeonatalCarePay", "StatutoryNeonatalCarePayNonPensionable" ] + "enum" : [ "Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay", "StatutoryNeonatalCarePay", "StatutoryNeonatalCarePayNonPensionable", "StatutoryBereavementPayNorthernIreland" ] }, "rateType" : { "type" : "string", @@ -2088,7 +2088,7 @@ "type" : { "type" : "string", "description" : "The category of statutory leave", - "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ] + "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare", "BereavementNire" ] }, "startDate" : { "type" : "string", @@ -3702,7 +3702,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods approveTimesheet diff --git a/docs/projects/index.html b/docs/projects/index.html index d813957a..f417b642 100644 --- a/docs/projects/index.html +++ b/docs/projects/index.html @@ -1464,7 +1464,7 @@ SDK: - VSN: 14.0.0 + VSN: 15.0.0 Methods createProject diff --git a/package.json b/package.json index 890157a9..2d7628c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xero-node", - "version": "14.0.0", + "version": "15.0.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 55c8f124..a689ac6b 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: 11.1.0 + * The version of the OpenAPI document: 12.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -85,7 +85,7 @@ export enum AccountingApiApiKeys { export class AccountingApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; @@ -12683,8 +12683,9 @@ export class AccountingApi { * @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 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 */ - public async getPrepayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, 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, 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); @@ -12720,6 +12721,10 @@ export class AccountingApi { localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); } + if (invoiceNumbers !== undefined) { + localVarQueryParameters['InvoiceNumbers'] = ObjectSerializer.serialize(invoiceNumbers, "Array"); + } + localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string"); localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date"); localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join(); diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index d0e28b4d..f9ceb600 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index d68f2a5d..38473f4f 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index 5c69c851..6adbdee0 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index 35b8bfe4..422d28ad 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index 3b50c83e..ed7f8338 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index a9b5b025..a96dcdab 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollAUV2Api.ts b/src/gen/api/payrollAUV2Api.ts index dcafcfc4..53171523 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index 525511a1..f18ff485 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index 960a3a22..0768a017 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 8a786404..696b932f 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: 11.1.0 + * The version of the OpenAPI document: 12.0.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-14.0.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-15.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/model/accounting/prepayment.ts b/src/gen/model/accounting/prepayment.ts index 2795da7d..877d346d 100644 --- a/src/gen/model/accounting/prepayment.ts +++ b/src/gen/model/accounting/prepayment.ts @@ -42,6 +42,10 @@ export class Prepayment { */ 'reference'?: string; /** + * Returns Invoice number for prepayment receive document only. + */ + 'invoiceNumber'?: string; + /** * UTC timestamp of last update to the prepayment */ 'updatedDateUTC'?: Date; @@ -132,6 +136,11 @@ export class Prepayment { "baseName": "Reference", "type": "string" }, + { + "name": "invoiceNumber", + "baseName": "InvoiceNumber", + "type": "string" + }, { "name": "updatedDateUTC", "baseName": "UpdatedDateUTC", diff --git a/src/gen/model/payroll-uk/earningsRate.ts b/src/gen/model/payroll-uk/earningsRate.ts index 20fe3a12..c32c4995 100644 --- a/src/gen/model/payroll-uk/earningsRate.ts +++ b/src/gen/model/payroll-uk/earningsRate.ts @@ -126,7 +126,8 @@ export namespace EarningsRate { TipsDirect = 'TipsDirect', TerminationPay = 'TerminationPay', StatutoryNeonatalCarePay = 'StatutoryNeonatalCarePay', - StatutoryNeonatalCarePayNonPensionable = 'StatutoryNeonatalCarePayNonPensionable' + StatutoryNeonatalCarePayNonPensionable = 'StatutoryNeonatalCarePayNonPensionable', + StatutoryBereavementPayNorthernIreland = 'StatutoryBereavementPayNorthernIreland' } export enum RateTypeEnum { RatePerUnit = 'RatePerUnit', diff --git a/src/gen/model/payroll-uk/employeeStatutoryLeaveSummary.ts b/src/gen/model/payroll-uk/employeeStatutoryLeaveSummary.ts index e7cdcf16..f6404b4c 100644 --- a/src/gen/model/payroll-uk/employeeStatutoryLeaveSummary.ts +++ b/src/gen/model/payroll-uk/employeeStatutoryLeaveSummary.ts @@ -81,7 +81,8 @@ export namespace EmployeeStatutoryLeaveSummary { Paternity = 'Paternity', Sharedparental = 'Sharedparental', Bereavement = 'Bereavement', - NeonatalCare = 'NeonatalCare' + NeonatalCare = 'NeonatalCare', + BereavementNire = 'BereavementNire' } export enum StatusEnum { Pending = 'Pending',