Skip to content

Commit 94bd4e7

Browse files
committed
Build from 2.10.3
FILES API Fix path for uploadFileToFolder method
 Replaced inline objects with UploadObject for use by both upload methods BANKFEED API Fix error response and status code for Feedconnections. The API will actually return an overall HTTP 400 but will include a sub-status per connection error in the response body. I removed the 409 from the expected responses, and updated the schema/example for the 400
1 parent 0be6b99 commit 94bd4e7

File tree

13 files changed

+67
-263
lines changed

13 files changed

+67
-263
lines changed

docs/v4/accounting/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6396,9 +6396,9 @@ <h1>Xero Accounting API</h1>
63966396
<div id="header">
63976397
<div id="api-_">
63986398
<h2 id="welcome-to-apidoc">API and SDK Documentation</h2>
6399-
<div class="app-desc">Version: 4.8.1</div>
6399+
<div class="app-desc">Version: 4.8.2</div>
64006400
<!--
6401-
<div class="app-desc">Version: 2.10.2</div>
6401+
<div class="app-desc">Version: 2.10.3</div>
64026402
<hr>
64036403
<div id="app-description" class="app-desc">
64046404
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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.8.1</version>
8+
<version>4.8.2</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: 2 additions & 2 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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
101+
private String version = "4.8.2";
102102
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class);
103103

104104
/** AccountingApi */

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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
51+
private String version = "4.8.2";
5252
static final Logger logger = LoggerFactory.getLogger(AssetApi.class);
5353

5454
/** AssetApi */

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

Lines changed: 4 additions & 8 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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
49+
private String version = "4.8.2";
5050
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);
5151

5252
/** BankFeedsApi */
@@ -118,9 +118,7 @@ public String getUserAgent() {
118118
*
119119
* <p><b>202</b> - success new feed connection(s)response
120120
*
121-
* <p><b>400</b> - invalid input, object invalid
122-
*
123-
* <p><b>409</b> - failed to create new feed connection(s)response
121+
* <p><b>400</b> - failed to create new feed connection(s)response
124122
*
125123
* @param xeroTenantId Xero identifier for Tenant
126124
* @param feedConnections Feed Connection(s) array object in the body
@@ -164,9 +162,7 @@ public FeedConnections createFeedConnections(
164162
*
165163
* <p><b>202</b> - success new feed connection(s)response
166164
*
167-
* <p><b>400</b> - invalid input, object invalid
168-
*
169-
* <p><b>409</b> - failed to create new feed connection(s)response
165+
* <p><b>400</b> - failed to create new feed connection(s)response
170166
*
171167
* @param xeroTenantId Xero identifier for Tenant
172168
* @param feedConnections Feed Connection(s) array object in the body

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

Lines changed: 27 additions & 3 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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
56+
private String version = "4.8.2";
5757
static final Logger logger = LoggerFactory.getLogger(FilesApi.class);
5858

5959
/** FilesApi */
@@ -1565,6 +1565,18 @@ public HttpResponse uploadFileForHttpResponse(
15651565
if (xeroTenantId == null) {
15661566
throw new IllegalArgumentException(
15671567
"Missing the required parameter 'xeroTenantId' when calling uploadFile");
1568+
} // verify the required parameter 'body' is set
1569+
if (body == null) {
1570+
throw new IllegalArgumentException(
1571+
"Missing the required parameter 'body' when calling uploadFile");
1572+
} // verify the required parameter 'name' is set
1573+
if (name == null) {
1574+
throw new IllegalArgumentException(
1575+
"Missing the required parameter 'name' when calling uploadFile");
1576+
} // verify the required parameter 'filename' is set
1577+
if (filename == null) {
1578+
throw new IllegalArgumentException(
1579+
"Missing the required parameter 'filename' when calling uploadFile");
15681580
}
15691581
if (accessToken == null) {
15701582
throw new IllegalArgumentException(
@@ -1703,6 +1715,18 @@ public HttpResponse uploadFileToFolderForHttpResponse(
17031715
if (folderId == null) {
17041716
throw new IllegalArgumentException(
17051717
"Missing the required parameter 'folderId' when calling uploadFileToFolder");
1718+
} // verify the required parameter 'body' is set
1719+
if (body == null) {
1720+
throw new IllegalArgumentException(
1721+
"Missing the required parameter 'body' when calling uploadFileToFolder");
1722+
} // verify the required parameter 'name' is set
1723+
if (name == null) {
1724+
throw new IllegalArgumentException(
1725+
"Missing the required parameter 'name' when calling uploadFileToFolder");
1726+
} // verify the required parameter 'filename' is set
1727+
if (filename == null) {
1728+
throw new IllegalArgumentException(
1729+
"Missing the required parameter 'filename' when calling uploadFileToFolder");
17061730
}
17071731
if (accessToken == null) {
17081732
throw new IllegalArgumentException(
@@ -1716,7 +1740,7 @@ public HttpResponse uploadFileToFolderForHttpResponse(
17161740
final Map<String, Object> uriVariables = new HashMap<String, Object>();
17171741
uriVariables.put("FolderId", folderId);
17181742

1719-
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/Folders/{FolderId}");
1743+
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/Files/{FolderId}");
17201744
String url = uriBuilder.buildFromMap(uriVariables).toString();
17211745
GenericUrl genericUrl = new GenericUrl(url);
17221746
if (logger.isDebugEnabled()) {

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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
47+
private String version = "4.8.2";
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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
66+
private String version = "4.8.2";
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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
108+
private String version = "4.8.2";
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.10.2
5+
* The version of the OpenAPI document: 2.10.3
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.8.1";
108+
private String version = "4.8.2";
109109
static final Logger logger = LoggerFactory.getLogger(PayrollUkApi.class);
110110

111111
/** PayrollUkApi */

0 commit comments

Comments
 (0)