Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion docs/v4/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -33683,9 +33688,10 @@ <h3>Usage and SDK Samples</h3>
Integer page = 1;
Integer unitdp = 4;
Integer pageSize = 100;
array[String] invoiceNumbers = &quot;INV-001&quot;, &quot;INV-002&quot;;

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");
Expand Down Expand Up @@ -33867,6 +33873,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">InvoiceNumbers</td>
<td>


<div id="d2e199_getPrepayments_invoiceNumbers">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
array[String]
</span>

<div class="inner description marked">
Filter by a comma-separated list of InvoiceNumbers
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
4 changes: 2 additions & 2 deletions docs/v4/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
40 changes: 36 additions & 4 deletions src/main/java/com/xero/api/client/AccountingApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -20766,6 +20766,7 @@ public HttpResponse getPrepaymentHistoryForHttpResponse(
* @param unitdp e.g. unitdp&#x3D;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 *
Expand All @@ -20778,13 +20779,22 @@ public Prepayments getPrepayments(
String order,
Integer page,
Integer unitdp,
Integer pageSize)
Integer pageSize,
List<String> invoiceNumbers)
throws IOException {
try {
TypeReference<Prepayments> typeRef = new TypeReference<Prepayments>() {};
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()) {
Expand Down Expand Up @@ -20816,6 +20826,7 @@ public Prepayments getPrepayments(
* @param unitdp e.g. unitdp&#x3D;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
Expand All @@ -20828,7 +20839,8 @@ public HttpResponse getPrepaymentsForHttpResponse(
String order,
Integer page,
Integer unitdp,
Integer pageSize)
Integer pageSize,
List<String> invoiceNumbers)
throws IOException {
// verify the required parameter 'xeroTenantId' is set
if (xeroTenantId == null) {
Expand Down Expand Up @@ -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<String> list = new ArrayList<String>();
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()) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/AppStoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/AssetApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/BankFeedsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/FilesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/FinanceApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/IdentityApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/PayrollAuApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/PayrollAuV2Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/PayrollNzApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/PayrollUkApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/ProjectApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/com/xero/models/accounting/Prepayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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)
Expand All @@ -995,6 +1014,7 @@ public int hashCode() {
totalTax,
total,
reference,
invoiceNumber,
updatedDateUTC,
currencyCode,
prepaymentID,
Expand All @@ -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");
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/xero/models/payrolluk/EarningsRate.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public enum EarningsTypeEnum {
STATUTORYNEONATALCAREPAY("StatutoryNeonatalCarePay"),

/** STATUTORYNEONATALCAREPAYNONPENSIONABLE */
STATUTORYNEONATALCAREPAYNONPENSIONABLE("StatutoryNeonatalCarePayNonPensionable");
STATUTORYNEONATALCAREPAYNONPENSIONABLE("StatutoryNeonatalCarePayNonPensionable"),

/** STATUTORYBEREAVEMENTPAYNORTHERNIRELAND */
STATUTORYBEREAVEMENTPAYNORTHERNIRELAND("StatutoryBereavementPayNorthernIreland");

private String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ public enum TypeEnum {
BEREAVEMENT("Bereavement"),

/** NEONATALCARE */
NEONATALCARE("NeonatalCare");
NEONATALCARE("NeonatalCare"),

/** BEREAVEMENTNIRE */
BEREAVEMENTNIRE("BereavementNire");

private String value;

Expand Down
Loading