Skip to content

Commit 09be374

Browse files
committed
upgrade javaformatter and fix python
1 parent bf23fd2 commit 09be374

File tree

137 files changed

+53499
-46132
lines changed

Some content is hidden

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

137 files changed

+53499
-46132
lines changed

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

Lines changed: 33557 additions & 25434 deletions
Large diffs are not rendered by default.

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

Lines changed: 509 additions & 472 deletions
Large diffs are not rendered by default.

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

Lines changed: 49 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -9,115 +9,67 @@
99
* Do not edit the class manually.
1010
*/
1111

12-
1312
package com.xero.models.accounting;
14-
import java.util.Objects;
15-
import java.util.Arrays;
16-
import io.swagger.annotations.ApiModel;
17-
import java.io.IOException;
18-
19-
import org.threeten.bp.OffsetDateTime;
20-
import org.threeten.bp.LocalDateTime;
21-
import org.threeten.bp.ZoneId;
22-
import org.threeten.bp.Instant;
23-
import org.threeten.bp.LocalDate;
24-
import com.xero.api.StringUtil;
13+
14+
2515
import com.fasterxml.jackson.annotation.JsonCreator;
2616
import com.fasterxml.jackson.annotation.JsonValue;
2717

28-
/**
29-
* See Account Types
30-
*/
18+
/** See Account Types */
3119
public enum AccountType {
32-
33-
/**
34-
* BANK
35-
*/
20+
21+
/** BANK */
3622
BANK("BANK"),
37-
38-
/**
39-
* CURRENT
40-
*/
23+
24+
/** CURRENT */
4125
CURRENT("CURRENT"),
42-
43-
/**
44-
* CURRLIAB
45-
*/
26+
27+
/** CURRLIAB */
4628
CURRLIAB("CURRLIAB"),
47-
48-
/**
49-
* DEPRECIATN
50-
*/
29+
30+
/** DEPRECIATN */
5131
DEPRECIATN("DEPRECIATN"),
52-
53-
/**
54-
* DIRECTCOSTS
55-
*/
32+
33+
/** DIRECTCOSTS */
5634
DIRECTCOSTS("DIRECTCOSTS"),
57-
58-
/**
59-
* EQUITY
60-
*/
35+
36+
/** EQUITY */
6137
EQUITY("EQUITY"),
62-
63-
/**
64-
* EXPENSE
65-
*/
38+
39+
/** EXPENSE */
6640
EXPENSE("EXPENSE"),
67-
68-
/**
69-
* FIXED
70-
*/
41+
42+
/** FIXED */
7143
FIXED("FIXED"),
72-
73-
/**
74-
* INVENTORY
75-
*/
44+
45+
/** INVENTORY */
7646
INVENTORY("INVENTORY"),
77-
78-
/**
79-
* LIABILITY
80-
*/
47+
48+
/** LIABILITY */
8149
LIABILITY("LIABILITY"),
82-
83-
/**
84-
* NONCURRENT
85-
*/
50+
51+
/** NONCURRENT */
8652
NONCURRENT("NONCURRENT"),
87-
88-
/**
89-
* OTHERINCOME
90-
*/
53+
54+
/** OTHERINCOME */
9155
OTHERINCOME("OTHERINCOME"),
92-
93-
/**
94-
* OVERHEADS
95-
*/
56+
57+
/** OVERHEADS */
9658
OVERHEADS("OVERHEADS"),
97-
98-
/**
99-
* PREPAYMENT
100-
*/
59+
60+
/** PREPAYMENT */
10161
PREPAYMENT("PREPAYMENT"),
102-
103-
/**
104-
* REVENUE
105-
*/
62+
63+
/** REVENUE */
10664
REVENUE("REVENUE"),
107-
108-
/**
109-
* SALES
110-
*/
65+
66+
/** SALES */
11167
SALES("SALES"),
112-
113-
/**
114-
* TERMLIAB
115-
*/
68+
69+
/** TERMLIAB */
11670
TERMLIAB("TERMLIAB"),
117-
118-
/**
119-
* PAYG
120-
*/
71+
72+
/** PAYG */
12173
PAYG("PAYG");
12274

12375
private String value;
@@ -126,24 +78,26 @@ public enum AccountType {
12678
this.value = value;
12779
}
12880

129-
/**
130-
* @return String value
131-
*/
81+
/** @return String value */
13282
@JsonValue
13383
public String getValue() {
13484
return value;
13585
}
13686

137-
/** toString
138-
* @return String value
139-
*/
87+
/**
88+
* toString
89+
*
90+
* @return String value
91+
*/
14092
@Override
14193
public String toString() {
14294
return String.valueOf(value);
14395
}
14496

145-
/** fromValue
146-
* @param value String
97+
/**
98+
* fromValue
99+
*
100+
* @param value String
147101
*/
148102
@JsonCreator
149103
public static AccountType fromValue(String value) {
@@ -155,4 +109,3 @@ public static AccountType fromValue(String value) {
155109
throw new IllegalArgumentException("Unexpected value '" + value + "'");
156110
}
157111
}
158-

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

Lines changed: 24 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,38 @@
99
* Do not edit the class manually.
1010
*/
1111

12-
1312
package com.xero.models.accounting;
14-
import java.util.Objects;
15-
import java.util.Arrays;
16-
import com.fasterxml.jackson.annotation.JsonInclude;
13+
1714
import com.fasterxml.jackson.annotation.JsonProperty;
18-
import com.fasterxml.jackson.annotation.JsonCreator;
19-
import com.fasterxml.jackson.annotation.JsonTypeName;
20-
import com.fasterxml.jackson.annotation.JsonValue;
21-
import com.xero.models.accounting.Account;
22-
import io.swagger.annotations.ApiModel;
15+
import com.xero.api.StringUtil;
2316
import io.swagger.annotations.ApiModelProperty;
2417
import java.util.ArrayList;
2518
import java.util.List;
26-
import java.io.IOException;
27-
28-
import org.threeten.bp.OffsetDateTime;
29-
import org.threeten.bp.LocalDateTime;
30-
import org.threeten.bp.ZoneId;
31-
import org.threeten.bp.Instant;
32-
import org.threeten.bp.LocalDate;
33-
import com.xero.api.StringUtil;
34-
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
35-
36-
/**
37-
* Accounts
38-
*/
19+
import java.util.Objects;
3920

21+
/** Accounts */
4022
public class Accounts {
4123
StringUtil util = new StringUtil();
4224

4325
@JsonProperty("Accounts")
4426
private List<Account> accounts = new ArrayList<Account>();
4527
/**
46-
* accounts
47-
* @param accounts List&lt;Account&gt;
48-
* @return Accounts
49-
**/
28+
* accounts
29+
*
30+
* @param accounts List&lt;Account&gt;
31+
* @return Accounts
32+
*/
5033
public Accounts accounts(List<Account> accounts) {
5134
this.accounts = accounts;
5235
return this;
5336
}
5437

5538
/**
5639
* accounts
57-
* @param accountsItem Account
40+
*
41+
* @param accountsItem Account
5842
* @return Accounts
59-
**/
43+
*/
6044
public Accounts addAccountsItem(Account accountsItem) {
6145
if (this.accounts == null) {
6246
this.accounts = new ArrayList<Account>();
@@ -65,29 +49,30 @@ public Accounts addAccountsItem(Account accountsItem) {
6549
return this;
6650
}
6751

68-
/**
52+
/**
6953
* Get accounts
54+
*
7055
* @return accounts
71-
**/
56+
*/
7257
@ApiModelProperty(value = "")
73-
/**
58+
/**
7459
* accounts
60+
*
7561
* @return accounts List<Account>
76-
**/
62+
*/
7763
public List<Account> getAccounts() {
7864
return accounts;
7965
}
8066

81-
/**
82-
* accounts
83-
* @param accounts List&lt;Account&gt;
84-
**/
85-
67+
/**
68+
* accounts
69+
*
70+
* @param accounts List&lt;Account&gt;
71+
*/
8672
public void setAccounts(List<Account> accounts) {
8773
this.accounts = accounts;
8874
}
8975

90-
9176
@Override
9277
public boolean equals(java.lang.Object o) {
9378
if (this == o) {
@@ -105,7 +90,6 @@ public int hashCode() {
10590
return Objects.hash(accounts);
10691
}
10792

108-
10993
@Override
11094
public String toString() {
11195
StringBuilder sb = new StringBuilder();
@@ -116,15 +100,12 @@ public String toString() {
116100
}
117101

118102
/**
119-
* Convert the given object to string with each line indented by 4 spaces
120-
* (except the first line).
103+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
121104
*/
122105
private String toIndentedString(java.lang.Object o) {
123106
if (o == null) {
124107
return "null";
125108
}
126109
return o.toString().replace("\n", "\n ");
127110
}
128-
129111
}
130-

0 commit comments

Comments
 (0)