From 0424e9c5a82fc7a21dcf77d2cdfab69636a74c20 Mon Sep 17 00:00:00 2001 From: Richard DeMarco Date: Thu, 1 Sep 2022 09:11:44 -0600 Subject: [PATCH 1/2] update sdk to the latest spec version --- docs/v4/accounting/index.html | 139 +++++++++++++++++- docs/v4/payroll-au/index.html | 17 ++- .../com/xero/api/client/AccountingApi.java | 93 +++++++++++- .../java/com/xero/api/client/AppStoreApi.java | 2 +- .../java/com/xero/api/client/AssetApi.java | 2 +- .../com/xero/api/client/BankFeedsApi.java | 2 +- .../java/com/xero/api/client/FilesApi.java | 2 +- .../java/com/xero/api/client/FinanceApi.java | 2 +- .../java/com/xero/api/client/IdentityApi.java | 2 +- .../com/xero/api/client/PayrollAuApi.java | 2 +- .../com/xero/api/client/PayrollNzApi.java | 2 +- .../com/xero/api/client/PayrollUkApi.java | 2 +- .../java/com/xero/api/client/ProjectApi.java | 2 +- .../xero/models/accounting/Organisation.java | 5 +- .../com/xero/models/payrollau/Employee.java | 12 +- .../models/payrollau/LeaveCategoryCode.java | 93 ++++++++++++ .../com/xero/models/payrollau/LeaveType.java | 90 +++++++++++- 17 files changed, 446 insertions(+), 23 deletions(-) create mode 100644 src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java diff --git a/docs/v4/accounting/index.html b/docs/v4/accounting/index.html index a8bdff1e..1727b9f6 100644 --- a/docs/v4/accounting/index.html +++ b/docs/v4/accounting/index.html @@ -4052,7 +4052,7 @@ "Class" : { "type" : "string", "description" : "Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)", - "enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE" ] + "enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE" ] }, "Edition" : { "type" : "string", @@ -6319,6 +6319,9 @@
  • getBankTransfers
  • +
  • + getBatchPayment +
  • getBatchPaymentHistory
  • @@ -20848,6 +20851,138 @@

    Parameters

    + + + + + +
    +
    +
    +
    +

    getBatchPayment

    +

    Retrieves a specific batch payment using a unique batch payment Id

    +
    +
    +
    +

    +

    +

    +
    +
    /BatchPayments/{BatchPaymentID}
    +

    +

    Usage and SDK Samples

    +

    + +
    +
    +
    import org.openapitools.client.api.*;
    +import org.openapitools.client.api.client.AccountingApi;
    +import org.openapitools.client.models.accounting.*;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class AccountingApiExample {
    +    private AccountingApi apiInstance;
    +    
    +    public static void main(String[] args) {
    +        String accessToken = "YOUR_ACCESS_TOKEN";
    +        ApiClient defaultClient = new ApiClient();
    +
    +        apiInstance = AccountingApi.getInstance(defaultClient);
    +        String xeroTenantId = 'YOUR_XERO_TENANT_ID';
    +        UUID batchPaymentID = UUID.fromString("00000000-0000-0000-0000-000000000000");
    +        UUID batchPaymentID = '00000000-0000-0000-0000-000000000000';
    +
    +        try {
    +            BatchPayments result = apiInstance.getBatchPayment(accessToken, xeroTenantId, batchPaymentID);
    +            System.out.println(result);
    +        } catch (XeroException e) {
    +            System.err.println("Exception when calling AccountingApi#getBatchPayment");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    +

    Scopes

    + + + + + + + + + + + + +
    accounting.transactionsGrant read-write access to bank transactions, credit notes, invoices, repeating invoices
    accounting.transactions.readGrant read-only access to invoices
    +

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    BatchPaymentID* + + +
    +
    +
    + + UUID + + + (uuid) + + +
    +Unique identifier for BatchPayment +
    +
    +
    + Required +
    +
    +
    +
    +
    Header parameters
    + + + + + + +
    NameDescription
    xero-tenant-id* + + +
    +
    +
    + + String + + +
    +Xero identifier for Tenant +
    +
    +
    + Required +
    +
    +
    +
    @@ -23199,7 +23334,7 @@

    Usage and SDK Samples

    Integer page = 1; Boolean includeArchived = true; Boolean summaryOnly = true; - String searchTerm = 'searchTerm=Joe Bloggs'; + String searchTerm = 'Joe Bloggs'; try { Contacts result = apiInstance.getContacts(accessToken, xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly, searchTerm); diff --git a/docs/v4/payroll-au/index.html b/docs/v4/payroll-au/index.html index 2fc8321f..a3f9c8b6 100644 --- a/docs/v4/payroll-au/index.html +++ b/docs/v4/payroll-au/index.html @@ -1292,7 +1292,7 @@ }, "Gender" : { "type" : "string", - "description" : "The employee’s gender. See Employee Gender", + "description" : "The employee’s gender. See Employee Gender", "example" : "F", "enum" : [ "N", "M", "F", "I" ] }, @@ -1626,6 +1626,13 @@ } }, "description" : "" +}; + defs["LeaveCategoryCode"] = { + "title" : "", + "type" : "string", + "description" : "Code used to identify the Leave Category", + "example" : "ANNUALLEAVE", + "enum" : [ "ANNUALLEAVE", "LONGSERVICELEAVE", "PERSONALCARERSLEAVE", "ROSTEREDDAYOFF", "TIMEOFFINLIEU", "COMPASSIONATEANDBEREAVEMENTLEAVE", "STUDYLEAVE", "FAMILYANDDOMESTICVIOLENCELEAVE", "SPECIALPAIDLEAVE", "COMMUNITYSERVICELEAVE", "JURYDUTYLEAVE", "DEFENCERESERVELEAVE" ] }; defs["LeaveEarningsLine"] = { "title" : "", @@ -1811,6 +1818,14 @@ "type" : "boolean", "description" : "Is the current record", "example" : true + }, + "LeaveCategoryCode" : { + "$ref" : "#/components/schemas/LeaveCategoryCode" + }, + "SGCExempt" : { + "type" : "boolean", + "description" : "Set this to indicate that the leave type is exempt from superannuation guarantee contribution", + "example" : true } }, "description" : "" diff --git a/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java index 4411be2b..4f865aa7 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11434,6 +11434,97 @@ public HttpResponse getBankTransfersForHttpResponse( .execute(); } + /** + * Retrieves a specific batch payment using a unique batch payment Id + * + *

    200 - Success - return response of type BatchPayments array with matching batch + * payment Id + * + * @param xeroTenantId Xero identifier for Tenant + * @param batchPaymentID Unique identifier for BatchPayment + * @param accessToken Authorization token for user set in header of each request + * @return BatchPayments + * @throws IOException if an error occurs while attempting to invoke the API * + */ + public BatchPayments getBatchPayment(String accessToken, String xeroTenantId, UUID batchPaymentID) + throws IOException { + try { + TypeReference typeRef = new TypeReference() {}; + HttpResponse response = + getBatchPaymentForHttpResponse(accessToken, xeroTenantId, batchPaymentID); + return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); + } catch (HttpResponseException e) { + if (logger.isDebugEnabled()) { + logger.debug( + "------------------ HttpResponseException " + + e.getStatusCode() + + " : getBatchPayment -------------------"); + logger.debug(e.toString()); + } + XeroApiExceptionHandler handler = new XeroApiExceptionHandler(); + handler.execute(e); + } catch (IOException ioe) { + throw ioe; + } + return null; + } + + /** + * Retrieves a specific batch payment using a unique batch payment Id + * + *

    200 - Success - return response of type BatchPayments array with matching batch + * payment Id + * + * @param xeroTenantId Xero identifier for Tenant + * @param batchPaymentID Unique identifier for BatchPayment + * @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 getBatchPaymentForHttpResponse( + String accessToken, String xeroTenantId, UUID batchPaymentID) throws IOException { + // verify the required parameter 'xeroTenantId' is set + if (xeroTenantId == null) { + throw new IllegalArgumentException( + "Missing the required parameter 'xeroTenantId' when calling getBatchPayment"); + } // verify the required parameter 'batchPaymentID' is set + if (batchPaymentID == null) { + throw new IllegalArgumentException( + "Missing the required parameter 'batchPaymentID' when calling getBatchPayment"); + } + if (accessToken == null) { + throw new IllegalArgumentException( + "Missing the required parameter 'accessToken' when calling getBatchPayment"); + } + HttpHeaders headers = new HttpHeaders(); + headers.set("xero-tenant-id", xeroTenantId); + headers.setAccept("application/json"); + headers.setUserAgent(this.getUserAgent()); + // create a map of path variables + final Map uriVariables = new HashMap(); + uriVariables.put("BatchPaymentID", batchPaymentID); + + UriBuilder uriBuilder = + UriBuilder.fromUri(apiClient.getBasePath() + "/BatchPayments/{BatchPaymentID}"); + String url = uriBuilder.buildFromMap(uriVariables).toString(); + GenericUrl genericUrl = new GenericUrl(url); + if (logger.isDebugEnabled()) { + logger.debug("GET " + genericUrl.toString()); + } + + HttpContent content = null; + Credential credential = + new Credential(BearerToken.authorizationHeaderAccessMethod()).setAccessToken(accessToken); + HttpTransport transport = apiClient.getHttpTransport(); + HttpRequestFactory requestFactory = transport.createRequestFactory(credential); + return requestFactory + .buildRequest(HttpMethods.GET, genericUrl, content) + .setHeaders(headers) + .setConnectTimeout(apiClient.getConnectionTimeout()) + .setReadTimeout(apiClient.getReadTimeout()) + .execute(); + } + /** * Retrieves history from a specific batch payment * diff --git a/src/main/java/com/xero/api/client/AppStoreApi.java b/src/main/java/com/xero/api/client/AppStoreApi.java index 7121fef9..6095b4b5 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 7334c076..c433dfe9 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 73fa296b..a88977be 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 33385002..abd7d10f 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 1c69ed09..07369bc4 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 37f46bbe..880085b2 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 6cc4bc0c..7de57423 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 cc11c559..db31e08e 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 3f97081a..bfaa83a9 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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 678241e0..4b5843cd 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: 2.25.0 + * The version of the OpenAPI document: 2.28.1 * 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/accounting/Organisation.java b/src/main/java/com/xero/models/accounting/Organisation.java index bb6383cb..efe18721 100644 --- a/src/main/java/com/xero/models/accounting/Organisation.java +++ b/src/main/java/com/xero/models/accounting/Organisation.java @@ -538,7 +538,10 @@ public enum PropertyClassEnum { NON_GST_CASHBOOK("NON_GST_CASHBOOK"), /** ULTIMATE */ - ULTIMATE("ULTIMATE"); + ULTIMATE("ULTIMATE"), + + /** LITE */ + LITE("LITE"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/Employee.java b/src/main/java/com/xero/models/payrollau/Employee.java index d69b6425..d5fbd727 100644 --- a/src/main/java/com/xero/models/payrollau/Employee.java +++ b/src/main/java/com/xero/models/payrollau/Employee.java @@ -53,7 +53,7 @@ public class Employee { @JsonProperty("Email") private String email; - /** The employee’s gender. See Employee Gender */ + /** The employee’s gender. See Employee Gender */ public enum GenderEnum { /** N */ N("N"), @@ -601,7 +601,7 @@ public void setEmail(String email) { } /** - * The employee’s gender. See Employee Gender + * The employee’s gender. See Employee Gender * * @param gender GenderEnum * @return Employee @@ -612,13 +612,13 @@ public Employee gender(GenderEnum gender) { } /** - * The employee’s gender. See Employee Gender + * The employee’s gender. See Employee Gender * * @return gender */ - @ApiModelProperty(example = "F", value = "The employee’s gender. See Employee Gender") + @ApiModelProperty(example = "F", value = "The employee’s gender. See Employee Gender") /** - * The employee’s gender. See Employee Gender + * The employee’s gender. See Employee Gender * * @return gender GenderEnum */ @@ -627,7 +627,7 @@ public GenderEnum getGender() { } /** - * The employee’s gender. See Employee Gender + * The employee’s gender. See Employee Gender * * @param gender GenderEnum */ diff --git a/src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java b/src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java new file mode 100644 index 00000000..7fcca9cd --- /dev/null +++ b/src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java @@ -0,0 +1,93 @@ +/* + * Xero Payroll AU API + * This is the Xero Payroll API for orgs in Australia region. + * + * Contact: api@xero.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.xero.models.payrollau; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Code used to identify the Leave Category */ +public enum LeaveCategoryCode { + + /** ANNUALLEAVE */ + ANNUALLEAVE("ANNUALLEAVE"), + + /** LONGSERVICELEAVE */ + LONGSERVICELEAVE("LONGSERVICELEAVE"), + + /** PERSONALCARERSLEAVE */ + PERSONALCARERSLEAVE("PERSONALCARERSLEAVE"), + + /** ROSTEREDDAYOFF */ + ROSTEREDDAYOFF("ROSTEREDDAYOFF"), + + /** TIMEOFFINLIEU */ + TIMEOFFINLIEU("TIMEOFFINLIEU"), + + /** COMPASSIONATEANDBEREAVEMENTLEAVE */ + COMPASSIONATEANDBEREAVEMENTLEAVE("COMPASSIONATEANDBEREAVEMENTLEAVE"), + + /** STUDYLEAVE */ + STUDYLEAVE("STUDYLEAVE"), + + /** FAMILYANDDOMESTICVIOLENCELEAVE */ + FAMILYANDDOMESTICVIOLENCELEAVE("FAMILYANDDOMESTICVIOLENCELEAVE"), + + /** SPECIALPAIDLEAVE */ + SPECIALPAIDLEAVE("SPECIALPAIDLEAVE"), + + /** COMMUNITYSERVICELEAVE */ + COMMUNITYSERVICELEAVE("COMMUNITYSERVICELEAVE"), + + /** JURYDUTYLEAVE */ + JURYDUTYLEAVE("JURYDUTYLEAVE"), + + /** DEFENCERESERVELEAVE */ + DEFENCERESERVELEAVE("DEFENCERESERVELEAVE"); + + private String value; + + LeaveCategoryCode(String value) { + this.value = value; + } + + /** @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 LeaveCategoryCode fromValue(String value) { + for (LeaveCategoryCode b : LeaveCategoryCode.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/xero/models/payrollau/LeaveType.java b/src/main/java/com/xero/models/payrollau/LeaveType.java index aa920677..808294d8 100644 --- a/src/main/java/com/xero/models/payrollau/LeaveType.java +++ b/src/main/java/com/xero/models/payrollau/LeaveType.java @@ -49,6 +49,12 @@ public class LeaveType { @JsonProperty("CurrentRecord") private Boolean currentRecord; + + @JsonProperty("LeaveCategoryCode") + private LeaveCategoryCode leaveCategoryCode; + + @JsonProperty("SGCExempt") + private Boolean sgCExempt; /** * Name of the earnings rate (max length = 100) * @@ -383,6 +389,80 @@ public void setCurrentRecord(Boolean currentRecord) { this.currentRecord = currentRecord; } + /** + * leaveCategoryCode + * + * @param leaveCategoryCode LeaveCategoryCode + * @return LeaveType + */ + public LeaveType leaveCategoryCode(LeaveCategoryCode leaveCategoryCode) { + this.leaveCategoryCode = leaveCategoryCode; + return this; + } + + /** + * Get leaveCategoryCode + * + * @return leaveCategoryCode + */ + @ApiModelProperty(value = "") + /** + * leaveCategoryCode + * + * @return leaveCategoryCode LeaveCategoryCode + */ + public LeaveCategoryCode getLeaveCategoryCode() { + return leaveCategoryCode; + } + + /** + * leaveCategoryCode + * + * @param leaveCategoryCode LeaveCategoryCode + */ + public void setLeaveCategoryCode(LeaveCategoryCode leaveCategoryCode) { + this.leaveCategoryCode = leaveCategoryCode; + } + + /** + * Set this to indicate that the leave type is exempt from superannuation guarantee contribution + * + * @param sgCExempt Boolean + * @return LeaveType + */ + public LeaveType sgCExempt(Boolean sgCExempt) { + this.sgCExempt = sgCExempt; + return this; + } + + /** + * Set this to indicate that the leave type is exempt from superannuation guarantee contribution + * + * @return sgCExempt + */ + @ApiModelProperty( + example = "true", + value = + "Set this to indicate that the leave type is exempt from superannuation guarantee" + + " contribution") + /** + * Set this to indicate that the leave type is exempt from superannuation guarantee contribution + * + * @return sgCExempt Boolean + */ + public Boolean getSgCExempt() { + return sgCExempt; + } + + /** + * Set this to indicate that the leave type is exempt from superannuation guarantee contribution + * + * @param sgCExempt Boolean + */ + public void setSgCExempt(Boolean sgCExempt) { + this.sgCExempt = sgCExempt; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -400,7 +480,9 @@ public boolean equals(java.lang.Object o) { && Objects.equals(this.updatedDateUTC, leaveType.updatedDateUTC) && Objects.equals(this.isPaidLeave, leaveType.isPaidLeave) && Objects.equals(this.showOnPayslip, leaveType.showOnPayslip) - && Objects.equals(this.currentRecord, leaveType.currentRecord); + && Objects.equals(this.currentRecord, leaveType.currentRecord) + && Objects.equals(this.leaveCategoryCode, leaveType.leaveCategoryCode) + && Objects.equals(this.sgCExempt, leaveType.sgCExempt); } @Override @@ -414,7 +496,9 @@ public int hashCode() { updatedDateUTC, isPaidLeave, showOnPayslip, - currentRecord); + currentRecord, + leaveCategoryCode, + sgCExempt); } @Override @@ -430,6 +514,8 @@ public String toString() { sb.append(" isPaidLeave: ").append(toIndentedString(isPaidLeave)).append("\n"); sb.append(" showOnPayslip: ").append(toIndentedString(showOnPayslip)).append("\n"); sb.append(" currentRecord: ").append(toIndentedString(currentRecord)).append("\n"); + sb.append(" leaveCategoryCode: ").append(toIndentedString(leaveCategoryCode)).append("\n"); + sb.append(" sgCExempt: ").append(toIndentedString(sgCExempt)).append("\n"); sb.append("}"); return sb.toString(); } From 4a145322de2caebe147b17fc1bb7e6805339d953 Mon Sep 17 00:00:00 2001 From: Richard DeMarco Date: Thu, 1 Sep 2022 09:30:26 -0600 Subject: [PATCH 2/2] uprev sdk version --- docs/v4/accounting/index.html | 2 +- docs/v4/appstore/index.html | 2 +- docs/v4/assets/index.html | 2 +- docs/v4/files/index.html | 2 +- docs/v4/finance/index.html | 2 +- docs/v4/payroll-au/index.html | 2 +- docs/v4/payroll-nz/index.html | 2 +- docs/v4/payroll-uk/index.html | 2 +- pom.xml | 2 +- src/main/java/com/xero/api/client/AccountingApi.java | 2 +- src/main/java/com/xero/api/client/AppStoreApi.java | 2 +- src/main/java/com/xero/api/client/AssetApi.java | 2 +- src/main/java/com/xero/api/client/BankFeedsApi.java | 2 +- src/main/java/com/xero/api/client/FilesApi.java | 2 +- src/main/java/com/xero/api/client/FinanceApi.java | 2 +- src/main/java/com/xero/api/client/IdentityApi.java | 2 +- src/main/java/com/xero/api/client/PayrollAuApi.java | 2 +- src/main/java/com/xero/api/client/PayrollNzApi.java | 2 +- src/main/java/com/xero/api/client/PayrollUkApi.java | 2 +- src/main/java/com/xero/api/client/ProjectApi.java | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/v4/accounting/index.html b/docs/v4/accounting/index.html index 1727b9f6..33d95b0c 100644 --- a/docs/v4/accounting/index.html +++ b/docs/v4/accounting/index.html @@ -6065,7 +6065,7 @@