diff --git a/docs/v4/payroll-nz/index.html b/docs/v4/payroll-nz/index.html
index 068fa4dd..9c063d48 100644
--- a/docs/v4/payroll-nz/index.html
+++ b/docs/v4/payroll-nz/index.html
@@ -1680,20 +1680,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",
@@ -1767,13 +1753,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",
@@ -1801,7 +1781,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
},
@@ -5400,8 +5380,6 @@
Usage and SDK Samples
employeeLeaveSetup.setIncludeHolidayPay(false);
employeeLeaveSetup.setHolidayPayOpeningBalance(10.5);
employeeLeaveSetup.setAnnualLeaveOpeningBalance(25.89);
- employeeLeaveSetup.setSickLeaveHoursToAccrueAnnually(100.0);
- employeeLeaveSetup.setSickLeaveMaximumHoursToAccrue(200.0);
employeeLeaveSetup.setSickLeaveOpeningBalance(10.5);
employeeLeaveSetup.setSickLeaveToAccrueAnnually(100.0);
employeeLeaveSetup.setSickLeaveMaximumToAccrue(200.0);
@@ -5545,7 +5523,6 @@ Parameters
"example" : {
"holidayPayOpeningBalance" : 10,
"annualLeaveOpeningBalance" : 100,
- "sickLeaveHoursToAccrueAnnually" : 20,
"sickLeaveToAccrueAnnually" : 20,
"sickLeaveOpeningBalance" : 10,
"sickLeaveScheduleOfAccrual" : "OnAnniversaryDate",
@@ -5744,13 +5721,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/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java
index d1c36a2f..46d80932 100644
--- a/src/main/java/com/xero/api/client/AccountingApi.java
+++ b/src/main/java/com/xero/api/client/AccountingApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/AppStoreApi.java b/src/main/java/com/xero/api/client/AppStoreApi.java
index 14d7dbde..46cc05c5 100644
--- a/src/main/java/com/xero/api/client/AppStoreApi.java
+++ b/src/main/java/com/xero/api/client/AppStoreApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/AssetApi.java b/src/main/java/com/xero/api/client/AssetApi.java
index 93a1646b..c65a792d 100644
--- a/src/main/java/com/xero/api/client/AssetApi.java
+++ b/src/main/java/com/xero/api/client/AssetApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/BankFeedsApi.java b/src/main/java/com/xero/api/client/BankFeedsApi.java
index 0545e702..dbd8b68f 100644
--- a/src/main/java/com/xero/api/client/BankFeedsApi.java
+++ b/src/main/java/com/xero/api/client/BankFeedsApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/FilesApi.java b/src/main/java/com/xero/api/client/FilesApi.java
index 5fa75b05..df4da3c1 100644
--- a/src/main/java/com/xero/api/client/FilesApi.java
+++ b/src/main/java/com/xero/api/client/FilesApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/FinanceApi.java b/src/main/java/com/xero/api/client/FinanceApi.java
index 1bdcb407..642eeeee 100644
--- a/src/main/java/com/xero/api/client/FinanceApi.java
+++ b/src/main/java/com/xero/api/client/FinanceApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/IdentityApi.java b/src/main/java/com/xero/api/client/IdentityApi.java
index e41a84b5..055e6782 100644
--- a/src/main/java/com/xero/api/client/IdentityApi.java
+++ b/src/main/java/com/xero/api/client/IdentityApi.java
@@ -2,7 +2,7 @@
* Xero OAuth 2 Identity Service API
* These endpoints are related to managing authentication tokens and identity for Xero API
*
- * The version of the OpenAPI document: 9.3.0
+ * The version of the OpenAPI document: 10.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/PayrollAuApi.java b/src/main/java/com/xero/api/client/PayrollAuApi.java
index 642ab965..8e045f43 100644
--- a/src/main/java/com/xero/api/client/PayrollAuApi.java
+++ b/src/main/java/com/xero/api/client/PayrollAuApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/PayrollNzApi.java b/src/main/java/com/xero/api/client/PayrollNzApi.java
index 1d4030c9..26a62b22 100644
--- a/src/main/java/com/xero/api/client/PayrollNzApi.java
+++ b/src/main/java/com/xero/api/client/PayrollNzApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/PayrollUkApi.java b/src/main/java/com/xero/api/client/PayrollUkApi.java
index ed4fa150..f753d03a 100644
--- a/src/main/java/com/xero/api/client/PayrollUkApi.java
+++ b/src/main/java/com/xero/api/client/PayrollUkApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/api/client/ProjectApi.java b/src/main/java/com/xero/api/client/ProjectApi.java
index 0df04c75..44b73d7a 100644
--- a/src/main/java/com/xero/api/client/ProjectApi.java
+++ b/src/main/java/com/xero/api/client/ProjectApi.java
@@ -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.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeLeaveSetup.java b/src/main/java/com/xero/models/payrollnz/EmployeeLeaveSetup.java
index c4f444c7..990bd9e8 100644
--- a/src/main/java/com/xero/models/payrollnz/EmployeeLeaveSetup.java
+++ b/src/main/java/com/xero/models/payrollnz/EmployeeLeaveSetup.java
@@ -33,12 +33,6 @@ public class EmployeeLeaveSetup {
@JsonProperty("negativeAnnualLeaveBalancePaidAmount")
private Double negativeAnnualLeaveBalancePaidAmount;
- @JsonProperty("sickLeaveHoursToAccrueAnnually")
- private Double sickLeaveHoursToAccrueAnnually;
-
- @JsonProperty("sickLeaveMaximumHoursToAccrue")
- private Double sickLeaveMaximumHoursToAccrue;
-
@JsonProperty("SickLeaveToAccrueAnnually")
private Double sickLeaveToAccrueAnnually;
@@ -218,76 +212,6 @@ public void setNegativeAnnualLeaveBalancePaidAmount(Double negativeAnnualLeaveBa
this.negativeAnnualLeaveBalancePaidAmount = negativeAnnualLeaveBalancePaidAmount;
}
- /**
- * Deprecated use SickLeaveToAccrueAnnually
- *
- * @param sickLeaveHoursToAccrueAnnually Double
- * @return EmployeeLeaveSetup
- */
- public EmployeeLeaveSetup sickLeaveHoursToAccrueAnnually(Double sickLeaveHoursToAccrueAnnually) {
- this.sickLeaveHoursToAccrueAnnually = sickLeaveHoursToAccrueAnnually;
- return this;
- }
-
- /**
- * Deprecated use SickLeaveToAccrueAnnually
- *
- * @return sickLeaveHoursToAccrueAnnually
- */
- @ApiModelProperty(example = "100.5", value = "Deprecated use SickLeaveToAccrueAnnually")
- /**
- * Deprecated use SickLeaveToAccrueAnnually
- *
- * @return sickLeaveHoursToAccrueAnnually Double
- */
- public Double getSickLeaveHoursToAccrueAnnually() {
- return sickLeaveHoursToAccrueAnnually;
- }
-
- /**
- * Deprecated use SickLeaveToAccrueAnnually
- *
- * @param sickLeaveHoursToAccrueAnnually Double
- */
- public void setSickLeaveHoursToAccrueAnnually(Double sickLeaveHoursToAccrueAnnually) {
- this.sickLeaveHoursToAccrueAnnually = sickLeaveHoursToAccrueAnnually;
- }
-
- /**
- * Deprecated use SickLeaveMaximumToAccrue
- *
- * @param sickLeaveMaximumHoursToAccrue Double
- * @return EmployeeLeaveSetup
- */
- public EmployeeLeaveSetup sickLeaveMaximumHoursToAccrue(Double sickLeaveMaximumHoursToAccrue) {
- this.sickLeaveMaximumHoursToAccrue = sickLeaveMaximumHoursToAccrue;
- return this;
- }
-
- /**
- * Deprecated use SickLeaveMaximumToAccrue
- *
- * @return sickLeaveMaximumHoursToAccrue
- */
- @ApiModelProperty(example = "200.5", value = "Deprecated use SickLeaveMaximumToAccrue")
- /**
- * Deprecated use SickLeaveMaximumToAccrue
- *
- * @return sickLeaveMaximumHoursToAccrue Double
- */
- public Double getSickLeaveMaximumHoursToAccrue() {
- return sickLeaveMaximumHoursToAccrue;
- }
-
- /**
- * Deprecated use SickLeaveMaximumToAccrue
- *
- * @param sickLeaveMaximumHoursToAccrue Double
- */
- public void setSickLeaveMaximumHoursToAccrue(Double sickLeaveMaximumHoursToAccrue) {
- this.sickLeaveMaximumHoursToAccrue = sickLeaveMaximumHoursToAccrue;
- }
-
/**
* Number of units accrued annually for sick leave. The type of units is determined by the
* property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type
@@ -558,10 +482,6 @@ public boolean equals(java.lang.Object o) {
&& Objects.equals(
this.negativeAnnualLeaveBalancePaidAmount,
employeeLeaveSetup.negativeAnnualLeaveBalancePaidAmount)
- && Objects.equals(
- this.sickLeaveHoursToAccrueAnnually, employeeLeaveSetup.sickLeaveHoursToAccrueAnnually)
- && Objects.equals(
- this.sickLeaveMaximumHoursToAccrue, employeeLeaveSetup.sickLeaveMaximumHoursToAccrue)
&& Objects.equals(
this.sickLeaveToAccrueAnnually, employeeLeaveSetup.sickLeaveToAccrueAnnually)
&& Objects.equals(
@@ -582,8 +502,6 @@ public int hashCode() {
holidayPayOpeningBalance,
annualLeaveOpeningBalance,
negativeAnnualLeaveBalancePaidAmount,
- sickLeaveHoursToAccrueAnnually,
- sickLeaveMaximumHoursToAccrue,
sickLeaveToAccrueAnnually,
sickLeaveMaximumToAccrue,
sickLeaveOpeningBalance,
@@ -606,12 +524,6 @@ public String toString() {
sb.append(" negativeAnnualLeaveBalancePaidAmount: ")
.append(toIndentedString(negativeAnnualLeaveBalancePaidAmount))
.append("\n");
- sb.append(" sickLeaveHoursToAccrueAnnually: ")
- .append(toIndentedString(sickLeaveHoursToAccrueAnnually))
- .append("\n");
- sb.append(" sickLeaveMaximumHoursToAccrue: ")
- .append(toIndentedString(sickLeaveMaximumHoursToAccrue))
- .append("\n");
sb.append(" sickLeaveToAccrueAnnually: ")
.append(toIndentedString(sickLeaveToAccrueAnnually))
.append("\n");
diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java b/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java
index d077b139..ec300df1 100644
--- a/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java
+++ b/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java
@@ -86,10 +86,7 @@ public static ScheduleOfAccrualEnum fromValue(String value) {
@JsonProperty("scheduleOfAccrual")
private ScheduleOfAccrualEnum scheduleOfAccrual;
- @JsonProperty("hoursAccruedAnnually")
- private Double hoursAccruedAnnually;
-
- @JsonProperty("UnitsAccruedAnnually")
+ @JsonProperty("unitsAccruedAnnually")
private Double unitsAccruedAnnually;
@JsonProperty("typeOfUnitsToAccrue")
@@ -192,41 +189,6 @@ public void setScheduleOfAccrual(ScheduleOfAccrualEnum scheduleOfAccrual) {
this.scheduleOfAccrual = scheduleOfAccrual;
}
- /**
- * Deprecated use UnitsAccruedAnnually
- *
- * @param hoursAccruedAnnually Double
- * @return EmployeeLeaveType
- */
- public EmployeeLeaveType hoursAccruedAnnually(Double hoursAccruedAnnually) {
- this.hoursAccruedAnnually = hoursAccruedAnnually;
- return this;
- }
-
- /**
- * Deprecated use UnitsAccruedAnnually
- *
- * @return hoursAccruedAnnually
- */
- @ApiModelProperty(value = "Deprecated use UnitsAccruedAnnually")
- /**
- * Deprecated use UnitsAccruedAnnually
- *
- * @return hoursAccruedAnnually Double
- */
- public Double getHoursAccruedAnnually() {
- return hoursAccruedAnnually;
- }
-
- /**
- * Deprecated use UnitsAccruedAnnually
- *
- * @param hoursAccruedAnnually Double
- */
- public void setHoursAccruedAnnually(Double hoursAccruedAnnually) {
- this.hoursAccruedAnnually = hoursAccruedAnnually;
- }
-
/**
* The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen
* is \"NoAccruals\"
@@ -411,8 +373,7 @@ public void setOpeningBalanceTypeOfUnits(String openingBalanceTypeOfUnits) {
}
/**
- * 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
*
* @param rateAccruedHourly Double
* @return EmployeeLeaveType
@@ -423,18 +384,13 @@ public EmployeeLeaveType rateAccruedHourly(Double rateAccruedHourly) {
}
/**
- * 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
*
* @return rateAccruedHourly
*/
- @ApiModelProperty(
- value =
- "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\"")
+ @ApiModelProperty(value = "not supported in Payroll NZ")
/**
- * 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
*
* @return rateAccruedHourly Double
*/
@@ -443,8 +399,7 @@ public Double getRateAccruedHourly() {
}
/**
- * 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
*
* @param rateAccruedHourly Double
*/
@@ -657,7 +612,6 @@ public boolean equals(java.lang.Object o) {
EmployeeLeaveType employeeLeaveType = (EmployeeLeaveType) o;
return Objects.equals(this.leaveTypeID, employeeLeaveType.leaveTypeID)
&& Objects.equals(this.scheduleOfAccrual, employeeLeaveType.scheduleOfAccrual)
- && Objects.equals(this.hoursAccruedAnnually, employeeLeaveType.hoursAccruedAnnually)
&& Objects.equals(this.unitsAccruedAnnually, employeeLeaveType.unitsAccruedAnnually)
&& Objects.equals(this.typeOfUnitsToAccrue, employeeLeaveType.typeOfUnitsToAccrue)
&& Objects.equals(this.maximumToAccrue, employeeLeaveType.maximumToAccrue)
@@ -680,7 +634,6 @@ public int hashCode() {
return Objects.hash(
leaveTypeID,
scheduleOfAccrual,
- hoursAccruedAnnually,
unitsAccruedAnnually,
typeOfUnitsToAccrue,
maximumToAccrue,
@@ -700,9 +653,6 @@ public String toString() {
sb.append("class EmployeeLeaveType {\n");
sb.append(" leaveTypeID: ").append(toIndentedString(leaveTypeID)).append("\n");
sb.append(" scheduleOfAccrual: ").append(toIndentedString(scheduleOfAccrual)).append("\n");
- sb.append(" hoursAccruedAnnually: ")
- .append(toIndentedString(hoursAccruedAnnually))
- .append("\n");
sb.append(" unitsAccruedAnnually: ")
.append(toIndentedString(unitsAccruedAnnually))
.append("\n");