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

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

21 Mar 2024 11:55AM UTC coverage: 12.294%. First build
#3181

push

web-flow
Merge 6fe9f22c8 into 52cf3a369

0 of 208 new or added lines in 10 files covered. (0.0%)

12446 of 101233 relevant lines covered (12.29%)

0.12 hits per line

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

18.57
/src/main/java/com/adyen/model/legalentitymanagement/HKLocalAccountIdentification.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
 * HKLocalAccountIdentification
32
 */
33
@JsonPropertyOrder({
34
  HKLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  HKLocalAccountIdentification.JSON_PROPERTY_BANK_NAME,
36
  HKLocalAccountIdentification.JSON_PROPERTY_BIC,
37
  HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE,
38
  HKLocalAccountIdentification.JSON_PROPERTY_FORM_FACTOR,
39
  HKLocalAccountIdentification.JSON_PROPERTY_TYPE
40
})
41

42
public class HKLocalAccountIdentification {
43
  public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber";
44
  private String accountNumber;
45

46
  public static final String JSON_PROPERTY_BANK_NAME = "bankName";
47
  private String bankName;
48

49
  public static final String JSON_PROPERTY_BIC = "bic";
50
  private String bic;
51

52
  public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode";
53
  private String clearingCode;
54

55
  public static final String JSON_PROPERTY_FORM_FACTOR = "formFactor";
56
  private String formFactor;
57

58
  /**
59
   * **hkLocal**
60
   */
61
  public enum TypeEnum {
1✔
62
    HKLOCAL("hkLocal");
1✔
63

64
    private String value;
65

66
    TypeEnum(String value) {
1✔
67
      this.value = value;
1✔
68
    }
1✔
69

70
    @JsonValue
71
    public String getValue() {
72
      return value;
1✔
73
    }
74

75
    @Override
76
    public String toString() {
77
      return String.valueOf(value);
×
78
    }
79

80
    @JsonCreator
81
    public static TypeEnum fromValue(String value) {
82
      for (TypeEnum b : TypeEnum.values()) {
1✔
83
        if (b.value.equals(value)) {
1✔
84
          return b;
×
85
        }
86
      }
87
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
88
    }
89
  }
90

91
  public static final String JSON_PROPERTY_TYPE = "type";
92
  private TypeEnum type;
93

94
  public HKLocalAccountIdentification() { 
1✔
95
  }
1✔
96

97
  public HKLocalAccountIdentification accountNumber(String accountNumber) {
98
    this.accountNumber = accountNumber;
×
99
    return this;
×
100
  }
101

102
   /**
103
   * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.
104
   * @return accountNumber
105
  **/
106
  @ApiModelProperty(required = true, value = "The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.")
107
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109

110
  public String getAccountNumber() {
111
    return accountNumber;
×
112
  }
113

114

115
 /**
116
  * The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.
117
  *
118
  * @param accountNumber
119
  */ 
120
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122
  public void setAccountNumber(String accountNumber) {
123
    this.accountNumber = accountNumber;
1✔
124
  }
1✔
125

126

127
  public HKLocalAccountIdentification bankName(String bankName) {
NEW
128
    this.bankName = bankName;
×
NEW
129
    return this;
×
130
  }
131

132
   /**
133
   * The bank's name.
134
   * @return bankName
135
  **/
136
  @ApiModelProperty(value = "The bank's name.")
137
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139

140
  public String getBankName() {
NEW
141
    return bankName;
×
142
  }
143

144

145
 /**
146
  * The bank's name.
147
  *
148
  * @param bankName
149
  */ 
150
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
151
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152
  public void setBankName(String bankName) {
NEW
153
    this.bankName = bankName;
×
NEW
154
  }
×
155

156

157
  public HKLocalAccountIdentification bic(String bic) {
NEW
158
    this.bic = bic;
×
NEW
159
    return this;
×
160
  }
161

162
   /**
163
   * The bank's 8- or 11-character BIC or SWIFT code.
164
   * @return bic
165
  **/
166
  @ApiModelProperty(value = "The bank's 8- or 11-character BIC or SWIFT code.")
167
  @JsonProperty(JSON_PROPERTY_BIC)
168
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
169

170
  public String getBic() {
NEW
171
    return bic;
×
172
  }
173

174

175
 /**
176
  * The bank's 8- or 11-character BIC or SWIFT code.
177
  *
178
  * @param bic
179
  */ 
180
  @JsonProperty(JSON_PROPERTY_BIC)
181
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
182
  public void setBic(String bic) {
NEW
183
    this.bic = bic;
×
NEW
184
  }
×
185

186

187
  public HKLocalAccountIdentification clearingCode(String clearingCode) {
188
    this.clearingCode = clearingCode;
×
189
    return this;
×
190
  }
191

192
   /**
193
   * The 3-digit clearing code, without separators or whitespace.
194
   * @return clearingCode
195
  **/
196
  @ApiModelProperty(required = true, value = "The 3-digit clearing code, without separators or whitespace.")
197
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
198
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
199

200
  public String getClearingCode() {
201
    return clearingCode;
×
202
  }
203

204

205
 /**
206
  * The 3-digit clearing code, without separators or whitespace.
207
  *
208
  * @param clearingCode
209
  */ 
210
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
211
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
212
  public void setClearingCode(String clearingCode) {
213
    this.clearingCode = clearingCode;
×
214
  }
×
215

216

217
  public HKLocalAccountIdentification formFactor(String formFactor) {
218
    this.formFactor = formFactor;
×
219
    return this;
×
220
  }
221

222
   /**
223
   * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts.   Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
224
   * @return formFactor
225
  **/
226
  @ApiModelProperty(value = "Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts.   Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.")
227
  @JsonProperty(JSON_PROPERTY_FORM_FACTOR)
228
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
229

230
  public String getFormFactor() {
231
    return formFactor;
×
232
  }
233

234

235
 /**
236
  * Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts.   Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
237
  *
238
  * @param formFactor
239
  */ 
240
  @JsonProperty(JSON_PROPERTY_FORM_FACTOR)
241
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
242
  public void setFormFactor(String formFactor) {
243
    this.formFactor = formFactor;
×
244
  }
×
245

246

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

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

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

264

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

276

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

297
  @Override
298
  public int hashCode() {
NEW
299
    return Objects.hash(accountNumber, bankName, bic, clearingCode, formFactor, type);
×
300
  }
301

302
  @Override
303
  public String toString() {
304
    StringBuilder sb = new StringBuilder();
×
305
    sb.append("class HKLocalAccountIdentification {\n");
×
306
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
NEW
307
    sb.append("    bankName: ").append(toIndentedString(bankName)).append("\n");
×
NEW
308
    sb.append("    bic: ").append(toIndentedString(bic)).append("\n");
×
309
    sb.append("    clearingCode: ").append(toIndentedString(clearingCode)).append("\n");
×
310
    sb.append("    formFactor: ").append(toIndentedString(formFactor)).append("\n");
×
311
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
312
    sb.append("}");
×
313
    return sb.toString();
×
314
  }
315

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

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

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