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

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

16 May 2024 08:16AM UTC coverage: 12.058%. First build
#3282

push

web-flow
Merge 18d742d7d into 043846b65

22 of 2357 new or added lines in 112 files covered. (0.93%)

12467 of 103388 relevant lines covered (12.06%)

0.12 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/NumberAndBicAccountIdentification.java
1
/*
2
 * Transfer webhooks
3
 *
4
 * The version of the OpenAPI document: 4
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.transferwebhooks;
14

15
import java.util.Objects;
16
import java.util.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.transferwebhooks.AdditionalBankIdentification;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * NumberAndBicAccountIdentification
33
 */
34
@JsonPropertyOrder({
35
  NumberAndBicAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
36
  NumberAndBicAccountIdentification.JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION,
37
  NumberAndBicAccountIdentification.JSON_PROPERTY_BIC,
38
  NumberAndBicAccountIdentification.JSON_PROPERTY_TYPE
39
})
40

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

45
  public static final String JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION = "additionalBankIdentification";
46
  private AdditionalBankIdentification additionalBankIdentification;
47

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

51
  /**
52
   * **numberAndBic**
53
   */
54
  public enum TypeEnum {
×
55
    NUMBERANDBIC("numberAndBic");
×
56

57
    private String value;
58

59
    TypeEnum(String value) {
×
60
      this.value = value;
×
61
    }
×
62

63
    @JsonValue
64
    public String getValue() {
65
      return value;
×
66
    }
67

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

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

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

87
  public NumberAndBicAccountIdentification() { 
×
88
  }
×
89

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

95
   /**
96
   * The bank account number, without separators or whitespace. The length and format depends on the bank or country.
97
   * @return accountNumber
98
  **/
99
  @ApiModelProperty(required = true, value = "The bank account number, without separators or whitespace. The length and format depends on the bank or country.")
100
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
101
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
102

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

107

108
 /**
109
  * The bank account number, without separators or whitespace. The length and format depends on the bank or country.
110
  *
111
  * @param accountNumber
112
  */ 
113
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
114
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
115
  public void setAccountNumber(String accountNumber) {
116
    this.accountNumber = accountNumber;
×
117
  }
×
118

119

120
  public NumberAndBicAccountIdentification additionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) {
121
    this.additionalBankIdentification = additionalBankIdentification;
×
122
    return this;
×
123
  }
124

125
   /**
126
   * Get additionalBankIdentification
127
   * @return additionalBankIdentification
128
  **/
129
  @ApiModelProperty(value = "")
130
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION)
131
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
132

133
  public AdditionalBankIdentification getAdditionalBankIdentification() {
134
    return additionalBankIdentification;
×
135
  }
136

137

138
 /**
139
  * additionalBankIdentification
140
  *
141
  * @param additionalBankIdentification
142
  */ 
143
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_BANK_IDENTIFICATION)
144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145
  public void setAdditionalBankIdentification(AdditionalBankIdentification additionalBankIdentification) {
146
    this.additionalBankIdentification = additionalBankIdentification;
×
147
  }
×
148

149

150
  public NumberAndBicAccountIdentification bic(String bic) {
151
    this.bic = bic;
×
152
    return this;
×
153
  }
154

155
   /**
156
   * The bank's 8- or 11-character BIC or SWIFT code.
157
   * @return bic
158
  **/
159
  @ApiModelProperty(required = true, value = "The bank's 8- or 11-character BIC or SWIFT code.")
160
  @JsonProperty(JSON_PROPERTY_BIC)
161
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
162

163
  public String getBic() {
164
    return bic;
×
165
  }
166

167

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

179

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

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

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

197

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

209

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

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

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

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

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

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