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

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

26 Apr 2024 02:56PM UTC coverage: 12.22%. First build
#3234

push

web-flow
Merge ed82bd029 into de2f73f19

11 of 664 new or added lines in 43 files covered. (1.66%)

12466 of 102009 relevant lines covered (12.22%)

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/BRLocalAccountIdentification.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
 * BRLocalAccountIdentification
32
 */
33
@JsonPropertyOrder({
34
  BRLocalAccountIdentification.JSON_PROPERTY_ACCOUNT_NUMBER,
35
  BRLocalAccountIdentification.JSON_PROPERTY_BANK_CODE,
36
  BRLocalAccountIdentification.JSON_PROPERTY_BRANCH_NUMBER,
37
  BRLocalAccountIdentification.JSON_PROPERTY_TYPE
38
})
39

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

44
  public static final String JSON_PROPERTY_BANK_CODE = "bankCode";
45
  private String bankCode;
46

47
  public static final String JSON_PROPERTY_BRANCH_NUMBER = "branchNumber";
48
  private String branchNumber;
49

50
  /**
51
   * **brLocal**
52
   */
53
  public enum TypeEnum {
×
54
    BRLOCAL("brLocal");
×
55

56
    private String value;
57

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

62
    @JsonValue
63
    public String getValue() {
64
      return value;
×
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()) {
×
75
        if (b.value.equals(value)) {
×
76
          return b;
×
77
        }
78
      }
79
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
80
    }
81
  }
82

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

86
  public BRLocalAccountIdentification() { 
×
87
  }
×
88

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

94
   /**
95
   * The bank account number, without separators or whitespace.
96
   * @return accountNumber
97
  **/
98
  @ApiModelProperty(required = true, value = "The bank account number, without separators or whitespace.")
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 bank account number, without separators or whitespace.
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;
×
116
  }
×
117

118

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

124
   /**
125
   * The 3-digit bank code, with leading zeros.
126
   * @return bankCode
127
  **/
128
  @ApiModelProperty(required = true, value = "The 3-digit bank code, with leading zeros.")
129
  @JsonProperty(JSON_PROPERTY_BANK_CODE)
130
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
131

132
  public String getBankCode() {
133
    return bankCode;
×
134
  }
135

136

137
 /**
138
  * The 3-digit bank code, with leading zeros.
139
  *
140
  * @param bankCode
141
  */ 
142
  @JsonProperty(JSON_PROPERTY_BANK_CODE)
143
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
144
  public void setBankCode(String bankCode) {
145
    this.bankCode = bankCode;
×
146
  }
×
147

148

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

154
   /**
155
   * The bank account branch number, without separators or whitespace.
156
   * @return branchNumber
157
  **/
158
  @ApiModelProperty(required = true, value = "The bank account branch number, without separators or whitespace.")
159
  @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER)
160
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
161

162
  public String getBranchNumber() {
163
    return branchNumber;
×
164
  }
165

166

167
 /**
168
  * The bank account branch number, without separators or whitespace.
169
  *
170
  * @param branchNumber
171
  */ 
172
  @JsonProperty(JSON_PROPERTY_BRANCH_NUMBER)
173
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
174
  public void setBranchNumber(String branchNumber) {
175
    this.branchNumber = branchNumber;
×
176
  }
×
177

178

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

184
   /**
185
   * **brLocal**
186
   * @return type
187
  **/
188
  @ApiModelProperty(required = true, value = "**brLocal**")
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
  * **brLocal**
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 BRLocalAccountIdentification 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
    BRLocalAccountIdentification brLocalAccountIdentification = (BRLocalAccountIdentification) o;
×
221
    return Objects.equals(this.accountNumber, brLocalAccountIdentification.accountNumber) &&
×
222
        Objects.equals(this.bankCode, brLocalAccountIdentification.bankCode) &&
×
223
        Objects.equals(this.branchNumber, brLocalAccountIdentification.branchNumber) &&
×
224
        Objects.equals(this.type, brLocalAccountIdentification.type);
×
225
  }
226

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

232
  @Override
233
  public String toString() {
234
    StringBuilder sb = new StringBuilder();
×
235
    sb.append("class BRLocalAccountIdentification {\n");
×
236
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
237
    sb.append("    bankCode: ").append(toIndentedString(bankCode)).append("\n");
×
238
    sb.append("    branchNumber: ").append(toIndentedString(branchNumber)).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 BRLocalAccountIdentification given an JSON string
257
   *
258
   * @param jsonString JSON string
259
   * @return An instance of BRLocalAccountIdentification
260
   * @throws JsonProcessingException if the JSON string is invalid with respect to BRLocalAccountIdentification
261
   */
262
  public static BRLocalAccountIdentification fromJson(String jsonString) throws JsonProcessingException {
263
    return JSON.getMapper().readValue(jsonString, BRLocalAccountIdentification.class);
×
264
  }
265
/**
266
  * Convert an instance of BRLocalAccountIdentification 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