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

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

11 Sep 2023 11:23AM UTC coverage: 13.077%. First build
#2628

push

web-flow
Merge cd1454997 into ba706cfa8

2334 of 2334 new or added lines in 46 files covered. (100.0%)

10217 of 78130 relevant lines covered (13.08%)

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/TransferRoute.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.adyen.model.balanceplatform.TransferRouteRequirements;
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
 * TransferRoute
33
 */
34
@JsonPropertyOrder({
35
  TransferRoute.JSON_PROPERTY_BALANCE_PLATFORM,
36
  TransferRoute.JSON_PROPERTY_CATEGORY,
37
  TransferRoute.JSON_PROPERTY_COUNTRY,
38
  TransferRoute.JSON_PROPERTY_CURRENCY,
39
  TransferRoute.JSON_PROPERTY_PRIORITY,
40
  TransferRoute.JSON_PROPERTY_REQUIREMENTS
41
})
42

43
public class TransferRoute {
44
  public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform";
45
  private String balancePlatform;
46

47
  /**
48
   *  The type of transfer.   Possible values:    - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. 
49
   */
50
  public enum CategoryEnum {
×
51
    BANK("bank"),
×
52
    
53
    CARD("card"),
×
54
    
55
    GRANTS("grants"),
×
56
    
57
    INTERNAL("internal"),
×
58
    
59
    ISSUEDCARD("issuedCard"),
×
60
    
61
    MIGRATION("migration"),
×
62
    
63
    PLATFORMPAYMENT("platformPayment");
×
64

65
    private String value;
66

67
    CategoryEnum(String value) {
×
68
      this.value = value;
×
69
    }
×
70

71
    @JsonValue
72
    public String getValue() {
73
      return value;
×
74
    }
75

76
    @Override
77
    public String toString() {
78
      return String.valueOf(value);
×
79
    }
80

81
    @JsonCreator
82
    public static CategoryEnum fromValue(String value) {
83
      for (CategoryEnum b : CategoryEnum.values()) {
×
84
        if (b.value.equals(value)) {
×
85
          return b;
×
86
        }
87
      }
88
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
89
    }
90
  }
91

92
  public static final String JSON_PROPERTY_CATEGORY = "category";
93
  private CategoryEnum category;
94

95
  public static final String JSON_PROPERTY_COUNTRY = "country";
96
  private String country;
97

98
  public static final String JSON_PROPERTY_CURRENCY = "currency";
99
  private String currency;
100

101
  /**
102
   * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).
103
   */
104
  public enum PriorityEnum {
×
105
    CROSSBORDER("crossBorder"),
×
106
    
107
    FAST("fast"),
×
108
    
109
    INSTANT("instant"),
×
110
    
111
    INTERNAL("internal"),
×
112
    
113
    REGULAR("regular"),
×
114
    
115
    WIRE("wire");
×
116

117
    private String value;
118

119
    PriorityEnum(String value) {
×
120
      this.value = value;
×
121
    }
×
122

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

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

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

144
  public static final String JSON_PROPERTY_PRIORITY = "priority";
145
  private PriorityEnum priority;
146

147
  public static final String JSON_PROPERTY_REQUIREMENTS = "requirements";
148
  private TransferRouteRequirements requirements;
149

150
  public TransferRoute() { 
×
151
  }
×
152

153
  public TransferRoute balancePlatform(String balancePlatform) {
154
    this.balancePlatform = balancePlatform;
×
155
    return this;
×
156
  }
157

158
   /**
159
   * The unique identifier assigned to the balance platform associated with the account holder.
160
   * @return balancePlatform
161
  **/
162
  @ApiModelProperty(value = "The unique identifier assigned to the balance platform associated with the account holder.")
163
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
164
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
165

166
  public String getBalancePlatform() {
167
    return balancePlatform;
×
168
  }
169

170

171
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
172
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
173
  public void setBalancePlatform(String balancePlatform) {
174
    this.balancePlatform = balancePlatform;
×
175
  }
×
176

177

178
  public TransferRoute category(CategoryEnum category) {
179
    this.category = category;
×
180
    return this;
×
181
  }
182

183
   /**
184
   *  The type of transfer.   Possible values:    - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. 
185
   * @return category
186
  **/
187
  @ApiModelProperty(value = " The type of transfer.   Possible values:    - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. ")
188
  @JsonProperty(JSON_PROPERTY_CATEGORY)
189
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
190

191
  public CategoryEnum getCategory() {
192
    return category;
×
193
  }
194

195

196
  @JsonProperty(JSON_PROPERTY_CATEGORY)
197
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198
  public void setCategory(CategoryEnum category) {
199
    this.category = category;
×
200
  }
×
201

202

203
  public TransferRoute country(String country) {
204
    this.country = country;
×
205
    return this;
×
206
  }
207

208
   /**
209
   * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.
210
   * @return country
211
  **/
212
  @ApiModelProperty(value = "The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.")
213
  @JsonProperty(JSON_PROPERTY_COUNTRY)
214
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
215

216
  public String getCountry() {
217
    return country;
×
218
  }
219

220

221
  @JsonProperty(JSON_PROPERTY_COUNTRY)
222
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
223
  public void setCountry(String country) {
224
    this.country = country;
×
225
  }
×
226

227

228
  public TransferRoute currency(String currency) {
229
    this.currency = currency;
×
230
    return this;
×
231
  }
232

233
   /**
234
   * The three-character ISO currency code of transfer. For example, **USD** or **EUR**.
235
   * @return currency
236
  **/
237
  @ApiModelProperty(value = "The three-character ISO currency code of transfer. For example, **USD** or **EUR**.")
238
  @JsonProperty(JSON_PROPERTY_CURRENCY)
239
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
240

241
  public String getCurrency() {
242
    return currency;
×
243
  }
244

245

246
  @JsonProperty(JSON_PROPERTY_CURRENCY)
247
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
248
  public void setCurrency(String currency) {
249
    this.currency = currency;
×
250
  }
×
251

252

253
  public TransferRoute priority(PriorityEnum priority) {
254
    this.priority = priority;
×
255
    return this;
×
256
  }
257

258
   /**
259
   * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).
260
   * @return priority
261
  **/
262
  @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).")
263
  @JsonProperty(JSON_PROPERTY_PRIORITY)
264
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
265

266
  public PriorityEnum getPriority() {
267
    return priority;
×
268
  }
269

270

271
  @JsonProperty(JSON_PROPERTY_PRIORITY)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273
  public void setPriority(PriorityEnum priority) {
274
    this.priority = priority;
×
275
  }
×
276

277

278
  public TransferRoute requirements(TransferRouteRequirements requirements) {
279
    this.requirements = requirements;
×
280
    return this;
×
281
  }
282

283
   /**
284
   * Get requirements
285
   * @return requirements
286
  **/
287
  @ApiModelProperty(value = "")
288
  @JsonProperty(JSON_PROPERTY_REQUIREMENTS)
289
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
290

291
  public TransferRouteRequirements getRequirements() {
292
    return requirements;
×
293
  }
294

295

296
  @JsonProperty(JSON_PROPERTY_REQUIREMENTS)
297
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
298
  public void setRequirements(TransferRouteRequirements requirements) {
299
    this.requirements = requirements;
×
300
  }
×
301

302

303
  /**
304
   * Return true if this TransferRoute object is equal to o.
305
   */
306
  @Override
307
  public boolean equals(Object o) {
308
    if (this == o) {
×
309
      return true;
×
310
    }
311
    if (o == null || getClass() != o.getClass()) {
×
312
      return false;
×
313
    }
314
    TransferRoute transferRoute = (TransferRoute) o;
×
315
    return Objects.equals(this.balancePlatform, transferRoute.balancePlatform) &&
×
316
        Objects.equals(this.category, transferRoute.category) &&
×
317
        Objects.equals(this.country, transferRoute.country) &&
×
318
        Objects.equals(this.currency, transferRoute.currency) &&
×
319
        Objects.equals(this.priority, transferRoute.priority) &&
×
320
        Objects.equals(this.requirements, transferRoute.requirements);
×
321
  }
322

323
  @Override
324
  public int hashCode() {
325
    return Objects.hash(balancePlatform, category, country, currency, priority, requirements);
×
326
  }
327

328
  @Override
329
  public String toString() {
330
    StringBuilder sb = new StringBuilder();
×
331
    sb.append("class TransferRoute {\n");
×
332
    sb.append("    balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n");
×
333
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
×
334
    sb.append("    country: ").append(toIndentedString(country)).append("\n");
×
335
    sb.append("    currency: ").append(toIndentedString(currency)).append("\n");
×
336
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
×
337
    sb.append("    requirements: ").append(toIndentedString(requirements)).append("\n");
×
338
    sb.append("}");
×
339
    return sb.toString();
×
340
  }
341

342
  /**
343
   * Convert the given object to string with each line indented by 4 spaces
344
   * (except the first line).
345
   */
346
  private String toIndentedString(Object o) {
347
    if (o == null) {
×
348
      return "null";
×
349
    }
350
    return o.toString().replace("\n", "\n    ");
×
351
  }
352

353
/**
354
   * Create an instance of TransferRoute given an JSON string
355
   *
356
   * @param jsonString JSON string
357
   * @return An instance of TransferRoute
358
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransferRoute
359
   */
360
  public static TransferRoute fromJson(String jsonString) throws JsonProcessingException {
361
    return JSON.getMapper().readValue(jsonString, TransferRoute.class);
×
362
  }
363
/**
364
  * Convert an instance of TransferRoute to an JSON string
365
  *
366
  * @return JSON string
367
  */
368
  public String toJson() throws JsonProcessingException {
369
    return JSON.getMapper().writeValueAsString(this);
×
370
  }
371
}
372

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