From 8d34ae00f168a616496e275de71826d24a04db7e Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Thu, 19 Jun 2025 15:27:08 +0530 Subject: [PATCH 1/3] Build for version - 11.0.0 --- docs/v4/accounting/index.html | 2 +- docs/v4/appstore/index.html | 4 +- docs/v4/files/index.html | 25 +++++++++++- docs/v4/payroll-uk/index.html | 4 +- .../java/com/xero/api/client/FilesApi.java | 38 +++++++++++++++++-- .../java/com/xero/models/accounting/User.java | 5 ++- .../com/xero/models/appstore/Product.java | 24 ++++++++---- .../EmployeeStatutoryLeaveBalance.java | 5 ++- .../EmployeeStatutoryLeaveSummary.java | 5 ++- 9 files changed, 92 insertions(+), 20 deletions(-) diff --git a/docs/v4/accounting/index.html b/docs/v4/accounting/index.html index de9381036..3a893c744 100644 --- a/docs/v4/accounting/index.html +++ b/docs/v4/accounting/index.html @@ -6218,7 +6218,7 @@ "OrganisationRole" : { "type" : "string", "description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)", - "enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ] + "enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ] } }, "description" : "", diff --git a/docs/v4/appstore/index.html b/docs/v4/appstore/index.html index 7e2fdbe92..6772f16e6 100644 --- a/docs/v4/appstore/index.html +++ b/docs/v4/appstore/index.html @@ -974,8 +974,8 @@ }, "type" : { "type" : "string", - "description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n", - "enum" : [ "FIXED", "PER_SEAT", "METERED" ] + "description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature\n", + "enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ] }, "usageUnit" : { "type" : "string", diff --git a/docs/v4/files/index.html b/docs/v4/files/index.html index 034ffbef9..f34ff9220 100644 --- a/docs/v4/files/index.html +++ b/docs/v4/files/index.html @@ -2746,10 +2746,11 @@

Usage and SDK Samples

String xeroTenantId = 'YOUR_XERO_TENANT_ID'; Integer pagesize = 50; Integer page = 2; - String sort = 'CreatedDateUTC DESC'; + String sort = 'CreatedDateUTC'; + String direction = 'ASC'; try { - Files result = apiInstance.getFiles(accessToken, xeroTenantId, pagesize, page, sort); + Files result = apiInstance.getFiles(accessToken, xeroTenantId, pagesize, page, sort, direction); System.out.println(result); } catch (XeroException e) { System.err.println("Exception when calling FilesApi#getFiles"); @@ -2868,6 +2869,26 @@

Parameters

+ + + direction + + + +
+
+
+ + String + + +
+sort direction +
+
+
+
+ diff --git a/docs/v4/payroll-uk/index.html b/docs/v4/payroll-uk/index.html index c6d2fd606..784206265 100644 --- a/docs/v4/payroll-uk/index.html +++ b/docs/v4/payroll-uk/index.html @@ -1952,7 +1952,7 @@ "leaveType" : { "type" : "string", "description" : "The type of statutory leave", - "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ] + "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ] }, "balanceRemaining" : { "type" : "number", @@ -2000,7 +2000,7 @@ "type" : { "type" : "string", "description" : "The category of statutory leave", - "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ] + "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ] }, "startDate" : { "type" : "string", diff --git a/src/main/java/com/xero/api/client/FilesApi.java b/src/main/java/com/xero/api/client/FilesApi.java index 133881c3b..2ee482dc4 100644 --- a/src/main/java/com/xero/api/client/FilesApi.java +++ b/src/main/java/com/xero/api/client/FilesApi.java @@ -1169,17 +1169,23 @@ public HttpResponse getFileContentForHttpResponse( * @param pagesize pass an optional page size value * @param page number of records to skip for pagination * @param sort values to sort by + * @param direction sort direction * @param accessToken Authorization token for user set in header of each request * @return Files * @throws IOException if an error occurs while attempting to invoke the API * */ public Files getFiles( - String accessToken, String xeroTenantId, Integer pagesize, Integer page, String sort) + String accessToken, + String xeroTenantId, + Integer pagesize, + Integer page, + String sort, + String direction) throws IOException { try { TypeReference typeRef = new TypeReference() {}; HttpResponse response = - getFilesForHttpResponse(accessToken, xeroTenantId, pagesize, page, sort); + getFilesForHttpResponse(accessToken, xeroTenantId, pagesize, page, sort, direction); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } catch (HttpResponseException e) { if (logger.isDebugEnabled()) { @@ -1206,12 +1212,18 @@ public Files getFiles( * @param pagesize pass an optional page size value * @param page number of records to skip for pagination * @param sort values to sort by + * @param direction sort direction * @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 getFilesForHttpResponse( - String accessToken, String xeroTenantId, Integer pagesize, Integer page, String sort) + String accessToken, + String xeroTenantId, + Integer pagesize, + Integer page, + String sort, + String direction) throws IOException { // verify the required parameter 'xeroTenantId' is set if (xeroTenantId == null) { @@ -1287,6 +1299,26 @@ public HttpResponse getFilesForHttpResponse( uriBuilder = uriBuilder.queryParam(key, value); } } + if (direction != null) { + String key = "direction"; + Object value = direction; + 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/models/accounting/User.java b/src/main/java/com/xero/models/accounting/User.java index 79bea1184..bc4bf3f92 100644 --- a/src/main/java/com/xero/models/accounting/User.java +++ b/src/main/java/com/xero/models/accounting/User.java @@ -66,7 +66,10 @@ public enum OrganisationRoleEnum { CASHBOOKCLIENT("CASHBOOKCLIENT"), /** UNKNOWN */ - UNKNOWN("UNKNOWN"); + UNKNOWN("UNKNOWN"), + + /** REMOVED */ + REMOVED("REMOVED"); private String value; diff --git a/src/main/java/com/xero/models/appstore/Product.java b/src/main/java/com/xero/models/appstore/Product.java index 76f3852ed..579cba7f5 100644 --- a/src/main/java/com/xero/models/appstore/Product.java +++ b/src/main/java/com/xero/models/appstore/Product.java @@ -34,7 +34,8 @@ public class Product { /** * The pricing model of the product: * FIXED: Customers are charged a fixed amount for each * billing period * PER_SEAT: Customers are charged based on the number of units they purchase * - * METERED: Customers are charged per use of this product + * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a + * fixed amount for each billing period with an optional add-on feature */ public enum TypeEnum { /** FIXED */ @@ -44,7 +45,10 @@ public enum TypeEnum { PER_SEAT("PER_SEAT"), /** METERED */ - METERED("METERED"); + METERED("METERED"), + + /** SIMPLE */ + SIMPLE("SIMPLE"); private String value; @@ -206,7 +210,8 @@ public void setSeatUnit(String seatUnit) { /** * The pricing model of the product: * FIXED: Customers are charged a fixed amount for each * billing period * PER_SEAT: Customers are charged based on the number of units they purchase * - * METERED: Customers are charged per use of this product + * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a + * fixed amount for each billing period with an optional add-on feature * * @param type TypeEnum * @return Product @@ -219,7 +224,8 @@ public Product type(TypeEnum type) { /** * The pricing model of the product: * FIXED: Customers are charged a fixed amount for each * billing period * PER_SEAT: Customers are charged based on the number of units they purchase * - * METERED: Customers are charged per use of this product + * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a + * fixed amount for each billing period with an optional add-on feature * * @return type */ @@ -227,11 +233,14 @@ public Product type(TypeEnum type) { value = "The pricing model of the product: * FIXED: Customers are charged a fixed amount for" + " each billing period * PER_SEAT: Customers are charged based on the number of" - + " units they purchase * METERED: Customers are charged per use of this product ") + + " units they purchase * METERED: Customers are charged per use of this product *" + + " SIMPLE: Customers are charged on a fixed amount for each billing period with an" + + " optional add-on feature ") /** * The pricing model of the product: * FIXED: Customers are charged a fixed amount for each * billing period * PER_SEAT: Customers are charged based on the number of units they purchase * - * METERED: Customers are charged per use of this product + * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a + * fixed amount for each billing period with an optional add-on feature * * @return type TypeEnum */ @@ -242,7 +251,8 @@ public TypeEnum getType() { /** * The pricing model of the product: * FIXED: Customers are charged a fixed amount for each * billing period * PER_SEAT: Customers are charged based on the number of units they purchase * - * METERED: Customers are charged per use of this product + * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a + * fixed amount for each billing period with an optional add-on feature * * @param type TypeEnum */ diff --git a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java index dea8131c3..bf7b5b2a0 100644 --- a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java +++ b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java @@ -39,7 +39,10 @@ public enum LeaveTypeEnum { SHAREDPARENTAL("Sharedparental"), /** BEREAVEMENT */ - BEREAVEMENT("Bereavement"); + BEREAVEMENT("Bereavement"), + + /** NEONATALCARE */ + NEONATALCARE("NeonatalCare"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java index d3a936d95..8d4cfa7c4 100644 --- a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java +++ b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java @@ -47,7 +47,10 @@ public enum TypeEnum { SHAREDPARENTAL("Sharedparental"), /** BEREAVEMENT */ - BEREAVEMENT("Bereavement"); + BEREAVEMENT("Bereavement"), + + /** NEONATALCARE */ + NEONATALCARE("NeonatalCare"); private String value; From 5d0b9f96ec33405b11a3a9209edbbc0a5556abbd Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 20 Jun 2025 13:33:16 +0530 Subject: [PATCH 2/3] updated the 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 3a893c744..544d5ef46 100644 --- a/docs/v4/accounting/index.html +++ b/docs/v4/accounting/index.html @@ -6335,7 +6335,7 @@