• 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

26.92
/src/main/java/com/adyen/model/legalentitymanagement/BankAccountInfo.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.adyen.model.legalentitymanagement.BankAccountInfoAccountIdentification;
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
 * BankAccountInfo
33
 */
34
@JsonPropertyOrder({
35
  BankAccountInfo.JSON_PROPERTY_ACCOUNT_IDENTIFICATION,
36
  BankAccountInfo.JSON_PROPERTY_ACCOUNT_TYPE,
37
  BankAccountInfo.JSON_PROPERTY_BANK_NAME,
38
  BankAccountInfo.JSON_PROPERTY_COUNTRY_CODE,
39
  BankAccountInfo.JSON_PROPERTY_TRUSTED_SOURCE
40
})
41

42
public class BankAccountInfo {
43
  public static final String JSON_PROPERTY_ACCOUNT_IDENTIFICATION = "accountIdentification";
44
  private BankAccountInfoAccountIdentification accountIdentification;
45

46
  public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType";
47
  private String accountType;
48

49
  public static final String JSON_PROPERTY_BANK_NAME = "bankName";
50
  private String bankName;
51

52
  public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode";
53
  private String countryCode;
54

55
  public static final String JSON_PROPERTY_TRUSTED_SOURCE = "trustedSource";
56
  private Boolean trustedSource;
57

58
  public BankAccountInfo() { 
1✔
59
  }
1✔
60

61
  public BankAccountInfo accountIdentification(BankAccountInfoAccountIdentification accountIdentification) {
62
    this.accountIdentification = accountIdentification;
×
63
    return this;
×
64
  }
65

66
   /**
67
   * Get accountIdentification
68
   * @return accountIdentification
69
  **/
70
  @ApiModelProperty(value = "")
71
  @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION)
72
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73

74
  public BankAccountInfoAccountIdentification getAccountIdentification() {
75
    return accountIdentification;
1✔
76
  }
77

78

79
  @JsonProperty(JSON_PROPERTY_ACCOUNT_IDENTIFICATION)
80
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81
  public void setAccountIdentification(BankAccountInfoAccountIdentification accountIdentification) {
82
    this.accountIdentification = accountIdentification;
1✔
83
  }
1✔
84

85

86
  public BankAccountInfo accountType(String accountType) {
87
    this.accountType = accountType;
×
88
    return this;
×
89
  }
90

91
   /**
92
   * The type of bank account.
93
   * @return accountType
94
   * @deprecated
95
  **/
96
  @Deprecated
97
  @ApiModelProperty(value = "The type of bank account.")
98
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
99
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
100

101
  public String getAccountType() {
102
    return accountType;
1✔
103
  }
104

105

106
  @Deprecated
107
  @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
108
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109
  public void setAccountType(String accountType) {
110
    this.accountType = accountType;
×
111
  }
×
112

113

114
  public BankAccountInfo bankName(String bankName) {
115
    this.bankName = bankName;
×
116
    return this;
×
117
  }
118

119
   /**
120
   * The name of the banking institution where the bank account is held.
121
   * @return bankName
122
  **/
123
  @ApiModelProperty(value = "The name of the banking institution where the bank account is held.")
124
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
125
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126

127
  public String getBankName() {
128
    return bankName;
1✔
129
  }
130

131

132
  @JsonProperty(JSON_PROPERTY_BANK_NAME)
133
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
134
  public void setBankName(String bankName) {
135
    this.bankName = bankName;
×
136
  }
×
137

138

139
  public BankAccountInfo countryCode(String countryCode) {
140
    this.countryCode = countryCode;
×
141
    return this;
×
142
  }
143

144
   /**
145
   * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**.
146
   * @return countryCode
147
  **/
148
  @ApiModelProperty(value = "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**.")
149
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
150
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151

152
  public String getCountryCode() {
153
    return countryCode;
1✔
154
  }
155

156

157
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
158
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
159
  public void setCountryCode(String countryCode) {
160
    this.countryCode = countryCode;
1✔
161
  }
1✔
162

163

164
  public BankAccountInfo trustedSource(Boolean trustedSource) {
165
    this.trustedSource = trustedSource;
×
166
    return this;
×
167
  }
168

169
   /**
170
   * Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding).
171
   * @return trustedSource
172
  **/
173
  @ApiModelProperty(value = "Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding).")
174
  @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE)
175
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
176

177
  public Boolean getTrustedSource() {
178
    return trustedSource;
1✔
179
  }
180

181

182
  @JsonProperty(JSON_PROPERTY_TRUSTED_SOURCE)
183
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
184
  public void setTrustedSource(Boolean trustedSource) {
185
    this.trustedSource = trustedSource;
1✔
186
  }
1✔
187

188

189
  /**
190
   * Return true if this BankAccountInfo object is equal to o.
191
   */
192
  @Override
193
  public boolean equals(Object o) {
194
    if (this == o) {
×
195
      return true;
×
196
    }
197
    if (o == null || getClass() != o.getClass()) {
×
198
      return false;
×
199
    }
200
    BankAccountInfo bankAccountInfo = (BankAccountInfo) o;
×
201
    return Objects.equals(this.accountIdentification, bankAccountInfo.accountIdentification) &&
×
202
        Objects.equals(this.accountType, bankAccountInfo.accountType) &&
×
203
        Objects.equals(this.bankName, bankAccountInfo.bankName) &&
×
204
        Objects.equals(this.countryCode, bankAccountInfo.countryCode) &&
×
205
        Objects.equals(this.trustedSource, bankAccountInfo.trustedSource);
×
206
  }
207

208
  @Override
209
  public int hashCode() {
210
    return Objects.hash(accountIdentification, accountType, bankName, countryCode, trustedSource);
×
211
  }
212

213
  @Override
214
  public String toString() {
215
    StringBuilder sb = new StringBuilder();
×
216
    sb.append("class BankAccountInfo {\n");
×
217
    sb.append("    accountIdentification: ").append(toIndentedString(accountIdentification)).append("\n");
×
218
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
×
219
    sb.append("    bankName: ").append(toIndentedString(bankName)).append("\n");
×
220
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
×
221
    sb.append("    trustedSource: ").append(toIndentedString(trustedSource)).append("\n");
×
222
    sb.append("}");
×
223
    return sb.toString();
×
224
  }
225

226
  /**
227
   * Convert the given object to string with each line indented by 4 spaces
228
   * (except the first line).
229
   */
230
  private String toIndentedString(Object o) {
231
    if (o == null) {
×
232
      return "null";
×
233
    }
234
    return o.toString().replace("\n", "\n    ");
×
235
  }
236

237
/**
238
   * Create an instance of BankAccountInfo given an JSON string
239
   *
240
   * @param jsonString JSON string
241
   * @return An instance of BankAccountInfo
242
   * @throws JsonProcessingException if the JSON string is invalid with respect to BankAccountInfo
243
   */
244
  public static BankAccountInfo fromJson(String jsonString) throws JsonProcessingException {
245
    return JSON.getMapper().readValue(jsonString, BankAccountInfo.class);
1✔
246
  }
247
/**
248
  * Convert an instance of BankAccountInfo to an JSON string
249
  *
250
  * @return JSON string
251
  */
252
  public String toJson() throws JsonProcessingException {
253
    return JSON.getMapper().writeValueAsString(this);
×
254
  }
255
}
256

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