-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy pathTransferData.java
1312 lines (999 loc) · 39.8 KB
/
TransferData.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Transfer webhooks
*
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.transferwebhooks;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.adyen.model.transferwebhooks.Amount;
import com.adyen.model.transferwebhooks.BalanceMutation;
import com.adyen.model.transferwebhooks.PaymentInstrument;
import com.adyen.model.transferwebhooks.ResourceReference;
import com.adyen.model.transferwebhooks.TransactionRulesResult;
import com.adyen.model.transferwebhooks.TransferDataCategoryData;
import com.adyen.model.transferwebhooks.TransferEvent;
import com.adyen.model.transferwebhooks.TransferNotificationCounterParty;
import com.adyen.model.transferwebhooks.TransferNotificationTransferTracking;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* TransferData
*/
@JsonPropertyOrder({
TransferData.JSON_PROPERTY_ACCOUNT_HOLDER,
TransferData.JSON_PROPERTY_AMOUNT,
TransferData.JSON_PROPERTY_BALANCE_ACCOUNT,
TransferData.JSON_PROPERTY_BALANCE_PLATFORM,
TransferData.JSON_PROPERTY_BALANCES,
TransferData.JSON_PROPERTY_CATEGORY,
TransferData.JSON_PROPERTY_CATEGORY_DATA,
TransferData.JSON_PROPERTY_COUNTERPARTY,
TransferData.JSON_PROPERTY_CREATION_DATE,
TransferData.JSON_PROPERTY_DESCRIPTION,
TransferData.JSON_PROPERTY_DIRECTION,
TransferData.JSON_PROPERTY_EVENTS,
TransferData.JSON_PROPERTY_ID,
TransferData.JSON_PROPERTY_PAYMENT_INSTRUMENT,
TransferData.JSON_PROPERTY_REASON,
TransferData.JSON_PROPERTY_REFERENCE,
TransferData.JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY,
TransferData.JSON_PROPERTY_SEQUENCE_NUMBER,
TransferData.JSON_PROPERTY_STATUS,
TransferData.JSON_PROPERTY_TRACKING,
TransferData.JSON_PROPERTY_TRANSACTION_RULES_RESULT,
TransferData.JSON_PROPERTY_TYPE
})
public class TransferData {
public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "accountHolder";
private ResourceReference accountHolder;
public static final String JSON_PROPERTY_AMOUNT = "amount";
private Amount amount;
public static final String JSON_PROPERTY_BALANCE_ACCOUNT = "balanceAccount";
private ResourceReference balanceAccount;
public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform";
private String balancePlatform;
public static final String JSON_PROPERTY_BALANCES = "balances";
private List<BalanceMutation> balances = null;
/**
* The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
*/
public enum CategoryEnum {
BANK("bank"),
INTERNAL("internal"),
ISSUEDCARD("issuedCard"),
PLATFORMPAYMENT("platformPayment");
private String value;
CategoryEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static CategoryEnum fromValue(String value) {
for (CategoryEnum b : CategoryEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_CATEGORY = "category";
private CategoryEnum category;
public static final String JSON_PROPERTY_CATEGORY_DATA = "categoryData";
private TransferDataCategoryData categoryData;
public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty";
private TransferNotificationCounterParty counterparty;
public static final String JSON_PROPERTY_CREATION_DATE = "creationDate";
private OffsetDateTime creationDate;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
/**
* The direction of the transfer. Possible values: **incoming**, **outgoing**.
*/
public enum DirectionEnum {
INCOMING("incoming"),
OUTGOING("outgoing");
private String value;
DirectionEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DirectionEnum fromValue(String value) {
for (DirectionEnum b : DirectionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_DIRECTION = "direction";
private DirectionEnum direction;
public static final String JSON_PROPERTY_EVENTS = "events";
private List<TransferEvent> events = null;
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT = "paymentInstrument";
private PaymentInstrument paymentInstrument;
/**
* Additional information about the status of the transfer.
*/
public enum ReasonEnum {
AMOUNTLIMITEXCEEDED("amountLimitExceeded"),
APPROVED("approved"),
BALANCEACCOUNTTEMPORARILYBLOCKEDBYTRANSACTIONRULE("balanceAccountTemporarilyBlockedByTransactionRule"),
COUNTERPARTYACCOUNTBLOCKED("counterpartyAccountBlocked"),
COUNTERPARTYACCOUNTCLOSED("counterpartyAccountClosed"),
COUNTERPARTYACCOUNTNOTFOUND("counterpartyAccountNotFound"),
COUNTERPARTYADDRESSREQUIRED("counterpartyAddressRequired"),
COUNTERPARTYBANKTIMEDOUT("counterpartyBankTimedOut"),
COUNTERPARTYBANKUNAVAILABLE("counterpartyBankUnavailable"),
DECLINEDBYTRANSACTIONRULE("declinedByTransactionRule"),
ERROR("error"),
NOTENOUGHBALANCE("notEnoughBalance"),
REFUSEDBYCOUNTERPARTYBANK("refusedByCounterpartyBank"),
ROUTENOTFOUND("routeNotFound"),
SCAFAILED("scaFailed"),
UNKNOWN("unknown");
private String value;
ReasonEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ReasonEnum fromValue(String value) {
for (ReasonEnum b : ReasonEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_REASON = "reason";
private ReasonEnum reason;
public static final String JSON_PROPERTY_REFERENCE = "reference";
private String reference;
public static final String JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY = "referenceForBeneficiary";
private String referenceForBeneficiary;
public static final String JSON_PROPERTY_SEQUENCE_NUMBER = "sequenceNumber";
private Integer sequenceNumber;
/**
* The result of the transfer. For example, **authorised**, **refused**, or **error**.
*/
public enum StatusEnum {
APPROVALPENDING("approvalPending"),
ATMWITHDRAWAL("atmWithdrawal"),
ATMWITHDRAWALREVERSALPENDING("atmWithdrawalReversalPending"),
ATMWITHDRAWALREVERSED("atmWithdrawalReversed"),
AUTHADJUSTMENTAUTHORISED("authAdjustmentAuthorised"),
AUTHADJUSTMENTERROR("authAdjustmentError"),
AUTHADJUSTMENTREFUSED("authAdjustmentRefused"),
AUTHORISED("authorised"),
BANKTRANSFER("bankTransfer"),
BANKTRANSFERPENDING("bankTransferPending"),
BOOKED("booked"),
BOOKINGPENDING("bookingPending"),
CANCELLED("cancelled"),
CAPTUREPENDING("capturePending"),
CAPTUREREVERSALPENDING("captureReversalPending"),
CAPTUREREVERSED("captureReversed"),
CAPTURED("captured"),
CAPTUREDEXTERNALLY("capturedExternally"),
CHARGEBACK("chargeback"),
CHARGEBACKEXTERNALLY("chargebackExternally"),
CHARGEBACKPENDING("chargebackPending"),
CHARGEBACKREVERSALPENDING("chargebackReversalPending"),
CHARGEBACKREVERSED("chargebackReversed"),
CREDITED("credited"),
DEPOSITCORRECTION("depositCorrection"),
DEPOSITCORRECTIONPENDING("depositCorrectionPending"),
DISPUTE("dispute"),
DISPUTECLOSED("disputeClosed"),
DISPUTEEXPIRED("disputeExpired"),
DISPUTENEEDSREVIEW("disputeNeedsReview"),
ERROR("error"),
EXPIRED("expired"),
FAILED("failed"),
FEE("fee"),
FEEPENDING("feePending"),
INTERNALTRANSFER("internalTransfer"),
INTERNALTRANSFERPENDING("internalTransferPending"),
INVOICEDEDUCTION("invoiceDeduction"),
INVOICEDEDUCTIONPENDING("invoiceDeductionPending"),
MANUALCORRECTIONPENDING("manualCorrectionPending"),
MANUALLYCORRECTED("manuallyCorrected"),
MATCHEDSTATEMENT("matchedStatement"),
MATCHEDSTATEMENTPENDING("matchedStatementPending"),
MERCHANTPAYIN("merchantPayin"),
MERCHANTPAYINPENDING("merchantPayinPending"),
MERCHANTPAYINREVERSED("merchantPayinReversed"),
MERCHANTPAYINREVERSEDPENDING("merchantPayinReversedPending"),
MISCCOST("miscCost"),
MISCCOSTPENDING("miscCostPending"),
PAYMENTCOST("paymentCost"),
PAYMENTCOSTPENDING("paymentCostPending"),
RECEIVED("received"),
REFUNDPENDING("refundPending"),
REFUNDREVERSALPENDING("refundReversalPending"),
REFUNDREVERSED("refundReversed"),
REFUNDED("refunded"),
REFUNDEDEXTERNALLY("refundedExternally"),
REFUSED("refused"),
RESERVEADJUSTMENT("reserveAdjustment"),
RESERVEADJUSTMENTPENDING("reserveAdjustmentPending"),
RETURNED("returned"),
SECONDCHARGEBACK("secondChargeback"),
SECONDCHARGEBACKPENDING("secondChargebackPending"),
UNDEFINED("undefined");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public static final String JSON_PROPERTY_TRACKING = "tracking";
private TransferNotificationTransferTracking tracking;
public static final String JSON_PROPERTY_TRANSACTION_RULES_RESULT = "transactionRulesResult";
private TransactionRulesResult transactionRulesResult;
/**
* The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**.
*/
public enum TypeEnum {
ATMWITHDRAWAL("atmWithdrawal"),
ATMWITHDRAWALREVERSAL("atmWithdrawalReversal"),
BALANCEADJUSTMENT("balanceAdjustment"),
BALANCEMIGRATION("balanceMigration"),
BALANCEROLLOVER("balanceRollover"),
BANKTRANSFER("bankTransfer"),
CAPTURE("capture"),
CAPTUREREVERSAL("captureReversal"),
CARDTRANSFER("cardTransfer"),
CASHOUTFEE("cashOutFee"),
CASHOUTFUNDING("cashOutFunding"),
CASHOUTINSTRUCTION("cashOutInstruction"),
CHARGEBACK("chargeback"),
CHARGEBACKCORRECTION("chargebackCorrection"),
CHARGEBACKREVERSAL("chargebackReversal"),
CHARGEBACKREVERSALCORRECTION("chargebackReversalCorrection"),
DEPOSITCORRECTION("depositCorrection"),
FEE("fee"),
GRANT("grant"),
INSTALLMENT("installment"),
INSTALLMENTREVERSAL("installmentReversal"),
INTERNALTRANSFER("internalTransfer"),
INVOICEDEDUCTION("invoiceDeduction"),
LEFTOVER("leftover"),
MANUALCORRECTION("manualCorrection"),
MISCCOST("miscCost"),
PAYMENT("payment"),
PAYMENTCOST("paymentCost"),
REFUND("refund"),
REFUNDREVERSAL("refundReversal"),
REPAYMENT("repayment"),
RESERVEADJUSTMENT("reserveAdjustment"),
SECONDCHARGEBACK("secondChargeback"),
SECONDCHARGEBACKCORRECTION("secondChargebackCorrection");
private String value;
TypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String value) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_TYPE = "type";
private TypeEnum type;
public TransferData() {
}
public TransferData accountHolder(ResourceReference accountHolder) {
this.accountHolder = accountHolder;
return this;
}
/**
* Get accountHolder
* @return accountHolder
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ResourceReference getAccountHolder() {
return accountHolder;
}
/**
* accountHolder
*
* @param accountHolder
*/
@JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAccountHolder(ResourceReference accountHolder) {
this.accountHolder = accountHolder;
}
public TransferData amount(Amount amount) {
this.amount = amount;
return this;
}
/**
* Get amount
* @return amount
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Amount getAmount() {
return amount;
}
/**
* amount
*
* @param amount
*/
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAmount(Amount amount) {
this.amount = amount;
}
public TransferData balanceAccount(ResourceReference balanceAccount) {
this.balanceAccount = balanceAccount;
return this;
}
/**
* Get balanceAccount
* @return balanceAccount
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ResourceReference getBalanceAccount() {
return balanceAccount;
}
/**
* balanceAccount
*
* @param balanceAccount
*/
@JsonProperty(JSON_PROPERTY_BALANCE_ACCOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBalanceAccount(ResourceReference balanceAccount) {
this.balanceAccount = balanceAccount;
}
public TransferData balancePlatform(String balancePlatform) {
this.balancePlatform = balancePlatform;
return this;
}
/**
* The unique identifier of the balance platform.
* @return balancePlatform
**/
@ApiModelProperty(value = "The unique identifier of the balance platform.")
@JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBalancePlatform() {
return balancePlatform;
}
/**
* The unique identifier of the balance platform.
*
* @param balancePlatform
*/
@JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBalancePlatform(String balancePlatform) {
this.balancePlatform = balancePlatform;
}
public TransferData balances(List<BalanceMutation> balances) {
this.balances = balances;
return this;
}
public TransferData addBalancesItem(BalanceMutation balancesItem) {
if (this.balances == null) {
this.balances = new ArrayList<>();
}
this.balances.add(balancesItem);
return this;
}
/**
* The list of the latest balance statuses in the transfer.
* @return balances
**/
@ApiModelProperty(value = "The list of the latest balance statuses in the transfer.")
@JsonProperty(JSON_PROPERTY_BALANCES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<BalanceMutation> getBalances() {
return balances;
}
/**
* The list of the latest balance statuses in the transfer.
*
* @param balances
*/
@JsonProperty(JSON_PROPERTY_BALANCES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBalances(List<BalanceMutation> balances) {
this.balances = balances;
}
public TransferData category(CategoryEnum category) {
this.category = category;
return this;
}
/**
* The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
* @return category
**/
@ApiModelProperty(required = true, value = "The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.")
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CategoryEnum getCategory() {
return category;
}
/**
* The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
*
* @param category
*/
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(CategoryEnum category) {
this.category = category;
}
public TransferData categoryData(TransferDataCategoryData categoryData) {
this.categoryData = categoryData;
return this;
}
/**
* Get categoryData
* @return categoryData
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public TransferDataCategoryData getCategoryData() {
return categoryData;
}
/**
* categoryData
*
* @param categoryData
*/
@JsonProperty(JSON_PROPERTY_CATEGORY_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategoryData(TransferDataCategoryData categoryData) {
this.categoryData = categoryData;
}
public TransferData counterparty(TransferNotificationCounterParty counterparty) {
this.counterparty = counterparty;
return this;
}
/**
* Get counterparty
* @return counterparty
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COUNTERPARTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public TransferNotificationCounterParty getCounterparty() {
return counterparty;
}
/**
* counterparty
*
* @param counterparty
*/
@JsonProperty(JSON_PROPERTY_COUNTERPARTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCounterparty(TransferNotificationCounterParty counterparty) {
this.counterparty = counterparty;
}
public TransferData creationDate(OffsetDateTime creationDate) {
this.creationDate = creationDate;
return this;
}
/**
* The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
* @return creationDate
**/
@ApiModelProperty(value = "The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.")
@JsonProperty(JSON_PROPERTY_CREATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getCreationDate() {
return creationDate;
}
/**
* The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
*
* @param creationDate
*/
@JsonProperty(JSON_PROPERTY_CREATION_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCreationDate(OffsetDateTime creationDate) {
this.creationDate = creationDate;
}
public TransferData description(String description) {
this.description = description;
return this;
}
/**
* Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**
* @return description
**/
@ApiModelProperty(value = "Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
/**
* Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**
*
* @param description
*/
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
public TransferData direction(DirectionEnum direction) {
this.direction = direction;
return this;
}
/**
* The direction of the transfer. Possible values: **incoming**, **outgoing**.
* @return direction
**/
@ApiModelProperty(value = "The direction of the transfer. Possible values: **incoming**, **outgoing**.")
@JsonProperty(JSON_PROPERTY_DIRECTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DirectionEnum getDirection() {
return direction;
}
/**
* The direction of the transfer. Possible values: **incoming**, **outgoing**.
*
* @param direction
*/
@JsonProperty(JSON_PROPERTY_DIRECTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDirection(DirectionEnum direction) {
this.direction = direction;
}
public TransferData events(List<TransferEvent> events) {
this.events = events;
return this;
}
public TransferData addEventsItem(TransferEvent eventsItem) {
if (this.events == null) {
this.events = new ArrayList<>();
}
this.events.add(eventsItem);
return this;
}
/**
* The list of events leading up to the current status of the transfer.
* @return events
**/
@ApiModelProperty(value = "The list of events leading up to the current status of the transfer.")
@JsonProperty(JSON_PROPERTY_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<TransferEvent> getEvents() {
return events;
}
/**
* The list of events leading up to the current status of the transfer.
*
* @param events
*/
@JsonProperty(JSON_PROPERTY_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEvents(List<TransferEvent> events) {
this.events = events;
}
public TransferData id(String id) {
this.id = id;
return this;
}
/**
* The ID of the resource.
* @return id
**/
@ApiModelProperty(value = "The ID of the resource.")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
/**
* The ID of the resource.
*
* @param id
*/
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(String id) {
this.id = id;
}
public TransferData paymentInstrument(PaymentInstrument paymentInstrument) {
this.paymentInstrument = paymentInstrument;
return this;
}
/**
* Get paymentInstrument
* @return paymentInstrument
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public PaymentInstrument getPaymentInstrument() {
return paymentInstrument;
}
/**
* paymentInstrument
*
* @param paymentInstrument
*/
@JsonProperty(JSON_PROPERTY_PAYMENT_INSTRUMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPaymentInstrument(PaymentInstrument paymentInstrument) {
this.paymentInstrument = paymentInstrument;
}
public TransferData reason(ReasonEnum reason) {
this.reason = reason;
return this;
}
/**
* Additional information about the status of the transfer.
* @return reason
**/
@ApiModelProperty(value = "Additional information about the status of the transfer.")
@JsonProperty(JSON_PROPERTY_REASON)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ReasonEnum getReason() {
return reason;
}
/**
* Additional information about the status of the transfer.
*
* @param reason
*/
@JsonProperty(JSON_PROPERTY_REASON)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReason(ReasonEnum reason) {
this.reason = reason;
}