-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #283 from XeroAPI/sid-development
Build from OpenAPI spec 2.11.0
- Loading branch information
Showing
18 changed files
with
158 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -98,7 +98,7 @@ public class AccountingApi { | |
private ApiClient apiClient; | ||
private static AccountingApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class); | ||
|
||
/** AccountingApi */ | ||
|
@@ -12453,6 +12453,9 @@ public HttpResponse getContactHistoryForHttpResponse( | |
* @param page e.g. page=1 - Up to 100 contacts will be returned in a single API call. | ||
* @param includeArchived e.g. includeArchived=true - Contacts with a status of ARCHIVED will | ||
* be included in the response | ||
* @param summaryOnly 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. | ||
* @param accessToken Authorization token for user set in header of each request | ||
* @return Contacts | ||
* @throws IOException if an error occurs while attempting to invoke the API * | ||
|
@@ -12465,13 +12468,22 @@ public Contacts getContacts( | |
String order, | ||
List<UUID> ids, | ||
Integer page, | ||
Boolean includeArchived) | ||
Boolean includeArchived, | ||
Boolean summaryOnly) | ||
throws IOException { | ||
try { | ||
TypeReference<Contacts> typeRef = new TypeReference<Contacts>() {}; | ||
HttpResponse response = | ||
getContactsForHttpResponse( | ||
accessToken, xeroTenantId, ifModifiedSince, where, order, ids, page, includeArchived); | ||
accessToken, | ||
xeroTenantId, | ||
ifModifiedSince, | ||
where, | ||
order, | ||
ids, | ||
page, | ||
includeArchived, | ||
summaryOnly); | ||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); | ||
} catch (HttpResponseException e) { | ||
if (logger.isDebugEnabled()) { | ||
|
@@ -12503,6 +12515,9 @@ public Contacts getContacts( | |
* @param page e.g. page=1 - Up to 100 contacts will be returned in a single API call. | ||
* @param includeArchived e.g. includeArchived=true - Contacts with a status of ARCHIVED will | ||
* be included in the response | ||
* @param summaryOnly 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. | ||
* @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 | ||
|
@@ -12515,7 +12530,8 @@ public HttpResponse getContactsForHttpResponse( | |
String order, | ||
List<UUID> ids, | ||
Integer page, | ||
Boolean includeArchived) | ||
Boolean includeArchived, | ||
Boolean summaryOnly) | ||
throws IOException { | ||
// verify the required parameter 'xeroTenantId' is set | ||
if (xeroTenantId == null) { | ||
|
@@ -12589,6 +12605,17 @@ public HttpResponse getContactsForHttpResponse( | |
uriBuilder = uriBuilder.queryParam(key, value); | ||
} | ||
} | ||
if (summaryOnly != null) { | ||
String key = "summaryOnly"; | ||
Object value = summaryOnly; | ||
if (value instanceof Collection) { | ||
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray()); | ||
} 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()) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -48,7 +48,7 @@ public class AssetApi { | |
private ApiClient apiClient; | ||
private static AssetApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(AssetApi.class); | ||
|
||
/** AssetApi */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -46,7 +46,7 @@ public class BankFeedsApi { | |
private ApiClient apiClient; | ||
private static BankFeedsApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class); | ||
|
||
/** BankFeedsApi */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Files API | ||
* These endpoints are specific to Xero Files API | ||
* | ||
* The version of the OpenAPI document: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -53,7 +53,7 @@ public class FilesApi { | |
private ApiClient apiClient; | ||
private static FilesApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(FilesApi.class); | ||
|
||
/** FilesApi */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -44,7 +44,7 @@ public class IdentityApi { | |
private ApiClient apiClient; | ||
private static IdentityApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(IdentityApi.class); | ||
|
||
/** IdentityApi */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -63,7 +63,7 @@ public class PayrollAuApi { | |
private ApiClient apiClient; | ||
private static PayrollAuApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(PayrollAuApi.class); | ||
|
||
/** PayrollAuApi */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -105,7 +105,7 @@ public class PayrollNzApi { | |
private ApiClient apiClient; | ||
private static PayrollNzApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(PayrollNzApi.class); | ||
|
||
/** PayrollNzApi */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -105,7 +105,7 @@ public class PayrollUkApi { | |
private ApiClient apiClient; | ||
private static PayrollUkApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(PayrollUkApi.class); | ||
|
||
/** PayrollUkApi */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Xero Projects API | ||
* This is the Xero Projects API | ||
* | ||
* The version of the OpenAPI document: 2.10.4 | ||
* The version of the OpenAPI document: 2.11.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -55,7 +55,7 @@ public class ProjectApi { | |
private ApiClient apiClient; | ||
private static ProjectApi instance = null; | ||
private String userAgent = "Default"; | ||
private String version = "4.8.3"; | ||
private String version = "4.9.1"; | ||
static final Logger logger = LoggerFactory.getLogger(ProjectApi.class); | ||
|
||
/** ProjectApi */ | ||
|
Oops, something went wrong.