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

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

30 Oct 2023 03:06PM CUT coverage: 12.824%. First build
#2775

push

web-flow
Merge 9921af673 into 891748f22

112 of 112 new or added lines in 12 files covered. (100.0%)

12346 of 96273 relevant lines covered (12.82%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

16.03
/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 70
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.checkout;
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.checkout.AccountInfo;
20
import com.adyen.model.checkout.Amount;
21
import com.adyen.model.checkout.ApplicationInfo;
22
import com.adyen.model.checkout.AuthenticationData;
23
import com.adyen.model.checkout.BillingAddress;
24
import com.adyen.model.checkout.CheckoutSessionInstallmentOption;
25
import com.adyen.model.checkout.Company;
26
import com.adyen.model.checkout.DeliveryAddress;
27
import com.adyen.model.checkout.FundOrigin;
28
import com.adyen.model.checkout.FundRecipient;
29
import com.adyen.model.checkout.LineItem;
30
import com.adyen.model.checkout.Mandate;
31
import com.adyen.model.checkout.Name;
32
import com.adyen.model.checkout.PlatformChargebackLogic;
33
import com.adyen.model.checkout.RiskData;
34
import com.adyen.model.checkout.Split;
35
import com.adyen.model.checkout.ThreeDSecureData;
36
import com.fasterxml.jackson.annotation.JsonInclude;
37
import com.fasterxml.jackson.annotation.JsonProperty;
38
import com.fasterxml.jackson.annotation.JsonCreator;
39
import com.fasterxml.jackson.annotation.JsonTypeName;
40
import com.fasterxml.jackson.annotation.JsonValue;
41
import io.swagger.annotations.ApiModel;
42
import io.swagger.annotations.ApiModelProperty;
43
import java.time.LocalDate;
44
import java.time.OffsetDateTime;
45
import java.util.ArrayList;
46
import java.util.HashMap;
47
import java.util.List;
48
import java.util.Map;
49
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
50
import com.fasterxml.jackson.core.JsonProcessingException;
51

52

53
/**
54
 * CreateCheckoutSessionRequest
55
 */
56
@JsonPropertyOrder({
57
  CreateCheckoutSessionRequest.JSON_PROPERTY_ACCOUNT_INFO,
58
  CreateCheckoutSessionRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT,
59
  CreateCheckoutSessionRequest.JSON_PROPERTY_ADDITIONAL_DATA,
60
  CreateCheckoutSessionRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS,
61
  CreateCheckoutSessionRequest.JSON_PROPERTY_AMOUNT,
62
  CreateCheckoutSessionRequest.JSON_PROPERTY_APPLICATION_INFO,
63
  CreateCheckoutSessionRequest.JSON_PROPERTY_AUTHENTICATION_DATA,
64
  CreateCheckoutSessionRequest.JSON_PROPERTY_BILLING_ADDRESS,
65
  CreateCheckoutSessionRequest.JSON_PROPERTY_BLOCKED_PAYMENT_METHODS,
66
  CreateCheckoutSessionRequest.JSON_PROPERTY_CAPTURE_DELAY_HOURS,
67
  CreateCheckoutSessionRequest.JSON_PROPERTY_CHANNEL,
68
  CreateCheckoutSessionRequest.JSON_PROPERTY_COMPANY,
69
  CreateCheckoutSessionRequest.JSON_PROPERTY_COUNTRY_CODE,
70
  CreateCheckoutSessionRequest.JSON_PROPERTY_DATE_OF_BIRTH,
71
  CreateCheckoutSessionRequest.JSON_PROPERTY_DELIVER_AT,
72
  CreateCheckoutSessionRequest.JSON_PROPERTY_DELIVERY_ADDRESS,
73
  CreateCheckoutSessionRequest.JSON_PROPERTY_ENABLE_ONE_CLICK,
74
  CreateCheckoutSessionRequest.JSON_PROPERTY_ENABLE_PAY_OUT,
75
  CreateCheckoutSessionRequest.JSON_PROPERTY_ENABLE_RECURRING,
76
  CreateCheckoutSessionRequest.JSON_PROPERTY_EXPIRES_AT,
77
  CreateCheckoutSessionRequest.JSON_PROPERTY_FUND_ORIGIN,
78
  CreateCheckoutSessionRequest.JSON_PROPERTY_FUND_RECIPIENT,
79
  CreateCheckoutSessionRequest.JSON_PROPERTY_INSTALLMENT_OPTIONS,
80
  CreateCheckoutSessionRequest.JSON_PROPERTY_LINE_ITEMS,
81
  CreateCheckoutSessionRequest.JSON_PROPERTY_MANDATE,
82
  CreateCheckoutSessionRequest.JSON_PROPERTY_MCC,
83
  CreateCheckoutSessionRequest.JSON_PROPERTY_MERCHANT_ACCOUNT,
84
  CreateCheckoutSessionRequest.JSON_PROPERTY_MERCHANT_ORDER_REFERENCE,
85
  CreateCheckoutSessionRequest.JSON_PROPERTY_METADATA,
86
  CreateCheckoutSessionRequest.JSON_PROPERTY_MPI_DATA,
87
  CreateCheckoutSessionRequest.JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC,
88
  CreateCheckoutSessionRequest.JSON_PROPERTY_RECURRING_EXPIRY,
89
  CreateCheckoutSessionRequest.JSON_PROPERTY_RECURRING_FREQUENCY,
90
  CreateCheckoutSessionRequest.JSON_PROPERTY_RECURRING_PROCESSING_MODEL,
91
  CreateCheckoutSessionRequest.JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD,
92
  CreateCheckoutSessionRequest.JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD,
93
  CreateCheckoutSessionRequest.JSON_PROPERTY_REFERENCE,
94
  CreateCheckoutSessionRequest.JSON_PROPERTY_RETURN_URL,
95
  CreateCheckoutSessionRequest.JSON_PROPERTY_RISK_DATA,
96
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_EMAIL,
97
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_I_P,
98
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_INTERACTION,
99
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_LOCALE,
100
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_NAME,
101
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_REFERENCE,
102
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOPPER_STATEMENT,
103
  CreateCheckoutSessionRequest.JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT,
104
  CreateCheckoutSessionRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER,
105
  CreateCheckoutSessionRequest.JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES,
106
  CreateCheckoutSessionRequest.JSON_PROPERTY_SPLITS,
107
  CreateCheckoutSessionRequest.JSON_PROPERTY_STORE,
108
  CreateCheckoutSessionRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD,
109
  CreateCheckoutSessionRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE,
110
  CreateCheckoutSessionRequest.JSON_PROPERTY_TELEPHONE_NUMBER,
111
  CreateCheckoutSessionRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY,
112
  CreateCheckoutSessionRequest.JSON_PROPERTY_TRUSTED_SHOPPER
113
})
114

115
public class CreateCheckoutSessionRequest {
116
  public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo";
117
  private AccountInfo accountInfo;
118

119
  public static final String JSON_PROPERTY_ADDITIONAL_AMOUNT = "additionalAmount";
120
  private Amount additionalAmount;
121

122
  public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData";
123
  private Map<String, String> additionalData = null;
1✔
124

125
  public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods";
126
  private List<String> allowedPaymentMethods = null;
1✔
127

128
  public static final String JSON_PROPERTY_AMOUNT = "amount";
129
  private Amount amount;
130

131
  public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo";
132
  private ApplicationInfo applicationInfo;
133

134
  public static final String JSON_PROPERTY_AUTHENTICATION_DATA = "authenticationData";
135
  private AuthenticationData authenticationData;
136

137
  public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress";
138
  private BillingAddress billingAddress;
139

140
  public static final String JSON_PROPERTY_BLOCKED_PAYMENT_METHODS = "blockedPaymentMethods";
141
  private List<String> blockedPaymentMethods = null;
1✔
142

143
  public static final String JSON_PROPERTY_CAPTURE_DELAY_HOURS = "captureDelayHours";
144
  private Integer captureDelayHours;
145

146
  /**
147
   * 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 &#x60;sdkVersion&#x60; or &#x60;token&#x60;.  Possible values: * **iOS** * **Android** * **Web**
148
   */
149
  public enum ChannelEnum {
×
150
    IOS("iOS"),
×
151
    
152
    ANDROID("Android"),
×
153
    
154
    WEB("Web");
×
155

156
    private String value;
157

158
    ChannelEnum(String value) {
×
159
      this.value = value;
×
160
    }
×
161

162
    @JsonValue
163
    public String getValue() {
164
      return value;
×
165
    }
166

167
    @Override
168
    public String toString() {
169
      return String.valueOf(value);
×
170
    }
171

172
    @JsonCreator
173
    public static ChannelEnum fromValue(String value) {
174
      for (ChannelEnum b : ChannelEnum.values()) {
×
175
        if (b.value.equals(value)) {
×
176
          return b;
×
177
        }
178
      }
179
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
180
    }
181
  }
182

183
  public static final String JSON_PROPERTY_CHANNEL = "channel";
184
  private ChannelEnum channel;
185

186
  public static final String JSON_PROPERTY_COMPANY = "company";
187
  private Company company;
188

189
  public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode";
190
  private String countryCode;
191

192
  public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth";
193
  private LocalDate dateOfBirth;
194

195
  public static final String JSON_PROPERTY_DELIVER_AT = "deliverAt";
196
  private OffsetDateTime deliverAt;
197

198
  public static final String JSON_PROPERTY_DELIVERY_ADDRESS = "deliveryAddress";
199
  private DeliveryAddress deliveryAddress;
200

201
  public static final String JSON_PROPERTY_ENABLE_ONE_CLICK = "enableOneClick";
202
  private Boolean enableOneClick;
203

204
  public static final String JSON_PROPERTY_ENABLE_PAY_OUT = "enablePayOut";
205
  private Boolean enablePayOut;
206

207
  public static final String JSON_PROPERTY_ENABLE_RECURRING = "enableRecurring";
208
  private Boolean enableRecurring;
209

210
  public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt";
211
  private OffsetDateTime expiresAt;
212

213
  public static final String JSON_PROPERTY_FUND_ORIGIN = "fundOrigin";
214
  private FundOrigin fundOrigin;
215

216
  public static final String JSON_PROPERTY_FUND_RECIPIENT = "fundRecipient";
217
  private FundRecipient fundRecipient;
218

219
  public static final String JSON_PROPERTY_INSTALLMENT_OPTIONS = "installmentOptions";
220
  private Map<String, CheckoutSessionInstallmentOption> installmentOptions = null;
1✔
221

222
  public static final String JSON_PROPERTY_LINE_ITEMS = "lineItems";
223
  private List<LineItem> lineItems = null;
1✔
224

225
  public static final String JSON_PROPERTY_MANDATE = "mandate";
226
  private Mandate mandate;
227

228
  public static final String JSON_PROPERTY_MCC = "mcc";
229
  private String mcc;
230

231
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
232
  private String merchantAccount;
233

234
  public static final String JSON_PROPERTY_MERCHANT_ORDER_REFERENCE = "merchantOrderReference";
235
  private String merchantOrderReference;
236

237
  public static final String JSON_PROPERTY_METADATA = "metadata";
238
  private Map<String, String> metadata = null;
1✔
239

240
  public static final String JSON_PROPERTY_MPI_DATA = "mpiData";
241
  private ThreeDSecureData mpiData;
242

243
  public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC = "platformChargebackLogic";
244
  private PlatformChargebackLogic platformChargebackLogic;
245

246
  public static final String JSON_PROPERTY_RECURRING_EXPIRY = "recurringExpiry";
247
  private String recurringExpiry;
248

249
  public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency";
250
  private String recurringFrequency;
251

252
  /**
253
   * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * &#x60;Subscription&#x60; – A transaction for a fixed or variable amount, which follows a fixed schedule. * &#x60;CardOnFile&#x60; – 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. * &#x60;UnscheduledCardOnFile&#x60; – 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&#39;s balance drops below a certain amount. 
254
   */
255
  public enum RecurringProcessingModelEnum {
×
256
    CARDONFILE("CardOnFile"),
×
257
    
258
    SUBSCRIPTION("Subscription"),
×
259
    
260
    UNSCHEDULEDCARDONFILE("UnscheduledCardOnFile");
×
261

262
    private String value;
263

264
    RecurringProcessingModelEnum(String value) {
×
265
      this.value = value;
×
266
    }
×
267

268
    @JsonValue
269
    public String getValue() {
270
      return value;
×
271
    }
272

273
    @Override
274
    public String toString() {
275
      return String.valueOf(value);
×
276
    }
277

278
    @JsonCreator
279
    public static RecurringProcessingModelEnum fromValue(String value) {
280
      for (RecurringProcessingModelEnum b : RecurringProcessingModelEnum.values()) {
×
281
        if (b.value.equals(value)) {
×
282
          return b;
×
283
        }
284
      }
285
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
286
    }
287
  }
288

289
  public static final String JSON_PROPERTY_RECURRING_PROCESSING_MODEL = "recurringProcessingModel";
290
  private RecurringProcessingModelEnum recurringProcessingModel;
291

292
  public static final String JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD = "redirectFromIssuerMethod";
293
  private String redirectFromIssuerMethod;
294

295
  public static final String JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD = "redirectToIssuerMethod";
296
  private String redirectToIssuerMethod;
297

298
  public static final String JSON_PROPERTY_REFERENCE = "reference";
299
  private String reference;
300

301
  public static final String JSON_PROPERTY_RETURN_URL = "returnUrl";
302
  private String returnUrl;
303

304
  public static final String JSON_PROPERTY_RISK_DATA = "riskData";
305
  private RiskData riskData;
306

307
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
308
  private String shopperEmail;
309

310
  public static final String JSON_PROPERTY_SHOPPER_I_P = "shopperIP";
311
  private String shopperIP;
312

313
  /**
314
   * 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: * &#x60;Ecommerce&#x60; - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * &#x60;ContAuth&#x60; - 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). * &#x60;Moto&#x60; - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * &#x60;POS&#x60; - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.
315
   */
316
  public enum ShopperInteractionEnum {
×
317
    ECOMMERCE("Ecommerce"),
×
318
    
319
    CONTAUTH("ContAuth"),
×
320
    
321
    MOTO("Moto"),
×
322
    
323
    POS("POS");
×
324

325
    private String value;
326

327
    ShopperInteractionEnum(String value) {
×
328
      this.value = value;
×
329
    }
×
330

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

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

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

352
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
353
  private ShopperInteractionEnum shopperInteraction;
354

355
  public static final String JSON_PROPERTY_SHOPPER_LOCALE = "shopperLocale";
356
  private String shopperLocale;
357

358
  public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
359
  private Name shopperName;
360

361
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
362
  private String shopperReference;
363

364
  public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement";
365
  private String shopperStatement;
366

367
  public static final String JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT = "showInstallmentAmount";
368
  private Boolean showInstallmentAmount;
369

370
  public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber";
371
  private String socialSecurityNumber;
372

373
  public static final String JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES = "splitCardFundingSources";
374
  private Boolean splitCardFundingSources = false;
1✔
375

376
  public static final String JSON_PROPERTY_SPLITS = "splits";
377
  private List<Split> splits = null;
1✔
378

379
  public static final String JSON_PROPERTY_STORE = "store";
380
  private String store;
381

382
  public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD = "storePaymentMethod";
383
  private Boolean storePaymentMethod;
384

385
  /**
386
   * 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 &#x60;shopperReference&#x60; is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the &#x60;shopperReference&#x60; is provided, the details will be stored without asking the shopper for consent.
387
   */
388
  public enum StorePaymentMethodModeEnum {
×
389
    ASKFORCONSENT("askForConsent"),
×
390
    
391
    DISABLED("disabled"),
×
392
    
393
    ENABLED("enabled");
×
394

395
    private String value;
396

397
    StorePaymentMethodModeEnum(String value) {
×
398
      this.value = value;
×
399
    }
×
400

401
    @JsonValue
402
    public String getValue() {
403
      return value;
×
404
    }
405

406
    @Override
407
    public String toString() {
408
      return String.valueOf(value);
×
409
    }
410

411
    @JsonCreator
412
    public static StorePaymentMethodModeEnum fromValue(String value) {
413
      for (StorePaymentMethodModeEnum b : StorePaymentMethodModeEnum.values()) {
×
414
        if (b.value.equals(value)) {
×
415
          return b;
×
416
        }
417
      }
418
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
419
    }
420
  }
421

422
  public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE = "storePaymentMethodMode";
423
  private StorePaymentMethodModeEnum storePaymentMethodMode;
424

425
  public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber";
426
  private String telephoneNumber;
427

428
  public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly";
429
  private Boolean threeDSAuthenticationOnly = false;
1✔
430

431
  public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper";
432
  private Boolean trustedShopper;
433

434
  public CreateCheckoutSessionRequest() { 
1✔
435
  }
1✔
436

437
  public CreateCheckoutSessionRequest accountInfo(AccountInfo accountInfo) {
438
    this.accountInfo = accountInfo;
×
439
    return this;
×
440
  }
441

442
   /**
443
   * Get accountInfo
444
   * @return accountInfo
445
  **/
446
  @ApiModelProperty(value = "")
447
  @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
448
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
449

450
  public AccountInfo getAccountInfo() {
451
    return accountInfo;
1✔
452
  }
453

454

455
  @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
456
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
457
  public void setAccountInfo(AccountInfo accountInfo) {
458
    this.accountInfo = accountInfo;
×
459
  }
×
460

461

462
  public CreateCheckoutSessionRequest additionalAmount(Amount additionalAmount) {
463
    this.additionalAmount = additionalAmount;
×
464
    return this;
×
465
  }
466

467
   /**
468
   * Get additionalAmount
469
   * @return additionalAmount
470
  **/
471
  @ApiModelProperty(value = "")
472
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
473
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
474

475
  public Amount getAdditionalAmount() {
476
    return additionalAmount;
1✔
477
  }
478

479

480
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
481
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
482
  public void setAdditionalAmount(Amount additionalAmount) {
483
    this.additionalAmount = additionalAmount;
×
484
  }
×
485

486

487
  public CreateCheckoutSessionRequest additionalData(Map<String, String> additionalData) {
488
    this.additionalData = additionalData;
×
489
    return this;
×
490
  }
491

492
  public CreateCheckoutSessionRequest putAdditionalDataItem(String key, String additionalDataItem) {
493
    if (this.additionalData == null) {
×
494
      this.additionalData = new HashMap<>();
×
495
    }
496
    this.additionalData.put(key, additionalDataItem);
×
497
    return this;
×
498
  }
499

500
   /**
501
   * This field contains additional data, which may be required for a particular payment request.  The &#x60;additionalData&#x60; object consists of entries, each of which includes the key and value.
502
   * @return additionalData
503
  **/
504
  @ApiModelProperty(value = "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.")
505
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
506
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
507

508
  public Map<String, String> getAdditionalData() {
509
    return additionalData;
1✔
510
  }
511

512

513
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
514
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
515
  public void setAdditionalData(Map<String, String> additionalData) {
516
    this.additionalData = additionalData;
×
517
  }
×
518

519

520
  public CreateCheckoutSessionRequest allowedPaymentMethods(List<String> allowedPaymentMethods) {
521
    this.allowedPaymentMethods = allowedPaymentMethods;
×
522
    return this;
×
523
  }
524

525
  public CreateCheckoutSessionRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) {
526
    if (this.allowedPaymentMethods == null) {
×
527
      this.allowedPaymentMethods = new ArrayList<>();
×
528
    }
529
    this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
×
530
    return this;
×
531
  }
532

533
   /**
534
   * 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: &#x60;\&quot;allowedPaymentMethods\&quot;:[\&quot;ideal\&quot;,\&quot;giropay\&quot;]&#x60;
535
   * @return allowedPaymentMethods
536
  **/
537
  @ApiModelProperty(value = "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\",\"giropay\"]`")
538
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
539
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
540

541
  public List<String> getAllowedPaymentMethods() {
542
    return allowedPaymentMethods;
1✔
543
  }
544

545

546
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
547
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
548
  public void setAllowedPaymentMethods(List<String> allowedPaymentMethods) {
549
    this.allowedPaymentMethods = allowedPaymentMethods;
×
550
  }
×
551

552

553
  public CreateCheckoutSessionRequest amount(Amount amount) {
554
    this.amount = amount;
×
555
    return this;
×
556
  }
557

558
   /**
559
   * Get amount
560
   * @return amount
561
  **/
562
  @ApiModelProperty(required = true, value = "")
563
  @JsonProperty(JSON_PROPERTY_AMOUNT)
564
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
565

566
  public Amount getAmount() {
567
    return amount;
1✔
568
  }
569

570

571
  @JsonProperty(JSON_PROPERTY_AMOUNT)
572
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
573
  public void setAmount(Amount amount) {
574
    this.amount = amount;
1✔
575
  }
1✔
576

577

578
  public CreateCheckoutSessionRequest applicationInfo(ApplicationInfo applicationInfo) {
579
    this.applicationInfo = applicationInfo;
×
580
    return this;
×
581
  }
582

583
   /**
584
   * Get applicationInfo
585
   * @return applicationInfo
586
  **/
587
  @ApiModelProperty(value = "")
588
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
589
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
590

591
  public ApplicationInfo getApplicationInfo() {
592
    return applicationInfo;
1✔
593
  }
594

595

596
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
597
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
598
  public void setApplicationInfo(ApplicationInfo applicationInfo) {
599
    this.applicationInfo = applicationInfo;
×
600
  }
×
601

602

603
  public CreateCheckoutSessionRequest authenticationData(AuthenticationData authenticationData) {
604
    this.authenticationData = authenticationData;
×
605
    return this;
×
606
  }
607

608
   /**
609
   * Get authenticationData
610
   * @return authenticationData
611
  **/
612
  @ApiModelProperty(value = "")
613
  @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
614
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
615

616
  public AuthenticationData getAuthenticationData() {
617
    return authenticationData;
1✔
618
  }
619

620

621
  @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
622
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
623
  public void setAuthenticationData(AuthenticationData authenticationData) {
624
    this.authenticationData = authenticationData;
×
625
  }
×
626

627

628
  public CreateCheckoutSessionRequest billingAddress(BillingAddress billingAddress) {
629
    this.billingAddress = billingAddress;
×
630
    return this;
×
631
  }
632

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

641
  public BillingAddress getBillingAddress() {
642
    return billingAddress;
1✔
643
  }
644

645

646
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
647
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
648
  public void setBillingAddress(BillingAddress billingAddress) {
649
    this.billingAddress = billingAddress;
×
650
  }
×
651

652

653
  public CreateCheckoutSessionRequest blockedPaymentMethods(List<String> blockedPaymentMethods) {
654
    this.blockedPaymentMethods = blockedPaymentMethods;
×
655
    return this;
×
656
  }
657

658
  public CreateCheckoutSessionRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) {
659
    if (this.blockedPaymentMethods == null) {
×
660
      this.blockedPaymentMethods = new ArrayList<>();
×
661
    }
662
    this.blockedPaymentMethods.add(blockedPaymentMethodsItem);
×
663
    return this;
×
664
  }
665

666
   /**
667
   * 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: &#x60;\&quot;blockedPaymentMethods\&quot;:[\&quot;ideal\&quot;,\&quot;giropay\&quot;]&#x60;
668
   * @return blockedPaymentMethods
669
  **/
670
  @ApiModelProperty(value = "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\",\"giropay\"]`")
671
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
672
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
673

674
  public List<String> getBlockedPaymentMethods() {
675
    return blockedPaymentMethods;
1✔
676
  }
677

678

679
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
680
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
681
  public void setBlockedPaymentMethods(List<String> blockedPaymentMethods) {
682
    this.blockedPaymentMethods = blockedPaymentMethods;
×
683
  }
×
684

685

686
  public CreateCheckoutSessionRequest captureDelayHours(Integer captureDelayHours) {
687
    this.captureDelayHours = captureDelayHours;
×
688
    return this;
×
689
  }
690

691
   /**
692
   * The delay between the authorisation and scheduled auto-capture, specified in hours.
693
   * @return captureDelayHours
694
  **/
695
  @ApiModelProperty(value = "The delay between the authorisation and scheduled auto-capture, specified in hours.")
696
  @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
697
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
698

699
  public Integer getCaptureDelayHours() {
700
    return captureDelayHours;
1✔
701
  }
702

703

704
  @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
705
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
706
  public void setCaptureDelayHours(Integer captureDelayHours) {
707
    this.captureDelayHours = captureDelayHours;
×
708
  }
×
709

710

711
  public CreateCheckoutSessionRequest channel(ChannelEnum channel) {
712
    this.channel = channel;
×
713
    return this;
×
714
  }
715

716
   /**
717
   * 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 &#x60;sdkVersion&#x60; or &#x60;token&#x60;.  Possible values: * **iOS** * **Android** * **Web**
718
   * @return channel
719
  **/
720
  @ApiModelProperty(value = "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**")
721
  @JsonProperty(JSON_PROPERTY_CHANNEL)
722
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
723

724
  public ChannelEnum getChannel() {
725
    return channel;
1✔
726
  }
727

728

729
  @JsonProperty(JSON_PROPERTY_CHANNEL)
730
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
731
  public void setChannel(ChannelEnum channel) {
732
    this.channel = channel;
×
733
  }
×
734

735

736
  public CreateCheckoutSessionRequest company(Company company) {
737
    this.company = company;
×
738
    return this;
×
739
  }
740

741
   /**
742
   * Get company
743
   * @return company
744
  **/
745
  @ApiModelProperty(value = "")
746
  @JsonProperty(JSON_PROPERTY_COMPANY)
747
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
748

749
  public Company getCompany() {
750
    return company;
1✔
751
  }
752

753

754
  @JsonProperty(JSON_PROPERTY_COMPANY)
755
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
756
  public void setCompany(Company company) {
757
    this.company = company;
×
758
  }
×
759

760

761
  public CreateCheckoutSessionRequest countryCode(String countryCode) {
762
    this.countryCode = countryCode;
×
763
    return this;
×
764
  }
765

766
   /**
767
   * The shopper&#39;s two-letter country code.
768
   * @return countryCode
769
  **/
770
  @ApiModelProperty(value = "The shopper's two-letter country code.")
771
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
772
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
773

774
  public String getCountryCode() {
775
    return countryCode;
1✔
776
  }
777

778

779
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
780
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
781
  public void setCountryCode(String countryCode) {
782
    this.countryCode = countryCode;
1✔
783
  }
1✔
784

785

786
  public CreateCheckoutSessionRequest dateOfBirth(LocalDate dateOfBirth) {
787
    this.dateOfBirth = dateOfBirth;
×
788
    return this;
×
789
  }
790

791
   /**
792
   * The shopper&#39;s date of birth.  Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD
793
   * @return dateOfBirth
794
  **/
795
  @ApiModelProperty(value = "The shopper's date of birth.  Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD")
796
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
797
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
798

799
  public LocalDate getDateOfBirth() {
800
    return dateOfBirth;
1✔
801
  }
802

803

804
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
805
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
806
  public void setDateOfBirth(LocalDate dateOfBirth) {
807
    this.dateOfBirth = dateOfBirth;
×
808
  }
×
809

810

811
  public CreateCheckoutSessionRequest deliverAt(OffsetDateTime deliverAt) {
812
    this.deliverAt = deliverAt;
×
813
    return this;
×
814
  }
815

816
   /**
817
   * The date and time when the purchased goods should be delivered.  [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
818
   * @return deliverAt
819
  **/
820
  @ApiModelProperty(value = "The date and time when the purchased goods should be delivered.  [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.")
821
  @JsonProperty(JSON_PROPERTY_DELIVER_AT)
822
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
823

824
  public OffsetDateTime getDeliverAt() {
825
    return deliverAt;
1✔
826
  }
827

828

829
  @JsonProperty(JSON_PROPERTY_DELIVER_AT)
830
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
831
  public void setDeliverAt(OffsetDateTime deliverAt) {
832
    this.deliverAt = deliverAt;
1✔
833
  }
1✔
834

835

836
  public CreateCheckoutSessionRequest deliveryAddress(DeliveryAddress deliveryAddress) {
837
    this.deliveryAddress = deliveryAddress;
×
838
    return this;
×
839
  }
840

841
   /**
842
   * Get deliveryAddress
843
   * @return deliveryAddress
844
  **/
845
  @ApiModelProperty(value = "")
846
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
847
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
848

849
  public DeliveryAddress getDeliveryAddress() {
850
    return deliveryAddress;
1✔
851
  }
852

853

854
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
855
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
856
  public void setDeliveryAddress(DeliveryAddress deliveryAddress) {
857
    this.deliveryAddress = deliveryAddress;
×
858
  }
×
859

860

861
  public CreateCheckoutSessionRequest enableOneClick(Boolean enableOneClick) {
862
    this.enableOneClick = enableOneClick;
×
863
    return this;
×
864
  }
865

866
   /**
867
   * When true and &#x60;shopperReference&#x60; is provided, the shopper will be asked if the payment details should be stored for future one-click payments.
868
   * @return enableOneClick
869
  **/
870
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.")
871
  @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK)
872
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
873

874
  public Boolean getEnableOneClick() {
875
    return enableOneClick;
1✔
876
  }
877

878

879
  @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK)
880
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
881
  public void setEnableOneClick(Boolean enableOneClick) {
882
    this.enableOneClick = enableOneClick;
×
883
  }
×
884

885

886
  public CreateCheckoutSessionRequest enablePayOut(Boolean enablePayOut) {
887
    this.enablePayOut = enablePayOut;
×
888
    return this;
×
889
  }
890

891
   /**
892
   * When true and &#x60;shopperReference&#x60; is provided, the payment details will be tokenized for payouts.
893
   * @return enablePayOut
894
  **/
895
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for payouts.")
896
  @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT)
897
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
898

899
  public Boolean getEnablePayOut() {
900
    return enablePayOut;
1✔
901
  }
902

903

904
  @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT)
905
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
906
  public void setEnablePayOut(Boolean enablePayOut) {
907
    this.enablePayOut = enablePayOut;
×
908
  }
×
909

910

911
  public CreateCheckoutSessionRequest enableRecurring(Boolean enableRecurring) {
912
    this.enableRecurring = enableRecurring;
×
913
    return this;
×
914
  }
915

916
   /**
917
   * When true and &#x60;shopperReference&#x60; is provided, the payment details will be tokenized for recurring payments.
918
   * @return enableRecurring
919
  **/
920
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.")
921
  @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING)
922
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
923

924
  public Boolean getEnableRecurring() {
925
    return enableRecurring;
1✔
926
  }
927

928

929
  @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING)
930
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
931
  public void setEnableRecurring(Boolean enableRecurring) {
932
    this.enableRecurring = enableRecurring;
×
933
  }
×
934

935

936
  public CreateCheckoutSessionRequest expiresAt(OffsetDateTime expiresAt) {
937
    this.expiresAt = expiresAt;
×
938
    return this;
×
939
  }
940

941
   /**
942
   * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation.
943
   * @return expiresAt
944
  **/
945
  @ApiModelProperty(value = "The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation.")
946
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
947
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
948

949
  public OffsetDateTime getExpiresAt() {
950
    return expiresAt;
1✔
951
  }
952

953

954
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
955
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
956
  public void setExpiresAt(OffsetDateTime expiresAt) {
957
    this.expiresAt = expiresAt;
×
958
  }
×
959

960

961
  public CreateCheckoutSessionRequest fundOrigin(FundOrigin fundOrigin) {
962
    this.fundOrigin = fundOrigin;
×
963
    return this;
×
964
  }
965

966
   /**
967
   * Get fundOrigin
968
   * @return fundOrigin
969
  **/
970
  @ApiModelProperty(value = "")
971
  @JsonProperty(JSON_PROPERTY_FUND_ORIGIN)
972
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
973

974
  public FundOrigin getFundOrigin() {
975
    return fundOrigin;
1✔
976
  }
977

978

979
  @JsonProperty(JSON_PROPERTY_FUND_ORIGIN)
980
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
981
  public void setFundOrigin(FundOrigin fundOrigin) {
982
    this.fundOrigin = fundOrigin;
×
983
  }
×
984

985

986
  public CreateCheckoutSessionRequest fundRecipient(FundRecipient fundRecipient) {
987
    this.fundRecipient = fundRecipient;
×
988
    return this;
×
989
  }
990

991
   /**
992
   * Get fundRecipient
993
   * @return fundRecipient
994
  **/
995
  @ApiModelProperty(value = "")
996
  @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT)
997
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
998

999
  public FundRecipient getFundRecipient() {
1000
    return fundRecipient;
1✔
1001
  }
1002

1003

1004
  @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT)
1005
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1006
  public void setFundRecipient(FundRecipient fundRecipient) {
1007
    this.fundRecipient = fundRecipient;
×
1008
  }
×
1009

1010

1011
  public CreateCheckoutSessionRequest installmentOptions(Map<String, CheckoutSessionInstallmentOption> installmentOptions) {
1012
    this.installmentOptions = installmentOptions;
×
1013
    return this;
×
1014
  }
1015

1016
  public CreateCheckoutSessionRequest putInstallmentOptionsItem(String key, CheckoutSessionInstallmentOption installmentOptionsItem) {
1017
    if (this.installmentOptions == null) {
×
1018
      this.installmentOptions = new HashMap<>();
×
1019
    }
1020
    this.installmentOptions.put(key, installmentOptionsItem);
×
1021
    return this;
×
1022
  }
1023

1024
   /**
1025
   * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options.
1026
   * @return installmentOptions
1027
  **/
1028
  @ApiModelProperty(value = "A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options.")
1029
  @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS)
1030
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1031

1032
  public Map<String, CheckoutSessionInstallmentOption> getInstallmentOptions() {
1033
    return installmentOptions;
1✔
1034
  }
1035

1036

1037
  @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS)
1038
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1039
  public void setInstallmentOptions(Map<String, CheckoutSessionInstallmentOption> installmentOptions) {
1040
    this.installmentOptions = installmentOptions;
×
1041
  }
×
1042

1043

1044
  public CreateCheckoutSessionRequest lineItems(List<LineItem> lineItems) {
1045
    this.lineItems = lineItems;
×
1046
    return this;
×
1047
  }
1048

1049
  public CreateCheckoutSessionRequest addLineItemsItem(LineItem lineItemsItem) {
1050
    if (this.lineItems == null) {
×
1051
      this.lineItems = new ArrayList<>();
×
1052
    }
1053
    this.lineItems.add(lineItemsItem);
×
1054
    return this;
×
1055
  }
1056

1057
   /**
1058
   * Price and product information about the purchased items, to be included on the invoice sent to the shopper. &gt; This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip.
1059
   * @return lineItems
1060
  **/
1061
  @ApiModelProperty(value = "Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip.")
1062
  @JsonProperty(JSON_PROPERTY_LINE_ITEMS)
1063
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1064

1065
  public List<LineItem> getLineItems() {
1066
    return lineItems;
1✔
1067
  }
1068

1069

1070
  @JsonProperty(JSON_PROPERTY_LINE_ITEMS)
1071
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1072
  public void setLineItems(List<LineItem> lineItems) {
1073
    this.lineItems = lineItems;
×
1074
  }
×
1075

1076

1077
  public CreateCheckoutSessionRequest mandate(Mandate mandate) {
1078
    this.mandate = mandate;
×
1079
    return this;
×
1080
  }
1081

1082
   /**
1083
   * Get mandate
1084
   * @return mandate
1085
  **/
1086
  @ApiModelProperty(value = "")
1087
  @JsonProperty(JSON_PROPERTY_MANDATE)
1088
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1089

1090
  public Mandate getMandate() {
1091
    return mandate;
1✔
1092
  }
1093

1094

1095
  @JsonProperty(JSON_PROPERTY_MANDATE)
1096
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1097
  public void setMandate(Mandate mandate) {
1098
    this.mandate = mandate;
×
1099
  }
×
1100

1101

1102
  public CreateCheckoutSessionRequest mcc(String mcc) {
1103
    this.mcc = mcc;
×
1104
    return this;
×
1105
  }
1106

1107
   /**
1108
   * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant.
1109
   * @return mcc
1110
  **/
1111
  @ApiModelProperty(value = "The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant.")
1112
  @JsonProperty(JSON_PROPERTY_MCC)
1113
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1114

1115
  public String getMcc() {
1116
    return mcc;
1✔
1117
  }
1118

1119

1120
  @JsonProperty(JSON_PROPERTY_MCC)
1121
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1122
  public void setMcc(String mcc) {
1123
    this.mcc = mcc;
×
1124
  }
×
1125

1126

1127
  public CreateCheckoutSessionRequest merchantAccount(String merchantAccount) {
1128
    this.merchantAccount = merchantAccount;
×
1129
    return this;
×
1130
  }
1131

1132
   /**
1133
   * The merchant account identifier, with which you want to process the transaction.
1134
   * @return merchantAccount
1135
  **/
1136
  @ApiModelProperty(required = true, value = "The merchant account identifier, with which you want to process the transaction.")
1137
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
1138
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1139

1140
  public String getMerchantAccount() {
1141
    return merchantAccount;
1✔
1142
  }
1143

1144

1145
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
1146
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1147
  public void setMerchantAccount(String merchantAccount) {
1148
    this.merchantAccount = merchantAccount;
1✔
1149
  }
1✔
1150

1151

1152
  public CreateCheckoutSessionRequest merchantOrderReference(String merchantOrderReference) {
1153
    this.merchantOrderReference = merchantOrderReference;
×
1154
    return this;
×
1155
  }
1156

1157
   /**
1158
   * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. &gt; We strongly recommend you send the &#x60;merchantOrderReference&#x60; value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide &#x60;retry.orderAttemptNumber&#x60;, &#x60;retry.chainAttemptNumber&#x60;, and &#x60;retry.skipRetry&#x60; values in &#x60;PaymentRequest.additionalData&#x60;.
1159
   * @return merchantOrderReference
1160
  **/
1161
  @ApiModelProperty(value = "This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`.")
1162
  @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE)
1163
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1164

1165
  public String getMerchantOrderReference() {
1166
    return merchantOrderReference;
1✔
1167
  }
1168

1169

1170
  @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE)
1171
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1172
  public void setMerchantOrderReference(String merchantOrderReference) {
1173
    this.merchantOrderReference = merchantOrderReference;
×
1174
  }
×
1175

1176

1177
  public CreateCheckoutSessionRequest metadata(Map<String, String> metadata) {
1178
    this.metadata = metadata;
×
1179
    return this;
×
1180
  }
1181

1182
  public CreateCheckoutSessionRequest putMetadataItem(String key, String metadataItem) {
1183
    if (this.metadata == null) {
×
1184
      this.metadata = new HashMap<>();
×
1185
    }
1186
    this.metadata.put(key, metadataItem);
×
1187
    return this;
×
1188
  }
1189

1190
   /**
1191
   * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. 
1192
   * @return metadata
1193
  **/
1194
  @ApiModelProperty(value = "Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value. ")
1195
  @JsonProperty(JSON_PROPERTY_METADATA)
1196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1197

1198
  public Map<String, String> getMetadata() {
1199
    return metadata;
1✔
1200
  }
1201

1202

1203
  @JsonProperty(JSON_PROPERTY_METADATA)
1204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1205
  public void setMetadata(Map<String, String> metadata) {
1206
    this.metadata = metadata;
×
1207
  }
×
1208

1209

1210
  public CreateCheckoutSessionRequest mpiData(ThreeDSecureData mpiData) {
1211
    this.mpiData = mpiData;
×
1212
    return this;
×
1213
  }
1214

1215
   /**
1216
   * Get mpiData
1217
   * @return mpiData
1218
  **/
1219
  @ApiModelProperty(value = "")
1220
  @JsonProperty(JSON_PROPERTY_MPI_DATA)
1221
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1222

1223
  public ThreeDSecureData getMpiData() {
1224
    return mpiData;
1✔
1225
  }
1226

1227

1228
  @JsonProperty(JSON_PROPERTY_MPI_DATA)
1229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1230
  public void setMpiData(ThreeDSecureData mpiData) {
1231
    this.mpiData = mpiData;
×
1232
  }
×
1233

1234

1235
  public CreateCheckoutSessionRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) {
1236
    this.platformChargebackLogic = platformChargebackLogic;
×
1237
    return this;
×
1238
  }
1239

1240
   /**
1241
   * Get platformChargebackLogic
1242
   * @return platformChargebackLogic
1243
  **/
1244
  @ApiModelProperty(value = "")
1245
  @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC)
1246
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1247

1248
  public PlatformChargebackLogic getPlatformChargebackLogic() {
1249
    return platformChargebackLogic;
1✔
1250
  }
1251

1252

1253
  @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC)
1254
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1255
  public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) {
1256
    this.platformChargebackLogic = platformChargebackLogic;
×
1257
  }
×
1258

1259

1260
  public CreateCheckoutSessionRequest recurringExpiry(String recurringExpiry) {
1261
    this.recurringExpiry = recurringExpiry;
×
1262
    return this;
×
1263
  }
1264

1265
   /**
1266
   * Date after which no further authorisations shall be performed. Only for 3D Secure 2.
1267
   * @return recurringExpiry
1268
  **/
1269
  @ApiModelProperty(value = "Date after which no further authorisations shall be performed. Only for 3D Secure 2.")
1270
  @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)
1271
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1272

1273
  public String getRecurringExpiry() {
1274
    return recurringExpiry;
1✔
1275
  }
1276

1277

1278
  @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)
1279
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1280
  public void setRecurringExpiry(String recurringExpiry) {
1281
    this.recurringExpiry = recurringExpiry;
×
1282
  }
×
1283

1284

1285
  public CreateCheckoutSessionRequest recurringFrequency(String recurringFrequency) {
1286
    this.recurringFrequency = recurringFrequency;
×
1287
    return this;
×
1288
  }
1289

1290
   /**
1291
   * Minimum number of days between authorisations. Only for 3D Secure 2.
1292
   * @return recurringFrequency
1293
  **/
1294
  @ApiModelProperty(value = "Minimum number of days between authorisations. Only for 3D Secure 2.")
1295
  @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY)
1296
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1297

1298
  public String getRecurringFrequency() {
1299
    return recurringFrequency;
1✔
1300
  }
1301

1302

1303
  @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY)
1304
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1305
  public void setRecurringFrequency(String recurringFrequency) {
1306
    this.recurringFrequency = recurringFrequency;
×
1307
  }
×
1308

1309

1310
  public CreateCheckoutSessionRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) {
1311
    this.recurringProcessingModel = recurringProcessingModel;
×
1312
    return this;
×
1313
  }
1314

1315
   /**
1316
   * Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * &#x60;Subscription&#x60; – A transaction for a fixed or variable amount, which follows a fixed schedule. * &#x60;CardOnFile&#x60; – 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. * &#x60;UnscheduledCardOnFile&#x60; – 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&#39;s balance drops below a certain amount. 
1317
   * @return recurringProcessingModel
1318
  **/
1319
  @ApiModelProperty(value = "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. ")
1320
  @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL)
1321
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1322

1323
  public RecurringProcessingModelEnum getRecurringProcessingModel() {
1324
    return recurringProcessingModel;
1✔
1325
  }
1326

1327

1328
  @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL)
1329
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1330
  public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) {
1331
    this.recurringProcessingModel = recurringProcessingModel;
×
1332
  }
×
1333

1334

1335
  public CreateCheckoutSessionRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) {
1336
    this.redirectFromIssuerMethod = redirectFromIssuerMethod;
×
1337
    return this;
×
1338
  }
1339

1340
   /**
1341
   * Specifies the redirect method (GET or POST) when redirecting back from the issuer.
1342
   * @return redirectFromIssuerMethod
1343
  **/
1344
  @ApiModelProperty(value = "Specifies the redirect method (GET or POST) when redirecting back from the issuer.")
1345
  @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD)
1346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1347

1348
  public String getRedirectFromIssuerMethod() {
1349
    return redirectFromIssuerMethod;
1✔
1350
  }
1351

1352

1353
  @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD)
1354
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1355
  public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) {
1356
    this.redirectFromIssuerMethod = redirectFromIssuerMethod;
×
1357
  }
×
1358

1359

1360
  public CreateCheckoutSessionRequest redirectToIssuerMethod(String redirectToIssuerMethod) {
1361
    this.redirectToIssuerMethod = redirectToIssuerMethod;
×
1362
    return this;
×
1363
  }
1364

1365
   /**
1366
   * Specifies the redirect method (GET or POST) when redirecting to the issuer.
1367
   * @return redirectToIssuerMethod
1368
  **/
1369
  @ApiModelProperty(value = "Specifies the redirect method (GET or POST) when redirecting to the issuer.")
1370
  @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD)
1371
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1372

1373
  public String getRedirectToIssuerMethod() {
1374
    return redirectToIssuerMethod;
1✔
1375
  }
1376

1377

1378
  @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD)
1379
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1380
  public void setRedirectToIssuerMethod(String redirectToIssuerMethod) {
1381
    this.redirectToIssuerMethod = redirectToIssuerMethod;
×
1382
  }
×
1383

1384

1385
  public CreateCheckoutSessionRequest reference(String reference) {
1386
    this.reference = reference;
×
1387
    return this;
×
1388
  }
1389

1390
   /**
1391
   * The reference to uniquely identify a payment.
1392
   * @return reference
1393
  **/
1394
  @ApiModelProperty(required = true, value = "The reference to uniquely identify a payment.")
1395
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1396
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1397

1398
  public String getReference() {
1399
    return reference;
1✔
1400
  }
1401

1402

1403
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1404
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1405
  public void setReference(String reference) {
1406
    this.reference = reference;
1✔
1407
  }
1✔
1408

1409

1410
  public CreateCheckoutSessionRequest returnUrl(String returnUrl) {
1411
    this.returnUrl = returnUrl;
×
1412
    return this;
×
1413
  }
1414

1415
   /**
1416
   * The URL to return to when a redirect payment is completed.
1417
   * @return returnUrl
1418
  **/
1419
  @ApiModelProperty(required = true, value = "The URL to return to when a redirect payment is completed.")
1420
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
1421
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1422

1423
  public String getReturnUrl() {
1424
    return returnUrl;
1✔
1425
  }
1426

1427

1428
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
1429
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1430
  public void setReturnUrl(String returnUrl) {
1431
    this.returnUrl = returnUrl;
1✔
1432
  }
1✔
1433

1434

1435
  public CreateCheckoutSessionRequest riskData(RiskData riskData) {
1436
    this.riskData = riskData;
×
1437
    return this;
×
1438
  }
1439

1440
   /**
1441
   * Get riskData
1442
   * @return riskData
1443
  **/
1444
  @ApiModelProperty(value = "")
1445
  @JsonProperty(JSON_PROPERTY_RISK_DATA)
1446
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1447

1448
  public RiskData getRiskData() {
1449
    return riskData;
1✔
1450
  }
1451

1452

1453
  @JsonProperty(JSON_PROPERTY_RISK_DATA)
1454
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1455
  public void setRiskData(RiskData riskData) {
1456
    this.riskData = riskData;
×
1457
  }
×
1458

1459

1460
  public CreateCheckoutSessionRequest shopperEmail(String shopperEmail) {
1461
    this.shopperEmail = shopperEmail;
×
1462
    return this;
×
1463
  }
1464

1465
   /**
1466
   * The shopper&#39;s email address.
1467
   * @return shopperEmail
1468
  **/
1469
  @ApiModelProperty(value = "The shopper's email address.")
1470
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
1471
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1472

1473
  public String getShopperEmail() {
1474
    return shopperEmail;
1✔
1475
  }
1476

1477

1478
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
1479
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1480
  public void setShopperEmail(String shopperEmail) {
1481
    this.shopperEmail = shopperEmail;
×
1482
  }
×
1483

1484

1485
  public CreateCheckoutSessionRequest shopperIP(String shopperIP) {
1486
    this.shopperIP = shopperIP;
×
1487
    return this;
×
1488
  }
1489

1490
   /**
1491
   * The shopper&#39;s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). &gt; For 3D Secure 2 transactions, schemes require &#x60;shopperIP&#x60; for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).
1492
   * @return shopperIP
1493
  **/
1494
  @ApiModelProperty(value = "The shopper's IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).")
1495
  @JsonProperty(JSON_PROPERTY_SHOPPER_I_P)
1496
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1497

1498
  public String getShopperIP() {
1499
    return shopperIP;
1✔
1500
  }
1501

1502

1503
  @JsonProperty(JSON_PROPERTY_SHOPPER_I_P)
1504
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1505
  public void setShopperIP(String shopperIP) {
1506
    this.shopperIP = shopperIP;
×
1507
  }
×
1508

1509

1510
  public CreateCheckoutSessionRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) {
1511
    this.shopperInteraction = shopperInteraction;
×
1512
    return this;
×
1513
  }
1514

1515
   /**
1516
   * 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: * &#x60;Ecommerce&#x60; - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * &#x60;ContAuth&#x60; - 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). * &#x60;Moto&#x60; - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * &#x60;POS&#x60; - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.
1517
   * @return shopperInteraction
1518
  **/
1519
  @ApiModelProperty(value = "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.")
1520
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1521
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1522

1523
  public ShopperInteractionEnum getShopperInteraction() {
1524
    return shopperInteraction;
1✔
1525
  }
1526

1527

1528
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1529
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1530
  public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) {
1531
    this.shopperInteraction = shopperInteraction;
×
1532
  }
×
1533

1534

1535
  public CreateCheckoutSessionRequest shopperLocale(String shopperLocale) {
1536
    this.shopperLocale = shopperLocale;
×
1537
    return this;
×
1538
  }
1539

1540
   /**
1541
   * The combination of a language code and a country code to specify the language to be used in the payment.
1542
   * @return shopperLocale
1543
  **/
1544
  @ApiModelProperty(value = "The combination of a language code and a country code to specify the language to be used in the payment.")
1545
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
1546
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1547

1548
  public String getShopperLocale() {
1549
    return shopperLocale;
1✔
1550
  }
1551

1552

1553
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
1554
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1555
  public void setShopperLocale(String shopperLocale) {
1556
    this.shopperLocale = shopperLocale;
×
1557
  }
×
1558

1559

1560
  public CreateCheckoutSessionRequest shopperName(Name shopperName) {
1561
    this.shopperName = shopperName;
×
1562
    return this;
×
1563
  }
1564

1565
   /**
1566
   * Get shopperName
1567
   * @return shopperName
1568
  **/
1569
  @ApiModelProperty(value = "")
1570
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
1571
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1572

1573
  public Name getShopperName() {
1574
    return shopperName;
1✔
1575
  }
1576

1577

1578
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
1579
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1580
  public void setShopperName(Name shopperName) {
1581
    this.shopperName = shopperName;
×
1582
  }
×
1583

1584

1585
  public CreateCheckoutSessionRequest shopperReference(String shopperReference) {
1586
    this.shopperReference = shopperReference;
×
1587
    return this;
×
1588
  }
1589

1590
   /**
1591
   * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. &gt; Your reference must not include personally identifiable information (PII), for example name or email address.
1592
   * @return shopperReference
1593
  **/
1594
  @ApiModelProperty(value = "Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.")
1595
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
1596
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1597

1598
  public String getShopperReference() {
1599
    return shopperReference;
1✔
1600
  }
1601

1602

1603
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
1604
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1605
  public void setShopperReference(String shopperReference) {
1606
    this.shopperReference = shopperReference;
×
1607
  }
×
1608

1609

1610
  public CreateCheckoutSessionRequest shopperStatement(String shopperStatement) {
1611
    this.shopperStatement = shopperStatement;
×
1612
    return this;
×
1613
  }
1614

1615
   /**
1616
   * The text to be shown on the shopper&#39;s bank statement.  We recommend sending a maximum of 22 characters, otherwise banks might truncate the string.  Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , &#39; _ - ? + * /_**.
1617
   * @return shopperStatement
1618
  **/
1619
  @ApiModelProperty(value = "The text to be shown on the shopper's bank statement.  We recommend sending a maximum of 22 characters, otherwise banks might truncate the string.  Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**.")
1620
  @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
1621
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1622

1623
  public String getShopperStatement() {
1624
    return shopperStatement;
1✔
1625
  }
1626

1627

1628
  @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
1629
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1630
  public void setShopperStatement(String shopperStatement) {
1631
    this.shopperStatement = shopperStatement;
×
1632
  }
×
1633

1634

1635
  public CreateCheckoutSessionRequest showInstallmentAmount(Boolean showInstallmentAmount) {
1636
    this.showInstallmentAmount = showInstallmentAmount;
×
1637
    return this;
×
1638
  }
1639

1640
   /**
1641
   * Set to true to show the payment amount per installment.
1642
   * @return showInstallmentAmount
1643
  **/
1644
  @ApiModelProperty(value = "Set to true to show the payment amount per installment.")
1645
  @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT)
1646
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1647

1648
  public Boolean getShowInstallmentAmount() {
1649
    return showInstallmentAmount;
1✔
1650
  }
1651

1652

1653
  @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT)
1654
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1655
  public void setShowInstallmentAmount(Boolean showInstallmentAmount) {
1656
    this.showInstallmentAmount = showInstallmentAmount;
×
1657
  }
×
1658

1659

1660
  public CreateCheckoutSessionRequest socialSecurityNumber(String socialSecurityNumber) {
1661
    this.socialSecurityNumber = socialSecurityNumber;
×
1662
    return this;
×
1663
  }
1664

1665
   /**
1666
   * The shopper&#39;s social security number.
1667
   * @return socialSecurityNumber
1668
  **/
1669
  @ApiModelProperty(value = "The shopper's social security number.")
1670
  @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER)
1671
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1672

1673
  public String getSocialSecurityNumber() {
1674
    return socialSecurityNumber;
1✔
1675
  }
1676

1677

1678
  @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER)
1679
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1680
  public void setSocialSecurityNumber(String socialSecurityNumber) {
1681
    this.socialSecurityNumber = socialSecurityNumber;
×
1682
  }
×
1683

1684

1685
  public CreateCheckoutSessionRequest splitCardFundingSources(Boolean splitCardFundingSources) {
1686
    this.splitCardFundingSources = splitCardFundingSources;
×
1687
    return this;
×
1688
  }
1689

1690
   /**
1691
   * Boolean value indicating whether the card payment method should be split into separate debit and credit options.
1692
   * @return splitCardFundingSources
1693
  **/
1694
  @ApiModelProperty(value = "Boolean value indicating whether the card payment method should be split into separate debit and credit options.")
1695
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
1696
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1697

1698
  public Boolean getSplitCardFundingSources() {
1699
    return splitCardFundingSources;
1✔
1700
  }
1701

1702

1703
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
1704
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1705
  public void setSplitCardFundingSources(Boolean splitCardFundingSources) {
1706
    this.splitCardFundingSources = splitCardFundingSources;
×
1707
  }
×
1708

1709

1710
  public CreateCheckoutSessionRequest splits(List<Split> splits) {
1711
    this.splits = splits;
×
1712
    return this;
×
1713
  }
1714

1715
  public CreateCheckoutSessionRequest addSplitsItem(Split splitsItem) {
1716
    if (this.splits == null) {
×
1717
      this.splits = new ArrayList<>();
×
1718
    }
1719
    this.splits.add(splitsItem);
×
1720
    return this;
×
1721
  }
1722

1723
   /**
1724
   * An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
1725
   * @return splits
1726
  **/
1727
  @ApiModelProperty(value = "An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).")
1728
  @JsonProperty(JSON_PROPERTY_SPLITS)
1729
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1730

1731
  public List<Split> getSplits() {
1732
    return splits;
1✔
1733
  }
1734

1735

1736
  @JsonProperty(JSON_PROPERTY_SPLITS)
1737
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1738
  public void setSplits(List<Split> splits) {
1739
    this.splits = splits;
×
1740
  }
×
1741

1742

1743
  public CreateCheckoutSessionRequest store(String store) {
1744
    this.store = store;
×
1745
    return this;
×
1746
  }
1747

1748
   /**
1749
   * The ecommerce or point-of-sale store that is processing the payment. Used in:  * [Partner platform integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for the [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic). * [Platform setup integrations](https://docs.adyen.com/marketplaces-and-platforms/additional-for-platform-setup/route-payment-to-store) for the [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms).
1750
   * @return store
1751
  **/
1752
  @ApiModelProperty(value = "The ecommerce or point-of-sale store that is processing the payment. Used in:  * [Partner platform integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for the [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic). * [Platform setup integrations](https://docs.adyen.com/marketplaces-and-platforms/additional-for-platform-setup/route-payment-to-store) for the [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms).")
1753
  @JsonProperty(JSON_PROPERTY_STORE)
1754
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1755

1756
  public String getStore() {
1757
    return store;
1✔
1758
  }
1759

1760

1761
  @JsonProperty(JSON_PROPERTY_STORE)
1762
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1763
  public void setStore(String store) {
1764
    this.store = store;
×
1765
  }
×
1766

1767

1768
  public CreateCheckoutSessionRequest storePaymentMethod(Boolean storePaymentMethod) {
1769
    this.storePaymentMethod = storePaymentMethod;
×
1770
    return this;
×
1771
  }
1772

1773
   /**
1774
   * When this is set to **true** and the &#x60;shopperReference&#x60; is provided, the payment details will be stored.
1775
   * @return storePaymentMethod
1776
  **/
1777
  @ApiModelProperty(value = "When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.")
1778
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD)
1779
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1780

1781
  public Boolean getStorePaymentMethod() {
1782
    return storePaymentMethod;
1✔
1783
  }
1784

1785

1786
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD)
1787
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1788
  public void setStorePaymentMethod(Boolean storePaymentMethod) {
1789
    this.storePaymentMethod = storePaymentMethod;
×
1790
  }
×
1791

1792

1793
  public CreateCheckoutSessionRequest storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) {
1794
    this.storePaymentMethodMode = storePaymentMethodMode;
×
1795
    return this;
×
1796
  }
1797

1798
   /**
1799
   * 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 &#x60;shopperReference&#x60; is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the &#x60;shopperReference&#x60; is provided, the details will be stored without asking the shopper for consent.
1800
   * @return storePaymentMethodMode
1801
  **/
1802
  @ApiModelProperty(value = "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.")
1803
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE)
1804
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1805

1806
  public StorePaymentMethodModeEnum getStorePaymentMethodMode() {
1807
    return storePaymentMethodMode;
1✔
1808
  }
1809

1810

1811
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE)
1812
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1813
  public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) {
1814
    this.storePaymentMethodMode = storePaymentMethodMode;
×
1815
  }
×
1816

1817

1818
  public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber) {
1819
    this.telephoneNumber = telephoneNumber;
×
1820
    return this;
×
1821
  }
1822

1823
   /**
1824
   * The shopper&#39;s telephone number.
1825
   * @return telephoneNumber
1826
  **/
1827
  @ApiModelProperty(value = "The shopper's telephone number.")
1828
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
1829
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1830

1831
  public String getTelephoneNumber() {
1832
    return telephoneNumber;
1✔
1833
  }
1834

1835

1836
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
1837
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1838
  public void setTelephoneNumber(String telephoneNumber) {
1839
    this.telephoneNumber = telephoneNumber;
×
1840
  }
×
1841

1842

1843
  public CreateCheckoutSessionRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) {
1844
    this.threeDSAuthenticationOnly = threeDSAuthenticationOnly;
×
1845
    return this;
×
1846
  }
1847

1848
   /**
1849
   * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
1850
   * @return threeDSAuthenticationOnly
1851
   * @deprecated
1852
  **/
1853
  @Deprecated
1854
  @ApiModelProperty(value = "If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.")
1855
  @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY)
1856
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1857

1858
  public Boolean getThreeDSAuthenticationOnly() {
1859
    return threeDSAuthenticationOnly;
1✔
1860
  }
1861

1862

1863
  @Deprecated
1864
  @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY)
1865
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1866
  public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) {
1867
    this.threeDSAuthenticationOnly = threeDSAuthenticationOnly;
×
1868
  }
×
1869

1870

1871
  public CreateCheckoutSessionRequest trustedShopper(Boolean trustedShopper) {
1872
    this.trustedShopper = trustedShopper;
×
1873
    return this;
×
1874
  }
1875

1876
   /**
1877
   * Set to true if the payment should be routed to a trusted MID.
1878
   * @return trustedShopper
1879
  **/
1880
  @ApiModelProperty(value = "Set to true if the payment should be routed to a trusted MID.")
1881
  @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER)
1882
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1883

1884
  public Boolean getTrustedShopper() {
1885
    return trustedShopper;
1✔
1886
  }
1887

1888

1889
  @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER)
1890
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1891
  public void setTrustedShopper(Boolean trustedShopper) {
1892
    this.trustedShopper = trustedShopper;
×
1893
  }
×
1894

1895

1896
  /**
1897
   * Return true if this CreateCheckoutSessionRequest object is equal to o.
1898
   */
1899
  @Override
1900
  public boolean equals(Object o) {
1901
    if (this == o) {
×
1902
      return true;
×
1903
    }
1904
    if (o == null || getClass() != o.getClass()) {
×
1905
      return false;
×
1906
    }
1907
    CreateCheckoutSessionRequest createCheckoutSessionRequest = (CreateCheckoutSessionRequest) o;
×
1908
    return Objects.equals(this.accountInfo, createCheckoutSessionRequest.accountInfo) &&
×
1909
        Objects.equals(this.additionalAmount, createCheckoutSessionRequest.additionalAmount) &&
×
1910
        Objects.equals(this.additionalData, createCheckoutSessionRequest.additionalData) &&
×
1911
        Objects.equals(this.allowedPaymentMethods, createCheckoutSessionRequest.allowedPaymentMethods) &&
×
1912
        Objects.equals(this.amount, createCheckoutSessionRequest.amount) &&
×
1913
        Objects.equals(this.applicationInfo, createCheckoutSessionRequest.applicationInfo) &&
×
1914
        Objects.equals(this.authenticationData, createCheckoutSessionRequest.authenticationData) &&
×
1915
        Objects.equals(this.billingAddress, createCheckoutSessionRequest.billingAddress) &&
×
1916
        Objects.equals(this.blockedPaymentMethods, createCheckoutSessionRequest.blockedPaymentMethods) &&
×
1917
        Objects.equals(this.captureDelayHours, createCheckoutSessionRequest.captureDelayHours) &&
×
1918
        Objects.equals(this.channel, createCheckoutSessionRequest.channel) &&
×
1919
        Objects.equals(this.company, createCheckoutSessionRequest.company) &&
×
1920
        Objects.equals(this.countryCode, createCheckoutSessionRequest.countryCode) &&
×
1921
        Objects.equals(this.dateOfBirth, createCheckoutSessionRequest.dateOfBirth) &&
×
1922
        Objects.equals(this.deliverAt, createCheckoutSessionRequest.deliverAt) &&
×
1923
        Objects.equals(this.deliveryAddress, createCheckoutSessionRequest.deliveryAddress) &&
×
1924
        Objects.equals(this.enableOneClick, createCheckoutSessionRequest.enableOneClick) &&
×
1925
        Objects.equals(this.enablePayOut, createCheckoutSessionRequest.enablePayOut) &&
×
1926
        Objects.equals(this.enableRecurring, createCheckoutSessionRequest.enableRecurring) &&
×
1927
        Objects.equals(this.expiresAt, createCheckoutSessionRequest.expiresAt) &&
×
1928
        Objects.equals(this.fundOrigin, createCheckoutSessionRequest.fundOrigin) &&
×
1929
        Objects.equals(this.fundRecipient, createCheckoutSessionRequest.fundRecipient) &&
×
1930
        Objects.equals(this.installmentOptions, createCheckoutSessionRequest.installmentOptions) &&
×
1931
        Objects.equals(this.lineItems, createCheckoutSessionRequest.lineItems) &&
×
1932
        Objects.equals(this.mandate, createCheckoutSessionRequest.mandate) &&
×
1933
        Objects.equals(this.mcc, createCheckoutSessionRequest.mcc) &&
×
1934
        Objects.equals(this.merchantAccount, createCheckoutSessionRequest.merchantAccount) &&
×
1935
        Objects.equals(this.merchantOrderReference, createCheckoutSessionRequest.merchantOrderReference) &&
×
1936
        Objects.equals(this.metadata, createCheckoutSessionRequest.metadata) &&
×
1937
        Objects.equals(this.mpiData, createCheckoutSessionRequest.mpiData) &&
×
1938
        Objects.equals(this.platformChargebackLogic, createCheckoutSessionRequest.platformChargebackLogic) &&
×
1939
        Objects.equals(this.recurringExpiry, createCheckoutSessionRequest.recurringExpiry) &&
×
1940
        Objects.equals(this.recurringFrequency, createCheckoutSessionRequest.recurringFrequency) &&
×
1941
        Objects.equals(this.recurringProcessingModel, createCheckoutSessionRequest.recurringProcessingModel) &&
×
1942
        Objects.equals(this.redirectFromIssuerMethod, createCheckoutSessionRequest.redirectFromIssuerMethod) &&
×
1943
        Objects.equals(this.redirectToIssuerMethod, createCheckoutSessionRequest.redirectToIssuerMethod) &&
×
1944
        Objects.equals(this.reference, createCheckoutSessionRequest.reference) &&
×
1945
        Objects.equals(this.returnUrl, createCheckoutSessionRequest.returnUrl) &&
×
1946
        Objects.equals(this.riskData, createCheckoutSessionRequest.riskData) &&
×
1947
        Objects.equals(this.shopperEmail, createCheckoutSessionRequest.shopperEmail) &&
×
1948
        Objects.equals(this.shopperIP, createCheckoutSessionRequest.shopperIP) &&
×
1949
        Objects.equals(this.shopperInteraction, createCheckoutSessionRequest.shopperInteraction) &&
×
1950
        Objects.equals(this.shopperLocale, createCheckoutSessionRequest.shopperLocale) &&
×
1951
        Objects.equals(this.shopperName, createCheckoutSessionRequest.shopperName) &&
×
1952
        Objects.equals(this.shopperReference, createCheckoutSessionRequest.shopperReference) &&
×
1953
        Objects.equals(this.shopperStatement, createCheckoutSessionRequest.shopperStatement) &&
×
1954
        Objects.equals(this.showInstallmentAmount, createCheckoutSessionRequest.showInstallmentAmount) &&
×
1955
        Objects.equals(this.socialSecurityNumber, createCheckoutSessionRequest.socialSecurityNumber) &&
×
1956
        Objects.equals(this.splitCardFundingSources, createCheckoutSessionRequest.splitCardFundingSources) &&
×
1957
        Objects.equals(this.splits, createCheckoutSessionRequest.splits) &&
×
1958
        Objects.equals(this.store, createCheckoutSessionRequest.store) &&
×
1959
        Objects.equals(this.storePaymentMethod, createCheckoutSessionRequest.storePaymentMethod) &&
×
1960
        Objects.equals(this.storePaymentMethodMode, createCheckoutSessionRequest.storePaymentMethodMode) &&
×
1961
        Objects.equals(this.telephoneNumber, createCheckoutSessionRequest.telephoneNumber) &&
×
1962
        Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionRequest.threeDSAuthenticationOnly) &&
×
1963
        Objects.equals(this.trustedShopper, createCheckoutSessionRequest.trustedShopper);
×
1964
  }
1965

1966
  @Override
1967
  public int hashCode() {
1968
    return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethod, storePaymentMethodMode, telephoneNumber, threeDSAuthenticationOnly, trustedShopper);
×
1969
  }
1970

1971
  @Override
1972
  public String toString() {
1973
    StringBuilder sb = new StringBuilder();
×
1974
    sb.append("class CreateCheckoutSessionRequest {\n");
×
1975
    sb.append("    accountInfo: ").append(toIndentedString(accountInfo)).append("\n");
×
1976
    sb.append("    additionalAmount: ").append(toIndentedString(additionalAmount)).append("\n");
×
1977
    sb.append("    additionalData: ").append(toIndentedString(additionalData)).append("\n");
×
1978
    sb.append("    allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n");
×
1979
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
1980
    sb.append("    applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n");
×
1981
    sb.append("    authenticationData: ").append(toIndentedString(authenticationData)).append("\n");
×
1982
    sb.append("    billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
×
1983
    sb.append("    blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n");
×
1984
    sb.append("    captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n");
×
1985
    sb.append("    channel: ").append(toIndentedString(channel)).append("\n");
×
1986
    sb.append("    company: ").append(toIndentedString(company)).append("\n");
×
1987
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
×
1988
    sb.append("    dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n");
×
1989
    sb.append("    deliverAt: ").append(toIndentedString(deliverAt)).append("\n");
×
1990
    sb.append("    deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n");
×
1991
    sb.append("    enableOneClick: ").append(toIndentedString(enableOneClick)).append("\n");
×
1992
    sb.append("    enablePayOut: ").append(toIndentedString(enablePayOut)).append("\n");
×
1993
    sb.append("    enableRecurring: ").append(toIndentedString(enableRecurring)).append("\n");
×
1994
    sb.append("    expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
×
1995
    sb.append("    fundOrigin: ").append(toIndentedString(fundOrigin)).append("\n");
×
1996
    sb.append("    fundRecipient: ").append(toIndentedString(fundRecipient)).append("\n");
×
1997
    sb.append("    installmentOptions: ").append(toIndentedString(installmentOptions)).append("\n");
×
1998
    sb.append("    lineItems: ").append(toIndentedString(lineItems)).append("\n");
×
1999
    sb.append("    mandate: ").append(toIndentedString(mandate)).append("\n");
×
2000
    sb.append("    mcc: ").append(toIndentedString(mcc)).append("\n");
×
2001
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
2002
    sb.append("    merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n");
×
2003
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
×
2004
    sb.append("    mpiData: ").append(toIndentedString(mpiData)).append("\n");
×
2005
    sb.append("    platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n");
×
2006
    sb.append("    recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n");
×
2007
    sb.append("    recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n");
×
2008
    sb.append("    recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n");
×
2009
    sb.append("    redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n");
×
2010
    sb.append("    redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n");
×
2011
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
2012
    sb.append("    returnUrl: ").append(toIndentedString(returnUrl)).append("\n");
×
2013
    sb.append("    riskData: ").append(toIndentedString(riskData)).append("\n");
×
2014
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
2015
    sb.append("    shopperIP: ").append(toIndentedString(shopperIP)).append("\n");
×
2016
    sb.append("    shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n");
×
2017
    sb.append("    shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n");
×
2018
    sb.append("    shopperName: ").append(toIndentedString(shopperName)).append("\n");
×
2019
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
2020
    sb.append("    shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n");
×
2021
    sb.append("    showInstallmentAmount: ").append(toIndentedString(showInstallmentAmount)).append("\n");
×
2022
    sb.append("    socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n");
×
2023
    sb.append("    splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n");
×
2024
    sb.append("    splits: ").append(toIndentedString(splits)).append("\n");
×
2025
    sb.append("    store: ").append(toIndentedString(store)).append("\n");
×
2026
    sb.append("    storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n");
×
2027
    sb.append("    storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n");
×
2028
    sb.append("    telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
×
2029
    sb.append("    threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n");
×
2030
    sb.append("    trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n");
×
2031
    sb.append("}");
×
2032
    return sb.toString();
×
2033
  }
2034

2035
  /**
2036
   * Convert the given object to string with each line indented by 4 spaces
2037
   * (except the first line).
2038
   */
2039
  private String toIndentedString(Object o) {
2040
    if (o == null) {
×
2041
      return "null";
×
2042
    }
2043
    return o.toString().replace("\n", "\n    ");
×
2044
  }
2045

2046
/**
2047
   * Create an instance of CreateCheckoutSessionRequest given an JSON string
2048
   *
2049
   * @param jsonString JSON string
2050
   * @return An instance of CreateCheckoutSessionRequest
2051
   * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCheckoutSessionRequest
2052
   */
2053
  public static CreateCheckoutSessionRequest fromJson(String jsonString) throws JsonProcessingException {
2054
    return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionRequest.class);
×
2055
  }
2056
/**
2057
  * Convert an instance of CreateCheckoutSessionRequest to an JSON string
2058
  *
2059
  * @return JSON string
2060
  */
2061
  public String toJson() throws JsonProcessingException {
2062
    return JSON.getMapper().writeValueAsString(this);
1✔
2063
  }
2064
}
2065

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

© 2025 Coveralls, Inc