diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 8f2743ea..aeda225f 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -4357,6 +4357,11 @@ "example" : false, "default" : false }, + "Reference" : { + "type" : "string", + "description" : "An optional description for Overpayment", + "example" : "Ref for payment" + }, "Attachments" : { "type" : "array", "description" : "See Attachments", @@ -6345,7 +6350,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods createAccount @@ -30713,9 +30718,10 @@ Usage and SDK Samples const page = 1; const unitdp = 4; const pageSize = 100; +const references = ["Ref1", "Ref2"]; try { - const response = await xero.accountingApi.getOverpayments(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize); + const response = await xero.accountingApi.getOverpayments(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) @@ -30895,6 +30901,26 @@ Parameters + + + References + + + + + + + + array[String] + + + +Filter by a comma-separated list of References + + + + + diff --git a/docs/appstore/index.html b/docs/appstore/index.html index 32705097..b1d154bb 100644 --- a/docs/appstore/index.html +++ b/docs/appstore/index.html @@ -1242,7 +1242,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods getSubscription diff --git a/docs/assets/index.html b/docs/assets/index.html index cbc4a957..9e120968 100644 --- a/docs/assets/index.html +++ b/docs/assets/index.html @@ -1420,7 +1420,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods createAsset diff --git a/docs/bankfeeds/index.html b/docs/bankfeeds/index.html index be905610..a93b01ef 100644 --- a/docs/bankfeeds/index.html +++ b/docs/bankfeeds/index.html @@ -1269,7 +1269,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods createFeedConnections diff --git a/docs/files/index.html b/docs/files/index.html index 7e78e73f..3f49973d 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -1171,7 +1171,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods createFileAssociation diff --git a/docs/finance/index.html b/docs/finance/index.html index 8c766704..90d08707 100644 --- a/docs/finance/index.html +++ b/docs/finance/index.html @@ -2717,7 +2717,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods getAccountingActivityAccountUsage diff --git a/docs/payroll-au/index.html b/docs/payroll-au/index.html index f1f4aa59..e71e25e2 100644 --- a/docs/payroll-au/index.html +++ b/docs/payroll-au/index.html @@ -3413,7 +3413,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods approveLeaveApplication diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html index 3d7ececa..3a745989 100644 --- a/docs/payroll-nz/index.html +++ b/docs/payroll-nz/index.html @@ -1682,20 +1682,6 @@ "example" : 10.0, "x-is-money" : true }, - "sickLeaveHoursToAccrueAnnually" : { - "type" : "number", - "description" : "Deprecated use SickLeaveToAccrueAnnually", - "format" : "double", - "example" : 100.5, - "x-is-money" : true - }, - "sickLeaveMaximumHoursToAccrue" : { - "type" : "number", - "description" : "Deprecated use SickLeaveMaximumToAccrue", - "format" : "double", - "example" : 200.5, - "x-is-money" : true - }, "SickLeaveToAccrueAnnually" : { "type" : "number", "description" : "Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type", @@ -1769,13 +1755,7 @@ "description" : "The schedule of accrual", "enum" : [ "AnnuallyAfter6Months", "OnAnniversaryDate", "PercentageOfGrossEarnings", "NoAccruals" ] }, - "hoursAccruedAnnually" : { - "type" : "number", - "description" : "Deprecated use UnitsAccruedAnnually", - "format" : "double", - "x-is-money" : true - }, - "UnitsAccruedAnnually" : { + "unitsAccruedAnnually" : { "type" : "number", "description" : "The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\"", "format" : "double", @@ -1803,7 +1783,7 @@ }, "rateAccruedHourly" : { "type" : "number", - "description" : "The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\"", + "description" : "not supported in Payroll NZ", "format" : "double", "x-is-money" : true }, @@ -4088,7 +4068,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods approveTimesheet @@ -5317,8 +5297,6 @@ Usage and SDK Samples includeHolidayPay: false, holidayPayOpeningBalance: 10.5, annualLeaveOpeningBalance: 25.89, - sickLeaveHoursToAccrueAnnually: 100.0, - sickLeaveMaximumHoursToAccrue: 200.0, sickLeaveOpeningBalance: 10.5, sickLeaveToAccrueAnnually: 100.0, sickLeaveMaximumToAccrue: 200.0, @@ -5461,7 +5439,6 @@ Parameters "example" : { "holidayPayOpeningBalance" : 10, "annualLeaveOpeningBalance" : 100, - "sickLeaveHoursToAccrueAnnually" : 20, "sickLeaveToAccrueAnnually" : 20, "sickLeaveOpeningBalance" : 10, "sickLeaveScheduleOfAccrual" : "OnAnniversaryDate", @@ -5647,13 +5624,12 @@ Parameters "example" : { "leaveTypeID" : "35da97ae-05b9-427f-9a98-69157ba42cec", "scheduleOfAccrual" : "AnnuallyAfter6Months", - "hoursAccruedAnnually" : 10, "unitsAccruedAnnually" : 10, "typeOfUnitsToAccrue" : "Hours", "openingBalanceTypeOfUnits" : "Hours", "maximumToAccrue" : 80, "openingBalance" : 100, - "rateAccruedHourly" : 3.5 + "rateAccruedHourly" : null } } }, diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html index 03c33881..08a51f4e 100644 --- a/docs/payroll-uk/index.html +++ b/docs/payroll-uk/index.html @@ -3701,7 +3701,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods approveTimesheet diff --git a/docs/projects/index.html b/docs/projects/index.html index 36b03672..995fc889 100644 --- a/docs/projects/index.html +++ b/docs/projects/index.html @@ -1463,7 +1463,7 @@ SDK: - VSN: 13.3.1 + VSN: 13.4.0 Methods createProject diff --git a/package.json b/package.json index 889b1009..4c3b7504 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xero-node", - "version": "13.3.1", + "version": "13.4.0", "description": "Xero NodeJS OAuth 2.0 client for xero-node", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -25,7 +25,7 @@ "typescript": "^5.3.3" }, "dependencies": { - "axios": "^1.12.0", + "axios": "^1.7.7", "openid-client": "^5.7.0" } } diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts index 4a97252e..9f126633 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; @@ -12132,8 +12132,9 @@ export class AccountingApi { * @param page e.g. page=1 – Up to 100 overpayments 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 references Filter by a comma-separated list of References */ - public async getOverpayments (xeroTenantId: string, ifModifiedSince?: Date, where?: string, order?: string, page?: number, unitdp?: number, pageSize?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Overpayments; }> { + public async getOverpayments (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: Overpayments; }> { const localVarPath = this.basePath + '/Overpayments'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); @@ -12169,6 +12170,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(); diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index eef1d5e4..e724e153 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index cccd784e..165b3ba4 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index bbc91fb0..1aa8ffe4 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index 1f3565d6..49b420db 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index d97e4090..6c4e2165 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: 9.3.0 + * The version of the OpenAPI document: 10.1.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,7 +44,7 @@ export enum FinanceApiApiKeys { export class FinanceApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index 4f93220f..da8018d4 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index e0b7fda4..0ecc6b27 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index 9204bd20..50426dd9 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 9503b572..2ef0ca55 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: 9.3.0 + * The version of the OpenAPI document: 10.1.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-13.3.1'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-13.4.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/model/accounting/overpayment.ts b/src/gen/model/accounting/overpayment.ts index 64ddee26..52727654 100644 --- a/src/gen/model/accounting/overpayment.ts +++ b/src/gen/model/accounting/overpayment.ts @@ -71,6 +71,10 @@ export class Overpayment { */ 'hasAttachments'?: boolean; /** + * An optional description for Overpayment + */ + 'reference'?: string; + /** * See Attachments */ 'attachments'?: Array; @@ -168,6 +172,11 @@ export class Overpayment { "baseName": "HasAttachments", "type": "boolean" }, + { + "name": "reference", + "baseName": "Reference", + "type": "string" + }, { "name": "attachments", "baseName": "Attachments", diff --git a/src/gen/model/payroll-nz/employeeLeaveSetup.ts b/src/gen/model/payroll-nz/employeeLeaveSetup.ts index d28fda44..7246e578 100644 --- a/src/gen/model/payroll-nz/employeeLeaveSetup.ts +++ b/src/gen/model/payroll-nz/employeeLeaveSetup.ts @@ -17,14 +17,6 @@ export class EmployeeLeaveSetup { */ 'negativeAnnualLeaveBalancePaidAmount'?: number; /** - * Deprecated use SickLeaveToAccrueAnnually - */ - 'sickLeaveHoursToAccrueAnnually'?: number; - /** - * Deprecated use SickLeaveMaximumToAccrue - */ - 'sickLeaveMaximumHoursToAccrue'?: number; - /** * Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type */ 'sickLeaveToAccrueAnnually'?: number; @@ -72,16 +64,6 @@ export class EmployeeLeaveSetup { "baseName": "negativeAnnualLeaveBalancePaidAmount", "type": "number" }, - { - "name": "sickLeaveHoursToAccrueAnnually", - "baseName": "sickLeaveHoursToAccrueAnnually", - "type": "number" - }, - { - "name": "sickLeaveMaximumHoursToAccrue", - "baseName": "sickLeaveMaximumHoursToAccrue", - "type": "number" - }, { "name": "sickLeaveToAccrueAnnually", "baseName": "SickLeaveToAccrueAnnually", diff --git a/src/gen/model/payroll-nz/employeeLeaveType.ts b/src/gen/model/payroll-nz/employeeLeaveType.ts index 98cbdf7f..560204f8 100644 --- a/src/gen/model/payroll-nz/employeeLeaveType.ts +++ b/src/gen/model/payroll-nz/employeeLeaveType.ts @@ -9,10 +9,6 @@ export class EmployeeLeaveType { */ 'scheduleOfAccrual'?: EmployeeLeaveType.ScheduleOfAccrualEnum; /** - * Deprecated use UnitsAccruedAnnually - */ - 'hoursAccruedAnnually'?: number; - /** * The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\" */ 'unitsAccruedAnnually'?: number; @@ -33,7 +29,7 @@ export class EmployeeLeaveType { */ 'openingBalanceTypeOfUnits'?: string; /** - * The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\" + * not supported in Payroll NZ */ 'rateAccruedHourly'?: number; /** @@ -70,14 +66,9 @@ export class EmployeeLeaveType { "baseName": "scheduleOfAccrual", "type": "EmployeeLeaveType.ScheduleOfAccrualEnum" }, - { - "name": "hoursAccruedAnnually", - "baseName": "hoursAccruedAnnually", - "type": "number" - }, { "name": "unitsAccruedAnnually", - "baseName": "UnitsAccruedAnnually", + "baseName": "unitsAccruedAnnually", "type": "number" }, {