-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAchRepaymentRelationships.java
More file actions
367 lines (304 loc) · 10.8 KB
/
AchRepaymentRelationships.java
File metadata and controls
367 lines (304 loc) · 10.8 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
/*
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package unit.java.sdk.model;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
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 java.util.Arrays;
import unit.java.sdk.model.AccountRelationship;
import unit.java.sdk.model.CounterpartyRelationship;
import unit.java.sdk.model.CreditAccountRelationship;
import unit.java.sdk.model.CustomerRelationship;
import unit.java.sdk.model.OrgRelationship;
import unit.java.sdk.model.PaymentRelationship;
import unit.java.sdk.model.RecurringRepaymentRelationship;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import unit.java.sdk.ApiClient;
/**
* AchRepaymentRelationships
*/
@JsonPropertyOrder({
AchRepaymentRelationships.JSON_PROPERTY_ACCOUNT,
AchRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT,
AchRepaymentRelationships.JSON_PROPERTY_ORG,
AchRepaymentRelationships.JSON_PROPERTY_CUSTOMER,
AchRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY,
AchRepaymentRelationships.JSON_PROPERTY_PAYMENT,
AchRepaymentRelationships.JSON_PROPERTY_RECURRING_REPAYMENT
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class AchRepaymentRelationships {
public static final String JSON_PROPERTY_ACCOUNT = "account";
private AccountRelationship account;
public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount";
private CreditAccountRelationship creditAccount;
public static final String JSON_PROPERTY_ORG = "org";
private OrgRelationship org;
public static final String JSON_PROPERTY_CUSTOMER = "customer";
private CustomerRelationship customer;
public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty";
private CounterpartyRelationship counterparty;
public static final String JSON_PROPERTY_PAYMENT = "payment";
private PaymentRelationship payment;
public static final String JSON_PROPERTY_RECURRING_REPAYMENT = "recurringRepayment";
private RecurringRepaymentRelationship recurringRepayment;
public AchRepaymentRelationships() {
}
public AchRepaymentRelationships account(AccountRelationship account) {
this.account = account;
return this;
}
/**
* Get account
* @return account
*/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public AccountRelationship getAccount() {
return account;
}
@JsonProperty(JSON_PROPERTY_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAccount(AccountRelationship account) {
this.account = account;
}
public AchRepaymentRelationships creditAccount(CreditAccountRelationship creditAccount) {
this.creditAccount = creditAccount;
return this;
}
/**
* Get creditAccount
* @return creditAccount
*/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public CreditAccountRelationship getCreditAccount() {
return creditAccount;
}
@JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCreditAccount(CreditAccountRelationship creditAccount) {
this.creditAccount = creditAccount;
}
public AchRepaymentRelationships org(OrgRelationship org) {
this.org = org;
return this;
}
/**
* Get org
* @return org
*/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ORG)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OrgRelationship getOrg() {
return org;
}
@JsonProperty(JSON_PROPERTY_ORG)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOrg(OrgRelationship org) {
this.org = org;
}
public AchRepaymentRelationships customer(CustomerRelationship customer) {
this.customer = customer;
return this;
}
/**
* Get customer
* @return customer
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CUSTOMER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomerRelationship getCustomer() {
return customer;
}
@JsonProperty(JSON_PROPERTY_CUSTOMER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCustomer(CustomerRelationship customer) {
this.customer = customer;
}
public AchRepaymentRelationships counterparty(CounterpartyRelationship counterparty) {
this.counterparty = counterparty;
return this;
}
/**
* Get counterparty
* @return counterparty
*/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_COUNTERPARTY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public CounterpartyRelationship getCounterparty() {
return counterparty;
}
@JsonProperty(JSON_PROPERTY_COUNTERPARTY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCounterparty(CounterpartyRelationship counterparty) {
this.counterparty = counterparty;
}
public AchRepaymentRelationships payment(PaymentRelationship payment) {
this.payment = payment;
return this;
}
/**
* Get payment
* @return payment
*/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_PAYMENT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public PaymentRelationship getPayment() {
return payment;
}
@JsonProperty(JSON_PROPERTY_PAYMENT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPayment(PaymentRelationship payment) {
this.payment = payment;
}
public AchRepaymentRelationships recurringRepayment(RecurringRepaymentRelationship recurringRepayment) {
this.recurringRepayment = recurringRepayment;
return this;
}
/**
* Get recurringRepayment
* @return recurringRepayment
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RECURRING_REPAYMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RecurringRepaymentRelationship getRecurringRepayment() {
return recurringRepayment;
}
@JsonProperty(JSON_PROPERTY_RECURRING_REPAYMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRecurringRepayment(RecurringRepaymentRelationship recurringRepayment) {
this.recurringRepayment = recurringRepayment;
}
/**
* Return true if this AchRepaymentRelationships object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AchRepaymentRelationships achRepaymentRelationships = (AchRepaymentRelationships) o;
return Objects.equals(this.account, achRepaymentRelationships.account) &&
Objects.equals(this.creditAccount, achRepaymentRelationships.creditAccount) &&
Objects.equals(this.org, achRepaymentRelationships.org) &&
Objects.equals(this.customer, achRepaymentRelationships.customer) &&
Objects.equals(this.counterparty, achRepaymentRelationships.counterparty) &&
Objects.equals(this.payment, achRepaymentRelationships.payment) &&
Objects.equals(this.recurringRepayment, achRepaymentRelationships.recurringRepayment);
}
@Override
public int hashCode() {
return Objects.hash(account, creditAccount, org, customer, counterparty, payment, recurringRepayment);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AchRepaymentRelationships {\n");
sb.append(" account: ").append(toIndentedString(account)).append("\n");
sb.append(" creditAccount: ").append(toIndentedString(creditAccount)).append("\n");
sb.append(" org: ").append(toIndentedString(org)).append("\n");
sb.append(" customer: ").append(toIndentedString(customer)).append("\n");
sb.append(" counterparty: ").append(toIndentedString(counterparty)).append("\n");
sb.append(" payment: ").append(toIndentedString(payment)).append("\n");
sb.append(" recurringRepayment: ").append(toIndentedString(recurringRepayment)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `account` to the URL query string
if (getAccount() != null) {
joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix));
}
// add `creditAccount` to the URL query string
if (getCreditAccount() != null) {
joiner.add(getCreditAccount().toUrlQueryString(prefix + "creditAccount" + suffix));
}
// add `org` to the URL query string
if (getOrg() != null) {
joiner.add(getOrg().toUrlQueryString(prefix + "org" + suffix));
}
// add `customer` to the URL query string
if (getCustomer() != null) {
joiner.add(getCustomer().toUrlQueryString(prefix + "customer" + suffix));
}
// add `counterparty` to the URL query string
if (getCounterparty() != null) {
joiner.add(getCounterparty().toUrlQueryString(prefix + "counterparty" + suffix));
}
// add `payment` to the URL query string
if (getPayment() != null) {
joiner.add(getPayment().toUrlQueryString(prefix + "payment" + suffix));
}
// add `recurringRepayment` to the URL query string
if (getRecurringRepayment() != null) {
joiner.add(getRecurringRepayment().toUrlQueryString(prefix + "recurringRepayment" + suffix));
}
return joiner.toString();
}
}