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

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

11 Sep 2024 09:39AM UTC coverage: 11.825%. First build
#3511

push

web-flow
Merge 2f7c82f32 into d7cb4ee68

21 of 135 new or added lines in 6 files covered. (15.56%)

12591 of 106475 relevant lines covered (11.83%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

10.92
/src/main/java/com/adyen/model/checkout/CheckoutBankTransferAction.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
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.checkout;
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.checkout.Amount;
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
 * CheckoutBankTransferAction
33
 */
34
@JsonPropertyOrder({
35
  CheckoutBankTransferAction.JSON_PROPERTY_ACCOUNT_NUMBER,
36
  CheckoutBankTransferAction.JSON_PROPERTY_BENEFICIARY,
37
  CheckoutBankTransferAction.JSON_PROPERTY_BIC,
38
  CheckoutBankTransferAction.JSON_PROPERTY_DOWNLOAD_URL,
39
  CheckoutBankTransferAction.JSON_PROPERTY_IBAN,
40
  CheckoutBankTransferAction.JSON_PROPERTY_PAYMENT_METHOD_TYPE,
41
  CheckoutBankTransferAction.JSON_PROPERTY_REFERENCE,
42
  CheckoutBankTransferAction.JSON_PROPERTY_ROUTING_NUMBER,
43
  CheckoutBankTransferAction.JSON_PROPERTY_SHOPPER_EMAIL,
44
  CheckoutBankTransferAction.JSON_PROPERTY_SORT_CODE,
45
  CheckoutBankTransferAction.JSON_PROPERTY_TOTAL_AMOUNT,
46
  CheckoutBankTransferAction.JSON_PROPERTY_TYPE,
47
  CheckoutBankTransferAction.JSON_PROPERTY_URL
48
})
49

50
public class CheckoutBankTransferAction {
51
  public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber";
52
  private String accountNumber;
53

54
  public static final String JSON_PROPERTY_BENEFICIARY = "beneficiary";
55
  private String beneficiary;
56

57
  public static final String JSON_PROPERTY_BIC = "bic";
58
  private String bic;
59

60
  public static final String JSON_PROPERTY_DOWNLOAD_URL = "downloadUrl";
61
  private String downloadUrl;
62

63
  public static final String JSON_PROPERTY_IBAN = "iban";
64
  private String iban;
65

66
  public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE = "paymentMethodType";
67
  private String paymentMethodType;
68

69
  public static final String JSON_PROPERTY_REFERENCE = "reference";
70
  private String reference;
71

72
  public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber";
73
  private String routingNumber;
74

75
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
76
  private String shopperEmail;
77

78
  public static final String JSON_PROPERTY_SORT_CODE = "sortCode";
79
  private String sortCode;
80

81
  public static final String JSON_PROPERTY_TOTAL_AMOUNT = "totalAmount";
82
  private Amount totalAmount;
83

84
  /**
85
   * The type of the action.
86
   */
87
  public enum TypeEnum {
1✔
88
    BANKTRANSFER("bankTransfer");
1✔
89

90
    private String value;
91

92
    TypeEnum(String value) {
1✔
93
      this.value = value;
1✔
94
    }
1✔
95

96
    @JsonValue
97
    public String getValue() {
98
      return value;
1✔
99
    }
100

101
    @Override
102
    public String toString() {
103
      return String.valueOf(value);
×
104
    }
105

106
    @JsonCreator
107
    public static TypeEnum fromValue(String value) {
108
      for (TypeEnum b : TypeEnum.values()) {
1✔
109
        if (b.value.equals(value)) {
1✔
110
          return b;
×
111
        }
112
      }
113
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
1✔
114
    }
115
  }
116

117
  public static final String JSON_PROPERTY_TYPE = "type";
118
  private TypeEnum type;
119

120
  public static final String JSON_PROPERTY_URL = "url";
121
  private String url;
122

123
  public CheckoutBankTransferAction() { 
1✔
124
  }
1✔
125

126
  public CheckoutBankTransferAction accountNumber(String accountNumber) {
NEW
127
    this.accountNumber = accountNumber;
×
NEW
128
    return this;
×
129
  }
130

131
   /**
132
   * The account number of the bank transfer.
133
   * @return accountNumber
134
  **/
135
  @ApiModelProperty(value = "The account number of the bank transfer.")
136
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
137
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138

139
  public String getAccountNumber() {
NEW
140
    return accountNumber;
×
141
  }
142

143

144
 /**
145
  * The account number of the bank transfer.
146
  *
147
  * @param accountNumber
148
  */ 
149
  @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER)
150
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151
  public void setAccountNumber(String accountNumber) {
NEW
152
    this.accountNumber = accountNumber;
×
NEW
153
  }
×
154

155

156
  public CheckoutBankTransferAction beneficiary(String beneficiary) {
157
    this.beneficiary = beneficiary;
×
158
    return this;
×
159
  }
160

161
   /**
162
   * The name of the account holder.
163
   * @return beneficiary
164
  **/
165
  @ApiModelProperty(value = "The name of the account holder.")
166
  @JsonProperty(JSON_PROPERTY_BENEFICIARY)
167
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
168

169
  public String getBeneficiary() {
170
    return beneficiary;
×
171
  }
172

173

174
 /**
175
  * The name of the account holder.
176
  *
177
  * @param beneficiary
178
  */ 
179
  @JsonProperty(JSON_PROPERTY_BENEFICIARY)
180
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
181
  public void setBeneficiary(String beneficiary) {
182
    this.beneficiary = beneficiary;
×
183
  }
×
184

185

186
  public CheckoutBankTransferAction bic(String bic) {
187
    this.bic = bic;
×
188
    return this;
×
189
  }
190

191
   /**
192
   * The BIC of the IBAN.
193
   * @return bic
194
  **/
195
  @ApiModelProperty(value = "The BIC of the IBAN.")
196
  @JsonProperty(JSON_PROPERTY_BIC)
197
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198

199
  public String getBic() {
200
    return bic;
×
201
  }
202

203

204
 /**
205
  * The BIC of the IBAN.
206
  *
207
  * @param bic
208
  */ 
209
  @JsonProperty(JSON_PROPERTY_BIC)
210
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211
  public void setBic(String bic) {
212
    this.bic = bic;
×
213
  }
×
214

215

216
  public CheckoutBankTransferAction downloadUrl(String downloadUrl) {
217
    this.downloadUrl = downloadUrl;
×
218
    return this;
×
219
  }
220

221
   /**
222
   * The url to download payment details with.
223
   * @return downloadUrl
224
  **/
225
  @ApiModelProperty(value = "The url to download payment details with.")
226
  @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL)
227
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
228

229
  public String getDownloadUrl() {
230
    return downloadUrl;
×
231
  }
232

233

234
 /**
235
  * The url to download payment details with.
236
  *
237
  * @param downloadUrl
238
  */ 
239
  @JsonProperty(JSON_PROPERTY_DOWNLOAD_URL)
240
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
241
  public void setDownloadUrl(String downloadUrl) {
242
    this.downloadUrl = downloadUrl;
×
243
  }
×
244

245

246
  public CheckoutBankTransferAction iban(String iban) {
247
    this.iban = iban;
×
248
    return this;
×
249
  }
250

251
   /**
252
   * The IBAN of the bank transfer.
253
   * @return iban
254
  **/
255
  @ApiModelProperty(value = "The IBAN of the bank transfer.")
256
  @JsonProperty(JSON_PROPERTY_IBAN)
257
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
258

259
  public String getIban() {
260
    return iban;
×
261
  }
262

263

264
 /**
265
  * The IBAN of the bank transfer.
266
  *
267
  * @param iban
268
  */ 
269
  @JsonProperty(JSON_PROPERTY_IBAN)
270
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
271
  public void setIban(String iban) {
272
    this.iban = iban;
×
273
  }
×
274

275

276
  public CheckoutBankTransferAction paymentMethodType(String paymentMethodType) {
277
    this.paymentMethodType = paymentMethodType;
×
278
    return this;
×
279
  }
280

281
   /**
282
   * Specifies the payment method.
283
   * @return paymentMethodType
284
  **/
285
  @ApiModelProperty(value = "Specifies the payment method.")
286
  @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE)
287
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
288

289
  public String getPaymentMethodType() {
290
    return paymentMethodType;
×
291
  }
292

293

294
 /**
295
  * Specifies the payment method.
296
  *
297
  * @param paymentMethodType
298
  */ 
299
  @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD_TYPE)
300
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
301
  public void setPaymentMethodType(String paymentMethodType) {
302
    this.paymentMethodType = paymentMethodType;
1✔
303
  }
1✔
304

305

306
  public CheckoutBankTransferAction reference(String reference) {
307
    this.reference = reference;
×
308
    return this;
×
309
  }
310

311
   /**
312
   * The transfer reference.
313
   * @return reference
314
  **/
315
  @ApiModelProperty(value = "The transfer reference.")
316
  @JsonProperty(JSON_PROPERTY_REFERENCE)
317
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
318

319
  public String getReference() {
320
    return reference;
×
321
  }
322

323

324
 /**
325
  * The transfer reference.
326
  *
327
  * @param reference
328
  */ 
329
  @JsonProperty(JSON_PROPERTY_REFERENCE)
330
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
331
  public void setReference(String reference) {
332
    this.reference = reference;
×
333
  }
×
334

335

336
  public CheckoutBankTransferAction routingNumber(String routingNumber) {
NEW
337
    this.routingNumber = routingNumber;
×
NEW
338
    return this;
×
339
  }
340

341
   /**
342
   * The routing number of the bank transfer.
343
   * @return routingNumber
344
  **/
345
  @ApiModelProperty(value = "The routing number of the bank transfer.")
346
  @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER)
347
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
348

349
  public String getRoutingNumber() {
NEW
350
    return routingNumber;
×
351
  }
352

353

354
 /**
355
  * The routing number of the bank transfer.
356
  *
357
  * @param routingNumber
358
  */ 
359
  @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER)
360
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
361
  public void setRoutingNumber(String routingNumber) {
NEW
362
    this.routingNumber = routingNumber;
×
NEW
363
  }
×
364

365

366
  public CheckoutBankTransferAction shopperEmail(String shopperEmail) {
367
    this.shopperEmail = shopperEmail;
×
368
    return this;
×
369
  }
370

371
   /**
372
   * The e-mail of the shopper, included if an e-mail was sent to the shopper.
373
   * @return shopperEmail
374
  **/
375
  @ApiModelProperty(value = "The e-mail of the shopper, included if an e-mail was sent to the shopper.")
376
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
377
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
378

379
  public String getShopperEmail() {
380
    return shopperEmail;
×
381
  }
382

383

384
 /**
385
  * The e-mail of the shopper, included if an e-mail was sent to the shopper.
386
  *
387
  * @param shopperEmail
388
  */ 
389
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
390
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
391
  public void setShopperEmail(String shopperEmail) {
392
    this.shopperEmail = shopperEmail;
×
393
  }
×
394

395

396
  public CheckoutBankTransferAction sortCode(String sortCode) {
NEW
397
    this.sortCode = sortCode;
×
NEW
398
    return this;
×
399
  }
400

401
   /**
402
   * The sort code of the bank transfer.
403
   * @return sortCode
404
  **/
405
  @ApiModelProperty(value = "The sort code of the bank transfer.")
406
  @JsonProperty(JSON_PROPERTY_SORT_CODE)
407
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
408

409
  public String getSortCode() {
NEW
410
    return sortCode;
×
411
  }
412

413

414
 /**
415
  * The sort code of the bank transfer.
416
  *
417
  * @param sortCode
418
  */ 
419
  @JsonProperty(JSON_PROPERTY_SORT_CODE)
420
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
421
  public void setSortCode(String sortCode) {
NEW
422
    this.sortCode = sortCode;
×
NEW
423
  }
×
424

425

426
  public CheckoutBankTransferAction totalAmount(Amount totalAmount) {
427
    this.totalAmount = totalAmount;
×
428
    return this;
×
429
  }
430

431
   /**
432
   * Get totalAmount
433
   * @return totalAmount
434
  **/
435
  @ApiModelProperty(value = "")
436
  @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT)
437
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
438

439
  public Amount getTotalAmount() {
440
    return totalAmount;
×
441
  }
442

443

444
 /**
445
  * totalAmount
446
  *
447
  * @param totalAmount
448
  */ 
449
  @JsonProperty(JSON_PROPERTY_TOTAL_AMOUNT)
450
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
451
  public void setTotalAmount(Amount totalAmount) {
452
    this.totalAmount = totalAmount;
×
453
  }
×
454

455

456
  public CheckoutBankTransferAction type(TypeEnum type) {
457
    this.type = type;
×
458
    return this;
×
459
  }
460

461
   /**
462
   * The type of the action.
463
   * @return type
464
  **/
465
  @ApiModelProperty(required = true, value = "The type of the action.")
466
  @JsonProperty(JSON_PROPERTY_TYPE)
467
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
468

469
  public TypeEnum getType() {
470
    return type;
×
471
  }
472

473

474
 /**
475
  * The type of the action.
476
  *
477
  * @param type
478
  */ 
479
  @JsonProperty(JSON_PROPERTY_TYPE)
480
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
481
  public void setType(TypeEnum type) {
482
    this.type = type;
×
483
  }
×
484

485

486
  public CheckoutBankTransferAction url(String url) {
487
    this.url = url;
×
488
    return this;
×
489
  }
490

491
   /**
492
   * Specifies the URL to redirect to.
493
   * @return url
494
  **/
495
  @ApiModelProperty(value = "Specifies the URL to redirect to.")
496
  @JsonProperty(JSON_PROPERTY_URL)
497
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
498

499
  public String getUrl() {
500
    return url;
×
501
  }
502

503

504
 /**
505
  * Specifies the URL to redirect to.
506
  *
507
  * @param url
508
  */ 
509
  @JsonProperty(JSON_PROPERTY_URL)
510
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
511
  public void setUrl(String url) {
512
    this.url = url;
×
513
  }
×
514

515

516
  /**
517
   * Return true if this CheckoutBankTransferAction object is equal to o.
518
   */
519
  @Override
520
  public boolean equals(Object o) {
521
    if (this == o) {
×
522
      return true;
×
523
    }
524
    if (o == null || getClass() != o.getClass()) {
×
525
      return false;
×
526
    }
527
    CheckoutBankTransferAction checkoutBankTransferAction = (CheckoutBankTransferAction) o;
×
NEW
528
    return Objects.equals(this.accountNumber, checkoutBankTransferAction.accountNumber) &&
×
NEW
529
        Objects.equals(this.beneficiary, checkoutBankTransferAction.beneficiary) &&
×
530
        Objects.equals(this.bic, checkoutBankTransferAction.bic) &&
×
531
        Objects.equals(this.downloadUrl, checkoutBankTransferAction.downloadUrl) &&
×
532
        Objects.equals(this.iban, checkoutBankTransferAction.iban) &&
×
533
        Objects.equals(this.paymentMethodType, checkoutBankTransferAction.paymentMethodType) &&
×
534
        Objects.equals(this.reference, checkoutBankTransferAction.reference) &&
×
NEW
535
        Objects.equals(this.routingNumber, checkoutBankTransferAction.routingNumber) &&
×
536
        Objects.equals(this.shopperEmail, checkoutBankTransferAction.shopperEmail) &&
×
NEW
537
        Objects.equals(this.sortCode, checkoutBankTransferAction.sortCode) &&
×
538
        Objects.equals(this.totalAmount, checkoutBankTransferAction.totalAmount) &&
×
539
        Objects.equals(this.type, checkoutBankTransferAction.type) &&
×
540
        Objects.equals(this.url, checkoutBankTransferAction.url);
×
541
  }
542

543
  @Override
544
  public int hashCode() {
NEW
545
    return Objects.hash(accountNumber, beneficiary, bic, downloadUrl, iban, paymentMethodType, reference, routingNumber, shopperEmail, sortCode, totalAmount, type, url);
×
546
  }
547

548
  @Override
549
  public String toString() {
550
    StringBuilder sb = new StringBuilder();
×
551
    sb.append("class CheckoutBankTransferAction {\n");
×
NEW
552
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
×
553
    sb.append("    beneficiary: ").append(toIndentedString(beneficiary)).append("\n");
×
554
    sb.append("    bic: ").append(toIndentedString(bic)).append("\n");
×
555
    sb.append("    downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n");
×
556
    sb.append("    iban: ").append(toIndentedString(iban)).append("\n");
×
557
    sb.append("    paymentMethodType: ").append(toIndentedString(paymentMethodType)).append("\n");
×
558
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
NEW
559
    sb.append("    routingNumber: ").append(toIndentedString(routingNumber)).append("\n");
×
560
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
NEW
561
    sb.append("    sortCode: ").append(toIndentedString(sortCode)).append("\n");
×
562
    sb.append("    totalAmount: ").append(toIndentedString(totalAmount)).append("\n");
×
563
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
564
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
×
565
    sb.append("}");
×
566
    return sb.toString();
×
567
  }
568

569
  /**
570
   * Convert the given object to string with each line indented by 4 spaces
571
   * (except the first line).
572
   */
573
  private String toIndentedString(Object o) {
574
    if (o == null) {
×
575
      return "null";
×
576
    }
577
    return o.toString().replace("\n", "\n    ");
×
578
  }
579

580
/**
581
   * Create an instance of CheckoutBankTransferAction given an JSON string
582
   *
583
   * @param jsonString JSON string
584
   * @return An instance of CheckoutBankTransferAction
585
   * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutBankTransferAction
586
   */
587
  public static CheckoutBankTransferAction fromJson(String jsonString) throws JsonProcessingException {
588
    return JSON.getMapper().readValue(jsonString, CheckoutBankTransferAction.class);
×
589
  }
590
/**
591
  * Convert an instance of CheckoutBankTransferAction to an JSON string
592
  *
593
  * @return JSON string
594
  */
595
  public String toJson() throws JsonProcessingException {
596
    return JSON.getMapper().writeValueAsString(this);
×
597
  }
598
}
599

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