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

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

16 May 2024 08:16AM UTC coverage: 12.058%. First build
#3282

push

web-flow
Merge 18d742d7d into 043846b65

22 of 2357 new or added lines in 112 files covered. (0.93%)

12467 of 103388 relevant lines covered (12.06%)

0.12 hits per line

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

0.0
/src/main/java/com/adyen/model/transferwebhooks/CALocalAccountIdentification.java
1
/*
2
 * Transfer webhooks
3
 *
4
 * The version of the OpenAPI document: 4
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.transferwebhooks;
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
 * CALocalAccountIdentification
32
 */
33
@JsonPropertyOrder({
34
  CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  CALocalAccountIdentification.JSON_PROPERTY_ACCOUNT_TYPE,
36
  CALocalAccountIdentification.JSON_PROPERTY_INSTITUTION_NUMBER,
37
  CALocalAccountIdentification.JSON_PROPERTY_TRANSIT_NUMBER,
38
  CALocalAccountIdentification.JSON_PROPERTY_TYPE
39
})
40

41
public class CALocalAccountIdentification {
42
  public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber";
43
  private String accountNumber;
44

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

53
    private String value;
54

55
    AccountTypeEnum(String value) {
×
56
      this.value = value;
×
57
    }
×
58

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

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

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

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

83
  public static final String JSON_PROPERTY_INSTITUTION_NUMBER = "institutionNumber";
84
  private String institutionNumber;
85

86
  public static final String JSON_PROPERTY_TRANSIT_NUMBER = "transitNumber";
87
  private String transitNumber;
88

89
  /**
90
   * **caLocal**
91
   */
92
  public enum TypeEnum {
×
93
    CALOCAL("caLocal");
×
94

95
    private String value;
96

97
    TypeEnum(String value) {
×
98
      this.value = value;
×
99
    }
×
100

101
    @JsonValue
102
    public String getValue() {
103
      return value;
×
104
    }
105

106
    @Override
107
    public String toString() {
108
      return String.valueOf(value);
×
109
    }
110

111
    @JsonCreator
112
    public static TypeEnum fromValue(String value) {
113
      for (TypeEnum b : TypeEnum.values()) {
×
114
        if (b.value.equals(value)) {
×
115
          return b;
×
116
        }
117
      }
118
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
119
    }
120
  }
121

122
  public static final String JSON_PROPERTY_TYPE = "type";
123
  private TypeEnum type;
124

125
  public CALocalAccountIdentification() { 
×
126
  }
×
127

128
  public CALocalAccountIdentification accountNumber(String accountNumber) {
129
    this.accountNumber = accountNumber;
×
130
    return this;
×
131
  }
132

133
   /**
134
   * The 5- to 12-digit bank account number, without separators or whitespace.
135
   * @return accountNumber
136
  **/
137
  @ApiModelProperty(required = true, value = "The 5- to 12-digit bank account number, without separators or whitespace.")
138
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
139
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
140

141
  public String getAccountNumber() {
142
    return accountNumber;
×
143
  }
144

145

146
 /**
147
  * The 5- to 12-digit bank account number, without separators or whitespace.
148
  *
149
  * @param accountNumber
150
  */ 
151
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
152
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
153
  public void setAccountNumber(String accountNumber) {
154
    this.accountNumber = accountNumber;
×
155
  }
×
156

157

158
  public CALocalAccountIdentification accountType(AccountTypeEnum accountType) {
159
    this.accountType = accountType;
×
160
    return this;
×
161
  }
162

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

171
  public AccountTypeEnum getAccountType() {
172
    return accountType;
×
173
  }
174

175

176
 /**
177
  * The bank account type.  Possible values: **checking** or **savings**. Defaults to **checking**.
178
  *
179
  * @param accountType
180
  */ 
181
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
182
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
183
  public void setAccountType(AccountTypeEnum accountType) {
184
    this.accountType = accountType;
×
185
  }
×
186

187

188
  public CALocalAccountIdentification institutionNumber(String institutionNumber) {
189
    this.institutionNumber = institutionNumber;
×
190
    return this;
×
191
  }
192

193
   /**
194
   * The 3-digit institution number, without separators or whitespace.
195
   * @return institutionNumber
196
  **/
197
  @ApiModelProperty(required = true, value = "The 3-digit institution number, without separators or whitespace.")
198
  @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER)
199
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
200

201
  public String getInstitutionNumber() {
202
    return institutionNumber;
×
203
  }
204

205

206
 /**
207
  * The 3-digit institution number, without separators or whitespace.
208
  *
209
  * @param institutionNumber
210
  */ 
211
  @JsonProperty(JSON_PROPERTY_INSTITUTION_NUMBER)
212
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213
  public void setInstitutionNumber(String institutionNumber) {
214
    this.institutionNumber = institutionNumber;
×
215
  }
×
216

217

218
  public CALocalAccountIdentification transitNumber(String transitNumber) {
219
    this.transitNumber = transitNumber;
×
220
    return this;
×
221
  }
222

223
   /**
224
   * The 5-digit transit number, without separators or whitespace.
225
   * @return transitNumber
226
  **/
227
  @ApiModelProperty(required = true, value = "The 5-digit transit number, without separators or whitespace.")
228
  @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230

231
  public String getTransitNumber() {
232
    return transitNumber;
×
233
  }
234

235

236
 /**
237
  * The 5-digit transit number, without separators or whitespace.
238
  *
239
  * @param transitNumber
240
  */ 
241
  @JsonProperty(JSON_PROPERTY_TRANSIT_NUMBER)
242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
243
  public void setTransitNumber(String transitNumber) {
244
    this.transitNumber = transitNumber;
×
245
  }
×
246

247

248
  public CALocalAccountIdentification type(TypeEnum type) {
249
    this.type = type;
×
250
    return this;
×
251
  }
252

253
   /**
254
   * **caLocal**
255
   * @return type
256
  **/
257
  @ApiModelProperty(required = true, value = "**caLocal**")
258
  @JsonProperty(JSON_PROPERTY_TYPE)
259
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
260

261
  public TypeEnum getType() {
262
    return type;
×
263
  }
264

265

266
 /**
267
  * **caLocal**
268
  *
269
  * @param type
270
  */ 
271
  @JsonProperty(JSON_PROPERTY_TYPE)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273
  public void setType(TypeEnum type) {
274
    this.type = type;
×
275
  }
×
276

277

278
  /**
279
   * Return true if this CALocalAccountIdentification object is equal to o.
280
   */
281
  @Override
282
  public boolean equals(Object o) {
283
    if (this == o) {
×
284
      return true;
×
285
    }
286
    if (o == null || getClass() != o.getClass()) {
×
287
      return false;
×
288
    }
289
    CALocalAccountIdentification caLocalAccountIdentification = (CALocalAccountIdentification) o;
×
290
    return Objects.equals(this.accountNumber, caLocalAccountIdentification.accountNumber) &&
×
291
        Objects.equals(this.accountType, caLocalAccountIdentification.accountType) &&
×
292
        Objects.equals(this.institutionNumber, caLocalAccountIdentification.institutionNumber) &&
×
293
        Objects.equals(this.transitNumber, caLocalAccountIdentification.transitNumber) &&
×
294
        Objects.equals(this.type, caLocalAccountIdentification.type);
×
295
  }
296

297
  @Override
298
  public int hashCode() {
NEW
299
    return Objects.hash(accountNumber, accountType, institutionNumber, transitNumber, type);
×
300
  }
301

302
  @Override
303
  public String toString() {
304
    StringBuilder sb = new StringBuilder();
×
305
    sb.append("class CALocalAccountIdentification {\n");
×
306
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
307
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
×
308
    sb.append("    institutionNumber: ").append(toIndentedString(institutionNumber)).append("\n");
×
309
    sb.append("    transitNumber: ").append(toIndentedString(transitNumber)).append("\n");
×
310
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
311
    sb.append("}");
×
312
    return sb.toString();
×
313
  }
314

315
  /**
316
   * Convert the given object to string with each line indented by 4 spaces
317
   * (except the first line).
318
   */
319
  private String toIndentedString(Object o) {
320
    if (o == null) {
×
321
      return "null";
×
322
    }
323
    return o.toString().replace("\n", "\n    ");
×
324
  }
325

326
/**
327
   * Create an instance of CALocalAccountIdentification given an JSON string
328
   *
329
   * @param jsonString JSON string
330
   * @return An instance of CALocalAccountIdentification
331
   * @throws JsonProcessingException if the JSON string is invalid with respect to CALocalAccountIdentification
332
   */
333
  public static CALocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
334
    return JSON.getMapper().readValue(jsonString, CALocalAccountIdentification.class);
×
335
  }
336
/**
337
  * Convert an instance of CALocalAccountIdentification to an JSON string
338
  *
339
  * @return JSON string
340
  */
341
  public String toJson() throws JsonProcessingException {
342
    return JSON.getMapper().writeValueAsString(this);
×
343
  }
344
}
345

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

© 2025 Coveralls, Inc