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
30 changes: 28 additions & 2 deletions docs/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -6345,7 +6350,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>13.3.1</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>13.4.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 @@ -30713,9 +30718,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.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)
Expand Down Expand Up @@ -30895,6 +30901,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_getOverpayments_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
2 changes: 1 addition & 1 deletion docs/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,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>13.3.1</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>13.4.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 @@ -1420,7 +1420,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>13.3.1</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>13.4.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 @@ -1269,7 +1269,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>13.3.1</li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>13.4.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 @@ -1171,7 +1171,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>13.3.1</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>13.4.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 @@ -2717,7 +2717,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>13.3.1</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>13.4.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</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 @@ -3413,7 +3413,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>13.3.1</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>13.4.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
32 changes: 4 additions & 28 deletions docs/payroll-nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
},
Expand Down Expand Up @@ -4088,7 +4068,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>13.3.1</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>13.4.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 Expand Up @@ -5317,8 +5297,6 @@ <h3>Usage and SDK Samples</h3>
includeHolidayPay: false,
holidayPayOpeningBalance: 10.5,
annualLeaveOpeningBalance: 25.89,
sickLeaveHoursToAccrueAnnually: 100.0,
sickLeaveMaximumHoursToAccrue: 200.0,
sickLeaveOpeningBalance: 10.5,
sickLeaveToAccrueAnnually: 100.0,
sickLeaveMaximumToAccrue: 200.0,
Expand Down Expand Up @@ -5461,7 +5439,6 @@ <h2>Parameters</h2>
"example" : {
"holidayPayOpeningBalance" : 10,
"annualLeaveOpeningBalance" : 100,
"sickLeaveHoursToAccrueAnnually" : 20,
"sickLeaveToAccrueAnnually" : 20,
"sickLeaveOpeningBalance" : 10,
"sickLeaveScheduleOfAccrual" : "OnAnniversaryDate",
Expand Down Expand Up @@ -5647,13 +5624,12 @@ <h2>Parameters</h2>
"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
}
}
},
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 @@ -3701,7 +3701,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>13.3.1</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>13.4.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 @@ -1463,7 +1463,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>13.3.1</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>13.4.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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -25,7 +25,7 @@
"typescript": "^5.3.3"
},
"dependencies": {
"axios": "^1.12.0",
"axios": "^1.7.7",
"openid-client": "^5.7.0"
}
}
11 changes: 8 additions & 3 deletions src/gen/api/accountingApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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 = {};

Expand Down Expand Up @@ -12132,8 +12132,9 @@ export class AccountingApi {
* @param page e.g. page&#x3D;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&#x3D;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<string>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: AxiosResponse; body: Overpayments; }> {
const localVarPath = this.basePath + '/Overpayments';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
Expand Down Expand Up @@ -12169,6 +12170,10 @@ export class AccountingApi {
localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number");
}

if (references !== undefined) {
localVarQueryParameters['References'] = ObjectSerializer.serialize(references, "Array<string>");
}

localVarHeaderParams['xero-tenant-id'] = ObjectSerializer.serialize(xeroTenantId, "string");
localVarHeaderParams['If-Modified-Since'] = ObjectSerializer.serialize(ifModifiedSince, "Date");
localVarHeaderParams['Accept'] = acceptHeadersFromSpec.join();
Expand Down
4 changes: 2 additions & 2 deletions src/gen/api/appStoreApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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 = {};

Expand Down
4 changes: 2 additions & 2 deletions src/gen/api/assetApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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 = {};

Expand Down
4 changes: 2 additions & 2 deletions src/gen/api/bankfeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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 = {};

Expand Down
4 changes: 2 additions & 2 deletions src/gen/api/filesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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 = {};

Expand Down
4 changes: 2 additions & 2 deletions src/gen/api/financeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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 = {};

Expand Down
4 changes: 2 additions & 2 deletions src/gen/api/payrollAUApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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 = {};

Expand Down
Loading