Skip to content

Commit a8b959a

Browse files
authored
Merge pull request #285 from XeroAPI/sid-development
Build from OAS 2.12.0
2 parents e5f1810 + 5f78990 commit a8b959a

File tree

13 files changed

+131
-27
lines changed

13 files changed

+131
-27
lines changed

docs/v4/accounting/index.html

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4372,6 +4372,13 @@
43724372
"$ref" : "#/components/schemas/Allocation"
43734373
}
43744374
},
4375+
"Payments" : {
4376+
"type" : "array",
4377+
"description" : "See Payments",
4378+
"items" : {
4379+
"$ref" : "#/components/schemas/Payment"
4380+
}
4381+
},
43754382
"AppliedAmount" : {
43764383
"type" : "number",
43774384
"description" : "The amount of applied to an invoice",
@@ -5812,7 +5819,7 @@
58125819
<nav id="scrollingNav">
58135820
<ul class="sidenav nav nav-list">
58145821
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
5815-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.9.1</li>
5822+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.10.0</li>
58165823
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
58175824
<li data-group="Accounting" data-name="createAccount" class="">
58185825
<a href="#api-Accounting-createAccount">createAccount</a>
@@ -22293,7 +22300,7 @@ <h2>Parameters</h2>
2229322300
</span>
2229422301

2229522302
<div class="inner description marked">
22296-
Use summaryOnly=true in GET Contacts endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
22303+
Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
2229722304
</div>
2229822305
</div>
2229922306
</div>
@@ -25312,10 +25319,11 @@ <h3>Usage and SDK Samples</h3>
2531225319
Integer page = 1;
2531325320
Boolean includeArchived = true;
2531425321
Boolean createdByMyApp = false;
25322+
Boolean summaryOnly = true;
2531525323
Integer unitdp = 4;
2531625324

2531725325
try {
25318-
Invoices result = apiInstance.getInvoices(accessToken, xeroTenantId, ifModifiedSince, where, order, iDs, invoiceNumbers, contactIDs, statuses, page, includeArchived, createdByMyApp, unitdp);
25326+
Invoices result = apiInstance.getInvoices(accessToken, xeroTenantId, ifModifiedSince, where, order, iDs, invoiceNumbers, contactIDs, statuses, page, includeArchived, createdByMyApp, summaryOnly, unitdp);
2531925327
System.out.println(result);
2532025328
} catch (XeroException e) {
2532125329
System.err.println("Exception when calling AccountingApi#getInvoices");
@@ -25578,6 +25586,26 @@ <h2>Parameters</h2>
2557825586
</div>
2557925587
</div>
2558025588
</td>
25589+
</tr>
25590+
25591+
<tr><td style="width:150px;">summaryOnly</td>
25592+
<td>
25593+
25594+
25595+
<div id="d2e199_getInvoices_summaryOnly">
25596+
<div class="json-schema-view">
25597+
<div class="primitive">
25598+
<span class="type">
25599+
Boolean
25600+
</span>
25601+
25602+
<div class="inner description marked">
25603+
Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
25604+
</div>
25605+
</div>
25606+
</div>
25607+
</div>
25608+
</td>
2558125609
</tr>
2558225610

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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>xero-java</artifactId>
66
<packaging>jar</packaging>
77
<name>xero-java</name>
8-
<version>4.9.1</version>
8+
<version>4.10.0</version>
99
<url>https://github.com/XeroAPI/Xero-Java</url>
1010
<description>This is the official Java SDK for Xero API</description>
1111
<licenses>

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

Lines changed: 26 additions & 6 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: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -98,7 +98,7 @@ public class AccountingApi {
9898
private ApiClient apiClient;
9999
private static AccountingApi instance = null;
100100
private String userAgent = "Default";
101-
private String version = "4.9.1";
101+
private String version = "4.10.0";
102102
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class);
103103

104104
/** AccountingApi */
@@ -12453,8 +12453,8 @@ public HttpResponse getContactHistoryForHttpResponse(
1245312453
* @param page e.g. page&#x3D;1 - Up to 100 contacts will be returned in a single API call.
1245412454
* @param includeArchived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will
1245512455
* be included in the response
12456-
* @param summaryOnly Use summaryOnly&#x3D;true in GET Contacts endpoint to retrieve a smaller
12457-
* version of the response object. This returns only lightweight fields, excluding
12456+
* @param summaryOnly Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve
12457+
* a smaller version of the response object. This returns only lightweight fields, excluding
1245812458
* computation-heavy fields from the response, making the API calls quick and efficient.
1245912459
* @param accessToken Authorization token for user set in header of each request
1246012460
* @return Contacts
@@ -12515,8 +12515,8 @@ public Contacts getContacts(
1251512515
* @param page e.g. page&#x3D;1 - Up to 100 contacts will be returned in a single API call.
1251612516
* @param includeArchived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will
1251712517
* be included in the response
12518-
* @param summaryOnly Use summaryOnly&#x3D;true in GET Contacts endpoint to retrieve a smaller
12519-
* version of the response object. This returns only lightweight fields, excluding
12518+
* @param summaryOnly Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve
12519+
* a smaller version of the response object. This returns only lightweight fields, excluding
1252012520
* computation-heavy fields from the response, making the API calls quick and efficient.
1252112521
* @param accessToken Authorization token for user set in header of each request
1252212522
* @return HttpResponse
@@ -14722,6 +14722,9 @@ public HttpResponse getInvoiceRemindersForHttpResponse(String accessToken, Strin
1472214722
* @param includeArchived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will
1472314723
* be included in the response
1472414724
* @param createdByMyApp When set to true you&#39;ll only retrieve Invoices created by your app
14725+
* @param summaryOnly Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve
14726+
* a smaller version of the response object. This returns only lightweight fields, excluding
14727+
* computation-heavy fields from the response, making the API calls quick and efficient.
1472514728
* @param unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal
1472614729
* places for unit amounts
1472714730
* @param accessToken Authorization token for user set in header of each request
@@ -14741,6 +14744,7 @@ public Invoices getInvoices(
1474114744
Integer page,
1474214745
Boolean includeArchived,
1474314746
Boolean createdByMyApp,
14747+
Boolean summaryOnly,
1474414748
Integer unitdp)
1474514749
throws IOException {
1474614750
try {
@@ -14759,6 +14763,7 @@ public Invoices getInvoices(
1475914763
page,
1476014764
includeArchived,
1476114765
createdByMyApp,
14766+
summaryOnly,
1476214767
unitdp);
1476314768
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
1476414769
} catch (HttpResponseException e) {
@@ -14797,6 +14802,9 @@ public Invoices getInvoices(
1479714802
* @param includeArchived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will
1479814803
* be included in the response
1479914804
* @param createdByMyApp When set to true you&#39;ll only retrieve Invoices created by your app
14805+
* @param summaryOnly Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve
14806+
* a smaller version of the response object. This returns only lightweight fields, excluding
14807+
* computation-heavy fields from the response, making the API calls quick and efficient.
1480014808
* @param unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal
1480114809
* places for unit amounts
1480214810
* @param accessToken Authorization token for user set in header of each request
@@ -14816,6 +14824,7 @@ public HttpResponse getInvoicesForHttpResponse(
1481614824
Integer page,
1481714825
Boolean includeArchived,
1481814826
Boolean createdByMyApp,
14827+
Boolean summaryOnly,
1481914828
Integer unitdp)
1482014829
throws IOException {
1482114830
// verify the required parameter 'xeroTenantId' is set
@@ -14934,6 +14943,17 @@ public HttpResponse getInvoicesForHttpResponse(
1493414943
uriBuilder = uriBuilder.queryParam(key, value);
1493514944
}
1493614945
}
14946+
if (summaryOnly != null) {
14947+
String key = "summaryOnly";
14948+
Object value = summaryOnly;
14949+
if (value instanceof Collection) {
14950+
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
14951+
} else if (value instanceof Object[]) {
14952+
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
14953+
} else {
14954+
uriBuilder = uriBuilder.queryParam(key, value);
14955+
}
14956+
}
1493714957
if (unitdp != null) {
1493814958
String key = "unitdp";
1493914959
Object value = unitdp;

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

Lines changed: 2 additions & 2 deletions
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: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,7 +48,7 @@ public class AssetApi {
4848
private ApiClient apiClient;
4949
private static AssetApi instance = null;
5050
private String userAgent = "Default";
51-
private String version = "4.9.1";
51+
private String version = "4.10.0";
5252
static final Logger logger = LoggerFactory.getLogger(AssetApi.class);
5353

5454
/** AssetApi */

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

Lines changed: 2 additions & 2 deletions
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: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,7 +46,7 @@ public class BankFeedsApi {
4646
private ApiClient apiClient;
4747
private static BankFeedsApi instance = null;
4848
private String userAgent = "Default";
49-
private String version = "4.9.1";
49+
private String version = "4.10.0";
5050
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);
5151

5252
/** BankFeedsApi */

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

Lines changed: 2 additions & 2 deletions
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: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,7 +53,7 @@ public class FilesApi {
5353
private ApiClient apiClient;
5454
private static FilesApi instance = null;
5555
private String userAgent = "Default";
56-
private String version = "4.9.1";
56+
private String version = "4.10.0";
5757
static final Logger logger = LoggerFactory.getLogger(FilesApi.class);
5858

5959
/** FilesApi */

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

Lines changed: 2 additions & 2 deletions
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: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -44,7 +44,7 @@ public class IdentityApi {
4444
private ApiClient apiClient;
4545
private static IdentityApi instance = null;
4646
private String userAgent = "Default";
47-
private String version = "4.9.1";
47+
private String version = "4.10.0";
4848
static final Logger logger = LoggerFactory.getLogger(IdentityApi.class);
4949

5050
/** IdentityApi */

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

Lines changed: 2 additions & 2 deletions
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: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -63,7 +63,7 @@ public class PayrollAuApi {
6363
private ApiClient apiClient;
6464
private static PayrollAuApi instance = null;
6565
private String userAgent = "Default";
66-
private String version = "4.9.1";
66+
private String version = "4.10.0";
6767
static final Logger logger = LoggerFactory.getLogger(PayrollAuApi.class);
6868

6969
/** PayrollAuApi */

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll NZ
33
* This is the Xero Payroll API for orgs in the NZ region.
44
*
5-
* The version of the OpenAPI document: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -105,7 +105,7 @@ public class PayrollNzApi {
105105
private ApiClient apiClient;
106106
private static PayrollNzApi instance = null;
107107
private String userAgent = "Default";
108-
private String version = "4.9.1";
108+
private String version = "4.10.0";
109109
static final Logger logger = LoggerFactory.getLogger(PayrollNzApi.class);
110110

111111
/** PayrollNzApi */

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Payroll UK
33
* This is the Xero Payroll API for orgs in the UK region.
44
*
5-
* The version of the OpenAPI document: 2.11.0
5+
* The version of the OpenAPI document: 2.12.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -105,7 +105,7 @@ public class PayrollUkApi {
105105
private ApiClient apiClient;
106106
private static PayrollUkApi instance = null;
107107
private String userAgent = "Default";
108-
private String version = "4.9.1";
108+
private String version = "4.10.0";
109109
static final Logger logger = LoggerFactory.getLogger(PayrollUkApi.class);
110110

111111
/** PayrollUkApi */

0 commit comments

Comments
 (0)