Skip to content

Commit ccdc504

Browse files
committed
Build for OpenAPI spec versions 2.2.1, 2.2.2, 2.2.3 & 2.2.4
1 parent 89de7c1 commit ccdc504

File tree

336 files changed

+621
-358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+621
-358
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
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.1.0</version>
8+
<version>4.1.1</version>
99
<url>https://github.com/XeroAPI/Xero-Java</url>
1010
<description>This is the official Java SDK for Xero API</description>
1111
<licenses>
@@ -298,7 +298,7 @@
298298
<google-api-client-version>1.23.0</google-api-client-version>
299299
<jersey-common-version>2.25.1</jersey-common-version>
300300
<jackson-version>2.9.10</jackson-version>
301-
<jackson-databind-version>2.9.10.4</jackson-databind-version>
301+
<jackson-databind-version>2.9.10.5</jackson-databind-version>
302302
<jackson-threetenbp-version>2.6.4</jackson-threetenbp-version>
303303
<junit-version>4.12</junit-version>
304304
<org-apache-httpcomponents>4.5.3</org-apache-httpcomponents>

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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class AccountingApi {
9393
private ApiClient apiClient;
9494
private static AccountingApi instance = null;
9595
private String userAgent = "Default";
96-
private String version = "4.1.0";
96+
private String version = "4.1.1";
9797
final static Logger logger = LoggerFactory.getLogger(AccountingApi.class);
9898

9999
public AccountingApi() {
@@ -1398,14 +1398,15 @@ public HttpResponse createContactsForHttpResponse(String accessToken, String xe
13981398
* @param xeroTenantId Xero identifier for Tenant
13991399
* @param creditNoteID Unique identifier for a Credit Note
14001400
* @param allocations Allocations with array of Allocation object in body of request.
1401+
* @param summarizeErrors If false return 200 OK and mix of successfully created obejcts and any with validation errors
14011402
* @param accessToken Authorization token for user set in header of each request
14021403
* @return Allocations
14031404
* @throws IOException if an error occurs while attempting to invoke the API
14041405
**/
1405-
public Allocations createCreditNoteAllocation(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations) throws IOException {
1406+
public Allocations createCreditNoteAllocation(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors) throws IOException {
14061407
try {
14071408
TypeReference<Allocations> typeRef = new TypeReference<Allocations>() {};
1408-
HttpResponse response = createCreditNoteAllocationForHttpResponse(accessToken, xeroTenantId, creditNoteID, allocations);
1409+
HttpResponse response = createCreditNoteAllocationForHttpResponse(accessToken, xeroTenantId, creditNoteID, allocations, summarizeErrors);
14091410
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
14101411
} catch (HttpResponseException e) {
14111412
if (logger.isDebugEnabled()) {
@@ -1429,7 +1430,7 @@ public Allocations createCreditNoteAllocation(String accessToken, String xeroTe
14291430
return null;
14301431
}
14311432

1432-
public HttpResponse createCreditNoteAllocationForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations) throws IOException {
1433+
public HttpResponse createCreditNoteAllocationForHttpResponse(String accessToken, String xeroTenantId, UUID creditNoteID, Allocations allocations, Boolean summarizeErrors) throws IOException {
14331434
// verify the required parameter 'xeroTenantId' is set
14341435
if (xeroTenantId == null) {
14351436
throw new IllegalArgumentException("Missing the required parameter 'xeroTenantId' when calling createCreditNoteAllocation");
@@ -1452,6 +1453,17 @@ public HttpResponse createCreditNoteAllocationForHttpResponse(String accessToken
14521453
uriVariables.put("CreditNoteID", creditNoteID);
14531454

14541455
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/CreditNotes/{CreditNoteID}/Allocations");
1456+
if (summarizeErrors != null) {
1457+
String key = "summarizeErrors";
1458+
Object value = summarizeErrors;
1459+
if (value instanceof Collection) {
1460+
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
1461+
} else if (value instanceof Object[]) {
1462+
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
1463+
} else {
1464+
uriBuilder = uriBuilder.queryParam(key, value);
1465+
}
1466+
}
14551467
String url = uriBuilder.buildFromMap(uriVariables).toString();
14561468
GenericUrl genericUrl = new GenericUrl(url);
14571469
if (logger.isDebugEnabled()) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class AssetApi {
4747
private ApiClient apiClient;
4848
private static AssetApi instance = null;
4949
private String userAgent = "Default";
50-
private String version = "4.1.0";
50+
private String version = "4.1.1";
5151
final static Logger logger = LoggerFactory.getLogger(AssetApi.class);
5252

5353
public AssetApi() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class BankFeedsApi {
4747
private ApiClient apiClient;
4848
private static BankFeedsApi instance = null;
4949
private String userAgent = "Default";
50-
private String version = "4.1.0";
50+
private String version = "4.1.1";
5151
final static Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);
5252

5353
public BankFeedsApi() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class IdentityApi {
4343
private ApiClient apiClient;
4444
private static IdentityApi instance = null;
4545
private String userAgent = "Default";
46-
private String version = "4.1.0";
46+
private String version = "4.1.1";
4747
final static Logger logger = LoggerFactory.getLogger(IdentityApi.class);
4848

4949
public IdentityApi() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.1.0";
66+
private String version = "4.1.1";
6767
final static Logger logger = LoggerFactory.getLogger(PayrollAuApi.class);
6868

6969
public PayrollAuApi() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.1.0";
108+
private String version = "4.1.1";
109109
final static Logger logger = LoggerFactory.getLogger(PayrollUkApi.class);
110110

111111
public PayrollUkApi() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class ProjectApi {
5454
private ApiClient apiClient;
5555
private static ProjectApi instance = null;
5656
private String userAgent = "Default";
57-
private String version = "4.1.0";
57+
private String version = "4.1.1";
5858
final static Logger logger = LoggerFactory.getLogger(ProjectApi.class);
5959

6060
public ProjectApi() {

src/main/java/com/xero/models/accounting/Account.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* 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.2.0
5+
* The version of the OpenAPI document: 2.2.4
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/xero/models/accounting/AccountType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* 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.2.0
5+
* The version of the OpenAPI document: 2.2.4
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)