diff --git a/docs/accounting/index.html b/docs/accounting/index.html index d5196aef0..ac89350e7 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -6340,7 +6340,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods createAccount diff --git a/docs/appstore/index.html b/docs/appstore/index.html index 91b318e9a..86888d79b 100644 --- a/docs/appstore/index.html +++ b/docs/appstore/index.html @@ -1242,7 +1242,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods getSubscription diff --git a/docs/assets/index.html b/docs/assets/index.html index 344058b18..8932fe421 100644 --- a/docs/assets/index.html +++ b/docs/assets/index.html @@ -1393,7 +1393,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods createAsset diff --git a/docs/bankfeeds/index.html b/docs/bankfeeds/index.html index 5612b6519..3fa223b47 100644 --- a/docs/bankfeeds/index.html +++ b/docs/bankfeeds/index.html @@ -1269,7 +1269,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods createFeedConnections diff --git a/docs/files/index.html b/docs/files/index.html index 4c9002163..46a19e244 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -1171,7 +1171,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods createFileAssociation diff --git a/docs/finance/index.html b/docs/finance/index.html index 93ea874d6..884bc34c7 100644 --- a/docs/finance/index.html +++ b/docs/finance/index.html @@ -1517,7 +1517,7 @@ }, "importSourceType" : { "type" : "string", - "description" : "Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying)." + "description" : "Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying)." } }, "additionalProperties" : false, @@ -1533,13 +1533,6 @@ "format" : "double", "x-is-money" : true }, - "indirectBankFeed" : { - "type" : "number", - "description" : "No longer in use.", - "format" : "double", - "deprecated" : true, - "x-is-money" : true - }, "fileUpload" : { "type" : "number", "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.", @@ -1558,13 +1551,6 @@ "format" : "double", "x-is-money" : true }, - "indirectBankFeedPos" : { - "type" : "number", - "description" : "No longer in use.", - "format" : "double", - "deprecated" : true, - "x-is-money" : true - }, "fileUploadPos" : { "type" : "number", "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", @@ -1583,13 +1569,6 @@ "format" : "double", "x-is-money" : true }, - "indirectBankFeedNeg" : { - "type" : "number", - "description" : "No longer in use.", - "format" : "double", - "deprecated" : true, - "x-is-money" : true - }, "fileUploadNeg" : { "type" : "number", "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", @@ -2738,7 +2717,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods getAccountingActivityAccountUsage diff --git a/docs/payroll-au/index.html b/docs/payroll-au/index.html index 2e0283fcf..8434c8b8a 100644 --- a/docs/payroll-au/index.html +++ b/docs/payroll-au/index.html @@ -3413,7 +3413,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods approveLeaveApplication diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html index 2011dbcee..968ecca90 100644 --- a/docs/payroll-nz/index.html +++ b/docs/payroll-nz/index.html @@ -1684,14 +1684,28 @@ }, "sickLeaveHoursToAccrueAnnually" : { "type" : "number", - "description" : "Number of hours accrued annually for sick leave. Multiply the number of days they're entitled to by the hours worked per day", + "description" : "Deprecated use SickLeaveToAccrueAnnually", "format" : "double", "example" : 100.5, "x-is-money" : true }, "sickLeaveMaximumHoursToAccrue" : { "type" : "number", - "description" : "Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day", + "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", + "format" : "double", + "example" : 100.5, + "x-is-money" : true + }, + "SickLeaveMaximumToAccrue" : { + "type" : "number", + "description" : "Maximum number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type", "format" : "double", "example" : 200.5, "x-is-money" : true @@ -1710,7 +1724,14 @@ }, "SickLeaveAnniversaryDate" : { "type" : "string", - "description" : "If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave", + "description" : "If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date", + "format" : "date", + "example" : "2020-01-19", + "x-is-date" : true + }, + "AnnualLeaveAnniversaryDate" : { + "type" : "string", + "description" : "The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date", "format" : "date", "example" : "2020-01-19", "x-is-date" : true @@ -1750,22 +1771,36 @@ }, "hoursAccruedAnnually" : { "type" : "number", - "description" : "The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\"", + "description" : "Deprecated use UnitsAccruedAnnually", "format" : "double", "x-is-money" : true }, + "UnitsAccruedAnnually" : { + "type" : "number", + "description" : "The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\"", + "format" : "double", + "x-is-money" : true + }, + "typeOfUnitsToAccrue" : { + "type" : "string", + "description" : "The type of units accrued for the leave annually" + }, "maximumToAccrue" : { "type" : "number", - "description" : "The maximum number of hours that can be accrued for the leave", + "description" : "The maximum number of units that can be accrued for the leave", "format" : "double", "x-is-money" : true }, "openingBalance" : { "type" : "number", - "description" : "The initial number of hours assigned when the leave was added to the employee", + "description" : "The initial number of units assigned when the leave was added to the employee", "format" : "double", "x-is-money" : true }, + "openingBalanceTypeOfUnits" : { + "type" : "string", + "description" : "The type of units for the opening balance" + }, "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\"", @@ -2609,10 +2644,23 @@ "format" : "double", "x-is-money" : true }, + "numberOfUnitsTaken" : { + "type" : "number", + "description" : "The number of units taken for the leave", + "format" : "double" + }, + "typeOfUnits" : { + "type" : "string", + "description" : "The type of units paid for the leave" + }, + "typeOfUnitsTaken" : { + "type" : "string", + "description" : "The type of units taken for the leave" + }, "periodStatus" : { "type" : "string", - "description" : "Period Status", - "enum" : [ "Approved", "Completed" ] + "description" : "Status of leave", + "enum" : [ "Approved", "Completed", "Estimated" ] } }, "description" : "" @@ -2667,6 +2715,14 @@ "isActive" : { "type" : "boolean", "description" : "Shows whether the leave type is active or not" + }, + "typeOfUnits" : { + "type" : "string", + "description" : "The type of units to be paid for the leave type" + }, + "typeOfUnitsToAccrue" : { + "type" : "string", + "description" : "The type of units to be accrued for the leave type" } }, "description" : "" @@ -4032,7 +4088,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods approveTimesheet diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html index 0ed33ea38..c60398b15 100644 --- a/docs/payroll-uk/index.html +++ b/docs/payroll-uk/index.html @@ -3518,7 +3518,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods approveTimesheet diff --git a/docs/projects/index.html b/docs/projects/index.html index 5d9824252..246f6c51a 100644 --- a/docs/projects/index.html +++ b/docs/projects/index.html @@ -1463,7 +1463,7 @@ SDK: - VSN: 9.3.0 + VSN: 10.0.0 Methods createProject diff --git a/package.json b/package.json index 47485b0ae..9a4e7ae0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xero-node", - "version": "9.3.0", + "version": "10.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 e5faf9e9e..380c2657a 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index be416be07..e23b33814 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index f4ab82ec9..e920d04fa 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index a18871818..61b3b060c 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index 0e87e135f..21297eee9 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index fcfd7cc4e..68099e5d4 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: 6.3.0 + * The version of the OpenAPI document: 7.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 FinanceApiApiKeys { export class FinanceApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index 26d49c1bb..a215a3856 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index b2c8b2d69..7a0f5496e 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index 8ec54fc43..a32f2132f 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: 6.3.0 + * The version of the OpenAPI document: 7.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -94,7 +94,7 @@ export enum PayrollUkApiApiKeys { export class PayrollUkApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 4700fdd58..d3768cd4e 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: 6.3.0 + * The version of the OpenAPI document: 7.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-9.3.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-10.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/model/finance/currentStatementResponse.ts b/src/gen/model/finance/currentStatementResponse.ts index 9852a9b2b..32829ab0f 100644 --- a/src/gen/model/finance/currentStatementResponse.ts +++ b/src/gen/model/finance/currentStatementResponse.ts @@ -21,7 +21,7 @@ export class CurrentStatementResponse { */ 'importedDateTimeUtc'?: Date; /** - * Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying). + * Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying). */ 'importSourceType'?: string; diff --git a/src/gen/model/finance/dataSourceResponse.ts b/src/gen/model/finance/dataSourceResponse.ts index c750da26d..d7037fcdb 100644 --- a/src/gen/model/finance/dataSourceResponse.ts +++ b/src/gen/model/finance/dataSourceResponse.ts @@ -5,10 +5,6 @@ export class DataSourceResponse { */ 'directBankFeed'?: number; /** - * No longer in use. - */ - 'indirectBankFeed'?: number; - /** * Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. */ 'fileUpload'?: number; @@ -21,10 +17,6 @@ export class DataSourceResponse { */ 'directBankFeedPos'?: number; /** - * No longer in use. - */ - 'indirectBankFeedPos'?: number; - /** * Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. */ 'fileUploadPos'?: number; @@ -37,10 +29,6 @@ export class DataSourceResponse { */ 'directBankFeedNeg'?: number; /** - * No longer in use. - */ - 'indirectBankFeedNeg'?: number; - /** * Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. */ 'fileUploadNeg'?: number; @@ -69,11 +57,6 @@ export class DataSourceResponse { "baseName": "directBankFeed", "type": "number" }, - { - "name": "indirectBankFeed", - "baseName": "indirectBankFeed", - "type": "number" - }, { "name": "fileUpload", "baseName": "fileUpload", @@ -89,11 +72,6 @@ export class DataSourceResponse { "baseName": "directBankFeedPos", "type": "number" }, - { - "name": "indirectBankFeedPos", - "baseName": "indirectBankFeedPos", - "type": "number" - }, { "name": "fileUploadPos", "baseName": "fileUploadPos", @@ -109,11 +87,6 @@ export class DataSourceResponse { "baseName": "directBankFeedNeg", "type": "number" }, - { - "name": "indirectBankFeedNeg", - "baseName": "indirectBankFeedNeg", - "type": "number" - }, { "name": "fileUploadNeg", "baseName": "fileUploadNeg", diff --git a/src/gen/model/payroll-nz/employeeLeaveSetup.ts b/src/gen/model/payroll-nz/employeeLeaveSetup.ts index c576b002d..d28fda447 100644 --- a/src/gen/model/payroll-nz/employeeLeaveSetup.ts +++ b/src/gen/model/payroll-nz/employeeLeaveSetup.ts @@ -17,14 +17,22 @@ export class EmployeeLeaveSetup { */ 'negativeAnnualLeaveBalancePaidAmount'?: number; /** - * Number of hours accrued annually for sick leave. Multiply the number of days they\'re entitled to by the hours worked per day + * Deprecated use SickLeaveToAccrueAnnually */ 'sickLeaveHoursToAccrueAnnually'?: number; /** - * Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day + * 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; + /** + * Maximum number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type + */ + 'sickLeaveMaximumToAccrue'?: number; + /** * Initial sick leave balance. This will be positive unless they\'ve taken sick leave in advance */ 'sickLeaveOpeningBalance'?: number; @@ -33,9 +41,13 @@ export class EmployeeLeaveSetup { */ 'sickLeaveScheduleOfAccrual'?: string; /** - * If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave + * If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee\'s start date is used as the anniversary date */ 'sickLeaveAnniversaryDate'?: string; + /** + * The first date the employee will accrue Annual Leave. When null the Employee\'s start date is used as the anniversary date + */ + 'annualLeaveAnniversaryDate'?: string; static discriminator: string | undefined = undefined; @@ -70,6 +82,16 @@ export class EmployeeLeaveSetup { "baseName": "sickLeaveMaximumHoursToAccrue", "type": "number" }, + { + "name": "sickLeaveToAccrueAnnually", + "baseName": "SickLeaveToAccrueAnnually", + "type": "number" + }, + { + "name": "sickLeaveMaximumToAccrue", + "baseName": "SickLeaveMaximumToAccrue", + "type": "number" + }, { "name": "sickLeaveOpeningBalance", "baseName": "sickLeaveOpeningBalance", @@ -84,6 +106,11 @@ export class EmployeeLeaveSetup { "name": "sickLeaveAnniversaryDate", "baseName": "SickLeaveAnniversaryDate", "type": "string" + }, + { + "name": "annualLeaveAnniversaryDate", + "baseName": "AnnualLeaveAnniversaryDate", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/gen/model/payroll-nz/employeeLeaveType.ts b/src/gen/model/payroll-nz/employeeLeaveType.ts index 8dba12da3..98cbdf7fe 100644 --- a/src/gen/model/payroll-nz/employeeLeaveType.ts +++ b/src/gen/model/payroll-nz/employeeLeaveType.ts @@ -9,18 +9,30 @@ export class EmployeeLeaveType { */ 'scheduleOfAccrual'?: EmployeeLeaveType.ScheduleOfAccrualEnum; /** - * The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\" + * Deprecated use UnitsAccruedAnnually */ 'hoursAccruedAnnually'?: number; /** - * The maximum number of hours that can be accrued for the leave + * The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\" + */ + 'unitsAccruedAnnually'?: number; + /** + * The type of units accrued for the leave annually + */ + 'typeOfUnitsToAccrue'?: string; + /** + * The maximum number of units that can be accrued for the leave */ 'maximumToAccrue'?: number; /** - * The initial number of hours assigned when the leave was added to the employee + * The initial number of units assigned when the leave was added to the employee */ 'openingBalance'?: number; /** + * The type of units for the opening balance + */ + '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\" */ 'rateAccruedHourly'?: number; @@ -63,6 +75,16 @@ export class EmployeeLeaveType { "baseName": "hoursAccruedAnnually", "type": "number" }, + { + "name": "unitsAccruedAnnually", + "baseName": "UnitsAccruedAnnually", + "type": "number" + }, + { + "name": "typeOfUnitsToAccrue", + "baseName": "typeOfUnitsToAccrue", + "type": "string" + }, { "name": "maximumToAccrue", "baseName": "maximumToAccrue", @@ -73,6 +95,11 @@ export class EmployeeLeaveType { "baseName": "openingBalance", "type": "number" }, + { + "name": "openingBalanceTypeOfUnits", + "baseName": "openingBalanceTypeOfUnits", + "type": "string" + }, { "name": "rateAccruedHourly", "baseName": "rateAccruedHourly", diff --git a/src/gen/model/payroll-nz/leavePeriod.ts b/src/gen/model/payroll-nz/leavePeriod.ts index e39957c68..f671bf226 100644 --- a/src/gen/model/payroll-nz/leavePeriod.ts +++ b/src/gen/model/payroll-nz/leavePeriod.ts @@ -13,7 +13,19 @@ export class LeavePeriod { */ 'numberOfUnits'?: number; /** - * Period Status + * The number of units taken for the leave + */ + 'numberOfUnitsTaken'?: number; + /** + * The type of units paid for the leave + */ + 'typeOfUnits'?: string; + /** + * The type of units taken for the leave + */ + 'typeOfUnitsTaken'?: string; + /** + * Status of leave */ 'periodStatus'?: LeavePeriod.PeriodStatusEnum; @@ -35,6 +47,21 @@ export class LeavePeriod { "baseName": "numberOfUnits", "type": "number" }, + { + "name": "numberOfUnitsTaken", + "baseName": "numberOfUnitsTaken", + "type": "number" + }, + { + "name": "typeOfUnits", + "baseName": "typeOfUnits", + "type": "string" + }, + { + "name": "typeOfUnitsTaken", + "baseName": "typeOfUnitsTaken", + "type": "string" + }, { "name": "periodStatus", "baseName": "periodStatus", @@ -49,6 +76,7 @@ export class LeavePeriod { export namespace LeavePeriod { export enum PeriodStatusEnum { Approved = 'Approved', - Completed = 'Completed' + Completed = 'Completed', + Estimated = 'Estimated' } } diff --git a/src/gen/model/payroll-nz/leaveType.ts b/src/gen/model/payroll-nz/leaveType.ts index 46a92bfd2..2ccab38dd 100644 --- a/src/gen/model/payroll-nz/leaveType.ts +++ b/src/gen/model/payroll-nz/leaveType.ts @@ -24,6 +24,14 @@ export class LeaveType { * Shows whether the leave type is active or not */ 'isActive'?: boolean; + /** + * The type of units to be paid for the leave type + */ + 'typeOfUnits'?: string; + /** + * The type of units to be accrued for the leave type + */ + 'typeOfUnitsToAccrue'?: string; static discriminator: string | undefined = undefined; @@ -57,6 +65,16 @@ export class LeaveType { "name": "isActive", "baseName": "isActive", "type": "boolean" + }, + { + "name": "typeOfUnits", + "baseName": "typeOfUnits", + "type": "string" + }, + { + "name": "typeOfUnitsToAccrue", + "baseName": "typeOfUnitsToAccrue", + "type": "string" } ]; static getAttributeTypeMap() {