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

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

20 Jun 2024 12:54PM CUT coverage: 11.944%. First build
#3331

push

web-flow
Merge 311e2b915 into ac91e3ca5

12 of 622 new or added lines in 65 files covered. (1.93%)

12497 of 104632 relevant lines covered (11.94%)

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/transferwebhooks/TransferEvent.java
1
/*
2
 * Transfer webhooks
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.transferwebhooks;
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.transferwebhooks.Amount;
20
import com.adyen.model.transferwebhooks.AmountAdjustment;
21
import com.adyen.model.transferwebhooks.BalanceMutation;
22
import com.adyen.model.transferwebhooks.ExternalReason;
23
import com.adyen.model.transferwebhooks.Modification;
24
import com.adyen.model.transferwebhooks.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
    AMOUNTLIMITEXCEEDED("amountLimitExceeded"),
×
98
    
99
    APPROVED("approved"),
×
100
    
101
    BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE("balanceAccountTemporarilyBlockedByTransactionRule"),
×
102
    
103
    COUNTERPARTYACCOUNTBLOCKED("counterpartyAccountBlocked"),
×
104
    
105
    COUNTERPARTYACCOUNTCLOSED("counterpartyAccountClosed"),
×
106
    
107
    COUNTERPARTYACCOUNTNOTFOUND("counterpartyAccountNotFound"),
×
108
    
109
    COUNTERPARTYADDRESSREQUIRED("counterpartyAddressRequired"),
×
110
    
111
    COUNTERPARTYBANKTIMEDOUT("counterpartyBankTimedOut"),
×
112
    
113
    COUNTERPARTYBANKUNAVAILABLE("counterpartyBankUnavailable"),
×
114
    
NEW
115
    DECLINED("declined"),
×
116
    
117
    DECLINEDBYTRANSACTIONRULE("declinedByTransactionRule"),
×
118
    
119
    ERROR("error"),
×
120
    
121
    NOTENOUGHBALANCE("notEnoughBalance"),
×
122
    
123
    PENDINGAPPROVAL("pendingApproval"),
×
124
    
125
    REFUSEDBYCOUNTERPARTYBANK("refusedByCounterpartyBank"),
×
126
    
127
    ROUTENOTFOUND("routeNotFound"),
×
128
    
129
    SCAFAILED("scaFailed"),
×
130
    
131
    UNKNOWN("unknown");
×
132

133
    private String value;
134

135
    ReasonEnum(String value) {
×
136
      this.value = value;
×
137
    }
×
138

139
    @JsonValue
140
    public String getValue() {
141
      return value;
×
142
    }
143

144
    @Override
145
    public String toString() {
146
      return String.valueOf(value);
×
147
    }
148

149
    @JsonCreator
150
    public static ReasonEnum fromValue(String value) {
151
      for (ReasonEnum b : ReasonEnum.values()) {
×
152
        if (b.value.equals(value)) {
×
153
          return b;
×
154
        }
155
      }
156
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
157
    }
158
  }
159

160
  public static final String JSON_PROPERTY_REASON = "reason";
161
  private ReasonEnum reason;
162

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

297
    private String value;
298

299
    StatusEnum(String value) {
×
300
      this.value = value;
×
301
    }
×
302

303
    @JsonValue
304
    public String getValue() {
305
      return value;
×
306
    }
307

308
    @Override
309
    public String toString() {
310
      return String.valueOf(value);
×
311
    }
312

313
    @JsonCreator
314
    public static StatusEnum fromValue(String value) {
315
      for (StatusEnum b : StatusEnum.values()) {
×
316
        if (b.value.equals(value)) {
×
317
          return b;
×
318
        }
319
      }
320
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
321
    }
322
  }
323

324
  public static final String JSON_PROPERTY_STATUS = "status";
325
  private StatusEnum status;
326

327
  public static final String JSON_PROPERTY_TRACKING_DATA = "trackingData";
328
  private TransferEventTrackingData trackingData;
329

330
  public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId";
331
  private String transactionId;
332

333
  /**
334
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
335
   */
336
  public enum TypeEnum {
×
337
    ACCOUNTING("accounting"),
×
338
    
339
    TRACKING("tracking");
×
340

341
    private String value;
342

343
    TypeEnum(String value) {
×
344
      this.value = value;
×
345
    }
×
346

347
    @JsonValue
348
    public String getValue() {
349
      return value;
×
350
    }
351

352
    @Override
353
    public String toString() {
354
      return String.valueOf(value);
×
355
    }
356

357
    @JsonCreator
358
    public static TypeEnum fromValue(String value) {
359
      for (TypeEnum b : TypeEnum.values()) {
×
360
        if (b.value.equals(value)) {
×
361
          return b;
×
362
        }
363
      }
364
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
365
    }
366
  }
367

368
  public static final String JSON_PROPERTY_TYPE = "type";
369
  private TypeEnum type;
370

371
  public static final String JSON_PROPERTY_UPDATE_DATE = "updateDate";
372
  private OffsetDateTime updateDate;
373

374
  public static final String JSON_PROPERTY_VALUE_DATE = "valueDate";
375
  private OffsetDateTime valueDate;
376

377
  public TransferEvent() { 
×
378
  }
×
379

380
  public TransferEvent amount(Amount amount) {
381
    this.amount = amount;
×
382
    return this;
×
383
  }
384

385
   /**
386
   * Get amount
387
   * @return amount
388
  **/
389
  @ApiModelProperty(value = "")
390
  @JsonProperty(JSON_PROPERTY_AMOUNT)
391
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
392

393
  public Amount getAmount() {
394
    return amount;
×
395
  }
396

397

398
 /**
399
  * amount
400
  *
401
  * @param amount
402
  */ 
403
  @JsonProperty(JSON_PROPERTY_AMOUNT)
404
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
405
  public void setAmount(Amount amount) {
406
    this.amount = amount;
×
407
  }
×
408

409

410
  public TransferEvent amountAdjustments(List<AmountAdjustment> amountAdjustments) {
411
    this.amountAdjustments = amountAdjustments;
×
412
    return this;
×
413
  }
414

415
  public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustmentsItem) {
416
    if (this.amountAdjustments == null) {
×
417
      this.amountAdjustments = new ArrayList<>();
×
418
    }
419
    this.amountAdjustments.add(amountAdjustmentsItem);
×
420
    return this;
×
421
  }
422

423
   /**
424
   * The amount adjustments in this transfer.
425
   * @return amountAdjustments
426
  **/
427
  @ApiModelProperty(value = "The amount adjustments in this transfer.")
428
  @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS)
429
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
430

431
  public List<AmountAdjustment> getAmountAdjustments() {
432
    return amountAdjustments;
×
433
  }
434

435

436
 /**
437
  * The amount adjustments in this transfer.
438
  *
439
  * @param amountAdjustments
440
  */ 
441
  @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS)
442
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
443
  public void setAmountAdjustments(List<AmountAdjustment> amountAdjustments) {
444
    this.amountAdjustments = amountAdjustments;
×
445
  }
×
446

447

448
  public TransferEvent arn(String arn) {
NEW
449
    this.arn = arn;
×
NEW
450
    return this;
×
451
  }
452

453
   /**
454
   * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.
455
   * @return arn
456
  **/
457
  @ApiModelProperty(value = "Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.")
458
  @JsonProperty(JSON_PROPERTY_ARN)
459
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
460

461
  public String getArn() {
NEW
462
    return arn;
×
463
  }
464

465

466
 /**
467
  * Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.
468
  *
469
  * @param arn
470
  */ 
471
  @JsonProperty(JSON_PROPERTY_ARN)
472
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
473
  public void setArn(String arn) {
NEW
474
    this.arn = arn;
×
NEW
475
  }
×
476

477

478
  public TransferEvent bookingDate(OffsetDateTime bookingDate) {
479
    this.bookingDate = bookingDate;
×
480
    return this;
×
481
  }
482

483
   /**
484
   * The date when the transfer request was sent.
485
   * @return bookingDate
486
  **/
487
  @ApiModelProperty(value = "The date when the transfer request was sent.")
488
  @JsonProperty(JSON_PROPERTY_BOOKING_DATE)
489
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
490

491
  public OffsetDateTime getBookingDate() {
492
    return bookingDate;
×
493
  }
494

495

496
 /**
497
  * The date when the transfer request was sent.
498
  *
499
  * @param bookingDate
500
  */ 
501
  @JsonProperty(JSON_PROPERTY_BOOKING_DATE)
502
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
503
  public void setBookingDate(OffsetDateTime bookingDate) {
504
    this.bookingDate = bookingDate;
×
505
  }
×
506

507

508
  public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) {
509
    this.estimatedArrivalTime = estimatedArrivalTime;
×
510
    return this;
×
511
  }
512

513
   /**
514
   * The estimated time when the beneficiary should have access to the funds.
515
   * @return estimatedArrivalTime
516
  **/
517
  @ApiModelProperty(value = "The estimated time when the beneficiary should have access to the funds.")
518
  @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME)
519
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
520

521
  public OffsetDateTime getEstimatedArrivalTime() {
522
    return estimatedArrivalTime;
×
523
  }
524

525

526
 /**
527
  * The estimated time when the beneficiary should have access to the funds.
528
  *
529
  * @param estimatedArrivalTime
530
  */ 
531
  @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME)
532
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
533
  public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) {
534
    this.estimatedArrivalTime = estimatedArrivalTime;
×
535
  }
×
536

537

538
  public TransferEvent externalReason(ExternalReason externalReason) {
539
    this.externalReason = externalReason;
×
540
    return this;
×
541
  }
542

543
   /**
544
   * Get externalReason
545
   * @return externalReason
546
  **/
547
  @ApiModelProperty(value = "")
548
  @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON)
549
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
550

551
  public ExternalReason getExternalReason() {
552
    return externalReason;
×
553
  }
554

555

556
 /**
557
  * externalReason
558
  *
559
  * @param externalReason
560
  */ 
561
  @JsonProperty(JSON_PROPERTY_EXTERNAL_REASON)
562
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
563
  public void setExternalReason(ExternalReason externalReason) {
564
    this.externalReason = externalReason;
×
565
  }
×
566

567

568
  public TransferEvent id(String id) {
569
    this.id = id;
×
570
    return this;
×
571
  }
572

573
   /**
574
   * The unique identifier of the transfer event.
575
   * @return id
576
  **/
577
  @ApiModelProperty(value = "The unique identifier of the transfer event.")
578
  @JsonProperty(JSON_PROPERTY_ID)
579
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
580

581
  public String getId() {
582
    return id;
×
583
  }
584

585

586
 /**
587
  * The unique identifier of the transfer event.
588
  *
589
  * @param id
590
  */ 
591
  @JsonProperty(JSON_PROPERTY_ID)
592
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
593
  public void setId(String id) {
594
    this.id = id;
×
595
  }
×
596

597

598
  public TransferEvent modification(Modification modification) {
599
    this.modification = modification;
×
600
    return this;
×
601
  }
602

603
   /**
604
   * Get modification
605
   * @return modification
606
  **/
607
  @ApiModelProperty(value = "")
608
  @JsonProperty(JSON_PROPERTY_MODIFICATION)
609
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
610

611
  public Modification getModification() {
612
    return modification;
×
613
  }
614

615

616
 /**
617
  * modification
618
  *
619
  * @param modification
620
  */ 
621
  @JsonProperty(JSON_PROPERTY_MODIFICATION)
622
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
623
  public void setModification(Modification modification) {
624
    this.modification = modification;
×
625
  }
×
626

627

628
  public TransferEvent mutations(List<BalanceMutation> mutations) {
629
    this.mutations = mutations;
×
630
    return this;
×
631
  }
632

633
  public TransferEvent addMutationsItem(BalanceMutation mutationsItem) {
634
    if (this.mutations == null) {
×
635
      this.mutations = new ArrayList<>();
×
636
    }
637
    this.mutations.add(mutationsItem);
×
638
    return this;
×
639
  }
640

641
   /**
642
   * The list of balance mutations per event.
643
   * @return mutations
644
  **/
645
  @ApiModelProperty(value = "The list of balance mutations per event.")
646
  @JsonProperty(JSON_PROPERTY_MUTATIONS)
647
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
648

649
  public List<BalanceMutation> getMutations() {
650
    return mutations;
×
651
  }
652

653

654
 /**
655
  * The list of balance mutations per event.
656
  *
657
  * @param mutations
658
  */ 
659
  @JsonProperty(JSON_PROPERTY_MUTATIONS)
660
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
661
  public void setMutations(List<BalanceMutation> mutations) {
662
    this.mutations = mutations;
×
663
  }
×
664

665

666
  public TransferEvent originalAmount(Amount originalAmount) {
667
    this.originalAmount = originalAmount;
×
668
    return this;
×
669
  }
670

671
   /**
672
   * Get originalAmount
673
   * @return originalAmount
674
  **/
675
  @ApiModelProperty(value = "")
676
  @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT)
677
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
678

679
  public Amount getOriginalAmount() {
680
    return originalAmount;
×
681
  }
682

683

684
 /**
685
  * originalAmount
686
  *
687
  * @param originalAmount
688
  */ 
689
  @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT)
690
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
691
  public void setOriginalAmount(Amount originalAmount) {
692
    this.originalAmount = originalAmount;
×
693
  }
×
694

695

696
  public TransferEvent reason(ReasonEnum reason) {
697
    this.reason = reason;
×
698
    return this;
×
699
  }
700

701
   /**
702
   * The reason for the transfer status.
703
   * @return reason
704
  **/
705
  @ApiModelProperty(value = "The reason for the transfer status.")
706
  @JsonProperty(JSON_PROPERTY_REASON)
707
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
708

709
  public ReasonEnum getReason() {
710
    return reason;
×
711
  }
712

713

714
 /**
715
  * The reason for the transfer status.
716
  *
717
  * @param reason
718
  */ 
719
  @JsonProperty(JSON_PROPERTY_REASON)
720
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
721
  public void setReason(ReasonEnum reason) {
722
    this.reason = reason;
×
723
  }
×
724

725

726
  public TransferEvent status(StatusEnum status) {
727
    this.status = status;
×
728
    return this;
×
729
  }
730

731
   /**
732
   * The status of the transfer event.
733
   * @return status
734
  **/
735
  @ApiModelProperty(value = "The status of the transfer event.")
736
  @JsonProperty(JSON_PROPERTY_STATUS)
737
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
738

739
  public StatusEnum getStatus() {
740
    return status;
×
741
  }
742

743

744
 /**
745
  * The status of the transfer event.
746
  *
747
  * @param status
748
  */ 
749
  @JsonProperty(JSON_PROPERTY_STATUS)
750
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
751
  public void setStatus(StatusEnum status) {
752
    this.status = status;
×
753
  }
×
754

755

756
  public TransferEvent trackingData(TransferEventTrackingData trackingData) {
757
    this.trackingData = trackingData;
×
758
    return this;
×
759
  }
760

761
   /**
762
   * Get trackingData
763
   * @return trackingData
764
  **/
765
  @ApiModelProperty(value = "")
766
  @JsonProperty(JSON_PROPERTY_TRACKING_DATA)
767
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
768

769
  public TransferEventTrackingData getTrackingData() {
770
    return trackingData;
×
771
  }
772

773

774
 /**
775
  * trackingData
776
  *
777
  * @param trackingData
778
  */ 
779
  @JsonProperty(JSON_PROPERTY_TRACKING_DATA)
780
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
781
  public void setTrackingData(TransferEventTrackingData trackingData) {
782
    this.trackingData = trackingData;
×
783
  }
×
784

785

786
  public TransferEvent transactionId(String transactionId) {
787
    this.transactionId = transactionId;
×
788
    return this;
×
789
  }
790

791
   /**
792
   * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
793
   * @return transactionId
794
  **/
795
  @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.")
796
  @JsonProperty(JSON_PROPERTY_TRANSACTION_ID)
797
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
798

799
  public String getTransactionId() {
800
    return transactionId;
×
801
  }
802

803

804
 /**
805
  * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
806
  *
807
  * @param transactionId
808
  */ 
809
  @JsonProperty(JSON_PROPERTY_TRANSACTION_ID)
810
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
811
  public void setTransactionId(String transactionId) {
812
    this.transactionId = transactionId;
×
813
  }
×
814

815

816
  public TransferEvent type(TypeEnum type) {
817
    this.type = type;
×
818
    return this;
×
819
  }
820

821
   /**
822
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
823
   * @return type
824
  **/
825
  @ApiModelProperty(value = "The type of the transfer event. Possible values: **accounting**, **tracking**.")
826
  @JsonProperty(JSON_PROPERTY_TYPE)
827
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
828

829
  public TypeEnum getType() {
830
    return type;
×
831
  }
832

833

834
 /**
835
  * The type of the transfer event. Possible values: **accounting**, **tracking**.
836
  *
837
  * @param type
838
  */ 
839
  @JsonProperty(JSON_PROPERTY_TYPE)
840
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
841
  public void setType(TypeEnum type) {
842
    this.type = type;
×
843
  }
×
844

845

846
  public TransferEvent updateDate(OffsetDateTime updateDate) {
847
    this.updateDate = updateDate;
×
848
    return this;
×
849
  }
850

851
   /**
852
   * The date when the tracking status was updated.
853
   * @return updateDate
854
  **/
855
  @ApiModelProperty(value = "The date when the tracking status was updated.")
856
  @JsonProperty(JSON_PROPERTY_UPDATE_DATE)
857
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
858

859
  public OffsetDateTime getUpdateDate() {
860
    return updateDate;
×
861
  }
862

863

864
 /**
865
  * The date when the tracking status was updated.
866
  *
867
  * @param updateDate
868
  */ 
869
  @JsonProperty(JSON_PROPERTY_UPDATE_DATE)
870
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
871
  public void setUpdateDate(OffsetDateTime updateDate) {
872
    this.updateDate = updateDate;
×
873
  }
×
874

875

876
  public TransferEvent valueDate(OffsetDateTime valueDate) {
877
    this.valueDate = valueDate;
×
878
    return this;
×
879
  }
880

881
   /**
882
   * A future date, when the funds are expected to be deducted from or credited to the balance account.
883
   * @return valueDate
884
  **/
885
  @ApiModelProperty(value = "A future date, when the funds are expected to be deducted from or credited to the balance account.")
886
  @JsonProperty(JSON_PROPERTY_VALUE_DATE)
887
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
888

889
  public OffsetDateTime getValueDate() {
890
    return valueDate;
×
891
  }
892

893

894
 /**
895
  * A future date, when the funds are expected to be deducted from or credited to the balance account.
896
  *
897
  * @param valueDate
898
  */ 
899
  @JsonProperty(JSON_PROPERTY_VALUE_DATE)
900
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
901
  public void setValueDate(OffsetDateTime valueDate) {
902
    this.valueDate = valueDate;
×
903
  }
×
904

905

906
  /**
907
   * Return true if this TransferEvent object is equal to o.
908
   */
909
  @Override
910
  public boolean equals(Object o) {
911
    if (this == o) {
×
912
      return true;
×
913
    }
914
    if (o == null || getClass() != o.getClass()) {
×
915
      return false;
×
916
    }
917
    TransferEvent transferEvent = (TransferEvent) o;
×
918
    return Objects.equals(this.amount, transferEvent.amount) &&
×
919
        Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) &&
×
NEW
920
        Objects.equals(this.arn, transferEvent.arn) &&
×
921
        Objects.equals(this.bookingDate, transferEvent.bookingDate) &&
×
922
        Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) &&
×
923
        Objects.equals(this.externalReason, transferEvent.externalReason) &&
×
924
        Objects.equals(this.id, transferEvent.id) &&
×
925
        Objects.equals(this.modification, transferEvent.modification) &&
×
926
        Objects.equals(this.mutations, transferEvent.mutations) &&
×
927
        Objects.equals(this.originalAmount, transferEvent.originalAmount) &&
×
928
        Objects.equals(this.reason, transferEvent.reason) &&
×
929
        Objects.equals(this.status, transferEvent.status) &&
×
930
        Objects.equals(this.trackingData, transferEvent.trackingData) &&
×
931
        Objects.equals(this.transactionId, transferEvent.transactionId) &&
×
932
        Objects.equals(this.type, transferEvent.type) &&
×
933
        Objects.equals(this.updateDate, transferEvent.updateDate) &&
×
934
        Objects.equals(this.valueDate, transferEvent.valueDate);
×
935
  }
936

937
  @Override
938
  public int hashCode() {
NEW
939
    return Objects.hash(amount, amountAdjustments, arn, bookingDate, estimatedArrivalTime, externalReason, id, modification, mutations, originalAmount, reason, status, trackingData, transactionId, type, updateDate, valueDate);
×
940
  }
941

942
  @Override
943
  public String toString() {
944
    StringBuilder sb = new StringBuilder();
×
945
    sb.append("class TransferEvent {\n");
×
946
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
947
    sb.append("    amountAdjustments: ").append(toIndentedString(amountAdjustments)).append("\n");
×
NEW
948
    sb.append("    arn: ").append(toIndentedString(arn)).append("\n");
×
949
    sb.append("    bookingDate: ").append(toIndentedString(bookingDate)).append("\n");
×
950
    sb.append("    estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n");
×
951
    sb.append("    externalReason: ").append(toIndentedString(externalReason)).append("\n");
×
952
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
953
    sb.append("    modification: ").append(toIndentedString(modification)).append("\n");
×
954
    sb.append("    mutations: ").append(toIndentedString(mutations)).append("\n");
×
955
    sb.append("    originalAmount: ").append(toIndentedString(originalAmount)).append("\n");
×
956
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
×
957
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
958
    sb.append("    trackingData: ").append(toIndentedString(trackingData)).append("\n");
×
959
    sb.append("    transactionId: ").append(toIndentedString(transactionId)).append("\n");
×
960
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
961
    sb.append("    updateDate: ").append(toIndentedString(updateDate)).append("\n");
×
962
    sb.append("    valueDate: ").append(toIndentedString(valueDate)).append("\n");
×
963
    sb.append("}");
×
964
    return sb.toString();
×
965
  }
966

967
  /**
968
   * Convert the given object to string with each line indented by 4 spaces
969
   * (except the first line).
970
   */
971
  private String toIndentedString(Object o) {
972
    if (o == null) {
×
973
      return "null";
×
974
    }
975
    return o.toString().replace("\n", "\n    ");
×
976
  }
977

978
/**
979
   * Create an instance of TransferEvent given an JSON string
980
   *
981
   * @param jsonString JSON string
982
   * @return An instance of TransferEvent
983
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransferEvent
984
   */
985
  public static TransferEvent fromJson(String jsonString) throws JsonProcessingException {
986
    return JSON.getMapper().readValue(jsonString, TransferEvent.class);
×
987
  }
988
/**
989
  * Convert an instance of TransferEvent to an JSON string
990
  *
991
  * @return JSON string
992
  */
993
  public String toJson() throws JsonProcessingException {
994
    return JSON.getMapper().writeValueAsString(this);
×
995
  }
996
}
997

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