Skip to content

Commit 5f0e079

Browse files
committed
Build from OAS 2.9.3
Files API methods and models added
1 parent fee9882 commit 5f0e079

21 files changed

+2891
-42
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Version 4.x and higher of Xero Java SDK only supports OAuth2 authentication and
1212
* payroll au
1313
* payroll uk
1414
* payroll nz
15-
16-
Coming soon
1715
* files
1816

1917
## SDK Documentation

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.6.0</version>
8+
<version>4.7.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: 24 additions & 25 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.9.0
5+
* The version of the OpenAPI document: 2.9.3
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -81,7 +81,6 @@
8181
import java.io.File;
8282
import java.io.IOException;
8383
import java.io.InputStream;
84-
import java.nio.file.Files;
8584
import java.util.Collection;
8685
import java.util.HashMap;
8786
import java.util.List;
@@ -98,7 +97,7 @@ public class AccountingApi {
9897
private ApiClient apiClient;
9998
private static AccountingApi instance = null;
10099
private String userAgent = "Default";
101-
private String version = "4.6.0";
100+
private String version = "4.7.0";
102101
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class);
103102

104103
public AccountingApi() {
@@ -431,7 +430,7 @@ public HttpResponse createAccountAttachmentByFileNameForHttpResponse(
431430
logger.debug("PUT " + genericUrl.toString());
432431
}
433432
java.nio.file.Path bodyPath = body.toPath();
434-
String mimeType = Files.probeContentType(bodyPath);
433+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
435434
HttpContent content = null;
436435
content = new FileContent(mimeType, body);
437436
Credential credential =
@@ -661,7 +660,7 @@ public HttpResponse createBankTransactionAttachmentByFileNameForHttpResponse(
661660
logger.debug("PUT " + genericUrl.toString());
662661
}
663662
java.nio.file.Path bodyPath = body.toPath();
664-
String mimeType = Files.probeContentType(bodyPath);
663+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
665664
HttpContent content = null;
666665
content = new FileContent(mimeType, body);
667666
Credential credential =
@@ -1215,7 +1214,7 @@ public HttpResponse createBankTransferAttachmentByFileNameForHttpResponse(
12151214
logger.debug("PUT " + genericUrl.toString());
12161215
}
12171216
java.nio.file.Path bodyPath = body.toPath();
1218-
String mimeType = Files.probeContentType(bodyPath);
1217+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
12191218
HttpContent content = null;
12201219
content = new FileContent(mimeType, body);
12211220
Credential credential =
@@ -1862,7 +1861,7 @@ public HttpResponse createContactAttachmentByFileNameForHttpResponse(
18621861
logger.debug("PUT " + genericUrl.toString());
18631862
}
18641863
java.nio.file.Path bodyPath = body.toPath();
1865-
String mimeType = Files.probeContentType(bodyPath);
1864+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
18661865
HttpContent content = null;
18671866
content = new FileContent(mimeType, body);
18681867
Credential credential =
@@ -2649,7 +2648,7 @@ public HttpResponse createCreditNoteAttachmentByFileNameForHttpResponse(
26492648
logger.debug("PUT " + genericUrl.toString());
26502649
}
26512650
java.nio.file.Path bodyPath = body.toPath();
2652-
String mimeType = Files.probeContentType(bodyPath);
2651+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
26532652
HttpContent content = null;
26542653
content = new FileContent(mimeType, body);
26552654
Credential credential =
@@ -3521,7 +3520,7 @@ public HttpResponse createInvoiceAttachmentByFileNameForHttpResponse(
35213520
logger.debug("PUT " + genericUrl.toString());
35223521
}
35233522
java.nio.file.Path bodyPath = body.toPath();
3524-
String mimeType = Files.probeContentType(bodyPath);
3523+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
35253524
HttpContent content = null;
35263525
content = new FileContent(mimeType, body);
35273526
Credential credential =
@@ -4283,7 +4282,7 @@ public HttpResponse createManualJournalAttachmentByFileNameForHttpResponse(
42834282
logger.debug("PUT " + genericUrl.toString());
42844283
}
42854284
java.nio.file.Path bodyPath = body.toPath();
4286-
String mimeType = Files.probeContentType(bodyPath);
4285+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
42874286
HttpContent content = null;
42884287
content = new FileContent(mimeType, body);
42894288
Credential credential =
@@ -5563,7 +5562,7 @@ public HttpResponse createPurchaseOrderAttachmentByFileNameForHttpResponse(
55635562
logger.debug("PUT " + genericUrl.toString());
55645563
}
55655564
java.nio.file.Path bodyPath = body.toPath();
5566-
String mimeType = Files.probeContentType(bodyPath);
5565+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
55675566
HttpContent content = null;
55685567
content = new FileContent(mimeType, body);
55695568
Credential credential =
@@ -5998,7 +5997,7 @@ public HttpResponse createQuoteAttachmentByFileNameForHttpResponse(
59985997
logger.debug("PUT " + genericUrl.toString());
59995998
}
60005999
java.nio.file.Path bodyPath = body.toPath();
6001-
String mimeType = Files.probeContentType(bodyPath);
6000+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
60026001
HttpContent content = null;
60036002
content = new FileContent(mimeType, body);
60046003
Credential credential =
@@ -6533,7 +6532,7 @@ public HttpResponse createReceiptAttachmentByFileNameForHttpResponse(
65336532
logger.debug("PUT " + genericUrl.toString());
65346533
}
65356534
java.nio.file.Path bodyPath = body.toPath();
6536-
String mimeType = Files.probeContentType(bodyPath);
6535+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
65376536
HttpContent content = null;
65386537
content = new FileContent(mimeType, body);
65396538
Credential credential =
@@ -6867,7 +6866,7 @@ public HttpResponse createRepeatingInvoiceAttachmentByFileNameForHttpResponse(
68676866
logger.debug("PUT " + genericUrl.toString());
68686867
}
68696868
java.nio.file.Path bodyPath = body.toPath();
6870-
String mimeType = Files.probeContentType(bodyPath);
6869+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
68716870
HttpContent content = null;
68726871
content = new FileContent(mimeType, body);
68736872
Credential credential =
@@ -20369,7 +20368,7 @@ public HttpResponse updateAccountAttachmentByFileNameForHttpResponse(
2036920368
logger.debug("POST " + genericUrl.toString());
2037020369
}
2037120370
java.nio.file.Path bodyPath = body.toPath();
20372-
String mimeType = Files.probeContentType(bodyPath);
20371+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2037320372
HttpContent content = null;
2037420373
content = new FileContent(mimeType, body);
2037520374
Credential credential =
@@ -20722,7 +20721,7 @@ public HttpResponse updateBankTransactionAttachmentByFileNameForHttpResponse(
2072220721
logger.debug("POST " + genericUrl.toString());
2072320722
}
2072420723
java.nio.file.Path bodyPath = body.toPath();
20725-
String mimeType = Files.probeContentType(bodyPath);
20724+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2072620725
HttpContent content = null;
2072720726
content = new FileContent(mimeType, body);
2072820727
Credential credential =
@@ -20948,7 +20947,7 @@ public HttpResponse updateBankTransferAttachmentByFileNameForHttpResponse(
2094820947
logger.debug("POST " + genericUrl.toString());
2094920948
}
2095020949
java.nio.file.Path bodyPath = body.toPath();
20951-
String mimeType = Files.probeContentType(bodyPath);
20950+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2095220951
HttpContent content = null;
2095320952
content = new FileContent(mimeType, body);
2095420953
Credential credential =
@@ -21269,7 +21268,7 @@ public HttpResponse updateContactAttachmentByFileNameForHttpResponse(
2126921268
logger.debug("POST " + genericUrl.toString());
2127021269
}
2127121270
java.nio.file.Path bodyPath = body.toPath();
21272-
String mimeType = Files.probeContentType(bodyPath);
21271+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2127321272
HttpContent content = null;
2127421273
content = new FileContent(mimeType, body);
2127521274
Credential credential =
@@ -21722,7 +21721,7 @@ public HttpResponse updateCreditNoteAttachmentByFileNameForHttpResponse(
2172221721
logger.debug("POST " + genericUrl.toString());
2172321722
}
2172421723
java.nio.file.Path bodyPath = body.toPath();
21725-
String mimeType = Files.probeContentType(bodyPath);
21724+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2172621725
HttpContent content = null;
2172721726
content = new FileContent(mimeType, body);
2172821727
Credential credential =
@@ -22161,7 +22160,7 @@ public HttpResponse updateInvoiceAttachmentByFileNameForHttpResponse(
2216122160
logger.debug("POST " + genericUrl.toString());
2216222161
}
2216322162
java.nio.file.Path bodyPath = body.toPath();
22164-
String mimeType = Files.probeContentType(bodyPath);
22163+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2216522164
HttpContent content = null;
2216622165
content = new FileContent(mimeType, body);
2216722166
Credential credential =
@@ -22716,7 +22715,7 @@ public HttpResponse updateManualJournalAttachmentByFileNameForHttpResponse(
2271622715
logger.debug("POST " + genericUrl.toString());
2271722716
}
2271822717
java.nio.file.Path bodyPath = body.toPath();
22719-
String mimeType = Files.probeContentType(bodyPath);
22718+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2272022719
HttpContent content = null;
2272122720
content = new FileContent(mimeType, body);
2272222721
Credential credential =
@@ -24079,7 +24078,7 @@ public HttpResponse updatePurchaseOrderAttachmentByFileNameForHttpResponse(
2407924078
logger.debug("POST " + genericUrl.toString());
2408024079
}
2408124080
java.nio.file.Path bodyPath = body.toPath();
24082-
String mimeType = Files.probeContentType(bodyPath);
24081+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2408324082
HttpContent content = null;
2408424083
content = new FileContent(mimeType, body);
2408524084
Credential credential =
@@ -24396,7 +24395,7 @@ public HttpResponse updateQuoteAttachmentByFileNameForHttpResponse(
2439624395
logger.debug("POST " + genericUrl.toString());
2439724396
}
2439824397
java.nio.file.Path bodyPath = body.toPath();
24399-
String mimeType = Files.probeContentType(bodyPath);
24398+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2440024399
HttpContent content = null;
2440124400
content = new FileContent(mimeType, body);
2440224401
Credential credential =
@@ -24736,7 +24735,7 @@ public HttpResponse updateReceiptAttachmentByFileNameForHttpResponse(
2473624735
logger.debug("POST " + genericUrl.toString());
2473724736
}
2473824737
java.nio.file.Path bodyPath = body.toPath();
24739-
String mimeType = Files.probeContentType(bodyPath);
24738+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2474024739
HttpContent content = null;
2474124740
content = new FileContent(mimeType, body);
2474224741
Credential credential =
@@ -24968,7 +24967,7 @@ public HttpResponse updateRepeatingInvoiceAttachmentByFileNameForHttpResponse(
2496824967
logger.debug("POST " + genericUrl.toString());
2496924968
}
2497024969
java.nio.file.Path bodyPath = body.toPath();
24971-
String mimeType = Files.probeContentType(bodyPath);
24970+
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
2497224971
HttpContent content = null;
2497324972
content = new FileContent(mimeType, body);
2497424973
Credential credential =

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.9.0
5+
* The version of the OpenAPI document: 2.9.3
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.0";
50+
private String version = "4.7.0";
5151
static final Logger logger = LoggerFactory.getLogger(AssetApi.class);
5252

5353
public 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.9.0
5+
* The version of the OpenAPI document: 2.9.3
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -45,7 +45,7 @@ public class BankFeedsApi {
4545
private ApiClient apiClient;
4646
private static BankFeedsApi instance = null;
4747
private String userAgent = "Default";
48-
private String version = "4.6.0";
48+
private String version = "4.7.0";
4949
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);
5050

5151
public BankFeedsApi() {

0 commit comments

Comments
 (0)