diff --git a/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java
index d1c36a2f..b768a0d5 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -102,7 +102,7 @@ public class AccountingApi {
private ApiClient apiClient;
private static AccountingApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class);
/** AccountingApi */
@@ -168,6 +168,74 @@ public String getUserAgent() {
return this.userAgent + " [Xero-Java-" + this.version + "]";
}
+ /* Backward compatibility functions */
+
+ /**
+ * Retrieves overpayments
+ *
+ * 200 - Success - return response of type Overpayments array with all Overpayments
+ *
+ * @param xeroTenantId Xero identifier for Tenant
+ * @param ifModifiedSince Only records created or modified since this timestamp will be returned
+ * @param where Filter by an any element
+ * @param order Order by an any element
+ * @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 accessToken Authorization token for user set in header of each request
+ * @return Overpayments
+ * @throws IOException if an error occurs while attempting to invoke the API *
+ */
+ public Overpayments getOverpayments(
+ String accessToken,
+ String xeroTenantId,
+ OffsetDateTime ifModifiedSince,
+ String where,
+ String order,
+ Integer page,
+ Integer unitdp,
+ Integer pageSize)
+ throws IOException {
+ return getOverpayments(
+ accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, null);
+ }
+
+ /**
+ * Retrieves overpayments
+ *
+ *
200 - Success - return response of type Overpayments array with all Overpayments
+ *
+ * @param xeroTenantId Xero identifier for Tenant
+ * @param ifModifiedSince Only records created or modified since this timestamp will be returned
+ * @param where Filter by an any element
+ * @param order Order by an any element
+ * @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 accessToken Authorization token for user set in header of each request
+ * @return HttpResponse
+ * @throws IOException if an error occurs while attempting to invoke the API
+ */
+ public HttpResponse getOverpaymentsForHttpResponse(
+ String accessToken,
+ String xeroTenantId,
+ OffsetDateTime ifModifiedSince,
+ String where,
+ String order,
+ Integer page,
+ Integer unitdp,
+ Integer pageSize)
+ throws IOException {
+ return getOverpaymentsForHttpResponse(
+ accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, null);
+ }
+
+ /* End backward compatibility functions */
+
/**
* Creates a new chart of accounts
*
@@ -19836,6 +19904,7 @@ public HttpResponse getOverpaymentHistoryForHttpResponse(
* @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
* @param accessToken Authorization token for user set in header of each request
* @return Overpayments
* @throws IOException if an error occurs while attempting to invoke the API *
@@ -19848,13 +19917,22 @@ public Overpayments getOverpayments(
String order,
Integer page,
Integer unitdp,
- Integer pageSize)
+ Integer pageSize,
+ List references)
throws IOException {
try {
TypeReference typeRef = new TypeReference() {};
HttpResponse response =
getOverpaymentsForHttpResponse(
- accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
+ accessToken,
+ xeroTenantId,
+ ifModifiedSince,
+ where,
+ order,
+ page,
+ unitdp,
+ pageSize,
+ references);
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} catch (HttpResponseException e) {
if (logger.isDebugEnabled()) {
@@ -19886,6 +19964,7 @@ public Overpayments getOverpayments(
* @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
* @param accessToken Authorization token for user set in header of each request
* @return HttpResponse
* @throws IOException if an error occurs while attempting to invoke the API
@@ -19898,7 +19977,8 @@ public HttpResponse getOverpaymentsForHttpResponse(
String order,
Integer page,
Integer unitdp,
- Integer pageSize)
+ Integer pageSize,
+ List references)
throws IOException {
// verify the required parameter 'xeroTenantId' is set
if (xeroTenantId == null) {
@@ -20017,6 +20097,26 @@ public HttpResponse getOverpaymentsForHttpResponse(
uriBuilder = uriBuilder.queryParam(key, value);
}
}
+ if (references != null) {
+ String key = "References";
+ Object value = references;
+ if (value instanceof Collection) {
+ List valueList = new ArrayList<>((Collection) value);
+ if (!valueList.isEmpty() && valueList.get(0) instanceof UUID) {
+ List list = new ArrayList();
+ for (int i = 0; i < valueList.size(); i++) {
+ list.add(valueList.get(i).toString());
+ }
+ uriBuilder = uriBuilder.queryParam(key, String.join(",", list));
+ } else {
+ uriBuilder = uriBuilder.queryParam(key, String.join(",", valueList));
+ }
+ } else if (value instanceof Object[]) {
+ uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
+ } else {
+ uriBuilder = uriBuilder.queryParam(key, value);
+ }
+ }
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
if (logger.isDebugEnabled()) {
diff --git a/src/main/java/com/xero/api/client/AppStoreApi.java b/src/main/java/com/xero/api/client/AppStoreApi.java
index 14d7dbde..25f392cc 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,7 +46,7 @@ public class AppStoreApi {
private ApiClient apiClient;
private static AppStoreApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(AppStoreApi.class);
/** AppStoreApi */
diff --git a/src/main/java/com/xero/api/client/AssetApi.java b/src/main/java/com/xero/api/client/AssetApi.java
index 93a1646b..d34a9948 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -49,7 +49,7 @@ public class AssetApi {
private ApiClient apiClient;
private static AssetApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(AssetApi.class);
/** AssetApi */
diff --git a/src/main/java/com/xero/api/client/BankFeedsApi.java b/src/main/java/com/xero/api/client/BankFeedsApi.java
index 0545e702..1704d456 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,7 +48,7 @@ public class BankFeedsApi {
private ApiClient apiClient;
private static BankFeedsApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);
/** BankFeedsApi */
diff --git a/src/main/java/com/xero/api/client/FilesApi.java b/src/main/java/com/xero/api/client/FilesApi.java
index 5fa75b05..af055dd7 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,7 +54,7 @@ public class FilesApi {
private ApiClient apiClient;
private static FilesApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(FilesApi.class);
/** FilesApi */
diff --git a/src/main/java/com/xero/api/client/FinanceApi.java b/src/main/java/com/xero/api/client/FinanceApi.java
index 1bdcb407..0dd91f4c 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,7 +53,7 @@ public class FinanceApi {
private ApiClient apiClient;
private static FinanceApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(FinanceApi.class);
/** FinanceApi */
diff --git a/src/main/java/com/xero/api/client/IdentityApi.java b/src/main/java/com/xero/api/client/IdentityApi.java
index e41a84b5..a24fa089 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -45,7 +45,7 @@ public class IdentityApi {
private ApiClient apiClient;
private static IdentityApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(IdentityApi.class);
/** IdentityApi */
diff --git a/src/main/java/com/xero/api/client/PayrollAuApi.java b/src/main/java/com/xero/api/client/PayrollAuApi.java
index 642ab965..79b2cd05 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -65,7 +65,7 @@ public class PayrollAuApi {
private ApiClient apiClient;
private static PayrollAuApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(PayrollAuApi.class);
/** PayrollAuApi */
diff --git a/src/main/java/com/xero/api/client/PayrollNzApi.java b/src/main/java/com/xero/api/client/PayrollNzApi.java
index 1d4030c9..d384151f 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -109,7 +109,7 @@ public class PayrollNzApi {
private ApiClient apiClient;
private static PayrollNzApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(PayrollNzApi.class);
/** PayrollNzApi */
diff --git a/src/main/java/com/xero/api/client/PayrollUkApi.java b/src/main/java/com/xero/api/client/PayrollUkApi.java
index ed4fa150..c348d0f7 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -105,7 +105,7 @@ public class PayrollUkApi {
private ApiClient apiClient;
private static PayrollUkApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(PayrollUkApi.class);
/** PayrollUkApi */
diff --git a/src/main/java/com/xero/api/client/ProjectApi.java b/src/main/java/com/xero/api/client/ProjectApi.java
index 0df04c75..998e27f6 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.1.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -57,7 +57,7 @@ public class ProjectApi {
private ApiClient apiClient;
private static ProjectApi instance = null;
private String userAgent = "Default";
- private String version = "12.3.1";
+ private String version = "12.4.0";
static final Logger logger = LoggerFactory.getLogger(ProjectApi.class);
/** ProjectApi */
diff --git a/src/main/java/com/xero/models/accounting/Overpayment.java b/src/main/java/com/xero/models/accounting/Overpayment.java
index e83f55be..5b0af3fd 100644
--- a/src/main/java/com/xero/models/accounting/Overpayment.java
+++ b/src/main/java/com/xero/models/accounting/Overpayment.java
@@ -190,6 +190,9 @@ public static StatusEnum fromValue(String value) {
@JsonProperty("HasAttachments")
private Boolean hasAttachments = false;
+ @JsonProperty("Reference")
+ private String reference;
+
@JsonProperty("Attachments")
private List attachments = new ArrayList();
@@ -881,6 +884,41 @@ public Boolean getHasAttachments() {
return hasAttachments;
}
+ /**
+ * An optional description for Overpayment
+ *
+ * @param reference String
+ * @return Overpayment
+ */
+ public Overpayment reference(String reference) {
+ this.reference = reference;
+ return this;
+ }
+
+ /**
+ * An optional description for Overpayment
+ *
+ * @return reference
+ */
+ @ApiModelProperty(example = "Ref for payment", value = "An optional description for Overpayment")
+ /**
+ * An optional description for Overpayment
+ *
+ * @return reference String
+ */
+ public String getReference() {
+ return reference;
+ }
+
+ /**
+ * An optional description for Overpayment
+ *
+ * @param reference String
+ */
+ public void setReference(String reference) {
+ this.reference = reference;
+ }
+
/**
* See Attachments
*
@@ -957,6 +995,7 @@ public boolean equals(java.lang.Object o) {
&& Objects.equals(this.appliedAmount, overpayment.appliedAmount)
&& Objects.equals(this.payments, overpayment.payments)
&& Objects.equals(this.hasAttachments, overpayment.hasAttachments)
+ && Objects.equals(this.reference, overpayment.reference)
&& Objects.equals(this.attachments, overpayment.attachments);
}
@@ -981,6 +1020,7 @@ public int hashCode() {
appliedAmount,
payments,
hasAttachments,
+ reference,
attachments);
}
@@ -1006,6 +1046,7 @@ public String toString() {
sb.append(" appliedAmount: ").append(toIndentedString(appliedAmount)).append("\n");
sb.append(" payments: ").append(toIndentedString(payments)).append("\n");
sb.append(" hasAttachments: ").append(toIndentedString(hasAttachments)).append("\n");
+ sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" attachments: ").append(toIndentedString(attachments)).append("\n");
sb.append("}");
return sb.toString();
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");