• 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

12.76
/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.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.OffsetDateTime;
44
import java.util.ArrayList;
45
import java.util.HashMap;
46
import java.util.List;
47
import java.util.Map;
48
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
49
import com.fasterxml.jackson.core.JsonProcessingException;
50

51

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

117
public class CreateCheckoutSessionResponse {
118
  public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo";
119
  private AccountInfo accountInfo;
120

121
  public static final String JSON_PROPERTY_ADDITIONAL_AMOUNT = "additionalAmount";
122
  private Amount additionalAmount;
123

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

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

130
  public static final String JSON_PROPERTY_AMOUNT = "amount";
131
  private Amount amount;
132

133
  public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo";
134
  private ApplicationInfo applicationInfo;
135

136
  public static final String JSON_PROPERTY_AUTHENTICATION_DATA = "authenticationData";
137
  private AuthenticationData authenticationData;
138

139
  public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress";
140
  private BillingAddress billingAddress;
141

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

145
  public static final String JSON_PROPERTY_CAPTURE_DELAY_HOURS = "captureDelayHours";
146
  private Integer captureDelayHours;
147

148
  /**
149
   * 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**
150
   */
151
  public enum ChannelEnum {
×
152
    IOS("iOS"),
×
153
    
154
    ANDROID("Android"),
×
155
    
156
    WEB("Web");
×
157

158
    private String value;
159

160
    ChannelEnum(String value) {
×
161
      this.value = value;
×
162
    }
×
163

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

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

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

185
  public static final String JSON_PROPERTY_CHANNEL = "channel";
186
  private ChannelEnum channel;
187

188
  public static final String JSON_PROPERTY_COMPANY = "company";
189
  private Company company;
190

191
  public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode";
192
  private String countryCode;
193

194
  public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth";
195
  private OffsetDateTime dateOfBirth;
196

197
  public static final String JSON_PROPERTY_DELIVER_AT = "deliverAt";
198
  private OffsetDateTime deliverAt;
199

200
  public static final String JSON_PROPERTY_DELIVERY_ADDRESS = "deliveryAddress";
201
  private DeliveryAddress deliveryAddress;
202

203
  public static final String JSON_PROPERTY_ENABLE_ONE_CLICK = "enableOneClick";
204
  private Boolean enableOneClick;
205

206
  public static final String JSON_PROPERTY_ENABLE_PAY_OUT = "enablePayOut";
207
  private Boolean enablePayOut;
208

209
  public static final String JSON_PROPERTY_ENABLE_RECURRING = "enableRecurring";
210
  private Boolean enableRecurring;
211

212
  public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt";
213
  private OffsetDateTime expiresAt;
214

215
  public static final String JSON_PROPERTY_FUND_ORIGIN = "fundOrigin";
216
  private FundOrigin fundOrigin;
217

218
  public static final String JSON_PROPERTY_FUND_RECIPIENT = "fundRecipient";
219
  private FundRecipient fundRecipient;
220

221
  public static final String JSON_PROPERTY_ID = "id";
222
  private String id;
223

224
  public static final String JSON_PROPERTY_INSTALLMENT_OPTIONS = "installmentOptions";
225
  private Map<String, CheckoutSessionInstallmentOption> installmentOptions = null;
1✔
226

227
  public static final String JSON_PROPERTY_LINE_ITEMS = "lineItems";
228
  private List<LineItem> lineItems = null;
1✔
229

230
  public static final String JSON_PROPERTY_MANDATE = "mandate";
231
  private Mandate mandate;
232

233
  public static final String JSON_PROPERTY_MCC = "mcc";
234
  private String mcc;
235

236
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
237
  private String merchantAccount;
238

239
  public static final String JSON_PROPERTY_MERCHANT_ORDER_REFERENCE = "merchantOrderReference";
240
  private String merchantOrderReference;
241

242
  public static final String JSON_PROPERTY_METADATA = "metadata";
243
  private Map<String, String> metadata = null;
1✔
244

245
  /**
246
   * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration
247
   */
248
  public enum ModeEnum {
1✔
249
    EMBEDDED("embedded"),
1✔
250
    
251
    HOSTED("hosted");
1✔
252

253
    private String value;
254

255
    ModeEnum(String value) {
1✔
256
      this.value = value;
1✔
257
    }
1✔
258

259
    @JsonValue
260
    public String getValue() {
261
      return value;
×
262
    }
263

264
    @Override
265
    public String toString() {
266
      return String.valueOf(value);
×
267
    }
268

269
    @JsonCreator
270
    public static ModeEnum fromValue(String value) {
271
      for (ModeEnum b : ModeEnum.values()) {
1✔
272
        if (b.value.equals(value)) {
1✔
273
          return b;
1✔
274
        }
275
      }
276
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
277
    }
278
  }
279

280
  public static final String JSON_PROPERTY_MODE = "mode";
281
  private ModeEnum mode = ModeEnum.EMBEDDED;
1✔
282

283
  public static final String JSON_PROPERTY_MPI_DATA = "mpiData";
284
  private ThreeDSecureData mpiData;
285

286
  public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC = "platformChargebackLogic";
287
  private PlatformChargebackLogic platformChargebackLogic;
288

289
  public static final String JSON_PROPERTY_RECURRING_EXPIRY = "recurringExpiry";
290
  private String recurringExpiry;
291

292
  public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency";
293
  private String recurringFrequency;
294

295
  /**
296
   * 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. 
297
   */
298
  public enum RecurringProcessingModelEnum {
1✔
299
    CARDONFILE("CardOnFile"),
1✔
300
    
301
    SUBSCRIPTION("Subscription"),
1✔
302
    
303
    UNSCHEDULEDCARDONFILE("UnscheduledCardOnFile");
1✔
304

305
    private String value;
306

307
    RecurringProcessingModelEnum(String value) {
1✔
308
      this.value = value;
1✔
309
    }
1✔
310

311
    @JsonValue
312
    public String getValue() {
313
      return value;
×
314
    }
315

316
    @Override
317
    public String toString() {
318
      return String.valueOf(value);
×
319
    }
320

321
    @JsonCreator
322
    public static RecurringProcessingModelEnum fromValue(String value) {
323
      for (RecurringProcessingModelEnum b : RecurringProcessingModelEnum.values()) {
1✔
324
        if (b.value.equals(value)) {
1✔
325
          return b;
1✔
326
        }
327
      }
328
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
329
    }
330
  }
331

332
  public static final String JSON_PROPERTY_RECURRING_PROCESSING_MODEL = "recurringProcessingModel";
333
  private RecurringProcessingModelEnum recurringProcessingModel;
334

335
  public static final String JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD = "redirectFromIssuerMethod";
336
  private String redirectFromIssuerMethod;
337

338
  public static final String JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD = "redirectToIssuerMethod";
339
  private String redirectToIssuerMethod;
340

341
  public static final String JSON_PROPERTY_REFERENCE = "reference";
342
  private String reference;
343

344
  public static final String JSON_PROPERTY_RETURN_URL = "returnUrl";
345
  private String returnUrl;
346

347
  public static final String JSON_PROPERTY_RISK_DATA = "riskData";
348
  private RiskData riskData;
349

350
  public static final String JSON_PROPERTY_SESSION_DATA = "sessionData";
351
  private String sessionData;
352

353
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
354
  private String shopperEmail;
355

356
  public static final String JSON_PROPERTY_SHOPPER_I_P = "shopperIP";
357
  private String shopperIP;
358

359
  /**
360
   * 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.
361
   */
362
  public enum ShopperInteractionEnum {
×
363
    ECOMMERCE("Ecommerce"),
×
364
    
365
    CONTAUTH("ContAuth"),
×
366
    
367
    MOTO("Moto"),
×
368
    
369
    POS("POS");
×
370

371
    private String value;
372

373
    ShopperInteractionEnum(String value) {
×
374
      this.value = value;
×
375
    }
×
376

377
    @JsonValue
378
    public String getValue() {
379
      return value;
×
380
    }
381

382
    @Override
383
    public String toString() {
384
      return String.valueOf(value);
×
385
    }
386

387
    @JsonCreator
388
    public static ShopperInteractionEnum fromValue(String value) {
389
      for (ShopperInteractionEnum b : ShopperInteractionEnum.values()) {
×
390
        if (b.value.equals(value)) {
×
391
          return b;
×
392
        }
393
      }
394
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
395
    }
396
  }
397

398
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
399
  private ShopperInteractionEnum shopperInteraction;
400

401
  public static final String JSON_PROPERTY_SHOPPER_LOCALE = "shopperLocale";
402
  private String shopperLocale;
403

404
  public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
405
  private Name shopperName;
406

407
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
408
  private String shopperReference;
409

410
  public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement";
411
  private String shopperStatement;
412

413
  public static final String JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT = "showInstallmentAmount";
414
  private Boolean showInstallmentAmount;
415

416
  public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber";
417
  private String socialSecurityNumber;
418

419
  public static final String JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES = "splitCardFundingSources";
420
  private Boolean splitCardFundingSources = false;
1✔
421

422
  public static final String JSON_PROPERTY_SPLITS = "splits";
423
  private List<Split> splits = null;
1✔
424

425
  public static final String JSON_PROPERTY_STORE = "store";
426
  private String store;
427

428
  public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD = "storePaymentMethod";
429
  private Boolean storePaymentMethod;
430

431
  /**
432
   * 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.
433
   */
434
  public enum StorePaymentMethodModeEnum {
1✔
435
    ASKFORCONSENT("askForConsent"),
1✔
436
    
437
    DISABLED("disabled"),
1✔
438
    
439
    ENABLED("enabled");
1✔
440

441
    private String value;
442

443
    StorePaymentMethodModeEnum(String value) {
1✔
444
      this.value = value;
1✔
445
    }
1✔
446

447
    @JsonValue
448
    public String getValue() {
449
      return value;
×
450
    }
451

452
    @Override
453
    public String toString() {
454
      return String.valueOf(value);
×
455
    }
456

457
    @JsonCreator
458
    public static StorePaymentMethodModeEnum fromValue(String value) {
459
      for (StorePaymentMethodModeEnum b : StorePaymentMethodModeEnum.values()) {
1✔
460
        if (b.value.equals(value)) {
1✔
461
          return b;
1✔
462
        }
463
      }
464
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
465
    }
466
  }
467

468
  public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE = "storePaymentMethodMode";
469
  private StorePaymentMethodModeEnum storePaymentMethodMode;
470

471
  public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber";
472
  private String telephoneNumber;
473

474
  public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly";
475
  private Boolean threeDSAuthenticationOnly = false;
1✔
476

477
  public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper";
478
  private Boolean trustedShopper;
479

480
  public CreateCheckoutSessionResponse() { 
1✔
481
  }
1✔
482

483
  public CreateCheckoutSessionResponse accountInfo(AccountInfo accountInfo) {
484
    this.accountInfo = accountInfo;
×
485
    return this;
×
486
  }
487

488
   /**
489
   * Get accountInfo
490
   * @return accountInfo
491
  **/
492
  @ApiModelProperty(value = "")
493
  @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
494
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
495

496
  public AccountInfo getAccountInfo() {
497
    return accountInfo;
×
498
  }
499

500

501
  @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
502
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
503
  public void setAccountInfo(AccountInfo accountInfo) {
504
    this.accountInfo = accountInfo;
×
505
  }
×
506

507

508
  public CreateCheckoutSessionResponse additionalAmount(Amount additionalAmount) {
509
    this.additionalAmount = additionalAmount;
×
510
    return this;
×
511
  }
512

513
   /**
514
   * Get additionalAmount
515
   * @return additionalAmount
516
  **/
517
  @ApiModelProperty(value = "")
518
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
519
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
520

521
  public Amount getAdditionalAmount() {
522
    return additionalAmount;
×
523
  }
524

525

526
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
527
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
528
  public void setAdditionalAmount(Amount additionalAmount) {
529
    this.additionalAmount = additionalAmount;
×
530
  }
×
531

532

533
  public CreateCheckoutSessionResponse additionalData(Map<String, String> additionalData) {
534
    this.additionalData = additionalData;
×
535
    return this;
×
536
  }
537

538
  public CreateCheckoutSessionResponse putAdditionalDataItem(String key, String additionalDataItem) {
539
    if (this.additionalData == null) {
×
540
      this.additionalData = new HashMap<>();
×
541
    }
542
    this.additionalData.put(key, additionalDataItem);
×
543
    return this;
×
544
  }
545

546
   /**
547
   * 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.
548
   * @return additionalData
549
  **/
550
  @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.")
551
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
552
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
553

554
  public Map<String, String> getAdditionalData() {
555
    return additionalData;
×
556
  }
557

558

559
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
560
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
561
  public void setAdditionalData(Map<String, String> additionalData) {
562
    this.additionalData = additionalData;
×
563
  }
×
564

565

566
  public CreateCheckoutSessionResponse allowedPaymentMethods(List<String> allowedPaymentMethods) {
567
    this.allowedPaymentMethods = allowedPaymentMethods;
×
568
    return this;
×
569
  }
570

571
  public CreateCheckoutSessionResponse addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) {
572
    if (this.allowedPaymentMethods == null) {
×
573
      this.allowedPaymentMethods = new ArrayList<>();
×
574
    }
575
    this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
×
576
    return this;
×
577
  }
578

579
   /**
580
   * 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;
581
   * @return allowedPaymentMethods
582
  **/
583
  @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\"]`")
584
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
585
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
586

587
  public List<String> getAllowedPaymentMethods() {
588
    return allowedPaymentMethods;
×
589
  }
590

591

592
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
593
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
594
  public void setAllowedPaymentMethods(List<String> allowedPaymentMethods) {
595
    this.allowedPaymentMethods = allowedPaymentMethods;
×
596
  }
×
597

598

599
  public CreateCheckoutSessionResponse amount(Amount amount) {
600
    this.amount = amount;
×
601
    return this;
×
602
  }
603

604
   /**
605
   * Get amount
606
   * @return amount
607
  **/
608
  @ApiModelProperty(required = true, value = "")
609
  @JsonProperty(JSON_PROPERTY_AMOUNT)
610
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
611

612
  public Amount getAmount() {
613
    return amount;
×
614
  }
615

616

617
  @JsonProperty(JSON_PROPERTY_AMOUNT)
618
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
619
  public void setAmount(Amount amount) {
620
    this.amount = amount;
1✔
621
  }
1✔
622

623

624
  public CreateCheckoutSessionResponse applicationInfo(ApplicationInfo applicationInfo) {
625
    this.applicationInfo = applicationInfo;
×
626
    return this;
×
627
  }
628

629
   /**
630
   * Get applicationInfo
631
   * @return applicationInfo
632
  **/
633
  @ApiModelProperty(value = "")
634
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
635
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
636

637
  public ApplicationInfo getApplicationInfo() {
638
    return applicationInfo;
×
639
  }
640

641

642
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
643
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
644
  public void setApplicationInfo(ApplicationInfo applicationInfo) {
645
    this.applicationInfo = applicationInfo;
×
646
  }
×
647

648

649
  public CreateCheckoutSessionResponse authenticationData(AuthenticationData authenticationData) {
650
    this.authenticationData = authenticationData;
×
651
    return this;
×
652
  }
653

654
   /**
655
   * Get authenticationData
656
   * @return authenticationData
657
  **/
658
  @ApiModelProperty(value = "")
659
  @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
660
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
661

662
  public AuthenticationData getAuthenticationData() {
663
    return authenticationData;
×
664
  }
665

666

667
  @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
668
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
669
  public void setAuthenticationData(AuthenticationData authenticationData) {
670
    this.authenticationData = authenticationData;
×
671
  }
×
672

673

674
  public CreateCheckoutSessionResponse billingAddress(BillingAddress billingAddress) {
675
    this.billingAddress = billingAddress;
×
676
    return this;
×
677
  }
678

679
   /**
680
   * Get billingAddress
681
   * @return billingAddress
682
  **/
683
  @ApiModelProperty(value = "")
684
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
685
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
686

687
  public BillingAddress getBillingAddress() {
688
    return billingAddress;
×
689
  }
690

691

692
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
693
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
694
  public void setBillingAddress(BillingAddress billingAddress) {
695
    this.billingAddress = billingAddress;
×
696
  }
×
697

698

699
  public CreateCheckoutSessionResponse blockedPaymentMethods(List<String> blockedPaymentMethods) {
700
    this.blockedPaymentMethods = blockedPaymentMethods;
×
701
    return this;
×
702
  }
703

704
  public CreateCheckoutSessionResponse addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) {
705
    if (this.blockedPaymentMethods == null) {
×
706
      this.blockedPaymentMethods = new ArrayList<>();
×
707
    }
708
    this.blockedPaymentMethods.add(blockedPaymentMethodsItem);
×
709
    return this;
×
710
  }
711

712
   /**
713
   * 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;
714
   * @return blockedPaymentMethods
715
  **/
716
  @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\"]`")
717
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
718
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
719

720
  public List<String> getBlockedPaymentMethods() {
721
    return blockedPaymentMethods;
×
722
  }
723

724

725
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
726
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
727
  public void setBlockedPaymentMethods(List<String> blockedPaymentMethods) {
728
    this.blockedPaymentMethods = blockedPaymentMethods;
×
729
  }
×
730

731

732
  public CreateCheckoutSessionResponse captureDelayHours(Integer captureDelayHours) {
733
    this.captureDelayHours = captureDelayHours;
×
734
    return this;
×
735
  }
736

737
   /**
738
   * The delay between the authorisation and scheduled auto-capture, specified in hours.
739
   * @return captureDelayHours
740
  **/
741
  @ApiModelProperty(value = "The delay between the authorisation and scheduled auto-capture, specified in hours.")
742
  @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
743
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
744

745
  public Integer getCaptureDelayHours() {
746
    return captureDelayHours;
×
747
  }
748

749

750
  @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
751
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
752
  public void setCaptureDelayHours(Integer captureDelayHours) {
753
    this.captureDelayHours = captureDelayHours;
×
754
  }
×
755

756

757
  public CreateCheckoutSessionResponse channel(ChannelEnum channel) {
758
    this.channel = channel;
×
759
    return this;
×
760
  }
761

762
   /**
763
   * 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**
764
   * @return channel
765
  **/
766
  @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**")
767
  @JsonProperty(JSON_PROPERTY_CHANNEL)
768
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
769

770
  public ChannelEnum getChannel() {
771
    return channel;
×
772
  }
773

774

775
  @JsonProperty(JSON_PROPERTY_CHANNEL)
776
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
777
  public void setChannel(ChannelEnum channel) {
778
    this.channel = channel;
×
779
  }
×
780

781

782
  public CreateCheckoutSessionResponse company(Company company) {
783
    this.company = company;
×
784
    return this;
×
785
  }
786

787
   /**
788
   * Get company
789
   * @return company
790
  **/
791
  @ApiModelProperty(value = "")
792
  @JsonProperty(JSON_PROPERTY_COMPANY)
793
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
794

795
  public Company getCompany() {
796
    return company;
×
797
  }
798

799

800
  @JsonProperty(JSON_PROPERTY_COMPANY)
801
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
802
  public void setCompany(Company company) {
803
    this.company = company;
×
804
  }
×
805

806

807
  public CreateCheckoutSessionResponse countryCode(String countryCode) {
808
    this.countryCode = countryCode;
×
809
    return this;
×
810
  }
811

812
   /**
813
   * The shopper&#39;s two-letter country code.
814
   * @return countryCode
815
  **/
816
  @ApiModelProperty(value = "The shopper's two-letter country code.")
817
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
818
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
819

820
  public String getCountryCode() {
821
    return countryCode;
×
822
  }
823

824

825
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
826
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
827
  public void setCountryCode(String countryCode) {
828
    this.countryCode = countryCode;
1✔
829
  }
1✔
830

831

832
  public CreateCheckoutSessionResponse dateOfBirth(OffsetDateTime dateOfBirth) {
833
    this.dateOfBirth = dateOfBirth;
×
834
    return this;
×
835
  }
836

837
   /**
838
   * The shopper&#39;s date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
839
   * @return dateOfBirth
840
  **/
841
  @ApiModelProperty(value = "The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.")
842
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
843
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
844

845
  public OffsetDateTime getDateOfBirth() {
846
    return dateOfBirth;
×
847
  }
848

849

850
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
851
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
852
  public void setDateOfBirth(OffsetDateTime dateOfBirth) {
853
    this.dateOfBirth = dateOfBirth;
×
854
  }
×
855

856

857
  public CreateCheckoutSessionResponse deliverAt(OffsetDateTime deliverAt) {
858
    this.deliverAt = deliverAt;
×
859
    return this;
×
860
  }
861

862
   /**
863
   * 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**.
864
   * @return deliverAt
865
  **/
866
  @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**.")
867
  @JsonProperty(JSON_PROPERTY_DELIVER_AT)
868
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
869

870
  public OffsetDateTime getDeliverAt() {
871
    return deliverAt;
×
872
  }
873

874

875
  @JsonProperty(JSON_PROPERTY_DELIVER_AT)
876
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
877
  public void setDeliverAt(OffsetDateTime deliverAt) {
878
    this.deliverAt = deliverAt;
×
879
  }
×
880

881

882
  public CreateCheckoutSessionResponse deliveryAddress(DeliveryAddress deliveryAddress) {
883
    this.deliveryAddress = deliveryAddress;
×
884
    return this;
×
885
  }
886

887
   /**
888
   * Get deliveryAddress
889
   * @return deliveryAddress
890
  **/
891
  @ApiModelProperty(value = "")
892
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
893
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
894

895
  public DeliveryAddress getDeliveryAddress() {
896
    return deliveryAddress;
×
897
  }
898

899

900
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
901
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
902
  public void setDeliveryAddress(DeliveryAddress deliveryAddress) {
903
    this.deliveryAddress = deliveryAddress;
×
904
  }
×
905

906

907
  public CreateCheckoutSessionResponse enableOneClick(Boolean enableOneClick) {
908
    this.enableOneClick = enableOneClick;
×
909
    return this;
×
910
  }
911

912
   /**
913
   * 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.
914
   * @return enableOneClick
915
  **/
916
  @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.")
917
  @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK)
918
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
919

920
  public Boolean getEnableOneClick() {
921
    return enableOneClick;
×
922
  }
923

924

925
  @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK)
926
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
927
  public void setEnableOneClick(Boolean enableOneClick) {
928
    this.enableOneClick = enableOneClick;
×
929
  }
×
930

931

932
  public CreateCheckoutSessionResponse enablePayOut(Boolean enablePayOut) {
933
    this.enablePayOut = enablePayOut;
×
934
    return this;
×
935
  }
936

937
   /**
938
   * When true and &#x60;shopperReference&#x60; is provided, the payment details will be tokenized for payouts.
939
   * @return enablePayOut
940
  **/
941
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for payouts.")
942
  @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT)
943
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
944

945
  public Boolean getEnablePayOut() {
946
    return enablePayOut;
×
947
  }
948

949

950
  @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT)
951
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
952
  public void setEnablePayOut(Boolean enablePayOut) {
953
    this.enablePayOut = enablePayOut;
×
954
  }
×
955

956

957
  public CreateCheckoutSessionResponse enableRecurring(Boolean enableRecurring) {
958
    this.enableRecurring = enableRecurring;
×
959
    return this;
×
960
  }
961

962
   /**
963
   * When true and &#x60;shopperReference&#x60; is provided, the payment details will be tokenized for recurring payments.
964
   * @return enableRecurring
965
  **/
966
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.")
967
  @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING)
968
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
969

970
  public Boolean getEnableRecurring() {
971
    return enableRecurring;
×
972
  }
973

974

975
  @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING)
976
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
977
  public void setEnableRecurring(Boolean enableRecurring) {
978
    this.enableRecurring = enableRecurring;
×
979
  }
×
980

981

982
  public CreateCheckoutSessionResponse expiresAt(OffsetDateTime expiresAt) {
983
    this.expiresAt = expiresAt;
×
984
    return this;
×
985
  }
986

987
   /**
988
   * 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.
989
   * @return expiresAt
990
  **/
991
  @ApiModelProperty(required = true, 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.")
992
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
993
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
994

995
  public OffsetDateTime getExpiresAt() {
996
    return expiresAt;
×
997
  }
998

999

1000
  @JsonProperty(JSON_PROPERTY_EXPIRES_AT)
1001
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1002
  public void setExpiresAt(OffsetDateTime expiresAt) {
1003
    this.expiresAt = expiresAt;
1✔
1004
  }
1✔
1005

1006

1007
  public CreateCheckoutSessionResponse fundOrigin(FundOrigin fundOrigin) {
1008
    this.fundOrigin = fundOrigin;
×
1009
    return this;
×
1010
  }
1011

1012
   /**
1013
   * Get fundOrigin
1014
   * @return fundOrigin
1015
  **/
1016
  @ApiModelProperty(value = "")
1017
  @JsonProperty(JSON_PROPERTY_FUND_ORIGIN)
1018
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1019

1020
  public FundOrigin getFundOrigin() {
1021
    return fundOrigin;
×
1022
  }
1023

1024

1025
  @JsonProperty(JSON_PROPERTY_FUND_ORIGIN)
1026
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1027
  public void setFundOrigin(FundOrigin fundOrigin) {
1028
    this.fundOrigin = fundOrigin;
×
1029
  }
×
1030

1031

1032
  public CreateCheckoutSessionResponse fundRecipient(FundRecipient fundRecipient) {
1033
    this.fundRecipient = fundRecipient;
×
1034
    return this;
×
1035
  }
1036

1037
   /**
1038
   * Get fundRecipient
1039
   * @return fundRecipient
1040
  **/
1041
  @ApiModelProperty(value = "")
1042
  @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT)
1043
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1044

1045
  public FundRecipient getFundRecipient() {
1046
    return fundRecipient;
×
1047
  }
1048

1049

1050
  @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT)
1051
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1052
  public void setFundRecipient(FundRecipient fundRecipient) {
1053
    this.fundRecipient = fundRecipient;
×
1054
  }
×
1055

1056

1057
  public CreateCheckoutSessionResponse id(String id) {
1058
    this.id = id;
×
1059
    return this;
×
1060
  }
1061

1062
   /**
1063
   * A unique identifier of the session.
1064
   * @return id
1065
  **/
1066
  @ApiModelProperty(required = true, value = "A unique identifier of the session.")
1067
  @JsonProperty(JSON_PROPERTY_ID)
1068
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1069

1070
  public String getId() {
1071
    return id;
1✔
1072
  }
1073

1074

1075
  @JsonProperty(JSON_PROPERTY_ID)
1076
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1077
  public void setId(String id) {
1078
    this.id = id;
1✔
1079
  }
1✔
1080

1081

1082
  public CreateCheckoutSessionResponse installmentOptions(Map<String, CheckoutSessionInstallmentOption> installmentOptions) {
1083
    this.installmentOptions = installmentOptions;
×
1084
    return this;
×
1085
  }
1086

1087
  public CreateCheckoutSessionResponse putInstallmentOptionsItem(String key, CheckoutSessionInstallmentOption installmentOptionsItem) {
1088
    if (this.installmentOptions == null) {
×
1089
      this.installmentOptions = new HashMap<>();
×
1090
    }
1091
    this.installmentOptions.put(key, installmentOptionsItem);
×
1092
    return this;
×
1093
  }
1094

1095
   /**
1096
   * 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.
1097
   * @return installmentOptions
1098
  **/
1099
  @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.")
1100
  @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS)
1101
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1102

1103
  public Map<String, CheckoutSessionInstallmentOption> getInstallmentOptions() {
1104
    return installmentOptions;
×
1105
  }
1106

1107

1108
  @JsonProperty(JSON_PROPERTY_INSTALLMENT_OPTIONS)
1109
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1110
  public void setInstallmentOptions(Map<String, CheckoutSessionInstallmentOption> installmentOptions) {
1111
    this.installmentOptions = installmentOptions;
×
1112
  }
×
1113

1114

1115
  public CreateCheckoutSessionResponse lineItems(List<LineItem> lineItems) {
1116
    this.lineItems = lineItems;
×
1117
    return this;
×
1118
  }
1119

1120
  public CreateCheckoutSessionResponse addLineItemsItem(LineItem lineItemsItem) {
1121
    if (this.lineItems == null) {
×
1122
      this.lineItems = new ArrayList<>();
×
1123
    }
1124
    this.lineItems.add(lineItemsItem);
×
1125
    return this;
×
1126
  }
1127

1128
   /**
1129
   * 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.
1130
   * @return lineItems
1131
  **/
1132
  @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.")
1133
  @JsonProperty(JSON_PROPERTY_LINE_ITEMS)
1134
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1135

1136
  public List<LineItem> getLineItems() {
1137
    return lineItems;
×
1138
  }
1139

1140

1141
  @JsonProperty(JSON_PROPERTY_LINE_ITEMS)
1142
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1143
  public void setLineItems(List<LineItem> lineItems) {
1144
    this.lineItems = lineItems;
×
1145
  }
×
1146

1147

1148
  public CreateCheckoutSessionResponse mandate(Mandate mandate) {
1149
    this.mandate = mandate;
×
1150
    return this;
×
1151
  }
1152

1153
   /**
1154
   * Get mandate
1155
   * @return mandate
1156
  **/
1157
  @ApiModelProperty(value = "")
1158
  @JsonProperty(JSON_PROPERTY_MANDATE)
1159
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1160

1161
  public Mandate getMandate() {
1162
    return mandate;
×
1163
  }
1164

1165

1166
  @JsonProperty(JSON_PROPERTY_MANDATE)
1167
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1168
  public void setMandate(Mandate mandate) {
1169
    this.mandate = mandate;
×
1170
  }
×
1171

1172

1173
  public CreateCheckoutSessionResponse mcc(String mcc) {
1174
    this.mcc = mcc;
×
1175
    return this;
×
1176
  }
1177

1178
   /**
1179
   * 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.
1180
   * @return mcc
1181
  **/
1182
  @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.")
1183
  @JsonProperty(JSON_PROPERTY_MCC)
1184
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1185

1186
  public String getMcc() {
1187
    return mcc;
×
1188
  }
1189

1190

1191
  @JsonProperty(JSON_PROPERTY_MCC)
1192
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1193
  public void setMcc(String mcc) {
1194
    this.mcc = mcc;
×
1195
  }
×
1196

1197

1198
  public CreateCheckoutSessionResponse merchantAccount(String merchantAccount) {
1199
    this.merchantAccount = merchantAccount;
×
1200
    return this;
×
1201
  }
1202

1203
   /**
1204
   * The merchant account identifier, with which you want to process the transaction.
1205
   * @return merchantAccount
1206
  **/
1207
  @ApiModelProperty(required = true, value = "The merchant account identifier, with which you want to process the transaction.")
1208
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
1209
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1210

1211
  public String getMerchantAccount() {
1212
    return merchantAccount;
×
1213
  }
1214

1215

1216
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
1217
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1218
  public void setMerchantAccount(String merchantAccount) {
1219
    this.merchantAccount = merchantAccount;
1✔
1220
  }
1✔
1221

1222

1223
  public CreateCheckoutSessionResponse merchantOrderReference(String merchantOrderReference) {
1224
    this.merchantOrderReference = merchantOrderReference;
×
1225
    return this;
×
1226
  }
1227

1228
   /**
1229
   * 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;.
1230
   * @return merchantOrderReference
1231
  **/
1232
  @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`.")
1233
  @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE)
1234
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1235

1236
  public String getMerchantOrderReference() {
1237
    return merchantOrderReference;
×
1238
  }
1239

1240

1241
  @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE)
1242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1243
  public void setMerchantOrderReference(String merchantOrderReference) {
1244
    this.merchantOrderReference = merchantOrderReference;
×
1245
  }
×
1246

1247

1248
  public CreateCheckoutSessionResponse metadata(Map<String, String> metadata) {
1249
    this.metadata = metadata;
×
1250
    return this;
×
1251
  }
1252

1253
  public CreateCheckoutSessionResponse putMetadataItem(String key, String metadataItem) {
1254
    if (this.metadata == null) {
×
1255
      this.metadata = new HashMap<>();
×
1256
    }
1257
    this.metadata.put(key, metadataItem);
×
1258
    return this;
×
1259
  }
1260

1261
   /**
1262
   * 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. 
1263
   * @return metadata
1264
  **/
1265
  @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. ")
1266
  @JsonProperty(JSON_PROPERTY_METADATA)
1267
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1268

1269
  public Map<String, String> getMetadata() {
1270
    return metadata;
×
1271
  }
1272

1273

1274
  @JsonProperty(JSON_PROPERTY_METADATA)
1275
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1276
  public void setMetadata(Map<String, String> metadata) {
1277
    this.metadata = metadata;
×
1278
  }
×
1279

1280

1281
  public CreateCheckoutSessionResponse mode(ModeEnum mode) {
1282
    this.mode = mode;
×
1283
    return this;
×
1284
  }
1285

1286
   /**
1287
   * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration
1288
   * @return mode
1289
  **/
1290
  @ApiModelProperty(value = "Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration")
1291
  @JsonProperty(JSON_PROPERTY_MODE)
1292
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1293

1294
  public ModeEnum getMode() {
1295
    return mode;
1✔
1296
  }
1297

1298

1299
  @JsonProperty(JSON_PROPERTY_MODE)
1300
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1301
  public void setMode(ModeEnum mode) {
1302
    this.mode = mode;
1✔
1303
  }
1✔
1304

1305

1306
  public CreateCheckoutSessionResponse mpiData(ThreeDSecureData mpiData) {
1307
    this.mpiData = mpiData;
×
1308
    return this;
×
1309
  }
1310

1311
   /**
1312
   * Get mpiData
1313
   * @return mpiData
1314
  **/
1315
  @ApiModelProperty(value = "")
1316
  @JsonProperty(JSON_PROPERTY_MPI_DATA)
1317
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1318

1319
  public ThreeDSecureData getMpiData() {
1320
    return mpiData;
×
1321
  }
1322

1323

1324
  @JsonProperty(JSON_PROPERTY_MPI_DATA)
1325
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1326
  public void setMpiData(ThreeDSecureData mpiData) {
1327
    this.mpiData = mpiData;
×
1328
  }
×
1329

1330

1331
  public CreateCheckoutSessionResponse platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) {
1332
    this.platformChargebackLogic = platformChargebackLogic;
×
1333
    return this;
×
1334
  }
1335

1336
   /**
1337
   * Get platformChargebackLogic
1338
   * @return platformChargebackLogic
1339
  **/
1340
  @ApiModelProperty(value = "")
1341
  @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC)
1342
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1343

1344
  public PlatformChargebackLogic getPlatformChargebackLogic() {
1345
    return platformChargebackLogic;
×
1346
  }
1347

1348

1349
  @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC)
1350
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1351
  public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) {
1352
    this.platformChargebackLogic = platformChargebackLogic;
×
1353
  }
×
1354

1355

1356
  public CreateCheckoutSessionResponse recurringExpiry(String recurringExpiry) {
1357
    this.recurringExpiry = recurringExpiry;
×
1358
    return this;
×
1359
  }
1360

1361
   /**
1362
   * Date after which no further authorisations shall be performed. Only for 3D Secure 2.
1363
   * @return recurringExpiry
1364
  **/
1365
  @ApiModelProperty(value = "Date after which no further authorisations shall be performed. Only for 3D Secure 2.")
1366
  @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)
1367
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1368

1369
  public String getRecurringExpiry() {
1370
    return recurringExpiry;
×
1371
  }
1372

1373

1374
  @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)
1375
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1376
  public void setRecurringExpiry(String recurringExpiry) {
1377
    this.recurringExpiry = recurringExpiry;
×
1378
  }
×
1379

1380

1381
  public CreateCheckoutSessionResponse recurringFrequency(String recurringFrequency) {
1382
    this.recurringFrequency = recurringFrequency;
×
1383
    return this;
×
1384
  }
1385

1386
   /**
1387
   * Minimum number of days between authorisations. Only for 3D Secure 2.
1388
   * @return recurringFrequency
1389
  **/
1390
  @ApiModelProperty(value = "Minimum number of days between authorisations. Only for 3D Secure 2.")
1391
  @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY)
1392
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1393

1394
  public String getRecurringFrequency() {
1395
    return recurringFrequency;
×
1396
  }
1397

1398

1399
  @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY)
1400
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1401
  public void setRecurringFrequency(String recurringFrequency) {
1402
    this.recurringFrequency = recurringFrequency;
×
1403
  }
×
1404

1405

1406
  public CreateCheckoutSessionResponse recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) {
1407
    this.recurringProcessingModel = recurringProcessingModel;
×
1408
    return this;
×
1409
  }
1410

1411
   /**
1412
   * 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. 
1413
   * @return recurringProcessingModel
1414
  **/
1415
  @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. ")
1416
  @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL)
1417
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1418

1419
  public RecurringProcessingModelEnum getRecurringProcessingModel() {
1420
    return recurringProcessingModel;
×
1421
  }
1422

1423

1424
  @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL)
1425
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1426
  public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) {
1427
    this.recurringProcessingModel = recurringProcessingModel;
1✔
1428
  }
1✔
1429

1430

1431
  public CreateCheckoutSessionResponse redirectFromIssuerMethod(String redirectFromIssuerMethod) {
1432
    this.redirectFromIssuerMethod = redirectFromIssuerMethod;
×
1433
    return this;
×
1434
  }
1435

1436
   /**
1437
   * Specifies the redirect method (GET or POST) when redirecting back from the issuer.
1438
   * @return redirectFromIssuerMethod
1439
  **/
1440
  @ApiModelProperty(value = "Specifies the redirect method (GET or POST) when redirecting back from the issuer.")
1441
  @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD)
1442
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1443

1444
  public String getRedirectFromIssuerMethod() {
1445
    return redirectFromIssuerMethod;
×
1446
  }
1447

1448

1449
  @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD)
1450
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1451
  public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) {
1452
    this.redirectFromIssuerMethod = redirectFromIssuerMethod;
×
1453
  }
×
1454

1455

1456
  public CreateCheckoutSessionResponse redirectToIssuerMethod(String redirectToIssuerMethod) {
1457
    this.redirectToIssuerMethod = redirectToIssuerMethod;
×
1458
    return this;
×
1459
  }
1460

1461
   /**
1462
   * Specifies the redirect method (GET or POST) when redirecting to the issuer.
1463
   * @return redirectToIssuerMethod
1464
  **/
1465
  @ApiModelProperty(value = "Specifies the redirect method (GET or POST) when redirecting to the issuer.")
1466
  @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD)
1467
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1468

1469
  public String getRedirectToIssuerMethod() {
1470
    return redirectToIssuerMethod;
×
1471
  }
1472

1473

1474
  @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD)
1475
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1476
  public void setRedirectToIssuerMethod(String redirectToIssuerMethod) {
1477
    this.redirectToIssuerMethod = redirectToIssuerMethod;
×
1478
  }
×
1479

1480

1481
  public CreateCheckoutSessionResponse reference(String reference) {
1482
    this.reference = reference;
×
1483
    return this;
×
1484
  }
1485

1486
   /**
1487
   * The reference to uniquely identify a payment.
1488
   * @return reference
1489
  **/
1490
  @ApiModelProperty(required = true, value = "The reference to uniquely identify a payment.")
1491
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1492
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1493

1494
  public String getReference() {
1495
    return reference;
×
1496
  }
1497

1498

1499
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1500
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1501
  public void setReference(String reference) {
1502
    this.reference = reference;
1✔
1503
  }
1✔
1504

1505

1506
  public CreateCheckoutSessionResponse returnUrl(String returnUrl) {
1507
    this.returnUrl = returnUrl;
×
1508
    return this;
×
1509
  }
1510

1511
   /**
1512
   * The URL to return to when a redirect payment is completed.
1513
   * @return returnUrl
1514
  **/
1515
  @ApiModelProperty(required = true, value = "The URL to return to when a redirect payment is completed.")
1516
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
1517
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1518

1519
  public String getReturnUrl() {
1520
    return returnUrl;
×
1521
  }
1522

1523

1524
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
1525
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1526
  public void setReturnUrl(String returnUrl) {
1527
    this.returnUrl = returnUrl;
1✔
1528
  }
1✔
1529

1530

1531
  public CreateCheckoutSessionResponse riskData(RiskData riskData) {
1532
    this.riskData = riskData;
×
1533
    return this;
×
1534
  }
1535

1536
   /**
1537
   * Get riskData
1538
   * @return riskData
1539
  **/
1540
  @ApiModelProperty(value = "")
1541
  @JsonProperty(JSON_PROPERTY_RISK_DATA)
1542
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1543

1544
  public RiskData getRiskData() {
1545
    return riskData;
×
1546
  }
1547

1548

1549
  @JsonProperty(JSON_PROPERTY_RISK_DATA)
1550
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1551
  public void setRiskData(RiskData riskData) {
1552
    this.riskData = riskData;
×
1553
  }
×
1554

1555

1556
  public CreateCheckoutSessionResponse sessionData(String sessionData) {
1557
    this.sessionData = sessionData;
×
1558
    return this;
×
1559
  }
1560

1561
   /**
1562
   * The payment session data you need to pass to your front end.
1563
   * @return sessionData
1564
  **/
1565
  @ApiModelProperty(value = "The payment session data you need to pass to your front end.")
1566
  @JsonProperty(JSON_PROPERTY_SESSION_DATA)
1567
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1568

1569
  public String getSessionData() {
1570
    return sessionData;
1✔
1571
  }
1572

1573

1574
  @JsonProperty(JSON_PROPERTY_SESSION_DATA)
1575
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1576
  public void setSessionData(String sessionData) {
1577
    this.sessionData = sessionData;
1✔
1578
  }
1✔
1579

1580

1581
  public CreateCheckoutSessionResponse shopperEmail(String shopperEmail) {
1582
    this.shopperEmail = shopperEmail;
×
1583
    return this;
×
1584
  }
1585

1586
   /**
1587
   * The shopper&#39;s email address.
1588
   * @return shopperEmail
1589
  **/
1590
  @ApiModelProperty(value = "The shopper's email address.")
1591
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
1592
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1593

1594
  public String getShopperEmail() {
1595
    return shopperEmail;
×
1596
  }
1597

1598

1599
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
1600
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1601
  public void setShopperEmail(String shopperEmail) {
1602
    this.shopperEmail = shopperEmail;
×
1603
  }
×
1604

1605

1606
  public CreateCheckoutSessionResponse shopperIP(String shopperIP) {
1607
    this.shopperIP = shopperIP;
×
1608
    return this;
×
1609
  }
1610

1611
   /**
1612
   * 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).
1613
   * @return shopperIP
1614
  **/
1615
  @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).")
1616
  @JsonProperty(JSON_PROPERTY_SHOPPER_I_P)
1617
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1618

1619
  public String getShopperIP() {
1620
    return shopperIP;
×
1621
  }
1622

1623

1624
  @JsonProperty(JSON_PROPERTY_SHOPPER_I_P)
1625
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1626
  public void setShopperIP(String shopperIP) {
1627
    this.shopperIP = shopperIP;
×
1628
  }
×
1629

1630

1631
  public CreateCheckoutSessionResponse shopperInteraction(ShopperInteractionEnum shopperInteraction) {
1632
    this.shopperInteraction = shopperInteraction;
×
1633
    return this;
×
1634
  }
1635

1636
   /**
1637
   * 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.
1638
   * @return shopperInteraction
1639
  **/
1640
  @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.")
1641
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1642
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1643

1644
  public ShopperInteractionEnum getShopperInteraction() {
1645
    return shopperInteraction;
×
1646
  }
1647

1648

1649
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
1650
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1651
  public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) {
1652
    this.shopperInteraction = shopperInteraction;
×
1653
  }
×
1654

1655

1656
  public CreateCheckoutSessionResponse shopperLocale(String shopperLocale) {
1657
    this.shopperLocale = shopperLocale;
×
1658
    return this;
×
1659
  }
1660

1661
   /**
1662
   * The combination of a language code and a country code to specify the language to be used in the payment.
1663
   * @return shopperLocale
1664
  **/
1665
  @ApiModelProperty(value = "The combination of a language code and a country code to specify the language to be used in the payment.")
1666
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
1667
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1668

1669
  public String getShopperLocale() {
1670
    return shopperLocale;
×
1671
  }
1672

1673

1674
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
1675
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1676
  public void setShopperLocale(String shopperLocale) {
1677
    this.shopperLocale = shopperLocale;
×
1678
  }
×
1679

1680

1681
  public CreateCheckoutSessionResponse shopperName(Name shopperName) {
1682
    this.shopperName = shopperName;
×
1683
    return this;
×
1684
  }
1685

1686
   /**
1687
   * Get shopperName
1688
   * @return shopperName
1689
  **/
1690
  @ApiModelProperty(value = "")
1691
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
1692
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1693

1694
  public Name getShopperName() {
1695
    return shopperName;
×
1696
  }
1697

1698

1699
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
1700
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1701
  public void setShopperName(Name shopperName) {
1702
    this.shopperName = shopperName;
×
1703
  }
×
1704

1705

1706
  public CreateCheckoutSessionResponse shopperReference(String shopperReference) {
1707
    this.shopperReference = shopperReference;
×
1708
    return this;
×
1709
  }
1710

1711
   /**
1712
   * 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.
1713
   * @return shopperReference
1714
  **/
1715
  @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.")
1716
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
1717
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1718

1719
  public String getShopperReference() {
1720
    return shopperReference;
×
1721
  }
1722

1723

1724
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
1725
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1726
  public void setShopperReference(String shopperReference) {
1727
    this.shopperReference = shopperReference;
×
1728
  }
×
1729

1730

1731
  public CreateCheckoutSessionResponse shopperStatement(String shopperStatement) {
1732
    this.shopperStatement = shopperStatement;
×
1733
    return this;
×
1734
  }
1735

1736
   /**
1737
   * 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; _ - ? + * /_**.
1738
   * @return shopperStatement
1739
  **/
1740
  @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 **. , ' _ - ? + * /_**.")
1741
  @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
1742
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1743

1744
  public String getShopperStatement() {
1745
    return shopperStatement;
×
1746
  }
1747

1748

1749
  @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
1750
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1751
  public void setShopperStatement(String shopperStatement) {
1752
    this.shopperStatement = shopperStatement;
×
1753
  }
×
1754

1755

1756
  public CreateCheckoutSessionResponse showInstallmentAmount(Boolean showInstallmentAmount) {
1757
    this.showInstallmentAmount = showInstallmentAmount;
×
1758
    return this;
×
1759
  }
1760

1761
   /**
1762
   * Set to true to show the payment amount per installment.
1763
   * @return showInstallmentAmount
1764
  **/
1765
  @ApiModelProperty(value = "Set to true to show the payment amount per installment.")
1766
  @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT)
1767
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1768

1769
  public Boolean getShowInstallmentAmount() {
1770
    return showInstallmentAmount;
×
1771
  }
1772

1773

1774
  @JsonProperty(JSON_PROPERTY_SHOW_INSTALLMENT_AMOUNT)
1775
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1776
  public void setShowInstallmentAmount(Boolean showInstallmentAmount) {
1777
    this.showInstallmentAmount = showInstallmentAmount;
×
1778
  }
×
1779

1780

1781
  public CreateCheckoutSessionResponse socialSecurityNumber(String socialSecurityNumber) {
1782
    this.socialSecurityNumber = socialSecurityNumber;
×
1783
    return this;
×
1784
  }
1785

1786
   /**
1787
   * The shopper&#39;s social security number.
1788
   * @return socialSecurityNumber
1789
  **/
1790
  @ApiModelProperty(value = "The shopper's social security number.")
1791
  @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER)
1792
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1793

1794
  public String getSocialSecurityNumber() {
1795
    return socialSecurityNumber;
×
1796
  }
1797

1798

1799
  @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER)
1800
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1801
  public void setSocialSecurityNumber(String socialSecurityNumber) {
1802
    this.socialSecurityNumber = socialSecurityNumber;
×
1803
  }
×
1804

1805

1806
  public CreateCheckoutSessionResponse splitCardFundingSources(Boolean splitCardFundingSources) {
1807
    this.splitCardFundingSources = splitCardFundingSources;
×
1808
    return this;
×
1809
  }
1810

1811
   /**
1812
   * Boolean value indicating whether the card payment method should be split into separate debit and credit options.
1813
   * @return splitCardFundingSources
1814
  **/
1815
  @ApiModelProperty(value = "Boolean value indicating whether the card payment method should be split into separate debit and credit options.")
1816
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
1817
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1818

1819
  public Boolean getSplitCardFundingSources() {
1820
    return splitCardFundingSources;
×
1821
  }
1822

1823

1824
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
1825
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1826
  public void setSplitCardFundingSources(Boolean splitCardFundingSources) {
1827
    this.splitCardFundingSources = splitCardFundingSources;
×
1828
  }
×
1829

1830

1831
  public CreateCheckoutSessionResponse splits(List<Split> splits) {
1832
    this.splits = splits;
×
1833
    return this;
×
1834
  }
1835

1836
  public CreateCheckoutSessionResponse addSplitsItem(Split splitsItem) {
1837
    if (this.splits == null) {
×
1838
      this.splits = new ArrayList<>();
×
1839
    }
1840
    this.splits.add(splitsItem);
×
1841
    return this;
×
1842
  }
1843

1844
   /**
1845
   * 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).
1846
   * @return splits
1847
  **/
1848
  @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).")
1849
  @JsonProperty(JSON_PROPERTY_SPLITS)
1850
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1851

1852
  public List<Split> getSplits() {
1853
    return splits;
×
1854
  }
1855

1856

1857
  @JsonProperty(JSON_PROPERTY_SPLITS)
1858
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1859
  public void setSplits(List<Split> splits) {
1860
    this.splits = splits;
×
1861
  }
×
1862

1863

1864
  public CreateCheckoutSessionResponse store(String store) {
1865
    this.store = store;
×
1866
    return this;
×
1867
  }
1868

1869
   /**
1870
   * 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).
1871
   * @return store
1872
  **/
1873
  @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).")
1874
  @JsonProperty(JSON_PROPERTY_STORE)
1875
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1876

1877
  public String getStore() {
1878
    return store;
×
1879
  }
1880

1881

1882
  @JsonProperty(JSON_PROPERTY_STORE)
1883
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1884
  public void setStore(String store) {
1885
    this.store = store;
×
1886
  }
×
1887

1888

1889
  public CreateCheckoutSessionResponse storePaymentMethod(Boolean storePaymentMethod) {
1890
    this.storePaymentMethod = storePaymentMethod;
×
1891
    return this;
×
1892
  }
1893

1894
   /**
1895
   * When this is set to **true** and the &#x60;shopperReference&#x60; is provided, the payment details will be stored.
1896
   * @return storePaymentMethod
1897
  **/
1898
  @ApiModelProperty(value = "When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.")
1899
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD)
1900
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1901

1902
  public Boolean getStorePaymentMethod() {
1903
    return storePaymentMethod;
×
1904
  }
1905

1906

1907
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD)
1908
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1909
  public void setStorePaymentMethod(Boolean storePaymentMethod) {
1910
    this.storePaymentMethod = storePaymentMethod;
×
1911
  }
×
1912

1913

1914
  public CreateCheckoutSessionResponse storePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) {
1915
    this.storePaymentMethodMode = storePaymentMethodMode;
×
1916
    return this;
×
1917
  }
1918

1919
   /**
1920
   * 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.
1921
   * @return storePaymentMethodMode
1922
  **/
1923
  @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.")
1924
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE)
1925
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1926

1927
  public StorePaymentMethodModeEnum getStorePaymentMethodMode() {
1928
    return storePaymentMethodMode;
1✔
1929
  }
1930

1931

1932
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE)
1933
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1934
  public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMethodMode) {
1935
    this.storePaymentMethodMode = storePaymentMethodMode;
1✔
1936
  }
1✔
1937

1938

1939
  public CreateCheckoutSessionResponse telephoneNumber(String telephoneNumber) {
1940
    this.telephoneNumber = telephoneNumber;
×
1941
    return this;
×
1942
  }
1943

1944
   /**
1945
   * The shopper&#39;s telephone number.
1946
   * @return telephoneNumber
1947
  **/
1948
  @ApiModelProperty(value = "The shopper's telephone number.")
1949
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
1950
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1951

1952
  public String getTelephoneNumber() {
1953
    return telephoneNumber;
×
1954
  }
1955

1956

1957
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
1958
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1959
  public void setTelephoneNumber(String telephoneNumber) {
1960
    this.telephoneNumber = telephoneNumber;
×
1961
  }
×
1962

1963

1964
  public CreateCheckoutSessionResponse threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) {
1965
    this.threeDSAuthenticationOnly = threeDSAuthenticationOnly;
×
1966
    return this;
×
1967
  }
1968

1969
   /**
1970
   * 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.
1971
   * @return threeDSAuthenticationOnly
1972
   * @deprecated
1973
  **/
1974
  @Deprecated
1975
  @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.")
1976
  @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY)
1977
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1978

1979
  public Boolean getThreeDSAuthenticationOnly() {
1980
    return threeDSAuthenticationOnly;
×
1981
  }
1982

1983

1984
  @Deprecated
1985
  @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY)
1986
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1987
  public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) {
1988
    this.threeDSAuthenticationOnly = threeDSAuthenticationOnly;
×
1989
  }
×
1990

1991

1992
  public CreateCheckoutSessionResponse trustedShopper(Boolean trustedShopper) {
1993
    this.trustedShopper = trustedShopper;
×
1994
    return this;
×
1995
  }
1996

1997
   /**
1998
   * Set to true if the payment should be routed to a trusted MID.
1999
   * @return trustedShopper
2000
  **/
2001
  @ApiModelProperty(value = "Set to true if the payment should be routed to a trusted MID.")
2002
  @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER)
2003
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2004

2005
  public Boolean getTrustedShopper() {
2006
    return trustedShopper;
×
2007
  }
2008

2009

2010
  @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER)
2011
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2012
  public void setTrustedShopper(Boolean trustedShopper) {
2013
    this.trustedShopper = trustedShopper;
×
2014
  }
×
2015

2016

2017
  /**
2018
   * Return true if this CreateCheckoutSessionResponse object is equal to o.
2019
   */
2020
  @Override
2021
  public boolean equals(Object o) {
2022
    if (this == o) {
×
2023
      return true;
×
2024
    }
2025
    if (o == null || getClass() != o.getClass()) {
×
2026
      return false;
×
2027
    }
2028
    CreateCheckoutSessionResponse createCheckoutSessionResponse = (CreateCheckoutSessionResponse) o;
×
2029
    return Objects.equals(this.accountInfo, createCheckoutSessionResponse.accountInfo) &&
×
2030
        Objects.equals(this.additionalAmount, createCheckoutSessionResponse.additionalAmount) &&
×
2031
        Objects.equals(this.additionalData, createCheckoutSessionResponse.additionalData) &&
×
2032
        Objects.equals(this.allowedPaymentMethods, createCheckoutSessionResponse.allowedPaymentMethods) &&
×
2033
        Objects.equals(this.amount, createCheckoutSessionResponse.amount) &&
×
2034
        Objects.equals(this.applicationInfo, createCheckoutSessionResponse.applicationInfo) &&
×
2035
        Objects.equals(this.authenticationData, createCheckoutSessionResponse.authenticationData) &&
×
2036
        Objects.equals(this.billingAddress, createCheckoutSessionResponse.billingAddress) &&
×
2037
        Objects.equals(this.blockedPaymentMethods, createCheckoutSessionResponse.blockedPaymentMethods) &&
×
2038
        Objects.equals(this.captureDelayHours, createCheckoutSessionResponse.captureDelayHours) &&
×
2039
        Objects.equals(this.channel, createCheckoutSessionResponse.channel) &&
×
2040
        Objects.equals(this.company, createCheckoutSessionResponse.company) &&
×
2041
        Objects.equals(this.countryCode, createCheckoutSessionResponse.countryCode) &&
×
2042
        Objects.equals(this.dateOfBirth, createCheckoutSessionResponse.dateOfBirth) &&
×
2043
        Objects.equals(this.deliverAt, createCheckoutSessionResponse.deliverAt) &&
×
2044
        Objects.equals(this.deliveryAddress, createCheckoutSessionResponse.deliveryAddress) &&
×
2045
        Objects.equals(this.enableOneClick, createCheckoutSessionResponse.enableOneClick) &&
×
2046
        Objects.equals(this.enablePayOut, createCheckoutSessionResponse.enablePayOut) &&
×
2047
        Objects.equals(this.enableRecurring, createCheckoutSessionResponse.enableRecurring) &&
×
2048
        Objects.equals(this.expiresAt, createCheckoutSessionResponse.expiresAt) &&
×
2049
        Objects.equals(this.fundOrigin, createCheckoutSessionResponse.fundOrigin) &&
×
2050
        Objects.equals(this.fundRecipient, createCheckoutSessionResponse.fundRecipient) &&
×
2051
        Objects.equals(this.id, createCheckoutSessionResponse.id) &&
×
2052
        Objects.equals(this.installmentOptions, createCheckoutSessionResponse.installmentOptions) &&
×
2053
        Objects.equals(this.lineItems, createCheckoutSessionResponse.lineItems) &&
×
2054
        Objects.equals(this.mandate, createCheckoutSessionResponse.mandate) &&
×
2055
        Objects.equals(this.mcc, createCheckoutSessionResponse.mcc) &&
×
2056
        Objects.equals(this.merchantAccount, createCheckoutSessionResponse.merchantAccount) &&
×
2057
        Objects.equals(this.merchantOrderReference, createCheckoutSessionResponse.merchantOrderReference) &&
×
2058
        Objects.equals(this.metadata, createCheckoutSessionResponse.metadata) &&
×
2059
        Objects.equals(this.mode, createCheckoutSessionResponse.mode) &&
×
2060
        Objects.equals(this.mpiData, createCheckoutSessionResponse.mpiData) &&
×
2061
        Objects.equals(this.platformChargebackLogic, createCheckoutSessionResponse.platformChargebackLogic) &&
×
2062
        Objects.equals(this.recurringExpiry, createCheckoutSessionResponse.recurringExpiry) &&
×
2063
        Objects.equals(this.recurringFrequency, createCheckoutSessionResponse.recurringFrequency) &&
×
2064
        Objects.equals(this.recurringProcessingModel, createCheckoutSessionResponse.recurringProcessingModel) &&
×
2065
        Objects.equals(this.redirectFromIssuerMethod, createCheckoutSessionResponse.redirectFromIssuerMethod) &&
×
2066
        Objects.equals(this.redirectToIssuerMethod, createCheckoutSessionResponse.redirectToIssuerMethod) &&
×
2067
        Objects.equals(this.reference, createCheckoutSessionResponse.reference) &&
×
2068
        Objects.equals(this.returnUrl, createCheckoutSessionResponse.returnUrl) &&
×
2069
        Objects.equals(this.riskData, createCheckoutSessionResponse.riskData) &&
×
2070
        Objects.equals(this.sessionData, createCheckoutSessionResponse.sessionData) &&
×
2071
        Objects.equals(this.shopperEmail, createCheckoutSessionResponse.shopperEmail) &&
×
2072
        Objects.equals(this.shopperIP, createCheckoutSessionResponse.shopperIP) &&
×
2073
        Objects.equals(this.shopperInteraction, createCheckoutSessionResponse.shopperInteraction) &&
×
2074
        Objects.equals(this.shopperLocale, createCheckoutSessionResponse.shopperLocale) &&
×
2075
        Objects.equals(this.shopperName, createCheckoutSessionResponse.shopperName) &&
×
2076
        Objects.equals(this.shopperReference, createCheckoutSessionResponse.shopperReference) &&
×
2077
        Objects.equals(this.shopperStatement, createCheckoutSessionResponse.shopperStatement) &&
×
2078
        Objects.equals(this.showInstallmentAmount, createCheckoutSessionResponse.showInstallmentAmount) &&
×
2079
        Objects.equals(this.socialSecurityNumber, createCheckoutSessionResponse.socialSecurityNumber) &&
×
2080
        Objects.equals(this.splitCardFundingSources, createCheckoutSessionResponse.splitCardFundingSources) &&
×
2081
        Objects.equals(this.splits, createCheckoutSessionResponse.splits) &&
×
2082
        Objects.equals(this.store, createCheckoutSessionResponse.store) &&
×
2083
        Objects.equals(this.storePaymentMethod, createCheckoutSessionResponse.storePaymentMethod) &&
×
2084
        Objects.equals(this.storePaymentMethodMode, createCheckoutSessionResponse.storePaymentMethodMode) &&
×
2085
        Objects.equals(this.telephoneNumber, createCheckoutSessionResponse.telephoneNumber) &&
×
2086
        Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionResponse.threeDSAuthenticationOnly) &&
×
2087
        Objects.equals(this.trustedShopper, createCheckoutSessionResponse.trustedShopper);
×
2088
  }
2089

2090
  @Override
2091
  public int hashCode() {
2092
    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, id, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethod, storePaymentMethodMode, telephoneNumber, threeDSAuthenticationOnly, trustedShopper);
×
2093
  }
2094

2095
  @Override
2096
  public String toString() {
2097
    StringBuilder sb = new StringBuilder();
×
2098
    sb.append("class CreateCheckoutSessionResponse {\n");
×
2099
    sb.append("    accountInfo: ").append(toIndentedString(accountInfo)).append("\n");
×
2100
    sb.append("    additionalAmount: ").append(toIndentedString(additionalAmount)).append("\n");
×
2101
    sb.append("    additionalData: ").append(toIndentedString(additionalData)).append("\n");
×
2102
    sb.append("    allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n");
×
2103
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
2104
    sb.append("    applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n");
×
2105
    sb.append("    authenticationData: ").append(toIndentedString(authenticationData)).append("\n");
×
2106
    sb.append("    billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
×
2107
    sb.append("    blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n");
×
2108
    sb.append("    captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n");
×
2109
    sb.append("    channel: ").append(toIndentedString(channel)).append("\n");
×
2110
    sb.append("    company: ").append(toIndentedString(company)).append("\n");
×
2111
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
×
2112
    sb.append("    dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n");
×
2113
    sb.append("    deliverAt: ").append(toIndentedString(deliverAt)).append("\n");
×
2114
    sb.append("    deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n");
×
2115
    sb.append("    enableOneClick: ").append(toIndentedString(enableOneClick)).append("\n");
×
2116
    sb.append("    enablePayOut: ").append(toIndentedString(enablePayOut)).append("\n");
×
2117
    sb.append("    enableRecurring: ").append(toIndentedString(enableRecurring)).append("\n");
×
2118
    sb.append("    expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
×
2119
    sb.append("    fundOrigin: ").append(toIndentedString(fundOrigin)).append("\n");
×
2120
    sb.append("    fundRecipient: ").append(toIndentedString(fundRecipient)).append("\n");
×
2121
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
2122
    sb.append("    installmentOptions: ").append(toIndentedString(installmentOptions)).append("\n");
×
2123
    sb.append("    lineItems: ").append(toIndentedString(lineItems)).append("\n");
×
2124
    sb.append("    mandate: ").append(toIndentedString(mandate)).append("\n");
×
2125
    sb.append("    mcc: ").append(toIndentedString(mcc)).append("\n");
×
2126
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
2127
    sb.append("    merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n");
×
2128
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
×
2129
    sb.append("    mode: ").append(toIndentedString(mode)).append("\n");
×
2130
    sb.append("    mpiData: ").append(toIndentedString(mpiData)).append("\n");
×
2131
    sb.append("    platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n");
×
2132
    sb.append("    recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n");
×
2133
    sb.append("    recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n");
×
2134
    sb.append("    recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n");
×
2135
    sb.append("    redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n");
×
2136
    sb.append("    redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n");
×
2137
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
2138
    sb.append("    returnUrl: ").append(toIndentedString(returnUrl)).append("\n");
×
2139
    sb.append("    riskData: ").append(toIndentedString(riskData)).append("\n");
×
2140
    sb.append("    sessionData: ").append(toIndentedString(sessionData)).append("\n");
×
2141
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
2142
    sb.append("    shopperIP: ").append(toIndentedString(shopperIP)).append("\n");
×
2143
    sb.append("    shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n");
×
2144
    sb.append("    shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n");
×
2145
    sb.append("    shopperName: ").append(toIndentedString(shopperName)).append("\n");
×
2146
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
2147
    sb.append("    shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n");
×
2148
    sb.append("    showInstallmentAmount: ").append(toIndentedString(showInstallmentAmount)).append("\n");
×
2149
    sb.append("    socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n");
×
2150
    sb.append("    splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n");
×
2151
    sb.append("    splits: ").append(toIndentedString(splits)).append("\n");
×
2152
    sb.append("    store: ").append(toIndentedString(store)).append("\n");
×
2153
    sb.append("    storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n");
×
2154
    sb.append("    storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n");
×
2155
    sb.append("    telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
×
2156
    sb.append("    threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n");
×
2157
    sb.append("    trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n");
×
2158
    sb.append("}");
×
2159
    return sb.toString();
×
2160
  }
2161

2162
  /**
2163
   * Convert the given object to string with each line indented by 4 spaces
2164
   * (except the first line).
2165
   */
2166
  private String toIndentedString(Object o) {
2167
    if (o == null) {
×
2168
      return "null";
×
2169
    }
2170
    return o.toString().replace("\n", "\n    ");
×
2171
  }
2172

2173
/**
2174
   * Create an instance of CreateCheckoutSessionResponse given an JSON string
2175
   *
2176
   * @param jsonString JSON string
2177
   * @return An instance of CreateCheckoutSessionResponse
2178
   * @throws JsonProcessingException if the JSON string is invalid with respect to CreateCheckoutSessionResponse
2179
   */
2180
  public static CreateCheckoutSessionResponse fromJson(String jsonString) throws JsonProcessingException {
2181
    return JSON.getMapper().readValue(jsonString, CreateCheckoutSessionResponse.class);
1✔
2182
  }
2183
/**
2184
  * Convert an instance of CreateCheckoutSessionResponse to an JSON string
2185
  *
2186
  * @return JSON string
2187
  */
2188
  public String toJson() throws JsonProcessingException {
2189
    return JSON.getMapper().writeValueAsString(this);
×
2190
  }
2191
}
2192

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