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

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

16 Apr 2024 02:45PM UTC coverage: 12.288%. First build
#3212

push

web-flow
Merge 097c1978c into 0e4330fd3

19 of 167 new or added lines in 7 files covered. (11.38%)

12464 of 101432 relevant lines covered (12.29%)

0.12 hits per line

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

26.53
/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_CLEARING_CODE,
36
  HKLocalAccountIdentification.JSON_PROPERTY_TYPE
37
})
38

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

43
  public static final String JSON_PROPERTY_CLEARING_CODE = "clearingCode";
44
  private String clearingCode;
45

46
  /**
47
   * **hkLocal**
48
   */
49
  public enum TypeEnum {
1✔
50
    HKLOCAL("hkLocal");
1✔
51

52
    private String value;
53

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

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

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

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

79
  public static final String JSON_PROPERTY_TYPE = "type";
80
  private TypeEnum type;
81

82
  public HKLocalAccountIdentification() { 
1✔
83
  }
1✔
84

85
  public HKLocalAccountIdentification accountNumber(String accountNumber) {
86
    this.accountNumber = accountNumber;
×
87
    return this;
×
88
  }
89

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

98
  public String getAccountNumber() {
99
    return accountNumber;
×
100
  }
101

102

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

114

115
  public HKLocalAccountIdentification clearingCode(String clearingCode) {
116
    this.clearingCode = clearingCode;
×
117
    return this;
×
118
  }
119

120
   /**
121
   * The 3-digit clearing code, without separators or whitespace.
122
   * @return clearingCode
123
  **/
124
  @ApiModelProperty(required = true, value = "The 3-digit clearing code, without separators or whitespace.")
125
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
126
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
127

128
  public String getClearingCode() {
129
    return clearingCode;
×
130
  }
131

132

133
 /**
134
  * The 3-digit clearing code, without separators or whitespace.
135
  *
136
  * @param clearingCode
137
  */ 
138
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
139
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
140
  public void setClearingCode(String clearingCode) {
141
    this.clearingCode = clearingCode;
×
142
  }
×
143

144

145
  public HKLocalAccountIdentification type(TypeEnum type) {
146
    this.type = type;
×
147
    return this;
×
148
  }
149

150
   /**
151
   * **hkLocal**
152
   * @return type
153
  **/
154
  @ApiModelProperty(required = true, value = "**hkLocal**")
155
  @JsonProperty(JSON_PROPERTY_TYPE)
156
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
157

158
  public TypeEnum getType() {
159
    return type;
×
160
  }
161

162

163
 /**
164
  * **hkLocal**
165
  *
166
  * @param type
167
  */ 
168
  @JsonProperty(JSON_PROPERTY_TYPE)
169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170
  public void setType(TypeEnum type) {
171
    this.type = type;
×
172
  }
×
173

174

175
  /**
176
   * Return true if this HKLocalAccountIdentification object is equal to o.
177
   */
178
  @Override
179
  public boolean equals(Object o) {
180
    if (this == o) {
×
181
      return true;
×
182
    }
183
    if (o == null || getClass() != o.getClass()) {
×
184
      return false;
×
185
    }
186
    HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o;
×
187
    return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) &&
×
188
        Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) &&
×
189
        Objects.equals(this.type, hkLocalAccountIdentification.type);
×
190
  }
191

192
  @Override
193
  public int hashCode() {
NEW
194
    return Objects.hash(accountNumber, clearingCode, type);
×
195
  }
196

197
  @Override
198
  public String toString() {
199
    StringBuilder sb = new StringBuilder();
×
200
    sb.append("class HKLocalAccountIdentification {\n");
×
201
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
202
    sb.append("    clearingCode: ").append(toIndentedString(clearingCode)).append("\n");
×
203
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
204
    sb.append("}");
×
205
    return sb.toString();
×
206
  }
207

208
  /**
209
   * Convert the given object to string with each line indented by 4 spaces
210
   * (except the first line).
211
   */
212
  private String toIndentedString(Object o) {
213
    if (o == null) {
×
214
      return "null";
×
215
    }
216
    return o.toString().replace("\n", "\n    ");
×
217
  }
218

219
/**
220
   * Create an instance of HKLocalAccountIdentification given an JSON string
221
   *
222
   * @param jsonString JSON string
223
   * @return An instance of HKLocalAccountIdentification
224
   * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification
225
   */
226
  public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
227
    return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class);
×
228
  }
229
/**
230
  * Convert an instance of HKLocalAccountIdentification to an JSON string
231
  *
232
  * @return JSON string
233
  */
234
  public String toJson() throws JsonProcessingException {
235
    return JSON.getMapper().writeValueAsString(this);
×
236
  }
237
}
238

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