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

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

18 Sep 2023 12:11PM UTC coverage: 13.219%. First build
#2658

push

web-flow
Merge 477a9da03 into ba706cfa8

1770 of 1770 new or added lines in 34 files covered. (100.0%)

10287 of 77817 relevant lines covered (13.22%)

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/BankAccountIdentificationTypeRequirement.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 java.util.ArrayList;
27
import java.util.List;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * BankAccountIdentificationTypeRequirement
34
 */
35
@JsonPropertyOrder({
36
  BankAccountIdentificationTypeRequirement.JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES,
37
  BankAccountIdentificationTypeRequirement.JSON_PROPERTY_DESCRIPTION,
38
  BankAccountIdentificationTypeRequirement.JSON_PROPERTY_TYPE
39
})
40

41
public class BankAccountIdentificationTypeRequirement {
42
  /**
43
   * Gets or Sets bankAccountIdentificationTypes
44
   */
45
  public enum BankAccountIdentificationTypesEnum {
×
46
    AULOCAL("auLocal"),
×
47
    
48
    BRLOCAL("brLocal"),
×
49
    
50
    CALOCAL("caLocal"),
×
51
    
52
    CZLOCAL("czLocal"),
×
53
    
54
    DKLOCAL("dkLocal"),
×
55
    
56
    HKLOCAL("hkLocal"),
×
57
    
58
    HULOCAL("huLocal"),
×
59
    
60
    IBAN("iban"),
×
61
    
62
    LEGACY("legacy"),
×
63
    
64
    NOLOCAL("noLocal"),
×
65
    
66
    NUMBERANDBIC("numberAndBic"),
×
67
    
68
    NZLOCAL("nzLocal"),
×
69
    
70
    PLLOCAL("plLocal"),
×
71
    
72
    SELOCAL("seLocal"),
×
73
    
74
    SGLOCAL("sgLocal"),
×
75
    
76
    UKLOCAL("ukLocal"),
×
77
    
78
    USLOCAL("usLocal");
×
79

80
    private String value;
81

82
    BankAccountIdentificationTypesEnum(String value) {
×
83
      this.value = value;
×
84
    }
×
85

86
    @JsonValue
87
    public String getValue() {
88
      return value;
×
89
    }
90

91
    @Override
92
    public String toString() {
93
      return String.valueOf(value);
×
94
    }
95

96
    @JsonCreator
97
    public static BankAccountIdentificationTypesEnum fromValue(String value) {
98
      for (BankAccountIdentificationTypesEnum b : BankAccountIdentificationTypesEnum.values()) {
×
99
        if (b.value.equals(value)) {
×
100
          return b;
×
101
        }
102
      }
103
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
104
    }
105
  }
106

107
  public static final String JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES = "bankAccountIdentificationTypes";
108
  private List<BankAccountIdentificationTypesEnum> bankAccountIdentificationTypes = null;
×
109

110
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
111
  private String description;
112

113
  /**
114
   * **bankAccountIdentificationTypeRequirement**
115
   */
116
  public enum TypeEnum {
×
117
    BANKACCOUNTIDENTIFICATIONTYPEREQUIREMENT("bankAccountIdentificationTypeRequirement");
×
118

119
    private String value;
120

121
    TypeEnum(String value) {
×
122
      this.value = value;
×
123
    }
×
124

125
    @JsonValue
126
    public String getValue() {
127
      return value;
×
128
    }
129

130
    @Override
131
    public String toString() {
132
      return String.valueOf(value);
×
133
    }
134

135
    @JsonCreator
136
    public static TypeEnum fromValue(String value) {
137
      for (TypeEnum b : TypeEnum.values()) {
×
138
        if (b.value.equals(value)) {
×
139
          return b;
×
140
        }
141
      }
142
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
143
    }
144
  }
145

146
  public static final String JSON_PROPERTY_TYPE = "type";
147
  private TypeEnum type = TypeEnum.BANKACCOUNTIDENTIFICATIONTYPEREQUIREMENT;
×
148

149
  public BankAccountIdentificationTypeRequirement() { 
×
150
  }
×
151

152
  public BankAccountIdentificationTypeRequirement bankAccountIdentificationTypes(List<BankAccountIdentificationTypesEnum> bankAccountIdentificationTypes) {
153
    this.bankAccountIdentificationTypes = bankAccountIdentificationTypes;
×
154
    return this;
×
155
  }
156

157
  public BankAccountIdentificationTypeRequirement addBankAccountIdentificationTypesItem(BankAccountIdentificationTypesEnum bankAccountIdentificationTypesItem) {
158
    if (this.bankAccountIdentificationTypes == null) {
×
159
      this.bankAccountIdentificationTypes = new ArrayList<>();
×
160
    }
161
    this.bankAccountIdentificationTypes.add(bankAccountIdentificationTypesItem);
×
162
    return this;
×
163
  }
164

165
   /**
166
   * List of bank account identification types: eg.; [iban , numberAndBic]
167
   * @return bankAccountIdentificationTypes
168
  **/
169
  @ApiModelProperty(value = "List of bank account identification types: eg.; [iban , numberAndBic]")
170
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES)
171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
172

173
  public List<BankAccountIdentificationTypesEnum> getBankAccountIdentificationTypes() {
174
    return bankAccountIdentificationTypes;
×
175
  }
176

177

178
  @JsonProperty(JSON_PROPERTY_BANK_ACCOUNT_IDENTIFICATION_TYPES)
179
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180
  public void setBankAccountIdentificationTypes(List<BankAccountIdentificationTypesEnum> bankAccountIdentificationTypes) {
181
    this.bankAccountIdentificationTypes = bankAccountIdentificationTypes;
×
182
  }
×
183

184

185
  public BankAccountIdentificationTypeRequirement description(String description) {
186
    this.description = description;
×
187
    return this;
×
188
  }
189

190
   /**
191
   * Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer.
192
   * @return description
193
  **/
194
  @ApiModelProperty(value = "Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer.")
195
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197

198
  public String getDescription() {
199
    return description;
×
200
  }
201

202

203
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205
  public void setDescription(String description) {
206
    this.description = description;
×
207
  }
×
208

209

210
  public BankAccountIdentificationTypeRequirement type(TypeEnum type) {
211
    this.type = type;
×
212
    return this;
×
213
  }
214

215
   /**
216
   * **bankAccountIdentificationTypeRequirement**
217
   * @return type
218
  **/
219
  @ApiModelProperty(required = true, value = "**bankAccountIdentificationTypeRequirement**")
220
  @JsonProperty(JSON_PROPERTY_TYPE)
221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
222

223
  public TypeEnum getType() {
224
    return type;
×
225
  }
226

227

228
  @JsonProperty(JSON_PROPERTY_TYPE)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230
  public void setType(TypeEnum type) {
231
    this.type = type;
×
232
  }
×
233

234

235
  /**
236
   * Return true if this BankAccountIdentificationTypeRequirement object is equal to o.
237
   */
238
  @Override
239
  public boolean equals(Object o) {
240
    if (this == o) {
×
241
      return true;
×
242
    }
243
    if (o == null || getClass() != o.getClass()) {
×
244
      return false;
×
245
    }
246
    BankAccountIdentificationTypeRequirement bankAccountIdentificationTypeRequirement = (BankAccountIdentificationTypeRequirement) o;
×
247
    return Objects.equals(this.bankAccountIdentificationTypes, bankAccountIdentificationTypeRequirement.bankAccountIdentificationTypes) &&
×
248
        Objects.equals(this.description, bankAccountIdentificationTypeRequirement.description) &&
×
249
        Objects.equals(this.type, bankAccountIdentificationTypeRequirement.type);
×
250
  }
251

252
  @Override
253
  public int hashCode() {
254
    return Objects.hash(bankAccountIdentificationTypes, description, type);
×
255
  }
256

257
  @Override
258
  public String toString() {
259
    StringBuilder sb = new StringBuilder();
×
260
    sb.append("class BankAccountIdentificationTypeRequirement {\n");
×
261
    sb.append("    bankAccountIdentificationTypes: ").append(toIndentedString(bankAccountIdentificationTypes)).append("\n");
×
262
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
263
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
264
    sb.append("}");
×
265
    return sb.toString();
×
266
  }
267

268
  /**
269
   * Convert the given object to string with each line indented by 4 spaces
270
   * (except the first line).
271
   */
272
  private String toIndentedString(Object o) {
273
    if (o == null) {
×
274
      return "null";
×
275
    }
276
    return o.toString().replace("\n", "\n    ");
×
277
  }
278

279
/**
280
   * Create an instance of BankAccountIdentificationTypeRequirement given an JSON string
281
   *
282
   * @param jsonString JSON string
283
   * @return An instance of BankAccountIdentificationTypeRequirement
284
   * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountIdentificationTypeRequirement
285
   */
286
  public static BankAccountIdentificationTypeRequirement fromJson(String jsonString) throws JsonProcessingException {
287
    return JSON.getMapper().readValue(jsonString, BankAccountIdentificationTypeRequirement.class);
×
288
  }
289
/**
290
  * Convert an instance of BankAccountIdentificationTypeRequirement to an JSON string
291
  *
292
  * @return JSON string
293
  */
294
  public String toJson() throws JsonProcessingException {
295
    return JSON.getMapper().writeValueAsString(this);
×
296
  }
297
}
298

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