diff --git a/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java
index 5c2e7966..5ade80f2 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: 11.1.0
+ * The version of the OpenAPI document: 12.0.0
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -102,7 +102,7 @@ public class AccountingApi {
private ApiClient apiClient;
private static AccountingApi instance = null;
private String userAgent = "Default";
- private String version = "13.0.0";
+ private String version = "12.4.1";
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class);
/** AccountingApi */
@@ -234,6 +234,70 @@ public HttpResponse getOverpaymentsForHttpResponse(
accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, null);
}
+ /**
+ * Retrieves prepayments
+ *
+ * 200 - Success - return response of type Prepayments array for all Prepayment
+ *
+ * @param xeroTenantId Xero identifier for Tenant
+ * @param ifModifiedSince Only records created or modified since this timestamp will be returned
+ * @param where Filter by an any element
+ * @param order Order by an any element
+ * @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with
+ * line items shown for each overpayment
+ * @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal
+ * places for unit amounts
+ * @param pageSize Number of records to retrieve per page
+ * @param accessToken Authorization token for user set in header of each request
+ * @return Prepayments
+ * @throws IOException if an error occurs while attempting to invoke the API *
+ */
+ public Prepayments getPrepayments(
+ String accessToken,
+ String xeroTenantId,
+ OffsetDateTime ifModifiedSince,
+ String where,
+ String order,
+ Integer page,
+ Integer unitdp,
+ Integer pageSize)
+ throws IOException {
+ return getPrepayments(
+ accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, null);
+ }
+
+ /**
+ * Retrieves prepayments
+ *
+ *
200 - Success - return response of type Prepayments array for all Prepayment
+ *
+ * @param xeroTenantId Xero identifier for Tenant
+ * @param ifModifiedSince Only records created or modified since this timestamp will be returned
+ * @param where Filter by an any element
+ * @param order Order by an any element
+ * @param page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with
+ * line items shown for each overpayment
+ * @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal
+ * places for unit amounts
+ * @param pageSize Number of records to retrieve per page
+ * @param accessToken Authorization token for user set in header of each request
+ * @return HttpResponse
+ * @throws IOException if an error occurs while attempting to invoke the API
+ */
+ public HttpResponse getPrepaymentsForHttpResponse(
+ String accessToken,
+ String xeroTenantId,
+ OffsetDateTime ifModifiedSince,
+ String where,
+ String order,
+ Integer page,
+ Integer unitdp,
+ Integer pageSize)
+ throws IOException {
+ return getPrepaymentsForHttpResponse(
+ accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, null);
+ }
+
/* End backward compatibility functions */
/**
@@ -20766,6 +20830,7 @@ public HttpResponse getPrepaymentHistoryForHttpResponse(
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal
* places for unit amounts
* @param pageSize Number of records to retrieve per page
+ * @param invoiceNumbers Filter by a comma-separated list of InvoiceNumbers
* @param accessToken Authorization token for user set in header of each request
* @return Prepayments
* @throws IOException if an error occurs while attempting to invoke the API *
@@ -20778,13 +20843,22 @@ public Prepayments getPrepayments(
String order,
Integer page,
Integer unitdp,
- Integer pageSize)
+ Integer pageSize,
+ List invoiceNumbers)
throws IOException {
try {
TypeReference typeRef = new TypeReference() {};
HttpResponse response =
getPrepaymentsForHttpResponse(
- accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
+ accessToken,
+ xeroTenantId,
+ ifModifiedSince,
+ where,
+ order,
+ page,
+ unitdp,
+ pageSize,
+ invoiceNumbers);
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} catch (HttpResponseException e) {
if (logger.isDebugEnabled()) {
@@ -20816,6 +20890,7 @@ public Prepayments getPrepayments(
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal
* places for unit amounts
* @param pageSize Number of records to retrieve per page
+ * @param invoiceNumbers Filter by a comma-separated list of InvoiceNumbers
* @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
@@ -20828,7 +20903,8 @@ public HttpResponse getPrepaymentsForHttpResponse(
String order,
Integer page,
Integer unitdp,
- Integer pageSize)
+ Integer pageSize,
+ List invoiceNumbers)
throws IOException {
// verify the required parameter 'xeroTenantId' is set
if (xeroTenantId == null) {
@@ -20947,6 +21023,26 @@ public HttpResponse getPrepaymentsForHttpResponse(
uriBuilder = uriBuilder.queryParam(key, value);
}
}
+ if (invoiceNumbers != null) {
+ String key = "InvoiceNumbers";
+ Object value = invoiceNumbers;
+ if (value instanceof Collection) {
+ List valueList = new ArrayList<>((Collection) value);
+ if (!valueList.isEmpty() && valueList.get(0) instanceof UUID) {
+ List list = new ArrayList();
+ for (int i = 0; i < valueList.size(); i++) {
+ list.add(valueList.get(i).toString());
+ }
+ uriBuilder = uriBuilder.queryParam(key, String.join(",", list));
+ } else {
+ uriBuilder = uriBuilder.queryParam(key, String.join(",", valueList));
+ }
+ } else if (value instanceof Object[]) {
+ uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
+ } else {
+ uriBuilder = uriBuilder.queryParam(key, value);
+ }
+ }
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
if (logger.isDebugEnabled()) {
diff --git a/src/main/java/com/xero/api/client/AppStoreApi.java b/src/main/java/com/xero/api/client/AppStoreApi.java
index f1656d15..c9c3d3f5 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 cb185acc..20f75325 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 678a69f6..bc808723 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 5d16df07..273d0152 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 a89c44d5..42f66a52 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 eb2f2c0b..ff6477bd 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 78bdc3fa..c51deaca 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 59237e41..d2c2d579 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 159c3950..712751de 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
static final Logger logger = LoggerFactory.getLogger(PayrollNzApi.class);
/** PayrollNzApi */
diff --git a/src/main/java/com/xero/api/client/PayrollUkApi.java b/src/main/java/com/xero/api/client/PayrollUkApi.java
index 4bce62fe..ed8a2839 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
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 950c9143..e525d742 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: 11.1.0
+ * The version of the OpenAPI document: 12.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 = "13.0.0";
+ private String version = "12.4.1";
static final Logger logger = LoggerFactory.getLogger(ProjectApi.class);
/** ProjectApi */
diff --git a/src/main/java/com/xero/models/accounting/Prepayment.java b/src/main/java/com/xero/models/accounting/Prepayment.java
index 05f2859e..ce87cd32 100644
--- a/src/main/java/com/xero/models/accounting/Prepayment.java
+++ b/src/main/java/com/xero/models/accounting/Prepayment.java
@@ -169,6 +169,9 @@ public static StatusEnum fromValue(String value) {
@JsonProperty("Reference")
private String reference;
+ @JsonProperty("InvoiceNumber")
+ private String invoiceNumber;
+
@JsonProperty("UpdatedDateUTC")
private String updatedDateUTC;
@@ -572,6 +575,21 @@ public String getReference() {
return reference;
}
+ /**
+ * Returns Invoice number for prepayment receive document only.
+ *
+ * @return invoiceNumber
+ */
+ @ApiModelProperty(value = "Returns Invoice number for prepayment receive document only.")
+ /**
+ * Returns Invoice number for prepayment receive document only.
+ *
+ * @return invoiceNumber String
+ */
+ public String getInvoiceNumber() {
+ return invoiceNumber;
+ }
+
/**
* UTC timestamp of last update to the prepayment
*
@@ -970,6 +988,7 @@ public boolean equals(java.lang.Object o) {
&& Objects.equals(this.totalTax, prepayment.totalTax)
&& Objects.equals(this.total, prepayment.total)
&& Objects.equals(this.reference, prepayment.reference)
+ && Objects.equals(this.invoiceNumber, prepayment.invoiceNumber)
&& Objects.equals(this.updatedDateUTC, prepayment.updatedDateUTC)
&& Objects.equals(this.currencyCode, prepayment.currencyCode)
&& Objects.equals(this.prepaymentID, prepayment.prepaymentID)
@@ -995,6 +1014,7 @@ public int hashCode() {
totalTax,
total,
reference,
+ invoiceNumber,
updatedDateUTC,
currencyCode,
prepaymentID,
@@ -1021,6 +1041,7 @@ public String toString() {
sb.append(" totalTax: ").append(toIndentedString(totalTax)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
+ sb.append(" invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n");
sb.append(" updatedDateUTC: ").append(toIndentedString(updatedDateUTC)).append("\n");
sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
sb.append(" prepaymentID: ").append(toIndentedString(prepaymentID)).append("\n");
diff --git a/src/main/java/com/xero/models/payrolluk/EarningsRate.java b/src/main/java/com/xero/models/payrolluk/EarningsRate.java
index fab9ec15..67e81894 100644
--- a/src/main/java/com/xero/models/payrolluk/EarningsRate.java
+++ b/src/main/java/com/xero/models/payrolluk/EarningsRate.java
@@ -104,7 +104,10 @@ public enum EarningsTypeEnum {
STATUTORYNEONATALCAREPAY("StatutoryNeonatalCarePay"),
/** STATUTORYNEONATALCAREPAYNONPENSIONABLE */
- STATUTORYNEONATALCAREPAYNONPENSIONABLE("StatutoryNeonatalCarePayNonPensionable");
+ STATUTORYNEONATALCAREPAYNONPENSIONABLE("StatutoryNeonatalCarePayNonPensionable"),
+
+ /** STATUTORYBEREAVEMENTPAYNORTHERNIRELAND */
+ STATUTORYBEREAVEMENTPAYNORTHERNIRELAND("StatutoryBereavementPayNorthernIreland");
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 6bc0a941..b2acf878 100644
--- a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java
+++ b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java
@@ -51,7 +51,10 @@ public enum TypeEnum {
BEREAVEMENT("Bereavement"),
/** NEONATALCARE */
- NEONATALCARE("NeonatalCare");
+ NEONATALCARE("NeonatalCare"),
+
+ /** BEREAVEMENTNIRE */
+ BEREAVEMENTNIRE("BereavementNire");
private String value;