-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathAccounts.java
More file actions
130 lines (112 loc) · 3.02 KB
/
Accounts.java
File metadata and controls
130 lines (112 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/*
* Xero Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* Contact: api@xero.com
*
* 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 java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.xero.models.accounting.Account;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.io.IOException;
import org.threeten.bp.OffsetDateTime;
import org.threeten.bp.LocalDateTime;
import org.threeten.bp.ZoneId;
import org.threeten.bp.Instant;
import org.threeten.bp.LocalDate;
import com.xero.api.StringUtil;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* Accounts
*/
public class Accounts {
StringUtil util = new StringUtil();
@JsonProperty("Accounts")
private List<Account> accounts = new ArrayList<Account>();
/**
* accounts
* @param accounts List<Account>
* @return Accounts
**/
public Accounts accounts(List<Account> accounts) {
this.accounts = accounts;
return this;
}
/**
* accounts
* @param accountsItem Account
* @return Accounts
**/
public Accounts addAccountsItem(Account accountsItem) {
if (this.accounts == null) {
this.accounts = new ArrayList<Account>();
}
this.accounts.add(accountsItem);
return this;
}
/**
* Get accounts
* @return accounts
**/
@ApiModelProperty(value = "")
/**
* accounts
* @return accounts List<Account>
**/
public List<Account> getAccounts() {
return accounts;
}
/**
* accounts
* @param accounts List<Account>
**/
public void setAccounts(List<Account> accounts) {
this.accounts = accounts;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Accounts accounts = (Accounts) o;
return Objects.equals(this.accounts, accounts.accounts);
}
@Override
public int hashCode() {
return Objects.hash(accounts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Accounts {\n");
sb.append(" accounts: ").append(toIndentedString(accounts)).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 ");
}
}