• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #3188

26 Mar 2024 10:51AM UTC coverage: 12.292%. First build
#3188

push

web-flow
Merge bb2b851b6 into 78d4e3259

0 of 187 new or added lines in 22 files covered. (0.0%)

12444 of 101236 relevant lines covered (12.29%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.65
/src/main/java/com/adyen/model/legalentitymanagement/USLocalAccountIdentification.java
1
/*
2
 * Legal Entity Management API
3
 *
4
 * The version of the OpenAPI document: 3
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.legalentitymanagement;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.fasterxml.jackson.annotation.JsonInclude;
20
import com.fasterxml.jackson.annotation.JsonProperty;
21
import com.fasterxml.jackson.annotation.JsonCreator;
22
import com.fasterxml.jackson.annotation.JsonTypeName;
23
import com.fasterxml.jackson.annotation.JsonValue;
24
import io.swagger.annotations.ApiModel;
25
import io.swagger.annotations.ApiModelProperty;
26
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27
import com.fasterxml.jackson.core.JsonProcessingException;
28

29

30
/**
31
 * USLocalAccountIdentification
32
 */
33
@JsonPropertyOrder({
34
  USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  USLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE,
36
  USLocalAccountIdentification.JSON_PROPERTY_ROUTING_NUMBER,
37
  USLocalAccountIdentification.JSON_PROPERTY_TYPE
38
})
39

40
public class USLocalAccountIdentification {
41
  public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber";
42
  private String accountNumber;
43

44
  /**
45
   * The bank account type.  Possible values: **checking** or **savings**. Defaults to **checking**.
46
   */
47
  public enum AccountTypeEnum {
1✔
48
    CHECKING("checking"),
1✔
49
    
50
    SAVINGS("savings");
1✔
51

52
    private String value;
53

54
    AccountTypeEnum(String value) {
1✔
55
      this.value = value;
1✔
56
    }
1✔
57

58
    @JsonValue
59
    public String getValue() {
60
      return value;
×
61
    }
62

63
    @Override
64
    public String toString() {
65
      return String.valueOf(value);
×
66
    }
67

68
    @JsonCreator
69
    public static AccountTypeEnum fromValue(String value) {
70
      for (AccountTypeEnum b : AccountTypeEnum.values()) {
1✔
71
        if (b.value.equals(value)) {
1✔
72
          return b;
1✔
73
        }
74
      }
75
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
76
    }
77
  }
78

79
  public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType";
80
  private AccountTypeEnum accountType;
81

82
  public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber";
83
  private String routingNumber;
84

85
  /**
86
   * **usLocal**
87
   */
88
  public enum TypeEnum {
1✔
89
    USLOCAL("usLocal");
1✔
90

91
    private String value;
92

93
    TypeEnum(String value) {
1✔
94
      this.value = value;
1✔
95
    }
1✔
96

97
    @JsonValue
98
    public String getValue() {
99
      return value;
1✔
100
    }
101

102
    @Override
103
    public String toString() {
104
      return String.valueOf(value);
×
105
    }
106

107
    @JsonCreator
108
    public static TypeEnum fromValue(String value) {
109
      for (TypeEnum b : TypeEnum.values()) {
1✔
110
        if (b.value.equals(value)) {
1✔
111
          return b;
1✔
112
        }
113
      }
114
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
115
    }
116
  }
117

118
  public static final String JSON_PROPERTY_TYPE = "type";
119
  private TypeEnum type;
120

121
  public USLocalAccountIdentification() { 
1✔
122
  }
1✔
123

124
  public USLocalAccountIdentification accountNumber(String accountNumber) {
125
    this.accountNumber = accountNumber;
×
126
    return this;
×
127
  }
128

129
   /**
130
   * The bank account number, without separators or whitespace.
131
   * @return accountNumber
132
  **/
133
  @ApiModelProperty(required = true, value = "The bank account number, without separators or whitespace.")
134
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
135
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
136

137
  public String getAccountNumber() {
138
    return accountNumber;
×
139
  }
140

141

142
 /**
143
  * The bank account number, without separators or whitespace.
144
  *
145
  * @param accountNumber
146
  */ 
147
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
148
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
149
  public void setAccountNumber(String accountNumber) {
150
    this.accountNumber = accountNumber;
1✔
151
  }
1✔
152

153

154
  public USLocalAccountIdentification accountType(AccountTypeEnum accountType) {
155
    this.accountType = accountType;
×
156
    return this;
×
157
  }
158

159
   /**
160
   * The bank account type.  Possible values: **checking** or **savings**. Defaults to **checking**.
161
   * @return accountType
162
  **/
163
  @ApiModelProperty(value = "The bank account type.  Possible values: **checking** or **savings**. Defaults to **checking**.")
164
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
165
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
166

167
  public AccountTypeEnum getAccountType() {
168
    return accountType;
×
169
  }
170

171

172
 /**
173
  * The bank account type.  Possible values: **checking** or **savings**. Defaults to **checking**.
174
  *
175
  * @param accountType
176
  */ 
177
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
178
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
179
  public void setAccountType(AccountTypeEnum accountType) {
180
    this.accountType = accountType;
1✔
181
  }
1✔
182

183

184
  public USLocalAccountIdentification routingNumber(String routingNumber) {
185
    this.routingNumber = routingNumber;
×
186
    return this;
×
187
  }
188

189
   /**
190
   * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
191
   * @return routingNumber
192
  **/
193
  @ApiModelProperty(required = true, value = "The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.")
194
  @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER)
195
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
196

197
  public String getRoutingNumber() {
198
    return routingNumber;
×
199
  }
200

201

202
 /**
203
  * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
204
  *
205
  * @param routingNumber
206
  */ 
207
  @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER)
208
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
209
  public void setRoutingNumber(String routingNumber) {
210
    this.routingNumber = routingNumber;
1✔
211
  }
1✔
212

213

214
  public USLocalAccountIdentification type(TypeEnum type) {
215
    this.type = type;
×
216
    return this;
×
217
  }
218

219
   /**
220
   * **usLocal**
221
   * @return type
222
  **/
223
  @ApiModelProperty(required = true, value = "**usLocal**")
224
  @JsonProperty(JSON_PROPERTY_TYPE)
225
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
226

227
  public TypeEnum getType() {
228
    return type;
×
229
  }
230

231

232
 /**
233
  * **usLocal**
234
  *
235
  * @param type
236
  */ 
237
  @JsonProperty(JSON_PROPERTY_TYPE)
238
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
239
  public void setType(TypeEnum type) {
240
    this.type = type;
1✔
241
  }
1✔
242

243

244
  /**
245
   * Return true if this USLocalAccountIdentification object is equal to o.
246
   */
247
  @Override
248
  public boolean equals(Object o) {
249
    if (this == o) {
×
250
      return true;
×
251
    }
252
    if (o == null || getClass() != o.getClass()) {
×
253
      return false;
×
254
    }
255
    USLocalAccountIdentification usLocalAccountIdentification = (USLocalAccountIdentification) o;
×
256
    return Objects.equals(this.accountNumber, usLocalAccountIdentification.accountNumber) &&
×
257
        Objects.equals(this.accountType, usLocalAccountIdentification.accountType) &&
×
258
        Objects.equals(this.routingNumber, usLocalAccountIdentification.routingNumber) &&
×
259
        Objects.equals(this.type, usLocalAccountIdentification.type);
×
260
  }
261

262
  @Override
263
  public int hashCode() {
NEW
264
    return Objects.hash(accountNumber, accountType, routingNumber, type);
×
265
  }
266

267
  @Override
268
  public String toString() {
269
    StringBuilder sb = new StringBuilder();
×
270
    sb.append("class USLocalAccountIdentification {\n");
×
271
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
272
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
×
273
    sb.append("    routingNumber: ").append(toIndentedString(routingNumber)).append("\n");
×
274
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
275
    sb.append("}");
×
276
    return sb.toString();
×
277
  }
278

279
  /**
280
   * Convert the given object to string with each line indented by 4 spaces
281
   * (except the first line).
282
   */
283
  private String toIndentedString(Object o) {
284
    if (o == null) {
×
285
      return "null";
×
286
    }
287
    return o.toString().replace("\n", "\n    ");
×
288
  }
289

290
/**
291
   * Create an instance of USLocalAccountIdentification given an JSON string
292
   *
293
   * @param jsonString JSON string
294
   * @return An instance of USLocalAccountIdentification
295
   * @throws JsonProcessingException if the JSON string is invalid with respect to USLocalAccountIdentification
296
   */
297
  public static USLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
298
    return JSON.getMapper().readValue(jsonString, USLocalAccountIdentification.class);
×
299
  }
300
/**
301
  * Convert an instance of USLocalAccountIdentification to an JSON string
302
  *
303
  * @return JSON string
304
  */
305
  public String toJson() throws JsonProcessingException {
306
    return JSON.getMapper().writeValueAsString(this);
×
307
  }
308
}
309

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc