Skip to content

Commit be8c72d

Browse files
committed
Build from version 2.4.2
1 parent e5f09d4 commit be8c72d

444 files changed

Lines changed: 1559 additions & 466 deletions

File tree

Some content is hidden

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

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.3.3</version>
8+
<version>4.3.4</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: 101 additions & 24 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class AssetApi {
3535
private ApiClient apiClient;
3636
private static AssetApi instance = null;
3737
private String userAgent = "Default";
38-
private String version = "4.3.3";
38+
private String version = "4.3.4";
3939
static final Logger logger = LoggerFactory.getLogger(AssetApi.class);
4040

4141
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
@@ -33,7 +33,7 @@ public class BankFeedsApi {
3333
private ApiClient apiClient;
3434
private static BankFeedsApi instance = null;
3535
private String userAgent = "Default";
36-
private String version = "4.3.3";
36+
private String version = "4.3.4";
3737
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);
3838

3939
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
@@ -31,7 +31,7 @@ public class IdentityApi {
3131
private ApiClient apiClient;
3232
private static IdentityApi instance = null;
3333
private String userAgent = "Default";
34-
private String version = "4.3.3";
34+
private String version = "4.3.4";
3535
static final Logger logger = LoggerFactory.getLogger(IdentityApi.class);
3636

3737
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
@@ -50,7 +50,7 @@ public class PayrollAuApi {
5050
private ApiClient apiClient;
5151
private static PayrollAuApi instance = null;
5252
private String userAgent = "Default";
53-
private String version = "4.3.3";
53+
private String version = "4.3.4";
5454
static final Logger logger = LoggerFactory.getLogger(PayrollAuApi.class);
5555

5656
public PayrollAuApi() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class PayrollNzApi {
9292
private ApiClient apiClient;
9393
private static PayrollNzApi instance = null;
9494
private String userAgent = "Default";
95-
private String version = "4.3.3";
95+
private String version = "4.3.4";
9696
static final Logger logger = LoggerFactory.getLogger(PayrollNzApi.class);
9797

9898
public PayrollNzApi() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class PayrollUkApi {
9292
private ApiClient apiClient;
9393
private static PayrollUkApi instance = null;
9494
private String userAgent = "Default";
95-
private String version = "4.3.3";
95+
private String version = "4.3.4";
9696
static final Logger logger = LoggerFactory.getLogger(PayrollUkApi.class);
9797

9898
public PayrollUkApi() {

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

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.google.api.client.http.HttpTransport;
1414
import com.xero.api.ApiClient;
1515
import com.xero.api.XeroApiExceptionHandler;
16+
import com.xero.models.project.ChargeType;
1617
import com.xero.models.project.Project;
1718
import com.xero.models.project.ProjectCreateOrUpdate;
1819
import com.xero.models.project.ProjectPatch;
@@ -41,7 +42,7 @@ public class ProjectApi {
4142
private ApiClient apiClient;
4243
private static ProjectApi instance = null;
4344
private String userAgent = "Default";
44-
private String version = "4.3.3";
45+
private String version = "4.3.4";
4546
static final Logger logger = LoggerFactory.getLogger(ProjectApi.class);
4647

4748
public ProjectApi() {
@@ -752,6 +753,7 @@ public HttpResponse getTaskForHttpResponse(
752753
* a paged response - Must be a number between 1 and 500.
753754
* @param taskIds taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e.
754755
* GET https://.../tasks?taskIds&#x3D;{taskId},{taskId}
756+
* @param chargeType The chargeType parameter
755757
* @param accessToken Authorization token for user set in header of each request
756758
* @return Tasks
757759
* @throws IOException if an error occurs while attempting to invoke the API
@@ -762,12 +764,14 @@ public Tasks getTasks(
762764
UUID projectId,
763765
Integer page,
764766
Integer pageSize,
765-
String taskIds)
767+
String taskIds,
768+
ChargeType chargeType)
766769
throws IOException {
767770
try {
768771
TypeReference<Tasks> typeRef = new TypeReference<Tasks>() {};
769772
HttpResponse response =
770-
getTasksForHttpResponse(accessToken, xeroTenantId, projectId, page, pageSize, taskIds);
773+
getTasksForHttpResponse(
774+
accessToken, xeroTenantId, projectId, page, pageSize, taskIds, chargeType);
771775
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
772776
} catch (HttpResponseException e) {
773777
if (logger.isDebugEnabled()) {
@@ -791,7 +795,8 @@ public HttpResponse getTasksForHttpResponse(
791795
UUID projectId,
792796
Integer page,
793797
Integer pageSize,
794-
String taskIds)
798+
String taskIds,
799+
ChargeType chargeType)
795800
throws IOException {
796801
// verify the required parameter 'xeroTenantId' is set
797802
if (xeroTenantId == null) {
@@ -849,6 +854,17 @@ public HttpResponse getTasksForHttpResponse(
849854
uriBuilder = uriBuilder.queryParam(key, value);
850855
}
851856
}
857+
if (chargeType != null) {
858+
String key = "chargeType";
859+
Object value = chargeType;
860+
if (value instanceof Collection) {
861+
uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
862+
} else if (value instanceof Object[]) {
863+
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
864+
} else {
865+
uriBuilder = uriBuilder.queryParam(key, value);
866+
}
867+
}
852868
String url = uriBuilder.buildFromMap(uriVariables).toString();
853869
GenericUrl genericUrl = new GenericUrl(url);
854870
if (logger.isDebugEnabled()) {

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.3.7
5+
* The version of the OpenAPI document: 2.4.2
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)