-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathCreateCheckoutSessionRequest.java
More file actions
3662 lines (3348 loc) · 162 KB
/
Copy pathCreateCheckoutSessionRequest.java
File metadata and controls
3662 lines (3348 loc) · 162 KB
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
/*
* Adyen Checkout API
*
* The version of the OpenAPI document: 71
*
*
* 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.checkout;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
/** CreateCheckoutSessionRequest */
@JsonPropertyOrder({
CreateCheckoutSessionRequest.JSON_PROPERTY_ACCOUNT_INFO,
CreateCheckoutSessionRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT,
CreateCheckoutSessionRequest.JSON_PROPERTY_ADDITIONAL_DATA,
CreateCheckoutSessionRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS,
CreateCheckoutSessionRequest.JSON_PROPERTY_AMOUNT,
CreateCheckoutSessionRequest.JSON_PROPERTY_APPLICATION_INFO,
CreateCheckoutSessionRequest.JSON_PROPERTY_AUTHENTICATION_DATA,
CreateCheckoutSessionRequest.JSON_PROPERTY_BILLING_ADDRESS,
CreateCheckoutSessionRequest.JSON_PROPERTY_BLOCKED_PAYMENT_METHODS,
CreateCheckoutSessionRequest.JSON_PROPERTY_CAPTURE_DELAY_HOURS,
CreateCheckoutSessionRequest.JSON_PROPERTY_CHANNEL,
CreateCheckoutSessionRequest.JSON_PROPERTY_COMPANY,
CreateCheckoutSessionRequest.JSON_PROPERTY_COUNTRY_CODE,
CreateCheckoutSessionRequest.JSON_PROPERTY_DATE_OF_BIRTH,
CreateCheckoutSessionRequest.JSON_PROPERTY_DELIVER_AT,
CreateCheckoutSessionRequest.JSON_PROPERTY_DELIVERY_ADDRESS,
CreateCheckoutSessionRequest.JSON_PROPERTY_ENABLE_ONE_CLICK,
CreateCheckoutSessionRequest.JSON_PROPERTY_ENABLE_PAY_OUT,
CreateCheckoutSessionRequest.JSON_PROPERTY_ENABLE_RECURRING,
CreateCheckoutSessionRequest.JSON_PROPERTY_EXPIRES_AT,
CreateCheckoutSessionRequest.JSON_PROPERTY_FUND_ORIGIN,
CreateCheckoutSessionRequest.JSON_PROPERTY_FUND_RECIPIENT,
CreateCheckoutSessionRequest.JSON_PROPERTY_INSTALLMENT_OPTIONS,
CreateCheckoutSessionRequest.JSON_PROPERTY_LINE_ITEMS,
CreateCheckoutSessionRequest.JSON_PROPERTY_MANDATE,
CreateCheckoutSessionRequest.JSON_PROPERTY_MCC,
CreateCheckoutSessionRequest.JSON_PROPERTY_MERCHANT_ACCOUNT,
CreateCheckoutSessionRequest.JSON_PROPERTY_MERCHANT_ORDER_REFERENCE,
CreateCheckoutSessionRequest.JSON_PROPERTY_METADATA,
CreateCheckoutSessionRequest.JSON_PROPERTY_MODE,
CreateCheckoutSessionRequest.JSON_PROPERTY_MPI_DATA,
CreateCheckoutSessionRequest.JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC,
CreateCheckoutSessionRequest.JSON_PROPERTY_RECURRING_EXPIRY,
CreateCheckoutSessionRequest.JSON_PROPERTY_RECURRING_FREQUENCY,
CreateCheckoutSessionRequest.JSON_PROPERTY_RECURRING_PROCESSING_MODEL,
CreateCheckoutSessionRequest.JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD,
CreateCheckoutSessionRequest.JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD,
CreateCheckoutSessionRequest.JSON_PROPERTY_REFERENCE,
CreateCheckoutSessionRequest.JSON_PROPERTY_RETURN_URL,
CreateCheckoutSessionRequest.JSON_PROPERTY_RISK_DATA,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_EMAIL,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_I_P,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_INTERACTION,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_LOCALE,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_NAME,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_REFERENCE,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_STATEMENT,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT,
CreateCheckoutSessionRequest.JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON,
CreateCheckoutSessionRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER,
CreateCheckoutSessionRequest.JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES,
CreateCheckoutSessionRequest.JSON_PROPERTY_SPLITS,
CreateCheckoutSessionRequest.JSON_PROPERTY_STORE,
CreateCheckoutSessionRequest.JSON_PROPERTY_STORE_FILTRATION_MODE,
CreateCheckoutSessionRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD,
CreateCheckoutSessionRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE,
CreateCheckoutSessionRequest.JSON_PROPERTY_TELEPHONE_NUMBER,
CreateCheckoutSessionRequest.JSON_PROPERTY_THEME_ID,
CreateCheckoutSessionRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA,
CreateCheckoutSessionRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY,
CreateCheckoutSessionRequest.JSON_PROPERTY_TRUSTED_SHOPPER
})
public class CreateCheckoutSessionRequest {
public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo";
private AccountInfo accountInfo;
public static final String JSON_PROPERTY_ADDITIONAL_AMOUNT = "additionalAmount";
private Amount additionalAmount;
public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData";
private Map<String, String> additionalData;
public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods";
private List<String> allowedPaymentMethods;
public static final String JSON_PROPERTY_AMOUNT = "amount";
private Amount amount;
public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo";
private ApplicationInfo applicationInfo;
public static final String JSON_PROPERTY_AUTHENTICATION_DATA = "authenticationData";
private AuthenticationData authenticationData;
public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress";
private BillingAddress billingAddress;
public static final String JSON_PROPERTY_BLOCKED_PAYMENT_METHODS = "blockedPaymentMethods";
private List<String> blockedPaymentMethods;
public static final String JSON_PROPERTY_CAPTURE_DELAY_HOURS = "captureDelayHours";
private Integer captureDelayHours;
/**
* The platform where a payment transaction takes place. This field is optional for filtering out
* payment methods that are only available on specific platforms. If this value is not set, then
* we will try to infer it from the `sdkVersion` or `token`. Possible values:
* * **iOS** * **Android** * **Web**
*/
public enum ChannelEnum {
IOS(String.valueOf("iOS")),
ANDROID(String.valueOf("Android")),
WEB(String.valueOf("Web"));
private static final Logger LOG = Logger.getLogger(ChannelEnum.class.getName());
private String value;
ChannelEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ChannelEnum fromValue(String value) {
for (ChannelEnum b : ChannelEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"ChannelEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(ChannelEnum.values()));
return null;
}
}
public static final String JSON_PROPERTY_CHANNEL = "channel";
private ChannelEnum channel;
public static final String JSON_PROPERTY_COMPANY = "company";
private Company company;
public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode";
private String countryCode;
public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth";
private LocalDate dateOfBirth;
public static final String JSON_PROPERTY_DELIVER_AT = "deliverAt";
private OffsetDateTime deliverAt;
public static final String JSON_PROPERTY_DELIVERY_ADDRESS = "deliveryAddress";
private DeliveryAddress deliveryAddress;
public static final String JSON_PROPERTY_ENABLE_ONE_CLICK = "enableOneClick";
private Boolean enableOneClick;
public static final String JSON_PROPERTY_ENABLE_PAY_OUT = "enablePayOut";
private Boolean enablePayOut;
public static final String JSON_PROPERTY_ENABLE_RECURRING = "enableRecurring";
private Boolean enableRecurring;
public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt";
private OffsetDateTime expiresAt;
public static final String JSON_PROPERTY_FUND_ORIGIN = "fundOrigin";
private FundOrigin fundOrigin;
public static final String JSON_PROPERTY_FUND_RECIPIENT = "fundRecipient";
private FundRecipient fundRecipient;
public static final String JSON_PROPERTY_INSTALLMENT_OPTIONS = "installmentOptions";
private Map<String, CheckoutSessionInstallmentOption> installmentOptions;
public static final String JSON_PROPERTY_LINE_ITEMS = "lineItems";
private List<LineItem> lineItems;
public static final String JSON_PROPERTY_MANDATE = "mandate";
private Mandate mandate;
public static final String JSON_PROPERTY_MCC = "mcc";
private String mcc;
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
private String merchantAccount;
public static final String JSON_PROPERTY_MERCHANT_ORDER_REFERENCE = "merchantOrderReference";
private String merchantOrderReference;
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map<String, String> metadata;
/**
* Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in
* or Components integration * **hosted**: Hosted Checkout integration
*/
public enum ModeEnum {
EMBEDDED(String.valueOf("embedded")),
HOSTED(String.valueOf("hosted"));
private static final Logger LOG = Logger.getLogger(ModeEnum.class.getName());
private String value;
ModeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ModeEnum fromValue(String value) {
for (ModeEnum b : ModeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"ModeEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(ModeEnum.values()));
return null;
}
}
public static final String JSON_PROPERTY_MODE = "mode";
private ModeEnum mode;
public static final String JSON_PROPERTY_MPI_DATA = "mpiData";
private ThreeDSecureData mpiData;
public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC = "platformChargebackLogic";
private PlatformChargebackLogic platformChargebackLogic;
public static final String JSON_PROPERTY_RECURRING_EXPIRY = "recurringExpiry";
private String recurringExpiry;
public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency";
private String recurringFrequency;
/**
* Defines a recurring payment type. Required when creating a token to store payment details.
* Allowed values: * `Subscription` – A transaction for a fixed or variable amount,
* which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF)
* transaction, card details are stored to enable one-click or omnichannel journeys, or simply to
* streamline the checkout process. Any subscription not following a fixed schedule is also
* considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled
* card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or
* have variable amounts. For example, automatic top-ups when a cardholder's balance drops
* below a certain amount.
*/
public enum RecurringProcessingModelEnum {
CARDONFILE(String.valueOf("CardOnFile")),
SUBSCRIPTION(String.valueOf("Subscription")),
UNSCHEDULEDCARDONFILE(String.valueOf("UnscheduledCardOnFile"));
private static final Logger LOG =
Logger.getLogger(RecurringProcessingModelEnum.class.getName());
private String value;
RecurringProcessingModelEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static RecurringProcessingModelEnum fromValue(String value) {
for (RecurringProcessingModelEnum b : RecurringProcessingModelEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"RecurringProcessingModelEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(RecurringProcessingModelEnum.values()));
return null;
}
}
public static final String JSON_PROPERTY_RECURRING_PROCESSING_MODEL = "recurringProcessingModel";
private RecurringProcessingModelEnum recurringProcessingModel;
public static final String JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD = "redirectFromIssuerMethod";
private String redirectFromIssuerMethod;
public static final String JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD = "redirectToIssuerMethod";
private String redirectToIssuerMethod;
public static final String JSON_PROPERTY_REFERENCE = "reference";
private String reference;
public static final String JSON_PROPERTY_RETURN_URL = "returnUrl";
private String returnUrl;
public static final String JSON_PROPERTY_RISK_DATA = "riskData";
private RiskData riskData;
public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
private String shopperEmail;
public static final String JSON_PROPERTY_SHOPPER_I_P = "shopperIP";
private String shopperIP;
/**
* Specifies the sales channel, through which the shopper gives their card details, and whether
* the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper
* interaction by default. This field has the following possible values: * `Ecommerce` -
* Online transactions where the cardholder is present (online). For better authorisation rates,
* we recommend sending the card security code (CSC) along with the request. *
* `ContAuth` - Card on file and/or subscription transactions, where the cardholder is
* known to the merchant (returning customer). If the shopper is present (online), you can supply
* also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and
* telephone-order transactions where the shopper is in contact with the merchant via email or
* telephone. * `POS` - Point-of-sale transactions where the shopper is physically
* present to make a payment using a secure payment terminal.
*/
public enum ShopperInteractionEnum {
ECOMMERCE(String.valueOf("Ecommerce")),
CONTAUTH(String.valueOf("ContAuth")),
MOTO(String.valueOf("Moto")),
POS(String.valueOf("POS"));
private static final Logger LOG = Logger.getLogger(ShopperInteractionEnum.class.getName());
private String value;
ShopperInteractionEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ShopperInteractionEnum fromValue(String value) {
for (ShopperInteractionEnum b : ShopperInteractionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"ShopperInteractionEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(ShopperInteractionEnum.values()));
return null;
}
}
public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
private ShopperInteractionEnum shopperInteraction;
public static final String JSON_PROPERTY_SHOPPER_LOCALE = "shopperLocale";
private String shopperLocale;
public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
private Name shopperName;
public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
private String shopperReference;
public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement";
private String shopperStatement;
public static final String JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT = "showInstallmentAmount";
private Boolean showInstallmentAmount;
public static final String JSON_PROPERTY_SHOW_REMOVE_PAYMENT_METHOD_BUTTON =
"showRemovePaymentMethodButton";
private Boolean showRemovePaymentMethodButton;
public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber";
private String socialSecurityNumber;
public static final String JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES = "splitCardFundingSources";
private Boolean splitCardFundingSources;
public static final String JSON_PROPERTY_SPLITS = "splits";
private List<Split> splits;
public static final String JSON_PROPERTY_STORE = "store";
private String store;
/**
* Specifies how payment methods should be filtered based on the 'store' parameter: -
* 'exclusive': Only payment methods belonging to the specified 'store' are
* returned. - 'inclusive': Payment methods from the 'store' and those not
* associated with any other store are returned.
*/
public enum StoreFiltrationModeEnum {
EXCLUSIVE(String.valueOf("exclusive")),
INCLUSIVE(String.valueOf("inclusive")),
SKIPFILTER(String.valueOf("skipFilter"));
private static final Logger LOG = Logger.getLogger(StoreFiltrationModeEnum.class.getName());
private String value;
StoreFiltrationModeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StoreFiltrationModeEnum fromValue(String value) {
for (StoreFiltrationModeEnum b : StoreFiltrationModeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"StoreFiltrationModeEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(StoreFiltrationModeEnum.values()));
return null;
}
}
public static final String JSON_PROPERTY_STORE_FILTRATION_MODE = "storeFiltrationMode";
private StoreFiltrationModeEnum storeFiltrationMode;
public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD = "storePaymentMethod";
private Boolean storePaymentMethod;
/**
* Indicates if the details of the payment method will be stored for the shopper. Possible values:
* * **disabled** – No details will be stored (default). * **askForConsent** – If the
* `shopperReference` is provided, the UI lets the shopper choose if they want their
* payment details to be stored. * **enabled** – If the `shopperReference` is provided,
* the details will be stored without asking the shopper for consent.
*/
public enum StorePaymentMethodModeEnum {
ASKFORCONSENT(String.valueOf("askForConsent")),
DISABLED(String.valueOf("disabled")),
ENABLED(String.valueOf("enabled"));
private static final Logger LOG = Logger.getLogger(StorePaymentMethodModeEnum.class.getName());
private String value;
StorePaymentMethodModeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StorePaymentMethodModeEnum fromValue(String value) {
for (StorePaymentMethodModeEnum b : StorePaymentMethodModeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"StorePaymentMethodModeEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(StorePaymentMethodModeEnum.values()));
return null;
}
}
public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE = "storePaymentMethodMode";
private StorePaymentMethodModeEnum storePaymentMethodMode;
public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber";
private String telephoneNumber;
public static final String JSON_PROPERTY_THEME_ID = "themeId";
private String themeId;
public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData";
private CheckoutSessionThreeDS2RequestData threeDS2RequestData;
public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY =
"threeDSAuthenticationOnly";
@Deprecated // deprecated since Adyen Checkout API v69: Use
// `authenticationData.authenticationOnly` instead.
private Boolean threeDSAuthenticationOnly;
public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper";
private Boolean trustedShopper;
public CreateCheckoutSessionRequest() {}
/**
* accountInfo
*
* @param accountInfo
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest accountInfo(AccountInfo accountInfo) {
this.accountInfo = accountInfo;
return this;
}
/**
* Get accountInfo
*
* @return accountInfo
*/
@JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AccountInfo getAccountInfo() {
return accountInfo;
}
/**
* accountInfo
*
* @param accountInfo
*/
@JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAccountInfo(AccountInfo accountInfo) {
this.accountInfo = accountInfo;
}
/**
* additionalAmount
*
* @param additionalAmount
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest additionalAmount(Amount additionalAmount) {
this.additionalAmount = additionalAmount;
return this;
}
/**
* Get additionalAmount
*
* @return additionalAmount
*/
@JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Amount getAdditionalAmount() {
return additionalAmount;
}
/**
* additionalAmount
*
* @param additionalAmount
*/
@JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdditionalAmount(Amount additionalAmount) {
this.additionalAmount = additionalAmount;
}
/**
* This field contains additional data, which may be required for a particular payment request.
* The `additionalData` object consists of entries, each of which includes the key and
* value.
*
* @param additionalData This field contains additional data, which may be required for a
* particular payment request. The `additionalData` object consists of entries, each
* of which includes the key and value.
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest additionalData(Map<String, String> additionalData) {
this.additionalData = additionalData;
return this;
}
public CreateCheckoutSessionRequest putAdditionalDataItem(String key, String additionalDataItem) {
if (this.additionalData == null) {
this.additionalData = new HashMap<>();
}
this.additionalData.put(key, additionalDataItem);
return this;
}
/**
* This field contains additional data, which may be required for a particular payment request.
* The `additionalData` object consists of entries, each of which includes the key and
* value.
*
* @return additionalData This field contains additional data, which may be required for a
* particular payment request. The `additionalData` object consists of entries, each
* of which includes the key and value.
*/
@JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getAdditionalData() {
return additionalData;
}
/**
* This field contains additional data, which may be required for a particular payment request.
* The `additionalData` object consists of entries, each of which includes the key and
* value.
*
* @param additionalData This field contains additional data, which may be required for a
* particular payment request. The `additionalData` object consists of entries, each
* of which includes the key and value.
*/
@JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdditionalData(Map<String, String> additionalData) {
this.additionalData = additionalData;
}
/**
* List of payment methods to be presented to the shopper. To refer to payment methods, use their
* [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]`
*
* @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer
* to payment methods, use their [payment method
* type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]`
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest allowedPaymentMethods(List<String> allowedPaymentMethods) {
this.allowedPaymentMethods = allowedPaymentMethods;
return this;
}
public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem(
String allowedPaymentMethodsItem) {
if (this.allowedPaymentMethods == null) {
this.allowedPaymentMethods = new ArrayList<>();
}
this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
return this;
}
/**
* List of payment methods to be presented to the shopper. To refer to payment methods, use their
* [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]`
*
* @return allowedPaymentMethods List of payment methods to be presented to the shopper. To refer
* to payment methods, use their [payment method
* type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]`
*/
@JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getAllowedPaymentMethods() {
return allowedPaymentMethods;
}
/**
* List of payment methods to be presented to the shopper. To refer to payment methods, use their
* [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]`
*
* @param allowedPaymentMethods List of payment methods to be presented to the shopper. To refer
* to payment methods, use their [payment method
* type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"allowedPaymentMethods\":[\"ideal\",\"applepay\"]`
*/
@JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAllowedPaymentMethods(List<String> allowedPaymentMethods) {
this.allowedPaymentMethods = allowedPaymentMethods;
}
/**
* amount
*
* @param amount
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest amount(Amount amount) {
this.amount = amount;
return this;
}
/**
* Get amount
*
* @return amount
*/
@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;
}
/**
* applicationInfo
*
* @param applicationInfo
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest applicationInfo(ApplicationInfo applicationInfo) {
this.applicationInfo = applicationInfo;
return this;
}
/**
* Get applicationInfo
*
* @return applicationInfo
*/
@JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ApplicationInfo getApplicationInfo() {
return applicationInfo;
}
/**
* applicationInfo
*
* @param applicationInfo
*/
@JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setApplicationInfo(ApplicationInfo applicationInfo) {
this.applicationInfo = applicationInfo;
}
/**
* authenticationData
*
* @param authenticationData
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest authenticationData(AuthenticationData authenticationData) {
this.authenticationData = authenticationData;
return this;
}
/**
* Get authenticationData
*
* @return authenticationData
*/
@JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AuthenticationData getAuthenticationData() {
return authenticationData;
}
/**
* authenticationData
*
* @param authenticationData
*/
@JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAuthenticationData(AuthenticationData authenticationData) {
this.authenticationData = authenticationData;
}
/**
* billingAddress
*
* @param billingAddress
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest billingAddress(BillingAddress billingAddress) {
this.billingAddress = billingAddress;
return this;
}
/**
* Get billingAddress
*
* @return billingAddress
*/
@JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BillingAddress getBillingAddress() {
return billingAddress;
}
/**
* billingAddress
*
* @param billingAddress
*/
@JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBillingAddress(BillingAddress billingAddress) {
this.billingAddress = billingAddress;
}
/**
* List of payment methods to be hidden from the shopper. To refer to payment methods, use their
* [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]`
*
* @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to
* payment methods, use their [payment method
* type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]`
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest blockedPaymentMethods(List<String> blockedPaymentMethods) {
this.blockedPaymentMethods = blockedPaymentMethods;
return this;
}
public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem(
String blockedPaymentMethodsItem) {
if (this.blockedPaymentMethods == null) {
this.blockedPaymentMethods = new ArrayList<>();
}
this.blockedPaymentMethods.add(blockedPaymentMethodsItem);
return this;
}
/**
* List of payment methods to be hidden from the shopper. To refer to payment methods, use their
* [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]`
*
* @return blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer
* to payment methods, use their [payment method
* type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]`
*/
@JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getBlockedPaymentMethods() {
return blockedPaymentMethods;
}
/**
* List of payment methods to be hidden from the shopper. To refer to payment methods, use their
* [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]`
*
* @param blockedPaymentMethods List of payment methods to be hidden from the shopper. To refer to
* payment methods, use their [payment method
* type](https://docs.adyen.com/payment-methods/payment-method-types). Example:
* `\"blockedPaymentMethods\":[\"ideal\",\"applepay\"]`
*/
@JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBlockedPaymentMethods(List<String> blockedPaymentMethods) {
this.blockedPaymentMethods = blockedPaymentMethods;
}
/**
* The delay between the authorisation and scheduled auto-capture, specified in hours.
*
* @param captureDelayHours The delay between the authorisation and scheduled auto-capture,
* specified in hours.
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest captureDelayHours(Integer captureDelayHours) {
this.captureDelayHours = captureDelayHours;
return this;
}
/**
* The delay between the authorisation and scheduled auto-capture, specified in hours.
*
* @return captureDelayHours The delay between the authorisation and scheduled auto-capture,
* specified in hours.
*/
@JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCaptureDelayHours() {
return captureDelayHours;
}
/**
* The delay between the authorisation and scheduled auto-capture, specified in hours.
*
* @param captureDelayHours The delay between the authorisation and scheduled auto-capture,
* specified in hours.
*/
@JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCaptureDelayHours(Integer captureDelayHours) {
this.captureDelayHours = captureDelayHours;
}
/**
* The platform where a payment transaction takes place. This field is optional for filtering out
* payment methods that are only available on specific platforms. If this value is not set, then
* we will try to infer it from the `sdkVersion` or `token`. Possible values:
* * **iOS** * **Android** * **Web**
*
* @param channel The platform where a payment transaction takes place. This field is optional for
* filtering out payment methods that are only available on specific platforms. If this value
* is not set, then we will try to infer it from the `sdkVersion` or
* `token`. Possible values: * **iOS** * **Android** * **Web**
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
*/
public CreateCheckoutSessionRequest channel(ChannelEnum channel) {
this.channel = channel;
return this;
}