From ae5d45b0db14e56c05b06ba2d5f510932233a602 Mon Sep 17 00:00:00 2001 From: manishT72x <157379374+manishT72x@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:00:52 +0530 Subject: [PATCH 1/4] updates jackson package version --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index e3504d9e..0bf6d303 100644 --- a/pom.xml +++ b/pom.xml @@ -256,9 +256,9 @@ sign - + gpg.passphrase - + @@ -315,7 +315,7 @@ 1.6.3 2.3.0 2.25.1 - 2.13.2 + 2.16.1 2.16.1 2.12.5 4.13.2 From 373c788ae3f74a97a86928c4bfec5d1e23e08263 Mon Sep 17 00:00:00 2001 From: manishT72x <157379374+manishT72x@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:24:17 +0530 Subject: [PATCH 2/4] Build from 3.0.2 --- docs/v4/accounting/index.html | 154 +++++++++++++++--- .../com/xero/api/client/AccountingApi.java | 119 ++++++++++---- .../api/client/AccountingApiTaxRatesTest.java | 4 +- 3 files changed, 225 insertions(+), 52 deletions(-) diff --git a/docs/v4/accounting/index.html b/docs/v4/accounting/index.html index 3b5b53e2..ff51271c 100644 --- a/docs/v4/accounting/index.html +++ b/docs/v4/accounting/index.html @@ -6674,6 +6674,9 @@
  • getReportsList
  • +
  • + getTaxRateByTaxType +
  • getTaxRates
  • @@ -39167,6 +39170,134 @@

    Parameters

    + + + + + +
    +
    +
    +
    +

    getTaxRateByTaxType

    +

    Retrieves a specific tax rate according to given TaxType code

    +
    +
    +
    +

    +

    +

    +
    +
    /TaxRates/{TaxType}
    +

    +

    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';
    +        String taxType = 'INPUT2';
    +
    +        try {
    +            TaxRates result = apiInstance.getTaxRateByTaxType(accessToken, xeroTenantId, taxType);
    +            System.out.println(result);
    +        } catch (XeroException e) {
    +            System.err.println("Exception when calling AccountingApi#getTaxRateByTaxType");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    +

    Scopes

    + + + + + + + + + + + + +
    accounting.settingsGrant read-write access to organisation and account settings
    accounting.settings.readGrant read-only access to organisation and account settings
    +

    Parameters

    +
    Path parameters
    + + + + + + + + + +
    NameDescription
    TaxType* + + +
    +
    +
    + + String + + +
    +A valid TaxType code +
    +
    +
    + Required +
    +
    +
    +
    +
    Header parameters
    + + + + + + +
    NameDescription
    xero-tenant-id* + + +
    +
    +
    + + String + + +
    +Xero identifier for Tenant +
    +
    +
    + Required +
    +
    +
    +
    @@ -39212,10 +39343,9 @@

    Usage and SDK Samples

    String xeroTenantId = 'YOUR_XERO_TENANT_ID'; String where = 'Status=="ACTIVE"'; String order = 'Name ASC'; - String taxType = 'INPUT'; try { - TaxRates result = apiInstance.getTaxRates(accessToken, xeroTenantId, where, order, taxType); + TaxRates result = apiInstance.getTaxRates(accessToken, xeroTenantId, where, order); System.out.println(result); } catch (XeroException e) { System.err.println("Exception when calling AccountingApi#getTaxRates"); @@ -39314,26 +39444,6 @@

    Parameters

    - - - TaxType - - - -
    -
    -
    - - String - - -
    -Filter by tax type -
    -
    -
    -
    - diff --git a/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java index 2d2aa256..bcf42b22 100644 --- a/src/main/java/com/xero/api/client/AccountingApi.java +++ b/src/main/java/com/xero/api/client/AccountingApi.java @@ -25527,6 +25527,94 @@ public HttpResponse getReportsListForHttpResponse(String accessToken, String xer .execute(); } + /** + * Retrieves a specific tax rate according to given TaxType code + * + *

    200 - Success - return response of type TaxRates array with one TaxRate + * + * @param xeroTenantId Xero identifier for Tenant + * @param taxType A valid TaxType code + * @param accessToken Authorization token for user set in header of each request + * @return TaxRates + * @throws IOException if an error occurs while attempting to invoke the API * + */ + public TaxRates getTaxRateByTaxType(String accessToken, String xeroTenantId, String taxType) + throws IOException { + try { + TypeReference typeRef = new TypeReference() {}; + HttpResponse response = + getTaxRateByTaxTypeForHttpResponse(accessToken, xeroTenantId, taxType); + return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); + } catch (HttpResponseException e) { + if (logger.isDebugEnabled()) { + logger.debug( + "------------------ HttpResponseException " + + e.getStatusCode() + + " : getTaxRateByTaxType -------------------"); + logger.debug(e.toString()); + } + XeroApiExceptionHandler handler = new XeroApiExceptionHandler(); + handler.execute(e); + } catch (IOException ioe) { + throw ioe; + } + return null; + } + + /** + * Retrieves a specific tax rate according to given TaxType code + * + *

    200 - Success - return response of type TaxRates array with one TaxRate + * + * @param xeroTenantId Xero identifier for Tenant + * @param taxType A valid TaxType code + * @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 getTaxRateByTaxTypeForHttpResponse( + String accessToken, String xeroTenantId, String taxType) throws IOException { + // verify the required parameter 'xeroTenantId' is set + if (xeroTenantId == null) { + throw new IllegalArgumentException( + "Missing the required parameter 'xeroTenantId' when calling getTaxRateByTaxType"); + } // verify the required parameter 'taxType' is set + if (taxType == null) { + throw new IllegalArgumentException( + "Missing the required parameter 'taxType' when calling getTaxRateByTaxType"); + } + if (accessToken == null) { + throw new IllegalArgumentException( + "Missing the required parameter 'accessToken' when calling getTaxRateByTaxType"); + } + 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("TaxType", taxType); + + UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/TaxRates/{TaxType}"); + 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 tax rates * @@ -25535,18 +25623,15 @@ public HttpResponse getReportsListForHttpResponse(String accessToken, String xer * @param xeroTenantId Xero identifier for Tenant * @param where Filter by an any element * @param order Order by an any element - * @param taxType Filter by tax type * @param accessToken Authorization token for user set in header of each request * @return TaxRates * @throws IOException if an error occurs while attempting to invoke the API * */ - public TaxRates getTaxRates( - String accessToken, String xeroTenantId, String where, String order, String taxType) + public TaxRates getTaxRates(String accessToken, String xeroTenantId, String where, String order) throws IOException { try { TypeReference typeRef = new TypeReference() {}; - HttpResponse response = - getTaxRatesForHttpResponse(accessToken, xeroTenantId, where, order, taxType); + HttpResponse response = getTaxRatesForHttpResponse(accessToken, xeroTenantId, where, order); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } catch (HttpResponseException e) { if (logger.isDebugEnabled()) { @@ -25572,14 +25657,12 @@ public TaxRates getTaxRates( * @param xeroTenantId Xero identifier for Tenant * @param where Filter by an any element * @param order Order by an any element - * @param taxType Filter by tax type * @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 getTaxRatesForHttpResponse( - String accessToken, String xeroTenantId, String where, String order, String taxType) - throws IOException { + String accessToken, String xeroTenantId, String where, String order) throws IOException { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) { throw new IllegalArgumentException( @@ -25634,26 +25717,6 @@ public HttpResponse getTaxRatesForHttpResponse( uriBuilder = uriBuilder.queryParam(key, value); } } - if (taxType != null) { - String key = "TaxType"; - Object value = taxType; - 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/test/java/com/xero/api/client/AccountingApiTaxRatesTest.java b/src/test/java/com/xero/api/client/AccountingApiTaxRatesTest.java index d4381988..a9c749e1 100644 --- a/src/test/java/com/xero/api/client/AccountingApiTaxRatesTest.java +++ b/src/test/java/com/xero/api/client/AccountingApiTaxRatesTest.java @@ -111,8 +111,8 @@ public void getTaxRatesTest() throws IOException { System.out.println("@Test - getTaxRates"); String where = null; String order = null; - String taxType = null; - TaxRates response = accountingApi.getTaxRates(accessToken,xeroTenantId,where, order, taxType); + + TaxRates response = accountingApi.getTaxRates(accessToken, xeroTenantId,where, order); assertThat(response.getTaxRates().get(0).getName(), is(equalTo("15% GST on Expenses"))); assertThat(response.getTaxRates().get(0).getTaxType(), is(equalTo("INPUT2"))); From 2dc2d9f9271dba10051889cec5d82fe692d5fa10 Mon Sep 17 00:00:00 2001 From: manishT72x <157379374+manishT72x@users.noreply.github.com> Date: Thu, 2 May 2024 13:03:16 +0530 Subject: [PATCH 3/4] Build from OAS 3.0.3 --- docs/v4/accounting/index.html | 4 ++-- src/main/java/com/xero/models/accounting/TaxRate.java | 5 ++++- src/main/java/com/xero/models/accounting/TaxType.java | 11 ++++++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/v4/accounting/index.html b/docs/v4/accounting/index.html index ff51271c..50b86686 100644 --- a/docs/v4/accounting/index.html +++ b/docs/v4/accounting/index.html @@ -5637,7 +5637,7 @@ "ReportTaxType" : { "type" : "string", "description" : "See ReportTaxTypes", - "enum" : [ "AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY", "USSALESTAX" ] + "enum" : [ "AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "CAPEXINPUT", "UNDEFINED", "CAPEXOUTPUT", "ZEROEXPOUTPUT", "GOODSIMPORT", "NONEINPUT", "NOTREPORTED", "SROVRRS", "SROVRLVG", "SRLVG", "IM", "IMESS", "IMN33", "IMRE", "BADDEBTRECOVERY", "USSALESTAX", "BLINPUT3" ] }, "CanApplyToAssets" : { "type" : "boolean", @@ -5702,7 +5702,7 @@ "title" : "", "type" : "string", "description" : "See Tax Types – can only be used on update calls", - "enum" : [ "OUTPUT", "INPUT", "CAPEXINPUT", "EXEMPTEXPORT", "EXEMPTEXPENSES", "EXEMPTCAPITAL", "EXEMPTOUTPUT", "INPUTTAXED", "BASEXCLUDED", "GSTONCAPIMPORTS", "GSTONIMPORTS", "NONE", "INPUT2", "ZERORATED", "OUTPUT2", "CAPEXINPUT2", "CAPEXOUTPUT", "CAPEXOUTPUT2", "CAPEXSRINPUT", "CAPEXSROUTPUT", "ECACQUISITIONS", "ECZRINPUT", "ECZROUTPUT", "ECZROUTPUTSERVICES", "EXEMPTINPUT", "REVERSECHARGES", "RRINPUT", "RROUTPUT", "SRINPUT", "SROUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "BLINPUT", "DSOUTPUT", "EPINPUT", "ES33OUTPUT", "ESN33OUTPUT", "IGDSINPUT2", "IMINPUT2", "MEINPUT", "NRINPUT", "OPINPUT", "OSOUTPUT", "TXESSINPUT", "TXN33INPUT", "TXPETINPUT", "TXREINPUT", "INPUT3", "INPUT4", "OUTPUT3", "OUTPUT4", "SROUTPUT2", "TXCA", "SRCAS", "BLINPUT2", "DRCHARGESUPPLY20", "DRCHARGE20", "DRCHARGESUPPLY5", "DRCHARGE5", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "OUTPUTY23", "DSOUTPUTY23", "INPUTY23", "IMINPUT2Y23", "IGDSINPUT2Y23", "TXPETINPUTY23", "TXESSINPUTY23", "TXN33INPUTY23", "TXREINPUTY23", "TXCAY23", "BADDEBTRELIEFY23", "IGDSINPUT3Y23", "SROVRRSY23", "SROVRLVGY23", "SRLVGY23", "TXRCN33Y23", "TXRCREY23", "TXRCESSY23", "TXRCTSY23", "IM", "IMY23", "IMESS", "IMESSY23", "IMN33", "IMN33Y23", "IMRE", "IMREY23", "BADDEBTRECOVERY", "BADDEBTRECOVERYY23", "OUTPUTY24", "DSOUTPUTY24", "INPUTY24", "IGDSINPUT2Y24", "TXPETINPUTY24", "TXESSINPUTY24", "TXN33INPUTY24", "TXREINPUTY24", "TXCAY24", "BADDEBTRELIEFY24", "IGDSINPUT3Y24", "SROVRRSY24", "SROVRLVGY24", "SRLVGY24", "TXRCTSY24", "TXRCESSY24", "TXRCN33Y24", "TXRCREY24", "IMY24", "IMESSY24", "IMN33Y24", "IMREY24", "BADDEBTRECOVERYY24", "OSOUTPUT2" ] + "enum" : [ "OUTPUT", "INPUT", "CAPEXINPUT", "EXEMPTEXPORT", "EXEMPTEXPENSES", "EXEMPTCAPITAL", "EXEMPTOUTPUT", "INPUTTAXED", "BASEXCLUDED", "GSTONCAPIMPORTS", "GSTONIMPORTS", "NONE", "INPUT2", "ZERORATED", "OUTPUT2", "CAPEXINPUT2", "CAPEXOUTPUT", "CAPEXOUTPUT2", "CAPEXSRINPUT", "CAPEXSROUTPUT", "ECACQUISITIONS", "ECZRINPUT", "ECZROUTPUT", "ECZROUTPUTSERVICES", "EXEMPTINPUT", "REVERSECHARGES", "RRINPUT", "RROUTPUT", "SRINPUT", "SROUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "BLINPUT", "DSOUTPUT", "EPINPUT", "ES33OUTPUT", "ESN33OUTPUT", "IGDSINPUT2", "IMINPUT2", "MEINPUT", "NRINPUT", "OPINPUT", "OSOUTPUT", "TXESSINPUT", "TXN33INPUT", "TXPETINPUT", "TXREINPUT", "INPUT3", "INPUT4", "OUTPUT3", "OUTPUT4", "SROUTPUT2", "TXCA", "SRCAS", "BLINPUT2", "DRCHARGESUPPLY20", "DRCHARGE20", "DRCHARGESUPPLY5", "DRCHARGE5", "BADDEBTRELIEF", "IGDSINPUT3", "SROVR", "TOURISTREFUND", "TXRCN33", "TXRCRE", "TXRCESS", "TXRCTS", "OUTPUTY23", "DSOUTPUTY23", "INPUTY23", "IMINPUT2Y23", "IGDSINPUT2Y23", "TXPETINPUTY23", "TXESSINPUTY23", "TXN33INPUTY23", "TXREINPUTY23", "TXCAY23", "BADDEBTRELIEFY23", "IGDSINPUT3Y23", "SROVRRSY23", "SROVRLVGY23", "SRLVGY23", "TXRCN33Y23", "TXRCREY23", "TXRCESSY23", "TXRCTSY23", "IM", "IMY23", "IMESS", "IMESSY23", "IMN33", "IMN33Y23", "IMRE", "IMREY23", "BADDEBTRECOVERY", "BADDEBTRECOVERYY23", "OUTPUTY24", "DSOUTPUTY24", "INPUTY24", "IGDSINPUT2Y24", "TXPETINPUTY24", "TXESSINPUTY24", "TXN33INPUTY24", "TXREINPUTY24", "TXCAY24", "BADDEBTRELIEFY24", "IGDSINPUT3Y24", "SROVRRSY24", "SROVRLVGY24", "SRLVGY24", "TXRCTSY24", "TXRCESSY24", "TXRCN33Y24", "TXRCREY24", "IMY24", "IMESSY24", "IMN33Y24", "IMREY24", "BADDEBTRECOVERYY24", "OSOUTPUT2", "BLINPUT3", "BLINPUT3Y23", "BLINPUT3Y24" ] }; defs["TenNinetyNineContact"] = { "title" : "", diff --git a/src/main/java/com/xero/models/accounting/TaxRate.java b/src/main/java/com/xero/models/accounting/TaxRate.java index be28c0aa..fb2b3b6f 100644 --- a/src/main/java/com/xero/models/accounting/TaxRate.java +++ b/src/main/java/com/xero/models/accounting/TaxRate.java @@ -384,7 +384,10 @@ public enum ReportTaxTypeEnum { BADDEBTRECOVERY("BADDEBTRECOVERY"), /** USSALESTAX */ - USSALESTAX("USSALESTAX"); + USSALESTAX("USSALESTAX"), + + /** BLINPUT3 */ + BLINPUT3("BLINPUT3"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TaxType.java b/src/main/java/com/xero/models/accounting/TaxType.java index f6f1ae8f..a11ef1a1 100644 --- a/src/main/java/com/xero/models/accounting/TaxType.java +++ b/src/main/java/com/xero/models/accounting/TaxType.java @@ -376,7 +376,16 @@ public enum TaxType { BADDEBTRECOVERYY24("BADDEBTRECOVERYY24"), /** OSOUTPUT2 */ - OSOUTPUT2("OSOUTPUT2"); + OSOUTPUT2("OSOUTPUT2"), + + /** BLINPUT3 */ + BLINPUT3("BLINPUT3"), + + /** BLINPUT3Y23 */ + BLINPUT3Y23("BLINPUT3Y23"), + + /** BLINPUT3Y24 */ + BLINPUT3Y24("BLINPUT3Y24"); private String value; From f1c4fd79030b5bbe2c6f37fd1883ae223072c380 Mon Sep 17 00:00:00 2001 From: manishT72x <157379374+manishT72x@users.noreply.github.com> Date: Thu, 2 May 2024 20:34:45 +0530 Subject: [PATCH 4/4] removes JobKeeper enum and corrects to OAS version --- docs/v4/payroll-au/index.html | 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 +- src/main/java/com/xero/models/payrollau/AllowanceType.java | 3 --- 13 files changed, 12 insertions(+), 15 deletions(-) diff --git a/docs/v4/payroll-au/index.html b/docs/v4/payroll-au/index.html index 56d81d3f..48c474c5 100644 --- a/docs/v4/payroll-au/index.html +++ b/docs/v4/payroll-au/index.html @@ -925,7 +925,7 @@ "title" : "", "type" : "string", "description" : "", - "enum" : [ "CAR", "TRANSPORT", "LAUNDRY", "MEALS", "TRAVEL", "OTHER", "JOBKEEPER", "TOOLS", "TASKS", "QUALIFICATIONS" ] + "enum" : [ "CAR", "TRANSPORT", "LAUNDRY", "MEALS", "TRAVEL", "OTHER", "TOOLS", "TASKS", "QUALIFICATIONS" ] }; defs["BankAccount"] = { "title" : "", diff --git a/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java index bcf42b22..d93e5a92 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 093bf13b..3322d2e4 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 41ea9f77..91a31d30 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 3172deec..230e474e 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 adb5324b..abe8cdec 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 b2677456..53123a1a 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 6457ff40..2f900ba8 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 2d447d45..343610ad 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 b1203516..064c7a6c 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 740f2ae8..c6f8af5a 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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 511aff5f..03d6ff3d 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: 3.0.1 + * The version of the OpenAPI document: 3.0.3 * 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/payrollau/AllowanceType.java b/src/main/java/com/xero/models/payrollau/AllowanceType.java index 47e24d9b..47589379 100644 --- a/src/main/java/com/xero/models/payrollau/AllowanceType.java +++ b/src/main/java/com/xero/models/payrollau/AllowanceType.java @@ -36,9 +36,6 @@ public enum AllowanceType { /** OTHER */ OTHER("OTHER"), - /** JOBKEEPER */ - JOBKEEPER("JOBKEEPER"), - /** TOOLS */ TOOLS("TOOLS"),