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

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

05 Apr 2024 12:25PM UTC coverage: 12.289%. First build
#3208

push

web-flow
Merge 63ea3061b into 0e4330fd3

19 of 150 new or added lines in 6 files covered. (12.67%)

12464 of 101425 relevant lines covered (12.29%)

0.12 hits per line

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

23.21
/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_BIC,
36
  HKLocalAccountIdentification.JSON_PROPERTY_CLEARING_CODE,
37
  HKLocalAccountIdentification.JSON_PROPERTY_TYPE
38
})
39

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

44
  public static final String JSON_PROPERTY_BIC = "bic";
45
  private String bic;
46

47
  public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode";
48
  private String clearingCode;
49

50
  /**
51
   * **hkLocal**
52
   */
53
  public enum TypeEnum {
1✔
54
    HKLOCAL("hkLocal");
1✔
55

56
    private String value;
57

58
    TypeEnum(String value) {
1✔
59
      this.value = value;
1✔
60
    }
1✔
61

62
    @JsonValue
63
    public String getValue() {
64
      return value;
1✔
65
    }
66

67
    @Override
68
    public String toString() {
69
      return String.valueOf(value);
×
70
    }
71

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

83
  public static final String JSON_PROPERTY_TYPE = "type";
84
  private TypeEnum type;
85

86
  public HKLocalAccountIdentification() { 
1✔
87
  }
1✔
88

89
  public HKLocalAccountIdentification accountNumber(String accountNumber) {
90
    this.accountNumber = accountNumber;
×
91
    return this;
×
92
  }
93

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

102
  public String getAccountNumber() {
103
    return accountNumber;
×
104
  }
105

106

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

118

119
  public HKLocalAccountIdentification bic(String bic) {
120
    this.bic = bic;
×
121
    return this;
×
122
  }
123

124
   /**
125
   * The bank's 8- or 11-character BIC or SWIFT code.
126
   * @return bic
127
  **/
128
  @ApiModelProperty(value = "The bank's 8- or 11-character BIC or SWIFT code.")
129
  @JsonProperty(JSON_PROPERTY_BIC)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131

132
  public String getBic() {
133
    return bic;
×
134
  }
135

136

137
 /**
138
  * The bank's 8- or 11-character BIC or SWIFT code.
139
  *
140
  * @param bic
141
  */ 
142
  @JsonProperty(JSON_PROPERTY_BIC)
143
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
144
  public void setBic(String bic) {
145
    this.bic = bic;
×
146
  }
×
147

148

149
  public HKLocalAccountIdentification clearingCode(String clearingCode) {
150
    this.clearingCode = clearingCode;
×
151
    return this;
×
152
  }
153

154
   /**
155
   * The 3-digit clearing code, without separators or whitespace.
156
   * @return clearingCode
157
  **/
158
  @ApiModelProperty(required = true, value = "The 3-digit clearing code, without separators or whitespace.")
159
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
160
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
161

162
  public String getClearingCode() {
163
    return clearingCode;
×
164
  }
165

166

167
 /**
168
  * The 3-digit clearing code, without separators or whitespace.
169
  *
170
  * @param clearingCode
171
  */ 
172
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
173
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
174
  public void setClearingCode(String clearingCode) {
175
    this.clearingCode = clearingCode;
×
176
  }
×
177

178

179
  public HKLocalAccountIdentification type(TypeEnum type) {
180
    this.type = type;
×
181
    return this;
×
182
  }
183

184
   /**
185
   * **hkLocal**
186
   * @return type
187
  **/
188
  @ApiModelProperty(required = true, value = "**hkLocal**")
189
  @JsonProperty(JSON_PROPERTY_TYPE)
190
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
191

192
  public TypeEnum getType() {
193
    return type;
×
194
  }
195

196

197
 /**
198
  * **hkLocal**
199
  *
200
  * @param type
201
  */ 
202
  @JsonProperty(JSON_PROPERTY_TYPE)
203
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
204
  public void setType(TypeEnum type) {
205
    this.type = type;
×
206
  }
×
207

208

209
  /**
210
   * Return true if this HKLocalAccountIdentification object is equal to o.
211
   */
212
  @Override
213
  public boolean equals(Object o) {
214
    if (this == o) {
×
215
      return true;
×
216
    }
217
    if (o == null || getClass() != o.getClass()) {
×
218
      return false;
×
219
    }
220
    HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o;
×
221
    return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) &&
×
222
        Objects.equals(this.bic, hkLocalAccountIdentification.bic) &&
×
223
        Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) &&
×
224
        Objects.equals(this.type, hkLocalAccountIdentification.type);
×
225
  }
226

227
  @Override
228
  public int hashCode() {
NEW
229
    return Objects.hash(accountNumber, bic, clearingCode, type);
×
230
  }
231

232
  @Override
233
  public String toString() {
234
    StringBuilder sb = new StringBuilder();
×
235
    sb.append("class HKLocalAccountIdentification {\n");
×
236
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
237
    sb.append("    bic: ").append(toIndentedString(bic)).append("\n");
×
238
    sb.append("    clearingCode: ").append(toIndentedString(clearingCode)).append("\n");
×
239
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
240
    sb.append("}");
×
241
    return sb.toString();
×
242
  }
243

244
  /**
245
   * Convert the given object to string with each line indented by 4 spaces
246
   * (except the first line).
247
   */
248
  private String toIndentedString(Object o) {
249
    if (o == null) {
×
250
      return "null";
×
251
    }
252
    return o.toString().replace("\n", "\n    ");
×
253
  }
254

255
/**
256
   * Create an instance of HKLocalAccountIdentification given an JSON string
257
   *
258
   * @param jsonString JSON string
259
   * @return An instance of HKLocalAccountIdentification
260
   * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification
261
   */
262
  public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
263
    return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class);
×
264
  }
265
/**
266
  * Convert an instance of HKLocalAccountIdentification to an JSON string
267
  *
268
  * @return JSON string
269
  */
270
  public String toJson() throws JsonProcessingException {
271
    return JSON.getMapper().writeValueAsString(this);
×
272
  }
273
}
274

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