• 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

20.63
/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_TYPE
39
})
40

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

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

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

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

54
  /**
55
   * **hkLocal**
56
   */
57
  public enum TypeEnum {
1✔
58
    HKLOCAL("hkLocal");
1✔
59

60
    private String value;
61

62
    TypeEnum(String value) {
1✔
63
      this.value = value;
1✔
64
    }
1✔
65

66
    @JsonValue
67
    public String getValue() {
68
      return value;
1✔
69
    }
70

71
    @Override
72
    public String toString() {
73
      return String.valueOf(value);
×
74
    }
75

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

87
  public static final String JSON_PROPERTY_TYPE = "type";
88
  private TypeEnum type;
89

90
  public HKLocalAccountIdentification() { 
1✔
91
  }
1✔
92

93
  public HKLocalAccountIdentification accountNumber(String accountNumber) {
94
    this.accountNumber = accountNumber;
×
95
    return this;
×
96
  }
97

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

106
  public String getAccountNumber() {
107
    return accountNumber;
×
108
  }
109

110

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

122

123
  public HKLocalAccountIdentification bankName(String bankName) {
124
    this.bankName = bankName;
×
125
    return this;
×
126
  }
127

128
   /**
129
   * The bank's name.
130
   * @return bankName
131
  **/
132
  @ApiModelProperty(value = "The bank's name.")
133
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135

136
  public String getBankName() {
137
    return bankName;
×
138
  }
139

140

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

152

153
  public HKLocalAccountIdentification bic(String bic) {
154
    this.bic = bic;
×
155
    return this;
×
156
  }
157

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

166
  public String getBic() {
167
    return bic;
×
168
  }
169

170

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

182

183
  public HKLocalAccountIdentification clearingCode(String clearingCode) {
184
    this.clearingCode = clearingCode;
×
185
    return this;
×
186
  }
187

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

196
  public String getClearingCode() {
197
    return clearingCode;
×
198
  }
199

200

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

212

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

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

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

230

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

242

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

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

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

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

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

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