diff --git a/docs/v4/accounting/index.html b/docs/v4/accounting/index.html
index f2aeeed9..29381bfe 100644
--- a/docs/v4/accounting/index.html
+++ b/docs/v4/accounting/index.html
@@ -4756,6 +4756,11 @@
"description" : "Returns Invoice number field. Reference field isn't available.",
"readOnly" : true
},
+ "InvoiceNumber" : {
+ "type" : "string",
+ "description" : "Returns Invoice number for prepayment receive document only.",
+ "readOnly" : true
+ },
"UpdatedDateUTC" : {
"type" : "string",
"description" : "UTC timestamp of last update to the prepayment",
@@ -33683,9 +33688,10 @@
Usage and SDK Samples
Integer page = 1;
Integer unitdp = 4;
Integer pageSize = 100;
+ array[String] invoiceNumbers = "INV-001", "INV-002";
try {
- Prepayments result = apiInstance.getPrepayments(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
+ Prepayments result = apiInstance.getPrepayments(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AccountingApi#getPrepayments");
@@ -33867,6 +33873,26 @@ Parameters
+
+
+ | InvoiceNumbers |
+
+
+
+
+
+
+
+ array[String]
+
+
+
+Filter by a comma-separated list of InvoiceNumbers
+
+
+
+
+ |
diff --git a/docs/v4/payroll-uk/index.html b/docs/v4/payroll-uk/index.html
index 07d50183..a84edacd 100644
--- a/docs/v4/payroll-uk/index.html
+++ b/docs/v4/payroll-uk/index.html
@@ -1458,7 +1458,7 @@
"earningsType" : {
"type" : "string",
"description" : "Indicates how an employee will be paid when taking this type of earning",
- "enum" : [ "Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay", "StatutoryNeonatalCarePay", "StatutoryNeonatalCarePayNonPensionable" ]
+ "enum" : [ "Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay", "StatutoryNeonatalCarePay", "StatutoryNeonatalCarePayNonPensionable", "StatutoryBereavementPayNorthernIreland" ]
},
"rateType" : {
"type" : "string",
@@ -2086,7 +2086,7 @@
"type" : {
"type" : "string",
"description" : "The category of statutory leave",
- "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
+ "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare", "BereavementNire" ]
},
"startDate" : {
"type" : "string",
diff --git a/src/main/java/com/xero/api/client/AccountingApi.java b/src/main/java/com/xero/api/client/AccountingApi.java
index 5c2e7966..63740ac3 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).
@@ -20766,6 +20766,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 +20779,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 +20826,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 +20839,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 +20959,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..c508b569 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).
diff --git a/src/main/java/com/xero/api/client/AssetApi.java b/src/main/java/com/xero/api/client/AssetApi.java
index cb185acc..853b5fb8 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).
diff --git a/src/main/java/com/xero/api/client/BankFeedsApi.java b/src/main/java/com/xero/api/client/BankFeedsApi.java
index 678a69f6..da8e87a1 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).
diff --git a/src/main/java/com/xero/api/client/FilesApi.java b/src/main/java/com/xero/api/client/FilesApi.java
index 5d16df07..462430fa 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).
diff --git a/src/main/java/com/xero/api/client/FinanceApi.java b/src/main/java/com/xero/api/client/FinanceApi.java
index a89c44d5..29f7bbd4 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).
diff --git a/src/main/java/com/xero/api/client/IdentityApi.java b/src/main/java/com/xero/api/client/IdentityApi.java
index eb2f2c0b..138b3475 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).
diff --git a/src/main/java/com/xero/api/client/PayrollAuApi.java b/src/main/java/com/xero/api/client/PayrollAuApi.java
index 78bdc3fa..4539993d 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).
diff --git a/src/main/java/com/xero/api/client/PayrollAuV2Api.java b/src/main/java/com/xero/api/client/PayrollAuV2Api.java
index 59237e41..362771f0 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).
diff --git a/src/main/java/com/xero/api/client/PayrollNzApi.java b/src/main/java/com/xero/api/client/PayrollNzApi.java
index 159c3950..125ca646 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).
diff --git a/src/main/java/com/xero/api/client/PayrollUkApi.java b/src/main/java/com/xero/api/client/PayrollUkApi.java
index 4bce62fe..9b4f4922 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).
diff --git a/src/main/java/com/xero/api/client/ProjectApi.java b/src/main/java/com/xero/api/client/ProjectApi.java
index 950c9143..152015ad 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).
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;