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

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

18 Sep 2023 12:27PM UTC coverage: 13.146%. First build
#2660

push

web-flow
Merge fdf590561 into ba706cfa8

2480 of 2480 new or added lines in 54 files covered. (100.0%)

10283 of 78224 relevant lines covered (13.15%)

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/transferwebhooks/TransferEvent.java
1
/*
2
 * Transfer webhooks
3
 *
4
 * The version of the OpenAPI document: 3
5
 * 
6
 *
7
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
 * https://openapi-generator.tech
9
 * Do not edit the class manually.
10
 */
11

12

13
package com.adyen.model.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.TransferOperation;
23
import com.fasterxml.jackson.annotation.JsonInclude;
24
import com.fasterxml.jackson.annotation.JsonProperty;
25
import com.fasterxml.jackson.annotation.JsonCreator;
26
import com.fasterxml.jackson.annotation.JsonTypeName;
27
import com.fasterxml.jackson.annotation.JsonValue;
28
import io.swagger.annotations.ApiModel;
29
import io.swagger.annotations.ApiModelProperty;
30
import java.time.OffsetDateTime;
31
import java.util.ArrayList;
32
import java.util.List;
33
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34
import com.fasterxml.jackson.core.JsonProcessingException;
35

36

37
/**
38
 * TransferEvent
39
 */
40
@JsonPropertyOrder({
41
  TransferEvent.JSON_PROPERTY_AMOUNT,
42
  TransferEvent.JSON_PROPERTY_AMOUNT_ADJUSTMENTS,
43
  TransferEvent.JSON_PROPERTY_BOOKING_DATE,
44
  TransferEvent.JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME,
45
  TransferEvent.JSON_PROPERTY_ID,
46
  TransferEvent.JSON_PROPERTY_MUTATIONS,
47
  TransferEvent.JSON_PROPERTY_ORIGINAL_AMOUNT,
48
  TransferEvent.JSON_PROPERTY_REASON,
49
  TransferEvent.JSON_PROPERTY_STATUS,
50
  TransferEvent.JSON_PROPERTY_TRANSACTION_ID,
51
  TransferEvent.JSON_PROPERTY_TRANSFER_OPERATION,
52
  TransferEvent.JSON_PROPERTY_TYPE,
53
  TransferEvent.JSON_PROPERTY_UPDATE_DATE,
54
  TransferEvent.JSON_PROPERTY_VALUE_DATE
55
})
56

57
public class TransferEvent {
58
  public static final String JSON_PROPERTY_AMOUNT = "amount";
59
  private Amount amount;
60

61
  public static final String JSON_PROPERTY_AMOUNT_ADJUSTMENTS = "amountAdjustments";
62
  private List<AmountAdjustment> amountAdjustments = null;
×
63

64
  public static final String JSON_PROPERTY_BOOKING_DATE = "bookingDate";
65
  private OffsetDateTime bookingDate;
66

67
  public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime";
68
  private OffsetDateTime estimatedArrivalTime;
69

70
  public static final String JSON_PROPERTY_ID = "id";
71
  private String id;
72

73
  public static final String JSON_PROPERTY_MUTATIONS = "mutations";
74
  private List<BalanceMutation> mutations = null;
×
75

76
  public static final String JSON_PROPERTY_ORIGINAL_AMOUNT = "originalAmount";
77
  private Amount originalAmount;
78

79
  /**
80
   * The reason for the transfer status.
81
   */
82
  public enum ReasonEnum {
×
83
    AMOUNTLIMITEXCEEDED("amountLimitExceeded"),
×
84
    
85
    APPROVED("approved"),
×
86
    
87
    COUNTERPARTYACCOUNTBLOCKED("counterpartyAccountBlocked"),
×
88
    
89
    COUNTERPARTYACCOUNTCLOSED("counterpartyAccountClosed"),
×
90
    
91
    COUNTERPARTYACCOUNTNOTFOUND("counterpartyAccountNotFound"),
×
92
    
93
    COUNTERPARTYADDRESSREQUIRED("counterpartyAddressRequired"),
×
94
    
95
    COUNTERPARTYBANKTIMEDOUT("counterpartyBankTimedOut"),
×
96
    
97
    COUNTERPARTYBANKUNAVAILABLE("counterpartyBankUnavailable"),
×
98
    
99
    ERROR("error"),
×
100
    
101
    NOTENOUGHBALANCE("notEnoughBalance"),
×
102
    
103
    REFUSEDBYCOUNTERPARTYBANK("refusedByCounterpartyBank"),
×
104
    
105
    ROUTENOTFOUND("routeNotFound"),
×
106
    
107
    UNKNOWN("unknown");
×
108

109
    private String value;
110

111
    ReasonEnum(String value) {
×
112
      this.value = value;
×
113
    }
×
114

115
    @JsonValue
116
    public String getValue() {
117
      return value;
×
118
    }
119

120
    @Override
121
    public String toString() {
122
      return String.valueOf(value);
×
123
    }
124

125
    @JsonCreator
126
    public static ReasonEnum fromValue(String value) {
127
      for (ReasonEnum b : ReasonEnum.values()) {
×
128
        if (b.value.equals(value)) {
×
129
          return b;
×
130
        }
131
      }
132
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
133
    }
134
  }
135

136
  public static final String JSON_PROPERTY_REASON = "reason";
137
  private ReasonEnum reason;
138

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

279
    private String value;
280

281
    StatusEnum(String value) {
×
282
      this.value = value;
×
283
    }
×
284

285
    @JsonValue
286
    public String getValue() {
287
      return value;
×
288
    }
289

290
    @Override
291
    public String toString() {
292
      return String.valueOf(value);
×
293
    }
294

295
    @JsonCreator
296
    public static StatusEnum fromValue(String value) {
297
      for (StatusEnum b : StatusEnum.values()) {
×
298
        if (b.value.equals(value)) {
×
299
          return b;
×
300
        }
301
      }
302
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
303
    }
304
  }
305

306
  public static final String JSON_PROPERTY_STATUS = "status";
307
  private StatusEnum status;
308

309
  public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId";
310
  private String transactionId;
311

312
  public static final String JSON_PROPERTY_TRANSFER_OPERATION = "transferOperation";
313
  private TransferOperation transferOperation;
314

315
  /**
316
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
317
   */
318
  public enum TypeEnum {
×
319
    ACCOUNTING("accounting"),
×
320
    
321
    TRACKING("tracking");
×
322

323
    private String value;
324

325
    TypeEnum(String value) {
×
326
      this.value = value;
×
327
    }
×
328

329
    @JsonValue
330
    public String getValue() {
331
      return value;
×
332
    }
333

334
    @Override
335
    public String toString() {
336
      return String.valueOf(value);
×
337
    }
338

339
    @JsonCreator
340
    public static TypeEnum fromValue(String value) {
341
      for (TypeEnum b : TypeEnum.values()) {
×
342
        if (b.value.equals(value)) {
×
343
          return b;
×
344
        }
345
      }
346
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
347
    }
348
  }
349

350
  public static final String JSON_PROPERTY_TYPE = "type";
351
  private TypeEnum type;
352

353
  public static final String JSON_PROPERTY_UPDATE_DATE = "updateDate";
354
  private OffsetDateTime updateDate;
355

356
  public static final String JSON_PROPERTY_VALUE_DATE = "valueDate";
357
  private OffsetDateTime valueDate;
358

359
  public TransferEvent() { 
×
360
  }
×
361

362
  public TransferEvent amount(Amount amount) {
363
    this.amount = amount;
×
364
    return this;
×
365
  }
366

367
   /**
368
   * Get amount
369
   * @return amount
370
  **/
371
  @ApiModelProperty(value = "")
372
  @JsonProperty(JSON_PROPERTY_AMOUNT)
373
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
374

375
  public Amount getAmount() {
376
    return amount;
×
377
  }
378

379

380
  @JsonProperty(JSON_PROPERTY_AMOUNT)
381
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
382
  public void setAmount(Amount amount) {
383
    this.amount = amount;
×
384
  }
×
385

386

387
  public TransferEvent amountAdjustments(List<AmountAdjustment> amountAdjustments) {
388
    this.amountAdjustments = amountAdjustments;
×
389
    return this;
×
390
  }
391

392
  public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustmentsItem) {
393
    if (this.amountAdjustments == null) {
×
394
      this.amountAdjustments = new ArrayList<>();
×
395
    }
396
    this.amountAdjustments.add(amountAdjustmentsItem);
×
397
    return this;
×
398
  }
399

400
   /**
401
   * The amount adjustments in this transfer.
402
   * @return amountAdjustments
403
  **/
404
  @ApiModelProperty(value = "The amount adjustments in this transfer.")
405
  @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS)
406
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
407

408
  public List<AmountAdjustment> getAmountAdjustments() {
409
    return amountAdjustments;
×
410
  }
411

412

413
  @JsonProperty(JSON_PROPERTY_AMOUNT_ADJUSTMENTS)
414
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
415
  public void setAmountAdjustments(List<AmountAdjustment> amountAdjustments) {
416
    this.amountAdjustments = amountAdjustments;
×
417
  }
×
418

419

420
  public TransferEvent bookingDate(OffsetDateTime bookingDate) {
421
    this.bookingDate = bookingDate;
×
422
    return this;
×
423
  }
424

425
   /**
426
   * The date when the transfer request was sent.
427
   * @return bookingDate
428
  **/
429
  @ApiModelProperty(value = "The date when the transfer request was sent.")
430
  @JsonProperty(JSON_PROPERTY_BOOKING_DATE)
431
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
432

433
  public OffsetDateTime getBookingDate() {
434
    return bookingDate;
×
435
  }
436

437

438
  @JsonProperty(JSON_PROPERTY_BOOKING_DATE)
439
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
440
  public void setBookingDate(OffsetDateTime bookingDate) {
441
    this.bookingDate = bookingDate;
×
442
  }
×
443

444

445
  public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) {
446
    this.estimatedArrivalTime = estimatedArrivalTime;
×
447
    return this;
×
448
  }
449

450
   /**
451
   * The estimated time the beneficiary should have access to the funds.
452
   * @return estimatedArrivalTime
453
  **/
454
  @ApiModelProperty(value = "The estimated time the beneficiary should have access to the funds.")
455
  @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME)
456
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
457

458
  public OffsetDateTime getEstimatedArrivalTime() {
459
    return estimatedArrivalTime;
×
460
  }
461

462

463
  @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME)
464
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
465
  public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) {
466
    this.estimatedArrivalTime = estimatedArrivalTime;
×
467
  }
×
468

469

470
  public TransferEvent id(String id) {
471
    this.id = id;
×
472
    return this;
×
473
  }
474

475
   /**
476
   * The unique identifier of the transfer event.
477
   * @return id
478
  **/
479
  @ApiModelProperty(value = "The unique identifier of the transfer event.")
480
  @JsonProperty(JSON_PROPERTY_ID)
481
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
482

483
  public String getId() {
484
    return id;
×
485
  }
486

487

488
  @JsonProperty(JSON_PROPERTY_ID)
489
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
490
  public void setId(String id) {
491
    this.id = id;
×
492
  }
×
493

494

495
  public TransferEvent mutations(List<BalanceMutation> mutations) {
496
    this.mutations = mutations;
×
497
    return this;
×
498
  }
499

500
  public TransferEvent addMutationsItem(BalanceMutation mutationsItem) {
501
    if (this.mutations == null) {
×
502
      this.mutations = new ArrayList<>();
×
503
    }
504
    this.mutations.add(mutationsItem);
×
505
    return this;
×
506
  }
507

508
   /**
509
   * The list of the balance mutation per event.
510
   * @return mutations
511
  **/
512
  @ApiModelProperty(value = "The list of the balance mutation per event.")
513
  @JsonProperty(JSON_PROPERTY_MUTATIONS)
514
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
515

516
  public List<BalanceMutation> getMutations() {
517
    return mutations;
×
518
  }
519

520

521
  @JsonProperty(JSON_PROPERTY_MUTATIONS)
522
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
523
  public void setMutations(List<BalanceMutation> mutations) {
524
    this.mutations = mutations;
×
525
  }
×
526

527

528
  public TransferEvent originalAmount(Amount originalAmount) {
529
    this.originalAmount = originalAmount;
×
530
    return this;
×
531
  }
532

533
   /**
534
   * Get originalAmount
535
   * @return originalAmount
536
  **/
537
  @ApiModelProperty(value = "")
538
  @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT)
539
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
540

541
  public Amount getOriginalAmount() {
542
    return originalAmount;
×
543
  }
544

545

546
  @JsonProperty(JSON_PROPERTY_ORIGINAL_AMOUNT)
547
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
548
  public void setOriginalAmount(Amount originalAmount) {
549
    this.originalAmount = originalAmount;
×
550
  }
×
551

552

553
  public TransferEvent reason(ReasonEnum reason) {
554
    this.reason = reason;
×
555
    return this;
×
556
  }
557

558
   /**
559
   * The reason for the transfer status.
560
   * @return reason
561
  **/
562
  @ApiModelProperty(value = "The reason for the transfer status.")
563
  @JsonProperty(JSON_PROPERTY_REASON)
564
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
565

566
  public ReasonEnum getReason() {
567
    return reason;
×
568
  }
569

570

571
  @JsonProperty(JSON_PROPERTY_REASON)
572
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
573
  public void setReason(ReasonEnum reason) {
574
    this.reason = reason;
×
575
  }
×
576

577

578
  public TransferEvent status(StatusEnum status) {
579
    this.status = status;
×
580
    return this;
×
581
  }
582

583
   /**
584
   * The status of the transfer event.
585
   * @return status
586
  **/
587
  @ApiModelProperty(value = "The status of the transfer event.")
588
  @JsonProperty(JSON_PROPERTY_STATUS)
589
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
590

591
  public StatusEnum getStatus() {
592
    return status;
×
593
  }
594

595

596
  @JsonProperty(JSON_PROPERTY_STATUS)
597
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
598
  public void setStatus(StatusEnum status) {
599
    this.status = status;
×
600
  }
×
601

602

603
  public TransferEvent transactionId(String transactionId) {
604
    this.transactionId = transactionId;
×
605
    return this;
×
606
  }
607

608
   /**
609
   * The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
610
   * @return transactionId
611
  **/
612
  @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.")
613
  @JsonProperty(JSON_PROPERTY_TRANSACTION_ID)
614
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
615

616
  public String getTransactionId() {
617
    return transactionId;
×
618
  }
619

620

621
  @JsonProperty(JSON_PROPERTY_TRANSACTION_ID)
622
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
623
  public void setTransactionId(String transactionId) {
624
    this.transactionId = transactionId;
×
625
  }
×
626

627

628
  public TransferEvent transferOperation(TransferOperation transferOperation) {
629
    this.transferOperation = transferOperation;
×
630
    return this;
×
631
  }
632

633
   /**
634
   * Get transferOperation
635
   * @return transferOperation
636
  **/
637
  @ApiModelProperty(value = "")
638
  @JsonProperty(JSON_PROPERTY_TRANSFER_OPERATION)
639
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
640

641
  public TransferOperation getTransferOperation() {
642
    return transferOperation;
×
643
  }
644

645

646
  @JsonProperty(JSON_PROPERTY_TRANSFER_OPERATION)
647
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
648
  public void setTransferOperation(TransferOperation transferOperation) {
649
    this.transferOperation = transferOperation;
×
650
  }
×
651

652

653
  public TransferEvent type(TypeEnum type) {
654
    this.type = type;
×
655
    return this;
×
656
  }
657

658
   /**
659
   * The type of the transfer event. Possible values: **accounting**, **tracking**.
660
   * @return type
661
  **/
662
  @ApiModelProperty(value = "The type of the transfer event. Possible values: **accounting**, **tracking**.")
663
  @JsonProperty(JSON_PROPERTY_TYPE)
664
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
665

666
  public TypeEnum getType() {
667
    return type;
×
668
  }
669

670

671
  @JsonProperty(JSON_PROPERTY_TYPE)
672
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
673
  public void setType(TypeEnum type) {
674
    this.type = type;
×
675
  }
×
676

677

678
  public TransferEvent updateDate(OffsetDateTime updateDate) {
679
    this.updateDate = updateDate;
×
680
    return this;
×
681
  }
682

683
   /**
684
   * The date when the tracking status was updated.
685
   * @return updateDate
686
  **/
687
  @ApiModelProperty(value = "The date when the tracking status was updated.")
688
  @JsonProperty(JSON_PROPERTY_UPDATE_DATE)
689
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
690

691
  public OffsetDateTime getUpdateDate() {
692
    return updateDate;
×
693
  }
694

695

696
  @JsonProperty(JSON_PROPERTY_UPDATE_DATE)
697
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
698
  public void setUpdateDate(OffsetDateTime updateDate) {
699
    this.updateDate = updateDate;
×
700
  }
×
701

702

703
  public TransferEvent valueDate(OffsetDateTime valueDate) {
704
    this.valueDate = valueDate;
×
705
    return this;
×
706
  }
707

708
   /**
709
   * A future date, when the funds are expected to be deducted from or credited to the balance account.
710
   * @return valueDate
711
  **/
712
  @ApiModelProperty(value = "A future date, when the funds are expected to be deducted from or credited to the balance account.")
713
  @JsonProperty(JSON_PROPERTY_VALUE_DATE)
714
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
715

716
  public OffsetDateTime getValueDate() {
717
    return valueDate;
×
718
  }
719

720

721
  @JsonProperty(JSON_PROPERTY_VALUE_DATE)
722
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
723
  public void setValueDate(OffsetDateTime valueDate) {
724
    this.valueDate = valueDate;
×
725
  }
×
726

727

728
  /**
729
   * Return true if this TransferEvent object is equal to o.
730
   */
731
  @Override
732
  public boolean equals(Object o) {
733
    if (this == o) {
×
734
      return true;
×
735
    }
736
    if (o == null || getClass() != o.getClass()) {
×
737
      return false;
×
738
    }
739
    TransferEvent transferEvent = (TransferEvent) o;
×
740
    return Objects.equals(this.amount, transferEvent.amount) &&
×
741
        Objects.equals(this.amountAdjustments, transferEvent.amountAdjustments) &&
×
742
        Objects.equals(this.bookingDate, transferEvent.bookingDate) &&
×
743
        Objects.equals(this.estimatedArrivalTime, transferEvent.estimatedArrivalTime) &&
×
744
        Objects.equals(this.id, transferEvent.id) &&
×
745
        Objects.equals(this.mutations, transferEvent.mutations) &&
×
746
        Objects.equals(this.originalAmount, transferEvent.originalAmount) &&
×
747
        Objects.equals(this.reason, transferEvent.reason) &&
×
748
        Objects.equals(this.status, transferEvent.status) &&
×
749
        Objects.equals(this.transactionId, transferEvent.transactionId) &&
×
750
        Objects.equals(this.transferOperation, transferEvent.transferOperation) &&
×
751
        Objects.equals(this.type, transferEvent.type) &&
×
752
        Objects.equals(this.updateDate, transferEvent.updateDate) &&
×
753
        Objects.equals(this.valueDate, transferEvent.valueDate);
×
754
  }
755

756
  @Override
757
  public int hashCode() {
758
    return Objects.hash(amount, amountAdjustments, bookingDate, estimatedArrivalTime, id, mutations, originalAmount, reason, status, transactionId, transferOperation, type, updateDate, valueDate);
×
759
  }
760

761
  @Override
762
  public String toString() {
763
    StringBuilder sb = new StringBuilder();
×
764
    sb.append("class TransferEvent {\n");
×
765
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
766
    sb.append("    amountAdjustments: ").append(toIndentedString(amountAdjustments)).append("\n");
×
767
    sb.append("    bookingDate: ").append(toIndentedString(bookingDate)).append("\n");
×
768
    sb.append("    estimatedArrivalTime: ").append(toIndentedString(estimatedArrivalTime)).append("\n");
×
769
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
770
    sb.append("    mutations: ").append(toIndentedString(mutations)).append("\n");
×
771
    sb.append("    originalAmount: ").append(toIndentedString(originalAmount)).append("\n");
×
772
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
×
773
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
774
    sb.append("    transactionId: ").append(toIndentedString(transactionId)).append("\n");
×
775
    sb.append("    transferOperation: ").append(toIndentedString(transferOperation)).append("\n");
×
776
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
777
    sb.append("    updateDate: ").append(toIndentedString(updateDate)).append("\n");
×
778
    sb.append("    valueDate: ").append(toIndentedString(valueDate)).append("\n");
×
779
    sb.append("}");
×
780
    return sb.toString();
×
781
  }
782

783
  /**
784
   * Convert the given object to string with each line indented by 4 spaces
785
   * (except the first line).
786
   */
787
  private String toIndentedString(Object o) {
788
    if (o == null) {
×
789
      return "null";
×
790
    }
791
    return o.toString().replace("\n", "\n    ");
×
792
  }
793

794
/**
795
   * Create an instance of TransferEvent given an JSON string
796
   *
797
   * @param jsonString JSON string
798
   * @return An instance of TransferEvent
799
   * @throws JsonProcessingException if the JSON string is invalid with respect to TransferEvent
800
   */
801
  public static TransferEvent fromJson(String jsonString) throws JsonProcessingException {
802
    return JSON.getMapper().readValue(jsonString, TransferEvent.class);
×
803
  }
804
/**
805
  * Convert an instance of TransferEvent to an JSON string
806
  *
807
  * @return JSON string
808
  */
809
  public String toJson() throws JsonProcessingException {
810
    return JSON.getMapper().writeValueAsString(this);
×
811
  }
812
}
813

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc