Skip to content

Commit d5f8c0f

Browse files
committed
Releasing 13.0.0 (OAS: 12.0.0)
1 parent 6fcbdad commit d5f8c0f

17 files changed

Lines changed: 105 additions & 20 deletions

docs/v4/accounting/index.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4756,6 +4756,11 @@
47564756
"description" : "Returns Invoice number field. Reference field isn't available.",
47574757
"readOnly" : true
47584758
},
4759+
"InvoiceNumber" : {
4760+
"type" : "string",
4761+
"description" : "Returns Invoice number for prepayment receive document only.",
4762+
"readOnly" : true
4763+
},
47594764
"UpdatedDateUTC" : {
47604765
"type" : "string",
47614766
"description" : "UTC timestamp of last update to the prepayment",
@@ -33683,9 +33688,10 @@ <h3>Usage and SDK Samples</h3>
3368333688
Integer page = 1;
3368433689
Integer unitdp = 4;
3368533690
Integer pageSize = 100;
33691+
array[String] invoiceNumbers = &quot;INV-001&quot;, &quot;INV-002&quot;;
3368633692

3368733693
try {
33688-
Prepayments result = apiInstance.getPrepayments(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
33694+
Prepayments result = apiInstance.getPrepayments(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers);
3368933695
System.out.println(result);
3369033696
} catch (XeroException e) {
3369133697
System.err.println("Exception when calling AccountingApi#getPrepayments");
@@ -33867,6 +33873,26 @@ <h2>Parameters</h2>
3386733873
</div>
3386833874
</div>
3386933875
</td>
33876+
</tr>
33877+
33878+
<tr><td style="width:150px;">InvoiceNumbers</td>
33879+
<td>
33880+
33881+
33882+
<div id="d2e199_getPrepayments_invoiceNumbers">
33883+
<div class="json-schema-view">
33884+
<div class="primitive">
33885+
<span class="type">
33886+
array[String]
33887+
</span>
33888+
33889+
<div class="inner description marked">
33890+
Filter by a comma-separated list of InvoiceNumbers
33891+
</div>
33892+
</div>
33893+
</div>
33894+
</div>
33895+
</td>
3387033896
</tr>
3387133897

3387233898
</table>

docs/v4/payroll-uk/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@
14581458
"earningsType" : {
14591459
"type" : "string",
14601460
"description" : "Indicates how an employee will be paid when taking this type of earning",
1461-
"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" ]
1461+
"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" ]
14621462
},
14631463
"rateType" : {
14641464
"type" : "string",
@@ -2086,7 +2086,7 @@
20862086
"type" : {
20872087
"type" : "string",
20882088
"description" : "The category of statutory leave",
2089-
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
2089+
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare", "BereavementNire" ]
20902090
},
20912091
"startDate" : {
20922092
"type" : "string",

src/main/java/com/xero/api/client/AccountingApi.java

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Accounting API
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20766,6 +20766,7 @@ public HttpResponse getPrepaymentHistoryForHttpResponse(
2076620766
* @param unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal
2076720767
* places for unit amounts
2076820768
* @param pageSize Number of records to retrieve per page
20769+
* @param invoiceNumbers Filter by a comma-separated list of InvoiceNumbers
2076920770
* @param accessToken Authorization token for user set in header of each request
2077020771
* @return Prepayments
2077120772
* @throws IOException if an error occurs while attempting to invoke the API *
@@ -20778,13 +20779,22 @@ public Prepayments getPrepayments(
2077820779
String order,
2077920780
Integer page,
2078020781
Integer unitdp,
20781-
Integer pageSize)
20782+
Integer pageSize,
20783+
List<String> invoiceNumbers)
2078220784
throws IOException {
2078320785
try {
2078420786
TypeReference<Prepayments> typeRef = new TypeReference<Prepayments>() {};
2078520787
HttpResponse response =
2078620788
getPrepaymentsForHttpResponse(
20787-
accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
20789+
accessToken,
20790+
xeroTenantId,
20791+
ifModifiedSince,
20792+
where,
20793+
order,
20794+
page,
20795+
unitdp,
20796+
pageSize,
20797+
invoiceNumbers);
2078820798
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
2078920799
} catch (HttpResponseException e) {
2079020800
if (logger.isDebugEnabled()) {
@@ -20816,6 +20826,7 @@ public Prepayments getPrepayments(
2081620826
* @param unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal
2081720827
* places for unit amounts
2081820828
* @param pageSize Number of records to retrieve per page
20829+
* @param invoiceNumbers Filter by a comma-separated list of InvoiceNumbers
2081920830
* @param accessToken Authorization token for user set in header of each request
2082020831
* @return HttpResponse
2082120832
* @throws IOException if an error occurs while attempting to invoke the API
@@ -20828,7 +20839,8 @@ public HttpResponse getPrepaymentsForHttpResponse(
2082820839
String order,
2082920840
Integer page,
2083020841
Integer unitdp,
20831-
Integer pageSize)
20842+
Integer pageSize,
20843+
List<String> invoiceNumbers)
2083220844
throws IOException {
2083320845
// verify the required parameter 'xeroTenantId' is set
2083420846
if (xeroTenantId == null) {
@@ -20947,6 +20959,26 @@ public HttpResponse getPrepaymentsForHttpResponse(
2094720959
uriBuilder = uriBuilder.queryParam(key, value);
2094820960
}
2094920961
}
20962+
if (invoiceNumbers != null) {
20963+
String key = "InvoiceNumbers";
20964+
Object value = invoiceNumbers;
20965+
if (value instanceof Collection) {
20966+
List valueList = new ArrayList<>((Collection) value);
20967+
if (!valueList.isEmpty() && valueList.get(0) instanceof UUID) {
20968+
List<String> list = new ArrayList<String>();
20969+
for (int i = 0; i < valueList.size(); i++) {
20970+
list.add(valueList.get(i).toString());
20971+
}
20972+
uriBuilder = uriBuilder.queryParam(key, String.join(",", list));
20973+
} else {
20974+
uriBuilder = uriBuilder.queryParam(key, String.join(",", valueList));
20975+
}
20976+
} else if (value instanceof Object[]) {
20977+
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
20978+
} else {
20979+
uriBuilder = uriBuilder.queryParam(key, value);
20980+
}
20981+
}
2095020982
String url = uriBuilder.build().toString();
2095120983
GenericUrl genericUrl = new GenericUrl(url);
2095220984
if (logger.isDebugEnabled()) {

src/main/java/com/xero/api/client/AppStoreApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero AppStore API
33
* These endpoints are for Xero Partners to interact with the App Store Billing platform
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/xero/api/client/AssetApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Assets API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/xero/api/client/BankFeedsApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Bank Feeds API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/xero/api/client/FilesApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Files API
33
* These endpoints are specific to Xero Files API
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/xero/api/client/FinanceApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Finance API
33
* 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.
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/xero/api/client/IdentityApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero OAuth 2 Identity Service API
33
* These endpoints are related to managing authentication tokens and identity for Xero API
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/xero/api/client/PayrollAuApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll AU API
33
* This is the Xero Payroll API for orgs in Australia region.
44
*
5-
* The version of the OpenAPI document: 11.1.0
5+
* The version of the OpenAPI document: 12.0.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)