Skip to content

Commit

Permalink
Merge pull request #258 from XeroAPI/sid-development
Browse files Browse the repository at this point in the history
Build from OAS 2.9.3
  • Loading branch information
SidneyAllen authored Feb 12, 2021
2 parents fee9882 + 5f0e079 commit 3ff17c9
Show file tree
Hide file tree
Showing 21 changed files with 2,891 additions and 42 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Version 4.x and higher of Xero Java SDK only supports OAuth2 authentication and
* payroll au
* payroll uk
* payroll nz

Coming soon
* files

## SDK Documentation
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>xero-java</artifactId>
<packaging>jar</packaging>
<name>xero-java</name>
<version>4.6.0</version>
<version>4.7.0</version>
<url>https://github.com/XeroAPI/Xero-Java</url>
<description>This is the official Java SDK for Xero API</description>
<licenses>
Expand Down
49 changes: 24 additions & 25 deletions src/main/java/com/xero/api/client/AccountingApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.9.0
* The version of the OpenAPI document: 2.9.3
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -81,7 +81,6 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
Expand All @@ -98,7 +97,7 @@ public class AccountingApi {
private ApiClient apiClient;
private static AccountingApi instance = null;
private String userAgent = "Default";
private String version = "4.6.0";
private String version = "4.7.0";
static final Logger logger = LoggerFactory.getLogger(AccountingApi.class);

public AccountingApi() {
Expand Down Expand Up @@ -431,7 +430,7 @@ public HttpResponse createAccountAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -661,7 +660,7 @@ public HttpResponse createBankTransactionAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -1215,7 +1214,7 @@ public HttpResponse createBankTransferAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -1862,7 +1861,7 @@ public HttpResponse createContactAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -2649,7 +2648,7 @@ public HttpResponse createCreditNoteAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -3521,7 +3520,7 @@ public HttpResponse createInvoiceAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -4283,7 +4282,7 @@ public HttpResponse createManualJournalAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -5563,7 +5562,7 @@ public HttpResponse createPurchaseOrderAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -5998,7 +5997,7 @@ public HttpResponse createQuoteAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -6533,7 +6532,7 @@ public HttpResponse createReceiptAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -6867,7 +6866,7 @@ public HttpResponse createRepeatingInvoiceAttachmentByFileNameForHttpResponse(
logger.debug("PUT " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -20369,7 +20368,7 @@ public HttpResponse updateAccountAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -20722,7 +20721,7 @@ public HttpResponse updateBankTransactionAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -20948,7 +20947,7 @@ public HttpResponse updateBankTransferAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -21269,7 +21268,7 @@ public HttpResponse updateContactAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -21722,7 +21721,7 @@ public HttpResponse updateCreditNoteAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -22161,7 +22160,7 @@ public HttpResponse updateInvoiceAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -22716,7 +22715,7 @@ public HttpResponse updateManualJournalAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -24079,7 +24078,7 @@ public HttpResponse updatePurchaseOrderAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -24396,7 +24395,7 @@ public HttpResponse updateQuoteAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -24736,7 +24735,7 @@ public HttpResponse updateReceiptAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down Expand Up @@ -24968,7 +24967,7 @@ public HttpResponse updateRepeatingInvoiceAttachmentByFileNameForHttpResponse(
logger.debug("POST " + genericUrl.toString());
}
java.nio.file.Path bodyPath = body.toPath();
String mimeType = Files.probeContentType(bodyPath);
String mimeType = java.nio.file.Files.probeContentType(bodyPath);
HttpContent content = null;
content = new FileContent(mimeType, body);
Credential credential =
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/xero/api/client/AssetApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.9.0
* The version of the OpenAPI document: 2.9.3
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -47,7 +47,7 @@ public class AssetApi {
private ApiClient apiClient;
private static AssetApi instance = null;
private String userAgent = "Default";
private String version = "4.6.0";
private String version = "4.7.0";
static final Logger logger = LoggerFactory.getLogger(AssetApi.class);

public AssetApi() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/xero/api/client/BankFeedsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.9.0
* The version of the OpenAPI document: 2.9.3
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -45,7 +45,7 @@ public class BankFeedsApi {
private ApiClient apiClient;
private static BankFeedsApi instance = null;
private String userAgent = "Default";
private String version = "4.6.0";
private String version = "4.7.0";
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);

public BankFeedsApi() {
Expand Down
Loading

0 comments on commit 3ff17c9

Please sign in to comment.