Skip to content

Commit 05ed952

Browse files
committed
v 3.1.3
Organisation - add ENUM ACCOUNTING_PRACTICE BrandingTheme - add LogoUrl and TypeEnum Accounts - add "addToWatchList" attribute
1 parent d0e2954 commit 05ed952

File tree

9 files changed

+119
-8
lines changed

9 files changed

+119
-8
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
## Current release of SDK with oAuth 2 support
66
Version 3.x of Xero Java SDK only supports oAuth2 authentication and the following API sets.
77
* accounting
8+
* identity
89
* bank feeds
10+
* payroll au
911

1012
Coming soon
1113
* fixed asset
12-
* payroll au
1314
* payroll nz/uk
1415
* files
1516
* projects

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>3.1.2</version>
8+
<version>3.1.3</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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class AccountingApi {
100100
private ApiClient apiClient;
101101
private static AccountingApi instance = null;
102102
private String userAgent = "Default";
103-
private String version = "3.1.2";
103+
private String version = "3.1.3";
104104

105105
public AccountingApi() {
106106
this(new ApiClient());

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 = "3.1.2";
48+
private String version = "3.1.3";
4949

5050
public BankFeedsApi() {
5151
this(new ApiClient());

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class IdentityApi {
4040
private ApiClient apiClient;
4141
private static IdentityApi instance = null;
4242
private String userAgent = "Default";
43-
private String version = "3.1.1";
43+
private String version = "3.1.3";
4444

4545
public IdentityApi() {
4646
this(new ApiClient());
@@ -101,6 +101,7 @@ public HttpResponse getConnectionsForHttpResponse(String accessToken) throws IOE
101101
throw new IllegalArgumentException("Missing the required parameter 'accessToken' when calling getConnections");
102102
}
103103
HttpHeaders headers = new HttpHeaders();
104+
104105
headers.setAccept("application/json");
105106
headers.setUserAgent(this.getUserAgent());
106107

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class PayrollAuApi {
5959
private ApiClient apiClient;
6060
private static PayrollAuApi instance = null;
6161
private String userAgent = "Default";
62-
private String version = "3.1.2";
62+
private String version = "3.1.3";
6363

6464
public PayrollAuApi() {
6565
this(new ApiClient());

src/main/java/com/xero/models/accounting/Account.java

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ public static SystemAccountEnum fromValue(String value) {
286286
private OffsetDateTime updatedDateUTC;
287287

288288

289+
@JsonProperty("AddToWatchlist")
290+
private Boolean addToWatchlist;
291+
292+
289293
@JsonProperty("ValidationErrors")
290294
private List<ValidationError> validationErrors = new ArrayList<ValidationError>();
291295

@@ -559,6 +563,24 @@ public OffsetDateTime getUpdatedDateUTC() {
559563
return updatedDateUTC;
560564
}
561565

566+
public Account addToWatchlist(Boolean addToWatchlist) {
567+
this.addToWatchlist = addToWatchlist;
568+
return this;
569+
}
570+
571+
/**
572+
* Boolean – describes whether the account is shown in the watchlist widget on the dashboard
573+
* @return addToWatchlist
574+
**/
575+
@ApiModelProperty(value = "Boolean – describes whether the account is shown in the watchlist widget on the dashboard")
576+
public Boolean getAddToWatchlist() {
577+
return addToWatchlist;
578+
}
579+
580+
public void setAddToWatchlist(Boolean addToWatchlist) {
581+
this.addToWatchlist = addToWatchlist;
582+
}
583+
562584
public Account validationErrors(List<ValidationError> validationErrors) {
563585
this.validationErrors = validationErrors;
564586
return this;
@@ -613,12 +635,13 @@ public boolean equals(java.lang.Object o) {
613635
Objects.equals(this.reportingCodeName, account.reportingCodeName) &&
614636
Objects.equals(this.hasAttachments, account.hasAttachments) &&
615637
Objects.equals(this.updatedDateUTC, account.updatedDateUTC) &&
638+
Objects.equals(this.addToWatchlist, account.addToWatchlist) &&
616639
Objects.equals(this.validationErrors, account.validationErrors);
617640
}
618641

619642
@Override
620643
public int hashCode() {
621-
return Objects.hash(code, name, accountID, type, bankAccountNumber, status, description, bankAccountType, currencyCode, taxType, enablePaymentsToAccount, showInExpenseClaims, propertyClass, systemAccount, reportingCode, reportingCodeName, hasAttachments, updatedDateUTC, validationErrors);
644+
return Objects.hash(code, name, accountID, type, bankAccountNumber, status, description, bankAccountType, currencyCode, taxType, enablePaymentsToAccount, showInExpenseClaims, propertyClass, systemAccount, reportingCode, reportingCodeName, hasAttachments, updatedDateUTC, addToWatchlist, validationErrors);
622645
}
623646

624647

@@ -644,6 +667,7 @@ public String toString() {
644667
sb.append(" reportingCodeName: ").append(toIndentedString(reportingCodeName)).append("\n");
645668
sb.append(" hasAttachments: ").append(toIndentedString(hasAttachments)).append("\n");
646669
sb.append(" updatedDateUTC: ").append(toIndentedString(updatedDateUTC)).append("\n");
670+
sb.append(" addToWatchlist: ").append(toIndentedString(addToWatchlist)).append("\n");
647671
sb.append(" validationErrors: ").append(toIndentedString(validationErrors)).append("\n");
648672
sb.append("}");
649673
return sb.toString();

src/main/java/com/xero/models/accounting/BrandingTheme.java

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,47 @@ public class BrandingTheme {
3939
private String name;
4040

4141

42+
@JsonProperty("LogoUrl")
43+
private String logoUrl;
44+
45+
/**
46+
* Always INVOICE
47+
*/
48+
public enum TypeEnum {
49+
INVOICE("INVOICE");
50+
51+
private String value;
52+
53+
TypeEnum(String value) {
54+
this.value = value;
55+
}
56+
57+
@JsonValue
58+
public String getValue() {
59+
return value;
60+
}
61+
62+
@Override
63+
public String toString() {
64+
return String.valueOf(value);
65+
}
66+
67+
@JsonCreator
68+
public static TypeEnum fromValue(String value) {
69+
for (TypeEnum b : TypeEnum.values()) {
70+
if (b.value.equals(value)) {
71+
return b;
72+
}
73+
}
74+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
75+
}
76+
}
77+
78+
79+
@JsonProperty("Type")
80+
private TypeEnum type;
81+
82+
4283
@JsonProperty("SortOrder")
4384
private Integer sortOrder;
4485

@@ -82,6 +123,42 @@ public void setName(String name) {
82123
this.name = name;
83124
}
84125

126+
public BrandingTheme logoUrl(String logoUrl) {
127+
this.logoUrl = logoUrl;
128+
return this;
129+
}
130+
131+
/**
132+
* The location of the image file used as the logo on this branding theme
133+
* @return logoUrl
134+
**/
135+
@ApiModelProperty(value = "The location of the image file used as the logo on this branding theme")
136+
public String getLogoUrl() {
137+
return logoUrl;
138+
}
139+
140+
public void setLogoUrl(String logoUrl) {
141+
this.logoUrl = logoUrl;
142+
}
143+
144+
public BrandingTheme type(TypeEnum type) {
145+
this.type = type;
146+
return this;
147+
}
148+
149+
/**
150+
* Always INVOICE
151+
* @return type
152+
**/
153+
@ApiModelProperty(value = "Always INVOICE")
154+
public TypeEnum getType() {
155+
return type;
156+
}
157+
158+
public void setType(TypeEnum type) {
159+
this.type = type;
160+
}
161+
85162
public BrandingTheme sortOrder(Integer sortOrder) {
86163
this.sortOrder = sortOrder;
87164
return this;
@@ -130,13 +207,15 @@ public boolean equals(java.lang.Object o) {
130207
BrandingTheme brandingTheme = (BrandingTheme) o;
131208
return Objects.equals(this.brandingThemeID, brandingTheme.brandingThemeID) &&
132209
Objects.equals(this.name, brandingTheme.name) &&
210+
Objects.equals(this.logoUrl, brandingTheme.logoUrl) &&
211+
Objects.equals(this.type, brandingTheme.type) &&
133212
Objects.equals(this.sortOrder, brandingTheme.sortOrder) &&
134213
Objects.equals(this.createdDateUTC, brandingTheme.createdDateUTC);
135214
}
136215

137216
@Override
138217
public int hashCode() {
139-
return Objects.hash(brandingThemeID, name, sortOrder, createdDateUTC);
218+
return Objects.hash(brandingThemeID, name, logoUrl, type, sortOrder, createdDateUTC);
140219
}
141220

142221

@@ -146,6 +225,8 @@ public String toString() {
146225
sb.append("class BrandingTheme {\n");
147226
sb.append(" brandingThemeID: ").append(toIndentedString(brandingThemeID)).append("\n");
148227
sb.append(" name: ").append(toIndentedString(name)).append("\n");
228+
sb.append(" logoUrl: ").append(toIndentedString(logoUrl)).append("\n");
229+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
149230
sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).append("\n");
150231
sb.append(" createdDateUTC: ").append(toIndentedString(createdDateUTC)).append("\n");
151232
sb.append("}");

src/main/java/com/xero/models/accounting/Organisation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ public static VersionEnum fromValue(String value) {
119119
* Organisation Type
120120
*/
121121
public enum OrganisationTypeEnum {
122+
ACCOUNTING_PRACTICE("ACCOUNTING_PRACTICE"),
123+
122124
COMPANY("COMPANY"),
123125

124126
CHARITY("CHARITY"),
@@ -346,6 +348,8 @@ public static SalesTaxPeriodEnum fromValue(String value) {
346348
* Organisation Type
347349
*/
348350
public enum OrganisationEntityTypeEnum {
351+
ACCOUNTING_PRACTICE("ACCOUNTING_PRACTICE"),
352+
349353
COMPANY("COMPANY"),
350354

351355
CHARITY("CHARITY"),

0 commit comments

Comments
 (0)