Skip to content

Commit

Permalink
Merge pull request #236 from XeroAPI/sid-development
Browse files Browse the repository at this point in the history
Build from OAS 2.3.7
  • Loading branch information
SidneyAllen authored Oct 22, 2020
2 parents ca427c8 + e5f09d4 commit a2546cf
Show file tree
Hide file tree
Showing 436 changed files with 1,710 additions and 465 deletions.
4 changes: 2 additions & 2 deletions 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.3.2</version>
<version>4.3.3</version>
<url>https://github.com/XeroAPI/Xero-Java</url>
<description>This is the official Java SDK for Xero API</description>
<licenses>
Expand Down Expand Up @@ -310,7 +310,7 @@
<jackson-version>2.9.10</jackson-version>
<jackson-databind-version>2.9.10.5</jackson-databind-version>
<jackson-threetenbp-version>2.6.4</jackson-threetenbp-version>
<junit-version>4.12</junit-version>
<junit-version>4.13.1</junit-version>
<org-apache-httpcomponents>4.5.3</org-apache-httpcomponents>
<jersey-version>2.27</jersey-version>
<threetenbp-version>2.6.4</threetenbp-version>
Expand Down
1,068 changes: 1,039 additions & 29 deletions src/main/java/com/xero/api/client/AccountingApi.java

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/AssetApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class AssetApi {
private ApiClient apiClient;
private static AssetApi instance = null;
private String userAgent = "Default";
private String version = "4.3.2";
private String version = "4.3.3";
static final Logger logger = LoggerFactory.getLogger(AssetApi.class);

public AssetApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/BankFeedsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class BankFeedsApi {
private ApiClient apiClient;
private static BankFeedsApi instance = null;
private String userAgent = "Default";
private String version = "4.3.2";
private String version = "4.3.3";
static final Logger logger = LoggerFactory.getLogger(BankFeedsApi.class);

public BankFeedsApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/IdentityApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class IdentityApi {
private ApiClient apiClient;
private static IdentityApi instance = null;
private String userAgent = "Default";
private String version = "4.3.2";
private String version = "4.3.3";
static final Logger logger = LoggerFactory.getLogger(IdentityApi.class);

public IdentityApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/PayrollAuApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class PayrollAuApi {
private ApiClient apiClient;
private static PayrollAuApi instance = null;
private String userAgent = "Default";
private String version = "4.3.2";
private String version = "4.3.3";
static final Logger logger = LoggerFactory.getLogger(PayrollAuApi.class);

public PayrollAuApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/PayrollNzApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class PayrollNzApi {
private ApiClient apiClient;
private static PayrollNzApi instance = null;
private String userAgent = "Default";
private String version = "4.3.2";
private String version = "4.3.3";
static final Logger logger = LoggerFactory.getLogger(PayrollNzApi.class);

public PayrollNzApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/PayrollUkApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class PayrollUkApi {
private ApiClient apiClient;
private static PayrollUkApi instance = null;
private String userAgent = "Default";
private String version = "4.3.2";
private String version = "4.3.3";
static final Logger logger = LoggerFactory.getLogger(PayrollUkApi.class);

public PayrollUkApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/api/client/ProjectApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class ProjectApi {
private ApiClient apiClient;
private static ProjectApi instance = null;
private String userAgent = "Default";
private String version = "4.3.2";
private String version = "4.3.3";
static final Logger logger = LoggerFactory.getLogger(ProjectApi.class);

public ProjectApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/AccountType.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Accounts.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
140 changes: 140 additions & 0 deletions src/main/java/com/xero/models/accounting/Action.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.xero.models.accounting;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;

/** Action */
public class Action {
StringUtil util = new StringUtil();

@JsonProperty("Name")
private String name;
/** Status of the action for this organisation */
public enum StatusEnum {
ALLOWED("ALLOWED"),

NOT_ALLOWED("NOT-ALLOWED");

private String value;

StatusEnum(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

@JsonProperty("Status")
private StatusEnum status;

public Action name(String name) {
this.name = name;
return this;
}

/**
* Name of the actions for this organisation
*
* @return name
*/
@ApiModelProperty(
example = "UseMulticurrency",
value = "Name of the actions for this organisation")
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Action status(StatusEnum status) {
this.status = status;
return this;
}

/**
* Status of the action for this organisation
*
* @return status
*/
@ApiModelProperty(value = "Status of the action for this organisation")
public StatusEnum getStatus() {
return status;
}

public void setStatus(StatusEnum status) {
this.status = status;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Action action = (Action) o;
return Objects.equals(this.name, action.name) && Objects.equals(this.status, action.status);
}

@Override
public int hashCode() {
return Objects.hash(name, status);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Action {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
91 changes: 91 additions & 0 deletions src/main/java/com/xero/models/accounting/Actions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.xero.models.accounting;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** Actions */
public class Actions {
StringUtil util = new StringUtil();

@JsonProperty("Actions")
private List<Action> actions = new ArrayList<Action>();

public Actions actions(List<Action> actions) {
this.actions = actions;
return this;
}

public Actions addActionsItem(Action actionsItem) {
if (this.actions == null) {
this.actions = new ArrayList<Action>();
}
this.actions.add(actionsItem);
return this;
}

/**
* Get actions
*
* @return actions
*/
@ApiModelProperty(value = "")
public List<Action> getActions() {
return actions;
}

public void setActions(List<Action> actions) {
this.actions = actions;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Actions actions = (Actions) o;
return Objects.equals(this.actions, actions.actions);
}

@Override
public int hashCode() {
return Objects.hash(actions);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Actions {\n");
sb.append(" actions: ").append(toIndentedString(actions)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Allocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Allocations.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/xero/models/accounting/Attachment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.3
* The version of the OpenAPI document: 2.3.7
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit a2546cf

Please sign in to comment.