diff --git a/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java
index 6a1c3416..c6f2561a 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: 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).
@@ -103,7 +103,7 @@ public class AccountingApi {
private ApiClient apiClient;
private static AccountingApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.0";
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class);
/** AccountingApi */
diff --git a/src/main/java/com/xero/api/client/AppStoreApi.java b/src/main/java/com/xero/api/client/AppStoreApi.java
index 422b4c9b..b723e47d 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: 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).
@@ -46,7 +46,7 @@ public class AppStoreApi {
private ApiClient apiClient;
private static AppStoreApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.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 075361e0..62aafc59 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: 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).
@@ -49,7 +49,7 @@ public class AssetApi {
private ApiClient apiClient;
private static AssetApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.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 885ba4bf..98f42bfe 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: 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).
@@ -48,7 +48,7 @@ public class BankFeedsApi {
private ApiClient apiClient;
private static BankFeedsApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.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 b43b2af9..868258f3 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: 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).
@@ -54,7 +54,7 @@ public class FilesApi {
private ApiClient apiClient;
private static FilesApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.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 d14616ca..51159210 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: 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).
@@ -49,7 +49,7 @@ public class FinanceApi {
private ApiClient apiClient;
private static FinanceApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.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 ae623107..20a190d8 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: 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).
@@ -45,7 +45,7 @@ public class IdentityApi {
private ApiClient apiClient;
private static IdentityApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.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 aaaf6d7f..d5643968 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: 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).
@@ -65,7 +65,7 @@ public class PayrollAuApi {
private ApiClient apiClient;
private static PayrollAuApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.0";
static final Logger logger = LoggerFactory.getLogger(PayrollAuApi.class);
/** PayrollAuApi */
diff --git a/src/main/java/com/xero/api/client/PayrollAuV2Api.java b/src/main/java/com/xero/api/client/PayrollAuV2Api.java
index 34cee4f8..4e41fd07 100644
--- a/src/main/java/com/xero/api/client/PayrollAuV2Api.java
+++ b/src/main/java/com/xero/api/client/PayrollAuV2Api.java
@@ -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).
@@ -49,7 +49,7 @@ public class PayrollAuV2Api {
private ApiClient apiClient;
private static PayrollAuV2Api instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.0";
static final Logger logger = LoggerFactory.getLogger(PayrollAuV2Api.class);
/** PayrollAuV2Api */
diff --git a/src/main/java/com/xero/api/client/PayrollNzApi.java b/src/main/java/com/xero/api/client/PayrollNzApi.java
index 0bd12658..f2f4f955 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: 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).
@@ -109,7 +109,7 @@ public class PayrollNzApi {
private ApiClient apiClient;
private static PayrollNzApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.0";
static final Logger logger = LoggerFactory.getLogger(PayrollNzApi.class);
/** PayrollNzApi */
@@ -7807,7 +7807,10 @@ public HttpResponse updateEmployeeSalaryAndWageForHttpResponse(
}
/**
- * Updates the tax records for a specific employee
+ * Updates the tax records for a specific employee 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.
*
* 200 - search results matching criteria
*
@@ -7857,7 +7860,10 @@ public EmployeeTaxObject updateEmployeeTax(
}
/**
- * Updates the tax records for a specific employee
+ * Updates the tax records for a specific employee 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.
*
*
200 - search results matching criteria
*
diff --git a/src/main/java/com/xero/api/client/PayrollUkApi.java b/src/main/java/com/xero/api/client/PayrollUkApi.java
index a55bffc5..e751ce7b 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: 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).
@@ -105,7 +105,7 @@ public class PayrollUkApi {
private ApiClient apiClient;
private static PayrollUkApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.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 10be6be5..50a7a643 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: 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).
@@ -57,7 +57,7 @@ public class ProjectApi {
private ApiClient apiClient;
private static ProjectApi instance = null;
private String userAgent = "Default";
- private String version = "18.2.0";
+ private String version = "18.3.0";
static final Logger logger = LoggerFactory.getLogger(ProjectApi.class);
/** ProjectApi */
diff --git a/src/main/java/com/xero/models/accounting/Account.java b/src/main/java/com/xero/models/accounting/Account.java
index 6247a60c..fb9ed324 100644
--- a/src/main/java/com/xero/models/accounting/Account.java
+++ b/src/main/java/com/xero/models/accounting/Account.java
@@ -362,6 +362,9 @@ public static SystemAccountEnum fromValue(String value) {
@JsonProperty("UpdatedDateUTC")
private String updatedDateUTC;
+ @JsonProperty("CreatedDateUTC")
+ private String createdDateUTC;
+
@JsonProperty("AddToWatchlist")
private Boolean addToWatchlist;
@@ -941,6 +944,44 @@ public OffsetDateTime getUpdatedDateUTCAsDate() {
return null;
}
+ /**
+ * Created date UTC format. Only returned by GET Accounts and GET Accounts/{AccountID}, not on
+ * POST or PUT responses
+ *
+ * @return createdDateUTC
+ */
+ @ApiModelProperty(
+ example = "/Date(1573755038314)/",
+ value =
+ "Created date UTC format. Only returned by GET Accounts and GET Accounts/{AccountID}, not"
+ + " on POST or PUT responses")
+ /**
+ * Created date UTC format. Only returned by GET Accounts and GET Accounts/{AccountID}, not on
+ * POST or PUT responses
+ *
+ * @return createdDateUTC String
+ */
+ public String getCreatedDateUTC() {
+ return createdDateUTC;
+ }
+
+ /**
+ * Created date UTC format. Only returned by GET Accounts and GET Accounts/{AccountID}, not on
+ * POST or PUT responses
+ *
+ * @return OffsetDateTime
+ */
+ public OffsetDateTime getCreatedDateUTCAsDate() {
+ if (this.createdDateUTC != null) {
+ try {
+ return util.convertStringToOffsetDateTime(this.createdDateUTC);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ return null;
+ }
+
/**
* Boolean – describes whether the account is shown in the watchlist widget on the dashboard
*
@@ -1055,6 +1096,7 @@ public boolean equals(java.lang.Object o) {
&& Objects.equals(this.reportingCodeName, account.reportingCodeName)
&& Objects.equals(this.hasAttachments, account.hasAttachments)
&& Objects.equals(this.updatedDateUTC, account.updatedDateUTC)
+ && Objects.equals(this.createdDateUTC, account.createdDateUTC)
&& Objects.equals(this.addToWatchlist, account.addToWatchlist)
&& Objects.equals(this.validationErrors, account.validationErrors);
}
@@ -1080,6 +1122,7 @@ public int hashCode() {
reportingCodeName,
hasAttachments,
updatedDateUTC,
+ createdDateUTC,
addToWatchlist,
validationErrors);
}
@@ -1110,6 +1153,7 @@ public String toString() {
sb.append(" reportingCodeName: ").append(toIndentedString(reportingCodeName)).append("\n");
sb.append(" hasAttachments: ").append(toIndentedString(hasAttachments)).append("\n");
sb.append(" updatedDateUTC: ").append(toIndentedString(updatedDateUTC)).append("\n");
+ sb.append(" createdDateUTC: ").append(toIndentedString(createdDateUTC)).append("\n");
sb.append(" addToWatchlist: ").append(toIndentedString(addToWatchlist)).append("\n");
sb.append(" validationErrors: ").append(toIndentedString(validationErrors)).append("\n");
sb.append("}");
diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeTax.java b/src/main/java/com/xero/models/payrollnz/EmployeeTax.java
index 2eb453d7..1b41903b 100644
--- a/src/main/java/com/xero/models/payrollnz/EmployeeTax.java
+++ b/src/main/java/com/xero/models/payrollnz/EmployeeTax.java
@@ -110,6 +110,71 @@ public static KiwiSaverContributionsEnum fromValue(String value) {
@JsonProperty("kiwiSaverContributions")
private KiwiSaverContributionsEnum kiwiSaverContributions;
+ /** KiwiSaver eligibility. Required in POST requests for all tax codes except WT and NSW. */
+ public enum KiwiSaverStatusEnum {
+ /** ACTIVEKIWISAVERMEMBER */
+ ACTIVEKIWISAVERMEMBER("ActiveKiwiSaverMember"),
+
+ /** AUTOMATICALLYENROLLEDINTOKIWISAVER */
+ AUTOMATICALLYENROLLEDINTOKIWISAVER("AutomaticallyEnrolledIntoKiwiSaver"),
+
+ /** EMPLOYEDFORLESSTHAN28DAYS */
+ EMPLOYEDFORLESSTHAN28DAYS("EmployedForLessThan28Days"),
+
+ /** NOTREQUIREDTOBEAUTOMATICALLYENROLLED */
+ NOTREQUIREDTOBEAUTOMATICALLYENROLLED("NotRequiredToBeAutomaticallyEnrolled"),
+
+ /** OPTEDINTOKIWISAVER */
+ OPTEDINTOKIWISAVER("OptedIntoKiwiSaver"),
+
+ /** NOTELIGIBLEFORKIWISAVER */
+ NOTELIGIBLEFORKIWISAVER("NotEligibleForKiwiSaver");
+
+ private String value;
+
+ KiwiSaverStatusEnum(String value) {
+ this.value = value;
+ }
+
+ /**
+ * getValue
+ *
+ * @return String value
+ */
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * toString
+ *
+ * @return String value
+ */
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ /**
+ * fromValue
+ *
+ * @param value String
+ */
+ @JsonCreator
+ public static KiwiSaverStatusEnum fromValue(String value) {
+ for (KiwiSaverStatusEnum b : KiwiSaverStatusEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+ }
+
+ @JsonProperty("kiwiSaverStatus")
+ private KiwiSaverStatusEnum kiwiSaverStatus;
+
@JsonProperty("kiwiSaverEmployeeContributionRatePercentage")
private Double kiwiSaverEmployeeContributionRatePercentage;
@@ -134,6 +199,9 @@ public static KiwiSaverContributionsEnum fromValue(String value) {
@JsonProperty("studentLoanAsAt")
private LocalDate studentLoanAsAt;
+ @JsonProperty("registeredForGST")
+ private Boolean registeredForGST;
+
/**
* The IRD Number.
*
@@ -240,7 +308,7 @@ public void setSpecialTaxRatePercentage(Double specialTaxRatePercentage) {
}
/**
- * Does the employee has a special student loan rate?
+ * Does the employee have a special student loan rate?
*
* @param hasSpecialStudentLoanRate Boolean
* @return EmployeeTax
@@ -251,13 +319,13 @@ public EmployeeTax hasSpecialStudentLoanRate(Boolean hasSpecialStudentLoanRate)
}
/**
- * Does the employee has a special student loan rate?
+ * Does the employee have a special student loan rate?
*
* @return hasSpecialStudentLoanRate
*/
- @ApiModelProperty(example = "true", value = "Does the employee has a special student loan rate?")
+ @ApiModelProperty(example = "true", value = "Does the employee have a special student loan rate?")
/**
- * Does the employee has a special student loan rate?
+ * Does the employee have a special student loan rate?
*
* @return hasSpecialStudentLoanRate Boolean
*/
@@ -266,7 +334,7 @@ public Boolean getHasSpecialStudentLoanRate() {
}
/**
- * Does the employee has a special student loan rate?
+ * Does the employee have a special student loan rate?
*
* @param hasSpecialStudentLoanRate Boolean
*/
@@ -310,7 +378,8 @@ public void setSpecialStudentLoanRatePercentage(Double specialStudentLoanRatePer
}
/**
- * The employee eligibility for KiwiSaver.
+ * The employee eligibility for KiwiSaver. Deprecated, replaced by kiwiSaverStatus. Omit this
+ * field from POST requests.
*
* @param isEligibleForKiwiSaver Boolean
* @return EmployeeTax
@@ -321,13 +390,19 @@ public EmployeeTax isEligibleForKiwiSaver(Boolean isEligibleForKiwiSaver) {
}
/**
- * The employee eligibility for KiwiSaver.
+ * The employee eligibility for KiwiSaver. Deprecated, replaced by kiwiSaverStatus. Omit this
+ * field from POST requests.
*
* @return isEligibleForKiwiSaver
*/
- @ApiModelProperty(example = "true", value = "The employee eligibility for KiwiSaver.")
+ @ApiModelProperty(
+ example = "true",
+ value =
+ "The employee eligibility for KiwiSaver. Deprecated, replaced by kiwiSaverStatus. Omit"
+ + " this field from POST requests.")
/**
- * The employee eligibility for KiwiSaver.
+ * The employee eligibility for KiwiSaver. Deprecated, replaced by kiwiSaverStatus. Omit this
+ * field from POST requests.
*
* @return isEligibleForKiwiSaver Boolean
*/
@@ -336,7 +411,8 @@ public Boolean getIsEligibleForKiwiSaver() {
}
/**
- * The employee eligibility for KiwiSaver.
+ * The employee eligibility for KiwiSaver. Deprecated, replaced by kiwiSaverStatus. Omit this
+ * field from POST requests.
*
* @param isEligibleForKiwiSaver Boolean
*/
@@ -427,6 +503,44 @@ public void setKiwiSaverContributions(KiwiSaverContributionsEnum kiwiSaverContri
this.kiwiSaverContributions = kiwiSaverContributions;
}
+ /**
+ * KiwiSaver eligibility. Required in POST requests for all tax codes except WT and NSW.
+ *
+ * @param kiwiSaverStatus KiwiSaverStatusEnum
+ * @return EmployeeTax
+ */
+ public EmployeeTax kiwiSaverStatus(KiwiSaverStatusEnum kiwiSaverStatus) {
+ this.kiwiSaverStatus = kiwiSaverStatus;
+ return this;
+ }
+
+ /**
+ * KiwiSaver eligibility. Required in POST requests for all tax codes except WT and NSW.
+ *
+ * @return kiwiSaverStatus
+ */
+ @ApiModelProperty(
+ example = "ActiveKiwiSaverMember",
+ value =
+ "KiwiSaver eligibility. Required in POST requests for all tax codes except WT and NSW.")
+ /**
+ * KiwiSaver eligibility. Required in POST requests for all tax codes except WT and NSW.
+ *
+ * @return kiwiSaverStatus KiwiSaverStatusEnum
+ */
+ public KiwiSaverStatusEnum getKiwiSaverStatus() {
+ return kiwiSaverStatus;
+ }
+
+ /**
+ * KiwiSaver eligibility. Required in POST requests for all tax codes except WT and NSW.
+ *
+ * @param kiwiSaverStatus KiwiSaverStatusEnum
+ */
+ public void setKiwiSaverStatus(KiwiSaverStatusEnum kiwiSaverStatus) {
+ this.kiwiSaverStatus = kiwiSaverStatus;
+ }
+
/**
* Employee Contribution percentage.
*
@@ -729,6 +843,43 @@ public void setStudentLoanAsAt(LocalDate studentLoanAsAt) {
this.studentLoanAsAt = studentLoanAsAt;
}
+ /**
+ * Is the employee registered for GST? Required in POST requests when taxCode is WT.
+ *
+ * @param registeredForGST Boolean
+ * @return EmployeeTax
+ */
+ public EmployeeTax registeredForGST(Boolean registeredForGST) {
+ this.registeredForGST = registeredForGST;
+ return this;
+ }
+
+ /**
+ * Is the employee registered for GST? Required in POST requests when taxCode is WT.
+ *
+ * @return registeredForGST
+ */
+ @ApiModelProperty(
+ example = "true",
+ value = "Is the employee registered for GST? Required in POST requests when taxCode is WT.")
+ /**
+ * Is the employee registered for GST? Required in POST requests when taxCode is WT.
+ *
+ * @return registeredForGST Boolean
+ */
+ public Boolean getRegisteredForGST() {
+ return registeredForGST;
+ }
+
+ /**
+ * Is the employee registered for GST? Required in POST requests when taxCode is WT.
+ *
+ * @param registeredForGST Boolean
+ */
+ public void setRegisteredForGST(Boolean registeredForGST) {
+ this.registeredForGST = registeredForGST;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -747,6 +898,7 @@ public boolean equals(java.lang.Object o) {
&& Objects.equals(this.isEligibleForKiwiSaver, employeeTax.isEligibleForKiwiSaver)
&& Objects.equals(this.esctRatePercentage, employeeTax.esctRatePercentage)
&& Objects.equals(this.kiwiSaverContributions, employeeTax.kiwiSaverContributions)
+ && Objects.equals(this.kiwiSaverStatus, employeeTax.kiwiSaverStatus)
&& Objects.equals(
this.kiwiSaverEmployeeContributionRatePercentage,
employeeTax.kiwiSaverEmployeeContributionRatePercentage)
@@ -762,7 +914,8 @@ public boolean equals(java.lang.Object o) {
employeeTax.kiwiSaverContributionHolidayEndDate)
&& Objects.equals(this.hasStudentLoanBalance, employeeTax.hasStudentLoanBalance)
&& Objects.equals(this.studentLoanBalance, employeeTax.studentLoanBalance)
- && Objects.equals(this.studentLoanAsAt, employeeTax.studentLoanAsAt);
+ && Objects.equals(this.studentLoanAsAt, employeeTax.studentLoanAsAt)
+ && Objects.equals(this.registeredForGST, employeeTax.registeredForGST);
}
@Override
@@ -776,6 +929,7 @@ public int hashCode() {
isEligibleForKiwiSaver,
esctRatePercentage,
kiwiSaverContributions,
+ kiwiSaverStatus,
kiwiSaverEmployeeContributionRatePercentage,
kiwiSaverEmployerContributionRatePercentage,
kiwiSaverEmployerSalarySacrificeContributionRatePercentage,
@@ -783,7 +937,8 @@ public int hashCode() {
kiwiSaverContributionHolidayEndDate,
hasStudentLoanBalance,
studentLoanBalance,
- studentLoanAsAt);
+ studentLoanAsAt,
+ registeredForGST);
}
@Override
@@ -808,6 +963,7 @@ public String toString() {
sb.append(" kiwiSaverContributions: ")
.append(toIndentedString(kiwiSaverContributions))
.append("\n");
+ sb.append(" kiwiSaverStatus: ").append(toIndentedString(kiwiSaverStatus)).append("\n");
sb.append(" kiwiSaverEmployeeContributionRatePercentage: ")
.append(toIndentedString(kiwiSaverEmployeeContributionRatePercentage))
.append("\n");
@@ -828,6 +984,7 @@ public String toString() {
.append("\n");
sb.append(" studentLoanBalance: ").append(toIndentedString(studentLoanBalance)).append("\n");
sb.append(" studentLoanAsAt: ").append(toIndentedString(studentLoanAsAt)).append("\n");
+ sb.append(" registeredForGST: ").append(toIndentedString(registeredForGST)).append("\n");
sb.append("}");
return sb.toString();
}