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

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

08 Sep 2023 09:02AM CUT coverage: 13.177%. First build
#2626

push

web-flow
Merge 8f6b640e7 into ba706cfa8

1503 of 1503 new or added lines in 27 files covered. (100.0%)

10221 of 77568 relevant lines covered (13.18%)

0.13 hits per line

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

0.0
/src/main/java/com/adyen/model/balanceplatform/HKLocalAccountIdentification.java
1
/*
2
 * Configuration API
3
 *
4
 * The version of the OpenAPI document: 2
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.balanceplatform;
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 {
×
50
    HKLOCAL("hkLocal");
×
51

52
    private String value;
53

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

58
    @JsonValue
59
    public String getValue() {
60
      return value;
×
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()) {
×
71
        if (b.value.equals(value)) {
×
72
          return b;
×
73
        }
74
      }
75
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
76
    }
77
  }
78

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

82
  public HKLocalAccountIdentification() { 
×
83
  }
×
84

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

90
   /**
91
   * The 9- to 12-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 12-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
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
104
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
105
  public void setAccountNumber(String accountNumber) {
106
    this.accountNumber = accountNumber;
×
107
  }
×
108

109

110
  public HKLocalAccountIdentification clearingCode(String clearingCode) {
111
    this.clearingCode = clearingCode;
×
112
    return this;
×
113
  }
114

115
   /**
116
   * The 3-digit clearing code, without separators or whitespace.
117
   * @return clearingCode
118
  **/
119
  @ApiModelProperty(required = true, value = "The 3-digit clearing code, without separators or whitespace.")
120
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122

123
  public String getClearingCode() {
124
    return clearingCode;
×
125
  }
126

127

128
  @JsonProperty(JSON_PROPERTY_CLEARING_CODE)
129
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130
  public void setClearingCode(String clearingCode) {
131
    this.clearingCode = clearingCode;
×
132
  }
×
133

134

135
  public HKLocalAccountIdentification type(TypeEnum type) {
136
    this.type = type;
×
137
    return this;
×
138
  }
139

140
   /**
141
   * **hkLocal**
142
   * @return type
143
  **/
144
  @ApiModelProperty(required = true, value = "**hkLocal**")
145
  @JsonProperty(JSON_PROPERTY_TYPE)
146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
147

148
  public TypeEnum getType() {
149
    return type;
×
150
  }
151

152

153
  @JsonProperty(JSON_PROPERTY_TYPE)
154
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
155
  public void setType(TypeEnum type) {
156
    this.type = type;
×
157
  }
×
158

159

160
  /**
161
   * Return true if this HKLocalAccountIdentification object is equal to o.
162
   */
163
  @Override
164
  public boolean equals(Object o) {
165
    if (this == o) {
×
166
      return true;
×
167
    }
168
    if (o == null || getClass() != o.getClass()) {
×
169
      return false;
×
170
    }
171
    HKLocalAccountIdentification hkLocalAccountIdentification = (HKLocalAccountIdentification) o;
×
172
    return Objects.equals(this.accountNumber, hkLocalAccountIdentification.accountNumber) &&
×
173
        Objects.equals(this.clearingCode, hkLocalAccountIdentification.clearingCode) &&
×
174
        Objects.equals(this.type, hkLocalAccountIdentification.type);
×
175
  }
176

177
  @Override
178
  public int hashCode() {
179
    return Objects.hash(accountNumber, clearingCode, type);
×
180
  }
181

182
  @Override
183
  public String toString() {
184
    StringBuilder sb = new StringBuilder();
×
185
    sb.append("class HKLocalAccountIdentification {\n");
×
186
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
187
    sb.append("    clearingCode: ").append(toIndentedString(clearingCode)).append("\n");
×
188
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
189
    sb.append("}");
×
190
    return sb.toString();
×
191
  }
192

193
  /**
194
   * Convert the given object to string with each line indented by 4 spaces
195
   * (except the first line).
196
   */
197
  private String toIndentedString(Object o) {
198
    if (o == null) {
×
199
      return "null";
×
200
    }
201
    return o.toString().replace("\n", "\n    ");
×
202
  }
203

204
/**
205
   * Create an instance of HKLocalAccountIdentification given an JSON string
206
   *
207
   * @param jsonString JSON string
208
   * @return An instance of HKLocalAccountIdentification
209
   * @throws JsonProcessingException if the JSON string is invalid with respect to HKLocalAccountIdentification
210
   */
211
  public static HKLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
212
    return JSON.getMapper().readValue(jsonString, HKLocalAccountIdentification.class);
×
213
  }
214
/**
215
  * Convert an instance of HKLocalAccountIdentification to an JSON string
216
  *
217
  * @return JSON string
218
  */
219
  public String toJson() throws JsonProcessingException {
220
    return JSON.getMapper().writeValueAsString(this);
×
221
  }
222
}
223

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