approveTimesheet
@@ -14086,7 +14098,7 @@ updateEmployeeTax
-
+ Replaces the entire EmployeeTax record. This is not a partial update. Any field omitted from the request is treated as null and overwrites the stored value. To change individual fields, GET the current record, merge your changes, remove deprecated fields such as isEligibleForKiwiSaver, and POST the complete object.
/Employees/{EmployeeID}/Tax
@@ -14111,9 +14123,9 @@ Usage and SDK Samples
irdNumber: "111111111",
hasSpecialStudentLoanRate: true,
specialStudentLoanRatePercentage: 2,
- isEligibleForKiwiSaver: true,
esctRatePercentage: 17.5,
kiwiSaverContributions: EmployeeTax.KiwiSaverContributionsEnum.MakeContributions,
+ kiwiSaverStatus: EmployeeTax.KiwiSaverStatusEnum.ActiveKiwiSaverMember,
kiwiSaverEmployeeContributionRatePercentage: 4,
kiwiSaverEmployerSalarySacrificeContributionRatePercentage: 2,
taxCode: TaxCode.MSL,
@@ -14257,11 +14269,11 @@ Parameters
"irdNumber" : "111111111",
"taxCode" : "M",
"esctRatePercentage" : 17.5,
- "isEligibleForKiwiSaver" : true,
"hasSpecialStudentLoanRate" : false,
"specialStudentLoanRatePercentage" : null,
"specialTaxRatePercentage" : null,
"kiwiSaverContributions" : "MakeContributions",
+ "kiwiSaverStatus" : "ActiveKiwiSaverMember",
"kiwiSaverOptOutDate" : null,
"kiwiSaverContributionHolidayEndDate" : null,
"kiwiSaverEmployeeContributionRatePercentage" : 3,
@@ -14269,7 +14281,8 @@ Parameters
"kiwiSaverEmployerSalarySacrificeContributionRatePercentage" : 0,
"hasStudentLoanBalance" : false,
"studentLoanBalance" : null,
- "studentLoanAsAt" : null
+ "studentLoanAsAt" : null,
+ "registeredForGST" : null
}
}
},
diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html
index 629d3e8d6..d12611619 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 bbb916a90..a9a87fd07 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 297159c8f..2719703b3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "xero-node",
- "version": "20.0.0",
+ "version": "20.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 15643d3ec..25a2cd9a6 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: 19.0.0
+ * The version of the OpenAPI document: 20.0.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts
index cc0507712..5c82e2e4f 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts
index 4002e1b5d..a50cb84d9 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts
index 3b54f53bf..50ad3f17f 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts
index 9be5c55d3..0b1bedb97 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts
index 57a821d73..803830922 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts
index ebd6f3c47..078b9c5af 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/payrollAUV2Api.ts b/src/gen/api/payrollAUV2Api.ts
index 55258c782..69cf6fec6 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts
index e5b64709f..f017016c8 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
@@ -5408,7 +5408,7 @@ export class PayrollNzApi {
});
}
/**
- *
+ * Replaces the entire EmployeeTax record. This is not a partial update. Any field omitted from the request is treated as null and overwrites the stored value. To change individual fields, GET the current record, merge your changes, remove deprecated fields such as isEligibleForKiwiSaver, and POST the complete object.
* @summary Updates the tax records for a specific employee
* @param xeroTenantId Xero identifier for Tenant
* @param employeeID Employee id for single object
diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts
index 62085a563..f21fe5bd2 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts
index 8208f26a9..4ec41adb7 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: 19.0.0
+ * The version of the OpenAPI document: 20.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-20.0.0'};
+ protected defaultHeaders : any = {'user-agent': 'xero-node-20.1.0'};
protected _useQuerystring : boolean = false;
protected binaryHeaders : any = {};
diff --git a/src/gen/model/accounting/account.ts b/src/gen/model/accounting/account.ts
index c700c7371..efa982eb8 100644
--- a/src/gen/model/accounting/account.ts
+++ b/src/gen/model/accounting/account.ts
@@ -70,6 +70,10 @@ export class Account {
*/
'updatedDateUTC'?: Date;
/**
+ * Created date UTC format. Only returned by GET Accounts and GET Accounts/{AccountID}, not on POST or PUT responses
+ */
+ 'createdDateUTC'?: Date;
+ /**
* Boolean – describes whether the account is shown in the watchlist widget on the dashboard
*/
'addToWatchlist'?: boolean;
@@ -171,6 +175,11 @@ export class Account {
"baseName": "UpdatedDateUTC",
"type": "Date"
},
+ {
+ "name": "createdDateUTC",
+ "baseName": "CreatedDateUTC",
+ "type": "Date"
+ },
{
"name": "addToWatchlist",
"baseName": "AddToWatchlist",
diff --git a/src/gen/model/payroll-nz/employeeTax.ts b/src/gen/model/payroll-nz/employeeTax.ts
index 60579c1af..9c4c33f77 100644
--- a/src/gen/model/payroll-nz/employeeTax.ts
+++ b/src/gen/model/payroll-nz/employeeTax.ts
@@ -11,7 +11,7 @@ export class EmployeeTax {
*/
'specialTaxRatePercentage'?: number;
/**
- * Does the employee has a special student loan rate?
+ * Does the employee have a special student loan rate?
*/
'hasSpecialStudentLoanRate'?: boolean;
/**
@@ -19,7 +19,7 @@ export class EmployeeTax {
*/
'specialStudentLoanRatePercentage'?: number;
/**
- * The employee eligibility for KiwiSaver.
+ * The employee eligibility for KiwiSaver. Deprecated, replaced by kiwiSaverStatus. Omit this field from POST requests.
*/
'isEligibleForKiwiSaver'?: boolean;
/**
@@ -31,6 +31,10 @@ export class EmployeeTax {
*/
'kiwiSaverContributions'?: EmployeeTax.KiwiSaverContributionsEnum;
/**
+ * KiwiSaver eligibility. Required in POST requests for all tax codes except WT and NSW.
+ */
+ 'kiwiSaverStatus'?: EmployeeTax.KiwiSaverStatusEnum;
+ /**
* Employee Contribution percentage.
*/
'kiwiSaverEmployeeContributionRatePercentage'?: number;
@@ -62,6 +66,10 @@ export class EmployeeTax {
* The date of the letter from IR.
*/
'studentLoanAsAt'?: string;
+ /**
+ * Is the employee registered for GST? Required in POST requests when taxCode is WT.
+ */
+ 'registeredForGST'?: boolean;
static discriminator: string | undefined = undefined;
@@ -106,6 +114,11 @@ export class EmployeeTax {
"baseName": "kiwiSaverContributions",
"type": "EmployeeTax.KiwiSaverContributionsEnum"
},
+ {
+ "name": "kiwiSaverStatus",
+ "baseName": "kiwiSaverStatus",
+ "type": "EmployeeTax.KiwiSaverStatusEnum"
+ },
{
"name": "kiwiSaverEmployeeContributionRatePercentage",
"baseName": "kiwiSaverEmployeeContributionRatePercentage",
@@ -145,6 +158,11 @@ export class EmployeeTax {
"name": "studentLoanAsAt",
"baseName": "studentLoanAsAt",
"type": "string"
+ },
+ {
+ "name": "registeredForGST",
+ "baseName": "registeredForGST",
+ "type": "boolean"
} ];
static getAttributeTypeMap() {
@@ -160,4 +178,12 @@ export namespace EmployeeTax {
OnASavingsSuspension = 'OnASavingsSuspension',
NotCurrentlyAKiwiSaverMember = 'NotCurrentlyAKiwiSaverMember'
}
+ export enum KiwiSaverStatusEnum {
+ ActiveKiwiSaverMember = 'ActiveKiwiSaverMember',
+ AutomaticallyEnrolledIntoKiwiSaver = 'AutomaticallyEnrolledIntoKiwiSaver',
+ EmployedForLessThan28Days = 'EmployedForLessThan28Days',
+ NotRequiredToBeAutomaticallyEnrolled = 'NotRequiredToBeAutomaticallyEnrolled',
+ OptedIntoKiwiSaver = 'OptedIntoKiwiSaver',
+ NotEligibleForKiwiSaver = 'NotEligibleForKiwiSaver'
+ }
}
diff --git a/src/gen/model/payroll-nz/models.ts b/src/gen/model/payroll-nz/models.ts
index a5eabb2eb..6256f4192 100644
--- a/src/gen/model/payroll-nz/models.ts
+++ b/src/gen/model/payroll-nz/models.ts
@@ -239,6 +239,7 @@ let enumsMap: {[index: string]: any} = {
"EmployeeStatutoryLeaveSummary.StatusEnum": EmployeeStatutoryLeaveSummary.StatusEnum,
"EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum": EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum,
"EmployeeTax.KiwiSaverContributionsEnum": EmployeeTax.KiwiSaverContributionsEnum,
+ "EmployeeTax.KiwiSaverStatusEnum": EmployeeTax.KiwiSaverStatusEnum,
"LeavePeriod.PeriodStatusEnum": LeavePeriod.PeriodStatusEnum,
"PayRun.PayRunStatusEnum": PayRun.PayRunStatusEnum,
"PayRun.PayRunTypeEnum": PayRun.PayRunTypeEnum,