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

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

13 Nov 2024 12:58PM UTC coverage: 12.206%. First build
#3764

push

web-flow
Merge d6e5fcada into 964c7f7a4

1 of 5 new or added lines in 5 files covered. (20.0%)

12946 of 106062 relevant lines covered (12.21%)

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/transfers/TransferEvent.java
1
/*
2
 * Transfers API
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.transfers;
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.transfers.Amount;
20
import com.adyen.model.transfers.AmountAdjustment;
21
import com.adyen.model.transfers.BalanceMutation;
22
import com.adyen.model.transfers.ExternalReason;
23
import com.adyen.model.transfers.Modification;
24
import com.adyen.model.transfers.TransferEventTrackingData;
25
import com.fasterxml.jackson.annotation.JsonInclude;
26
import com.fasterxml.jackson.annotation.JsonProperty;
27
import com.fasterxml.jackson.annotation.JsonCreator;
28
import com.fasterxml.jackson.annotation.JsonTypeName;
29
import com.fasterxml.jackson.annotation.JsonValue;
30
import io.swagger.annotations.ApiModel;
31
import io.swagger.annotations.ApiModelProperty;
32
import java.time.OffsetDateTime;
33
import java.util.ArrayList;
34
import java.util.List;
35
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
36
import com.fasterxml.jackson.core.JsonProcessingException;
37

38

39
/**
40
 * TransferEvent
41
 */
42
@JsonPropertyOrder({
43
  TransferEvent.JSON_PROPERTY_AMOUNT,
44
  TransferEvent.JSON_PROPERTY_AMOUNT_ADJUSTMENTS,
45
  TransferEvent.JSON_PROPERTY_ARN,
46
  TransferEvent.JSON_PROPERTY_BOOKING_DATE,
47
  TransferEvent.JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME,
48
  TransferEvent.JSON_PROPERTY_EXTERNAL_REASON,
49
  TransferEvent.JSON_PROPERTY_ID,
50
  TransferEvent.JSON_PROPERTY_MODIFICATION,
51
  TransferEvent.JSON_PROPERTY_MUTATIONS,
52
  TransferEvent.JSON_PROPERTY_ORIGINAL_AMOUNT,
53
  TransferEvent.JSON_PROPERTY_REASON,
54
  TransferEvent.JSON_PROPERTY_STATUS,
55
  TransferEvent.JSON_PROPERTY_TRACKING_DATA,
56
  TransferEvent.JSON_PROPERTY_TRANSACTION_ID,
57
  TransferEvent.JSON_PROPERTY_TYPE,
58
  TransferEvent.JSON_PROPERTY_UPDATE_DATE,
59
  TransferEvent.JSON_PROPERTY_VALUE_DATE
60
})
61

62
public class TransferEvent {
63
  public static final String JSON_PROPERTY_AMOUNT = "amount";
64
  private Amount amount;
65

66
  public static final String JSON_PROPERTY_AMOUNT_ADJUSTMENTS = "amountAdjustments";
67
  private List<AmountAdjustment> amountAdjustments = null;
×
68

69
  public static final String JSON_PROPERTY_ARN = "arn";
70
  private String arn;
71

72
  public static final String JSON_PROPERTY_BOOKING_DATE = "bookingDate";
73
  private OffsetDateTime bookingDate;
74

75
  public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime";
76
  private OffsetDateTime estimatedArrivalTime;
77

78
  public static final String JSON_PROPERTY_EXTERNAL_REASON = "externalReason";
79
  private ExternalReason externalReason;
80

81
  public static final String JSON_PROPERTY_ID = "id";
82
  private String id;
83

84
  public static final String JSON_PROPERTY_MODIFICATION = "modification";
85
  private Modification modification;
86

87
  public static final String JSON_PROPERTY_MUTATIONS = "mutations";
88
  private List<BalanceMutation> mutations = null;
×
89

90
  public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount";
91
  private Amount originalAmount;
92

93
  /**
94
   * The reason for the transfer status.
95
   */
96
  public enum ReasonEnum {
×
97
    ACCOUNTHIERARCHYNOTACTIVE("accountHierarchyNotActive"),
×
98
    
99
    AMOUNTLIMITEXCEEDED("amountLimitExceeded"),
×
100
    
101
    APPROVED("approved"),
×
102
    
103
    BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE("balanceAccountTemporarilyBlockedByTransactionRule"),
×
104
    
105
    COUNTERPARTYACCOUNTBLOCKED("counterpartyAccountBlocked"),
×
106
    
107
    COUNTERPARTYACCOUNTCLOSED("counterpartyAccountClosed"),
×
108
    
109
    COUNTERPARTYACCOUNTNOTFOUND("counterpartyAccountNotFound"),
×
110
    
111
    COUNTERPARTYADDRESSREQUIRED("counterpartyAddressRequired"),
×
112
    
113
    COUNTERPARTYBANKTIMEDOUT("counterpartyBankTimedOut"),
×
114
    
115
    COUNTERPARTYBANKUNAVAILABLE("counterpartyBankUnavailable"),
×
116
    
117
    DECLINED("declined"),
×
118
    
119
    DECLINEDBYTRANSACTIONRULE("declinedByTransactionRule"),
×
120
    
121
    DIRECTDEBITNOTSUPPORTED("directDebitNotSupported"),
×
122
    
123
    ERROR("error"),
×
124
    
125
    NOTENOUGHBALANCE("notEnoughBalance"),
×
126
    
127
    PENDINGAPPROVAL("pendingApproval"),
×
128
    
129
    PENDINGEXECUTION("pendingExecution"),
×
130
    
131
    REFUSEDBYCOUNTERPARTYBANK("refusedByCounterpartyBank"),
×
132
    
NEW
133
    REFUSEDBYCUSTOMER("refusedByCustomer"),
×
134
    
135
    ROUTENOTFOUND("routeNotFound"),
×
136
    
137
    SCAFAILED("scaFailed"),
×
138
    
139
    TRANSFERINSTRUMENTDOESNOTEXIST("transferInstrumentDoesNotExist"),
×
140
    
141
    UNKNOWN("unknown");
×
142

143
    private String value;
144

145
    ReasonEnum(String value) {
×
146
      this.value = value;
×
147
    }
×
148

149
    @JsonValue
150
    public String getValue() {
151
      return value;
×
152
    }
153

154
    @Override
155
    public String toString() {
156
      return String.valueOf(value);
×
157
    }
158

159
    @JsonCreator
160
    public static ReasonEnum fromValue(String value) {
161
      for (ReasonEnum b : ReasonEnum.values()) {
×
162
        if (b.value.equals(value)) {
×
163
          return b;
×
164
        }
165
      }
166
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
167
    }
168
  }
169

170
  public static final String JSON_PROPERTY_REASON = "reason";
171
  private ReasonEnum reason;
172

173
  /**
174
   * The status of the transfer event.
175
   */
176
  public enum StatusEnum {
×
177
    APPROVALPENDING("approvalPending"),
×
178
    
179
    ATMWITHDRAWAL("atmWithdrawal"),
×
180
    
181
    ATMWITHDRAWALREVERSALPENDING("atmWithdrawalReversalPending"),
×
182
    
183
    ATMWITHDRAWALREVERSED("atmWithdrawalReversed"),
×
184
    
185
    AUTHADJUSTMENTAUTHORISED("authAdjustmentAuthorised"),
×
186
    
187
    AUTHADJUSTMENTERROR("authAdjustmentError"),
×
188
    
189
    AUTHADJUSTMENTREFUSED("authAdjustmentRefused"),
×
190
    
191
    AUTHORISED("authorised"),
×
192
    
193
    BANKTRANSFER("bankTransfer"),
×
194
    
195
    BANKTRANSFERPENDING("bankTransferPending"),
×
196
    
197
    BOOKED("booked"),
×
198
    
199
    BOOKINGPENDING("bookingPending"),
×
200
    
201
    CANCELLED("cancelled"),
×
202
    
203
    CAPTUREPENDING("capturePending"),
×
204
    
205
    CAPTUREREVERSALPENDING("captureReversalPending"),
×
206
    
207
    CAPTUREREVERSED("captureReversed"),
×
208
    
209
    CAPTURED("captured"),
×
210
    
211
    CAPTUREDEXTERNALLY("capturedExternally"),
×
212
    
213
    CHARGEBACK("chargeback"),
×
214
    
215
    CHARGEBACKEXTERNALLY("chargebackExternally"),
×
216
    
217
    CHARGEBACKPENDING("chargebackPending"),
×
218
    
219
    CHARGEBACKREVERSALPENDING("chargebackReversalPending"),
×
220
    
221
    CHARGEBACKREVERSED("chargebackReversed"),
×
222
    
223
    CREDITED("credited"),
×
224
    
225
    DEPOSITCORRECTION("depositCorrection"),
×
226
    
227
    DEPOSITCORRECTIONPENDING("depositCorrectionPending"),
×
228
    
229
    DISPUTE("dispute"),
×
230
    
231
    DISPUTECLOSED("disputeClosed"),
×
232
    
233
    DISPUTEEXPIRED("disputeExpired"),
×
234
    
235
    DISPUTENEEDSREVIEW("disputeNeedsReview"),
×
236
    
237
    ERROR("error"),
×
238
    
239
    EXPIRED("expired"),
×
240
    
241
    FAILED("failed"),
×
242
    
243
    FEE("fee"),
×
244
    
245
    FEEPENDING("feePending"),
×
246
    
247
    INTERNALTRANSFER("internalTransfer"),
×
248
    
249
    INTERNALTRANSFERPENDING("internalTransferPending"),
×
250
    
251
    INVOICEDEDUCTION("invoiceDeduction"),
×
252
    
253
    INVOICEDEDUCTIONPENDING("invoiceDeductionPending"),
×
254
    
255
    MANUALCORRECTIONPENDING("manualCorrectionPending"),
×
256
    
257
    MANUALLYCORRECTED("manuallyCorrected"),
×
258
    
259
    MATCHEDSTATEMENT("matchedStatement"),
×
260
    
261
    MATCHEDSTATEMENTPENDING("matchedStatementPending"),
×
262
    
263
    MERCHANTPAYIN("merchantPayin"),
×
264
    
265
    MERCHANTPAYINPENDING("merchantPayinPending"),
×
266
    
267
    MERCHANTPAYINREVERSED("merchantPayinReversed"),
×
268
    
269
    MERCHANTPAYINREVERSEDPENDING("merchantPayinReversedPending"),
×
270
    
271
    MISCCOST("miscCost"),
×
272
    
273
    MISCCOSTPENDING("miscCostPending"),
×
274
    
275
    PAYMENTCOST("paymentCost"),
×
276
    
277
    PAYMENTCOSTPENDING("paymentCostPending"),
×
278
    
279
    PENDINGAPPROVAL("pendingApproval"),
×
280
    
281
    PENDINGEXECUTION("pendingExecution"),
×
282
    
283
    RECEIVED("received"),
×
284
    
285
    REFUNDPENDING("refundPending"),
×
286
    
287
    REFUNDREVERSALPENDING("refundReversalPending"),
×
288
    
289
    REFUNDREVERSED("refundReversed"),
×
290
    
291
    REFUNDED("refunded"),
×
292
    
293
    REFUNDEDEXTERNALLY("refundedExternally"),
×
294
    
295
    REFUSED("refused"),
×
296
    
297
    REJECTED("rejected"),
×
298
    
299
    RESERVEADJUSTMENT("reserveAdjustment"),
×
300
    
301
    RESERVEADJUSTMENTPENDING("reserveAdjustmentPending"),
×
302
    
303
    RETURNED("returned"),
×
304
    
305
    SECONDCHARGEBACK("secondChargeback"),
×
306
    
307
    SECONDCHARGEBACKPENDING("secondChargebackPending"),
×
308
    
309
    UNDEFINED("undefined");
×
310

311
    private String value;
312

313
    StatusEnum(String value) {
×
314
      this.value = value;
×
315
    }
×
316

317
    @JsonValue
318
    public String getValue() {
319
      return value;
×
320
    }
321

322
    @Override
323
    public String toString() {
324
      return String.valueOf(value);
×
325
    }
326

327
    @JsonCreator
328
    public static StatusEnum fromValue(String value) {
329
      for (StatusEnum b : StatusEnum.values()) {
×
330
        if (b.value.equals(value)) {
×
331
          return b;
×
332
        }
333
      }
334
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
335
    }
336
  }
337

338
  public static final String JSON_PROPERTY_STATUS = "status";
339
  private StatusEnum status;
340

341
  public static final String JSON_PROPERTY_TRACKING_DATA = "trackingData";
342
  private TransferEventTrackingData trackingData;
343

344
  public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId";
345
  private String transactionId;
346

347
  /**
348
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
349
   */
350
  public enum TypeEnum {
×
351
    ACCOUNTING("accounting"),
×
352
    
353
    TRACKING("tracking");
×
354

355
    private String value;
356

357
    TypeEnum(String value) {
×
358
      this.value = value;
×
359
    }
×
360

361
    @JsonValue
362
    public String getValue() {
363
      return value;
×
364
    }
365

366
    @Override
367
    public String toString() {
368
      return String.valueOf(value);
×
369
    }
370

371
    @JsonCreator
372
    public static TypeEnum fromValue(String value) {
373
      for (TypeEnum b : TypeEnum.values()) {
×
374
        if (b.value.equals(value)) {
×
375
          return b;
×
376
        }
377
      }
378
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
379
    }
380
  }
381

382
  public static final String JSON_PROPERTY_TYPE = "type";
383
  private TypeEnum type;
384

385
  public static final String JSON_PROPERTY_UPDATE_DATE = "updateDate";
386
  private OffsetDateTime updateDate;
387

388
  public static final String JSON_PROPERTY_VALUE_DATE = "valueDate";
389
  private OffsetDateTime valueDate;
390

391
  public TransferEvent() { 
×
392
  }
×
393

394
  /**
395
   * amount
396
   *
397
   * @param amount
398
   * @return the current {@code TransferEvent} instance, allowing for method chaining
399
   */
400
  public TransferEvent amount(Amount amount) {
401
    this.amount = amount;
×
402
    return this;
×
403
  }
404

405
  /**
406
   * amount
407
   * @return amount
408
   */
409
  @ApiModelProperty(value = "")
410
  @JsonProperty(JSON_PROPERTY_AMOUNT)
411
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
412
  public Amount getAmount() {
413
    return amount;
×
414
  }
415

416
  /**
417
   * amount
418
   *
419
   * @param amount
420
   */ 
421
  @JsonProperty(JSON_PROPERTY_AMOUNT)
422
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
423
  public void setAmount(Amount amount) {
424
    this.amount = amount;
×
425
  }
×
426

427
  /**
428
   * The amount adjustments in this transfer.
429
   *
430
   * @param amountAdjustments
431
   * @return the current {@code TransferEvent} instance, allowing for method chaining
432
   */
433
  public TransferEvent amountAdjustments(List<AmountAdjustment> amountAdjustments) {
434
    this.amountAdjustments = amountAdjustments;
×
435
    return this;
×
436
  }
437

438
  public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustmentsItem) {
439
    if (this.amountAdjustments == null) {
×
440
      this.amountAdjustments = new ArrayList<>();
×
441
    }
442
    this.amountAdjustments.add(amountAdjustmentsItem);
×
443
    return this;
×
444
  }
445

446
  /**
447
   * The amount adjustments in this transfer.
448
   * @return amountAdjustments
449
   */
450
  @ApiModelProperty(value = "The amount adjustments in this transfer.")
451
  @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS)
452
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
453
  public List<AmountAdjustment> getAmountAdjustments() {
454
    return amountAdjustments;
×
455
  }
456

457
  /**
458
   * The amount adjustments in this transfer.
459
   *
460
   * @param amountAdjustments
461
   */ 
462
  @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS)
463
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
464
  public void setAmountAdjustments(List<AmountAdjustment> amountAdjustments) {
465
    this.amountAdjustments = amountAdjustments;
×
466
  }
×
467

468
  /**
469
   * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.
470
   *
471
   * @param arn
472
   * @return the current {@code TransferEvent} instance, allowing for method chaining
473
   */
474
  public TransferEvent arn(String arn) {
475
    this.arn = arn;
×
476
    return this;
×
477
  }
478

479
  /**
480
   * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.
481
   * @return arn
482
   */
483
  @ApiModelProperty(value = "Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.")
484
  @JsonProperty(JSON_PROPERTY_ARN)
485
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
486
  public String getArn() {
487
    return arn;
×
488
  }
489

490
  /**
491
   * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.
492
   *
493
   * @param arn
494
   */ 
495
  @JsonProperty(JSON_PROPERTY_ARN)
496
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
497
  public void setArn(String arn) {
498
    this.arn = arn;
×
499
  }
×
500

501
  /**
502
   * The date when the transfer request was sent.
503
   *
504
   * @param bookingDate
505
   * @return the current {@code TransferEvent} instance, allowing for method chaining
506
   */
507
  public TransferEvent bookingDate(OffsetDateTime bookingDate) {
508
    this.bookingDate = bookingDate;
×
509
    return this;
×
510
  }
511

512
  /**
513
   * The date when the transfer request was sent.
514
   * @return bookingDate
515
   */
516
  @ApiModelProperty(value = "The date when the transfer request was sent.")
517
  @JsonProperty(JSON_PROPERTY_BOOKING_DATE)
518
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
519
  public OffsetDateTime getBookingDate() {
520
    return bookingDate;
×
521
  }
522

523
  /**
524
   * The date when the transfer request was sent.
525
   *
526
   * @param bookingDate
527
   */ 
528
  @JsonProperty(JSON_PROPERTY_BOOKING_DATE)
529
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
530
  public void setBookingDate(OffsetDateTime bookingDate) {
531
    this.bookingDate = bookingDate;
×
532
  }
×
533

534
  /**
535
   * The estimated time when the beneficiary should have access to the funds.
536
   *
537
   * @param estimatedArrivalTime
538
   * @return the current {@code TransferEvent} instance, allowing for method chaining
539
   */
540
  public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) {
541
    this.estimatedArrivalTime = estimatedArrivalTime;
×
542
    return this;
×
543
  }
544

545
  /**
546
   * The estimated time when the beneficiary should have access to the funds.
547
   * @return estimatedArrivalTime
548
   */
549
  @ApiModelProperty(value = "The estimated time when the beneficiary should have access to the funds.")
550
  @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME)
551
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
552
  public OffsetDateTime getEstimatedArrivalTime() {
553
    return estimatedArrivalTime;
×
554
  }
555

556
  /**
557
   * The estimated time when the beneficiary should have access to the funds.
558
   *
559
   * @param estimatedArrivalTime
560
   */ 
561
  @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME)
562
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
563
  public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) {
564
    this.estimatedArrivalTime = estimatedArrivalTime;
×
565
  }
×
566

567
  /**
568
   * externalReason
569
   *
570
   * @param externalReason
571
   * @return the current {@code TransferEvent} instance, allowing for method chaining
572
   */
573
  public TransferEvent externalReason(ExternalReason externalReason) {
574
    this.externalReason = externalReason;
×
575
    return this;
×
576
  }
577

578
  /**
579
   * externalReason
580
   * @return externalReason
581
   */
582
  @ApiModelProperty(value = "")
583
  @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON)
584
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
585
  public ExternalReason getExternalReason() {
586
    return externalReason;
×
587
  }
588

589
  /**
590
   * externalReason
591
   *
592
   * @param externalReason
593
   */ 
594
  @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON)
595
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
596
  public void setExternalReason(ExternalReason externalReason) {
597
    this.externalReason = externalReason;
×
598
  }
×
599

600
  /**
601
   * The unique identifier of the transfer event.
602
   *
603
   * @param id
604
   * @return the current {@code TransferEvent} instance, allowing for method chaining
605
   */
606
  public TransferEvent id(String id) {
607
    this.id = id;
×
608
    return this;
×
609
  }
610

611
  /**
612
   * The unique identifier of the transfer event.
613
   * @return id
614
   */
615
  @ApiModelProperty(value = "The unique identifier of the transfer event.")
616
  @JsonProperty(JSON_PROPERTY_ID)
617
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
618
  public String getId() {
619
    return id;
×
620
  }
621

622
  /**
623
   * The unique identifier of the transfer event.
624
   *
625
   * @param id
626
   */ 
627
  @JsonProperty(JSON_PROPERTY_ID)
628
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
629
  public void setId(String id) {
630
    this.id = id;
×
631
  }
×
632

633
  /**
634
   * modification
635
   *
636
   * @param modification
637
   * @return the current {@code TransferEvent} instance, allowing for method chaining
638
   */
639
  public TransferEvent modification(Modification modification) {
640
    this.modification = modification;
×
641
    return this;
×
642
  }
643

644
  /**
645
   * modification
646
   * @return modification
647
   */
648
  @ApiModelProperty(value = "")
649
  @JsonProperty(JSON_PROPERTY_MODIFICATION)
650
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
651
  public Modification getModification() {
652
    return modification;
×
653
  }
654

655
  /**
656
   * modification
657
   *
658
   * @param modification
659
   */ 
660
  @JsonProperty(JSON_PROPERTY_MODIFICATION)
661
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
662
  public void setModification(Modification modification) {
663
    this.modification = modification;
×
664
  }
×
665

666
  /**
667
   * The list of balance mutations per event.
668
   *
669
   * @param mutations
670
   * @return the current {@code TransferEvent} instance, allowing for method chaining
671
   */
672
  public TransferEvent mutations(List<BalanceMutation> mutations) {
673
    this.mutations = mutations;
×
674
    return this;
×
675
  }
676

677
  public TransferEvent addMutationsItem(BalanceMutation mutationsItem) {
678
    if (this.mutations == null) {
×
679
      this.mutations = new ArrayList<>();
×
680
    }
681
    this.mutations.add(mutationsItem);
×
682
    return this;
×
683
  }
684

685
  /**
686
   * The list of balance mutations per event.
687
   * @return mutations
688
   */
689
  @ApiModelProperty(value = "The list of balance mutations per event.")
690
  @JsonProperty(JSON_PROPERTY_MUTATIONS)
691
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
692
  public List<BalanceMutation> getMutations() {
693
    return mutations;
×
694
  }
695

696
  /**
697
   * The list of balance mutations per event.
698
   *
699
   * @param mutations
700
   */ 
701
  @JsonProperty(JSON_PROPERTY_MUTATIONS)
702
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
703
  public void setMutations(List<BalanceMutation> mutations) {
704
    this.mutations = mutations;
×
705
  }
×
706

707
  /**
708
   * originalAmount
709
   *
710
   * @param originalAmount
711
   * @return the current {@code TransferEvent} instance, allowing for method chaining
712
   */
713
  public TransferEvent originalAmount(Amount originalAmount) {
714
    this.originalAmount = originalAmount;
×
715
    return this;
×
716
  }
717

718
  /**
719
   * originalAmount
720
   * @return originalAmount
721
   */
722
  @ApiModelProperty(value = "")
723
  @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT)
724
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
725
  public Amount getOriginalAmount() {
726
    return originalAmount;
×
727
  }
728

729
  /**
730
   * originalAmount
731
   *
732
   * @param originalAmount
733
   */ 
734
  @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT)
735
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
736
  public void setOriginalAmount(Amount originalAmount) {
737
    this.originalAmount = originalAmount;
×
738
  }
×
739

740
  /**
741
   * The reason for the transfer status.
742
   *
743
   * @param reason
744
   * @return the current {@code TransferEvent} instance, allowing for method chaining
745
   */
746
  public TransferEvent reason(ReasonEnum reason) {
747
    this.reason = reason;
×
748
    return this;
×
749
  }
750

751
  /**
752
   * The reason for the transfer status.
753
   * @return reason
754
   */
755
  @ApiModelProperty(value = "The reason for the transfer status.")
756
  @JsonProperty(JSON_PROPERTY_REASON)
757
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
758
  public ReasonEnum getReason() {
759
    return reason;
×
760
  }
761

762
  /**
763
   * The reason for the transfer status.
764
   *
765
   * @param reason
766
   */ 
767
  @JsonProperty(JSON_PROPERTY_REASON)
768
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
769
  public void setReason(ReasonEnum reason) {
770
    this.reason = reason;
×
771
  }
×
772

773
  /**
774
   * The status of the transfer event.
775
   *
776
   * @param status
777
   * @return the current {@code TransferEvent} instance, allowing for method chaining
778
   */
779
  public TransferEvent status(StatusEnum status) {
780
    this.status = status;
×
781
    return this;
×
782
  }
783

784
  /**
785
   * The status of the transfer event.
786
   * @return status
787
   */
788
  @ApiModelProperty(value = "The status of the transfer event.")
789
  @JsonProperty(JSON_PROPERTY_STATUS)
790
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
791
  public StatusEnum getStatus() {
792
    return status;
×
793
  }
794

795
  /**
796
   * The status of the transfer event.
797
   *
798
   * @param status
799
   */ 
800
  @JsonProperty(JSON_PROPERTY_STATUS)
801
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
802
  public void setStatus(StatusEnum status) {
803
    this.status = status;
×
804
  }
×
805

806
  /**
807
   * trackingData
808
   *
809
   * @param trackingData
810
   * @return the current {@code TransferEvent} instance, allowing for method chaining
811
   */
812
  public TransferEvent trackingData(TransferEventTrackingData trackingData) {
813
    this.trackingData = trackingData;
×
814
    return this;
×
815
  }
816

817
  /**
818
   * trackingData
819
   * @return trackingData
820
   */
821
  @ApiModelProperty(value = "")
822
  @JsonProperty(JSON_PROPERTY_TRACKING_DATA)
823
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
824
  public TransferEventTrackingData getTrackingData() {
825
    return trackingData;
×
826
  }
827

828
  /**
829
   * trackingData
830
   *
831
   * @param trackingData
832
   */ 
833
  @JsonProperty(JSON_PROPERTY_TRACKING_DATA)
834
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
835
  public void setTrackingData(TransferEventTrackingData trackingData) {
836
    this.trackingData = trackingData;
×
837
  }
×
838

839
  /**
840
   * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
841
   *
842
   * @param transactionId
843
   * @return the current {@code TransferEvent} instance, allowing for method chaining
844
   */
845
  public TransferEvent transactionId(String transactionId) {
846
    this.transactionId = transactionId;
×
847
    return this;
×
848
  }
849

850
  /**
851
   * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
852
   * @return transactionId
853
   */
854
  @ApiModelProperty(value = "The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.")
855
  @JsonProperty(JSON_PROPERTY_TRANSACTION_ID)
856
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
857
  public String getTransactionId() {
858
    return transactionId;
×
859
  }
860

861
  /**
862
   * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
863
   *
864
   * @param transactionId
865
   */ 
866
  @JsonProperty(JSON_PROPERTY_TRANSACTION_ID)
867
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
868
  public void setTransactionId(String transactionId) {
869
    this.transactionId = transactionId;
×
870
  }
×
871

872
  /**
873
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
874
   *
875
   * @param type
876
   * @return the current {@code TransferEvent} instance, allowing for method chaining
877
   */
878
  public TransferEvent type(TypeEnum type) {
879
    this.type = type;
×
880
    return this;
×
881
  }
882

883
  /**
884
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
885
   * @return type
886
   */
887
  @ApiModelProperty(value = "The type of the transfer event. Possible values: **accounting**, **tracking**.")
888
  @JsonProperty(JSON_PROPERTY_TYPE)
889
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
890
  public TypeEnum getType() {
891
    return type;
×
892
  }
893

894
  /**
895
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
896
   *
897
   * @param type
898
   */ 
899
  @JsonProperty(JSON_PROPERTY_TYPE)
900
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
901
  public void setType(TypeEnum type) {
902
    this.type = type;
×
903
  }
×
904

905
  /**
906
   * The date when the tracking status was updated.
907
   *
908
   * @param updateDate
909
   * @return the current {@code TransferEvent} instance, allowing for method chaining
910
   */
911
  public TransferEvent updateDate(OffsetDateTime updateDate) {
912
    this.updateDate = updateDate;
×
913
    return this;
×
914
  }
915

916
  /**
917
   * The date when the tracking status was updated.
918
   * @return updateDate
919
   */
920
  @ApiModelProperty(value = "The date when the tracking status was updated.")
921
  @JsonProperty(JSON_PROPERTY_UPDATE_DATE)
922
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
923
  public OffsetDateTime getUpdateDate() {
924
    return updateDate;
×
925
  }
926

927
  /**
928
   * The date when the tracking status was updated.
929
   *
930
   * @param updateDate
931
   */ 
932
  @JsonProperty(JSON_PROPERTY_UPDATE_DATE)
933
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
934
  public void setUpdateDate(OffsetDateTime updateDate) {
935
    this.updateDate = updateDate;
×
936
  }
×
937

938
  /**
939
   * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.
940
   *
941
   * @param valueDate
942
   * @return the current {@code TransferEvent} instance, allowing for method chaining
943
   */
944
  public TransferEvent valueDate(OffsetDateTime valueDate) {
945
    this.valueDate = valueDate;
×
946
    return this;
×
947
  }
948

949
  /**
950
   * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.
951
   * @return valueDate
952
   */
953
  @ApiModelProperty(value = "The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.")
954
  @JsonProperty(JSON_PROPERTY_VALUE_DATE)
955
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
956
  public OffsetDateTime getValueDate() {
957
    return valueDate;
×
958
  }
959

960
  /**
961
   * The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.
962
   *
963
   * @param valueDate
964
   */ 
965
  @JsonProperty(JSON_PROPERTY_VALUE_DATE)
966
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
967
  public void setValueDate(OffsetDateTime valueDate) {
968
    this.valueDate = valueDate;
×
969
  }
×
970

971
  /**
972
   * Return true if this TransferEvent object is equal to o.
973
   */
974
  @Override
975
  public boolean equals(Object o) {
976
    if (this == o) {
×
977
      return true;
×
978
    }
979
    if (o == null || getClass() != o.getClass()) {
×
980
      return false;
×
981
    }
982
    TransferEvent transferEvent = (TransferEvent) o;
×
983
    return Objects.equals(this.amount, transferEvent.amount) &&
×
984
        Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) &&
×
985
        Objects.equals(this.arn, transferEvent.arn) &&
×
986
        Objects.equals(this.bookingDate, transferEvent.bookingDate) &&
×
987
        Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) &&
×
988
        Objects.equals(this.externalReason, transferEvent.externalReason) &&
×
989
        Objects.equals(this.id, transferEvent.id) &&
×
990
        Objects.equals(this.modification, transferEvent.modification) &&
×
991
        Objects.equals(this.mutations, transferEvent.mutations) &&
×
992
        Objects.equals(this.originalAmount, transferEvent.originalAmount) &&
×
993
        Objects.equals(this.reason, transferEvent.reason) &&
×
994
        Objects.equals(this.status, transferEvent.status) &&
×
995
        Objects.equals(this.trackingData, transferEvent.trackingData) &&
×
996
        Objects.equals(this.transactionId, transferEvent.transactionId) &&
×
997
        Objects.equals(this.type, transferEvent.type) &&
×
998
        Objects.equals(this.updateDate, transferEvent.updateDate) &&
×
999
        Objects.equals(this.valueDate, transferEvent.valueDate);
×
1000
  }
1001

1002
  @Override
1003
  public int hashCode() {
1004
    return Objects.hash(amount, amountAdjustments, arn, bookingDate, estimatedArrivalTime, externalReason, id, modification, mutations, originalAmount, reason, status, trackingData, transactionId, type, updateDate, valueDate);
×
1005
  }
1006

1007
  @Override
1008
  public String toString() {
1009
    StringBuilder sb = new StringBuilder();
×
1010
    sb.append("class TransferEvent {\n");
×
1011
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
1012
    sb.append("    amountAdjustments: ").append(toIndentedString(amountAdjustments)).append("\n");
×
1013
    sb.append("    arn: ").append(toIndentedString(arn)).append("\n");
×
1014
    sb.append("    bookingDate: ").append(toIndentedString(bookingDate)).append("\n");
×
1015
    sb.append("    estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n");
×
1016
    sb.append("    externalReason: ").append(toIndentedString(externalReason)).append("\n");
×
1017
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
1018
    sb.append("    modification: ").append(toIndentedString(modification)).append("\n");
×
1019
    sb.append("    mutations: ").append(toIndentedString(mutations)).append("\n");
×
1020
    sb.append("    originalAmount: ").append(toIndentedString(originalAmount)).append("\n");
×
1021
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
×
1022
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
1023
    sb.append("    trackingData: ").append(toIndentedString(trackingData)).append("\n");
×
1024
    sb.append("    transactionId: ").append(toIndentedString(transactionId)).append("\n");
×
1025
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
1026
    sb.append("    updateDate: ").append(toIndentedString(updateDate)).append("\n");
×
1027
    sb.append("    valueDate: ").append(toIndentedString(valueDate)).append("\n");
×
1028
    sb.append("}");
×
1029
    return sb.toString();
×
1030
  }
1031

1032
  /**
1033
   * Convert the given object to string with each line indented by 4 spaces
1034
   * (except the first line).
1035
   */
1036
  private String toIndentedString(Object o) {
1037
    if (o == null) {
×
1038
      return "null";
×
1039
    }
1040
    return o.toString().replace("\n", "\n    ");
×
1041
  }
1042

1043
/**
1044
   * Create an instance of TransferEvent given an JSON string
1045
   *
1046
   * @param jsonString JSON string
1047
   * @return An instance of TransferEvent
1048
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransferEvent
1049
   */
1050
  public static TransferEvent fromJson(String jsonString) throws JsonProcessingException {
1051
    return JSON.getMapper().readValue(jsonString, TransferEvent.class);
×
1052
  }
1053
/**
1054
  * Convert an instance of TransferEvent to an JSON string
1055
  *
1056
  * @return JSON string
1057
  */
1058
  public String toJson() throws JsonProcessingException {
1059
    return JSON.getMapper().writeValueAsString(this);
×
1060
  }
1061
}
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