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

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

17 Oct 2023 07:32AM UTC coverage: 12.553%. First build
#2721

push

web-flow
Merge 52dcde496 into c99ba89a9

339 of 339 new or added lines in 5 files covered. (100.0%)

11880 of 94636 relevant lines covered (12.55%)

0.13 hits per line

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

14.99
/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.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.BrowserInfo;
25
import com.adyen.model.checkout.Company;
26
import com.adyen.model.checkout.DeliveryAddress;
27
import com.adyen.model.checkout.DonationPaymentMethod;
28
import com.adyen.model.checkout.EncryptedOrderData;
29
import com.adyen.model.checkout.ForexQuote;
30
import com.adyen.model.checkout.FundOrigin;
31
import com.adyen.model.checkout.FundRecipient;
32
import com.adyen.model.checkout.Installments;
33
import com.adyen.model.checkout.LineItem;
34
import com.adyen.model.checkout.Mandate;
35
import com.adyen.model.checkout.MerchantRiskIndicator;
36
import com.adyen.model.checkout.Name;
37
import com.adyen.model.checkout.PlatformChargebackLogic;
38
import com.adyen.model.checkout.RiskData;
39
import com.adyen.model.checkout.Split;
40
import com.adyen.model.checkout.ThreeDS2RequestData2;
41
import com.adyen.model.checkout.ThreeDSecureData;
42
import com.fasterxml.jackson.annotation.JsonInclude;
43
import com.fasterxml.jackson.annotation.JsonProperty;
44
import com.fasterxml.jackson.annotation.JsonCreator;
45
import com.fasterxml.jackson.annotation.JsonTypeName;
46
import com.fasterxml.jackson.annotation.JsonValue;
47
import io.swagger.annotations.ApiModel;
48
import io.swagger.annotations.ApiModelProperty;
49
import java.time.OffsetDateTime;
50
import java.util.ArrayList;
51
import java.util.HashMap;
52
import java.util.List;
53
import java.util.Map;
54
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
55
import com.fasterxml.jackson.core.JsonProcessingException;
56

57

58
/**
59
 * DonationPaymentRequest
60
 */
61
@JsonPropertyOrder({
62
  DonationPaymentRequest.JSON_PROPERTY_ACCOUNT_INFO,
63
  DonationPaymentRequest.JSON_PROPERTY_ADDITIONAL_AMOUNT,
64
  DonationPaymentRequest.JSON_PROPERTY_ADDITIONAL_DATA,
65
  DonationPaymentRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS,
66
  DonationPaymentRequest.JSON_PROPERTY_AMOUNT,
67
  DonationPaymentRequest.JSON_PROPERTY_APPLICATION_INFO,
68
  DonationPaymentRequest.JSON_PROPERTY_AUTHENTICATION_DATA,
69
  DonationPaymentRequest.JSON_PROPERTY_BILLING_ADDRESS,
70
  DonationPaymentRequest.JSON_PROPERTY_BLOCKED_PAYMENT_METHODS,
71
  DonationPaymentRequest.JSON_PROPERTY_BROWSER_INFO,
72
  DonationPaymentRequest.JSON_PROPERTY_CAPTURE_DELAY_HOURS,
73
  DonationPaymentRequest.JSON_PROPERTY_CHANNEL,
74
  DonationPaymentRequest.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
75
  DonationPaymentRequest.JSON_PROPERTY_COMPANY,
76
  DonationPaymentRequest.JSON_PROPERTY_CONVERSION_ID,
77
  DonationPaymentRequest.JSON_PROPERTY_COUNTRY_CODE,
78
  DonationPaymentRequest.JSON_PROPERTY_DATE_OF_BIRTH,
79
  DonationPaymentRequest.JSON_PROPERTY_DCC_QUOTE,
80
  DonationPaymentRequest.JSON_PROPERTY_DELIVER_AT,
81
  DonationPaymentRequest.JSON_PROPERTY_DELIVERY_ADDRESS,
82
  DonationPaymentRequest.JSON_PROPERTY_DELIVERY_DATE,
83
  DonationPaymentRequest.JSON_PROPERTY_DEVICE_FINGERPRINT,
84
  DonationPaymentRequest.JSON_PROPERTY_DONATION_ACCOUNT,
85
  DonationPaymentRequest.JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE,
86
  DonationPaymentRequest.JSON_PROPERTY_DONATION_TOKEN,
87
  DonationPaymentRequest.JSON_PROPERTY_ENABLE_ONE_CLICK,
88
  DonationPaymentRequest.JSON_PROPERTY_ENABLE_PAY_OUT,
89
  DonationPaymentRequest.JSON_PROPERTY_ENABLE_RECURRING,
90
  DonationPaymentRequest.JSON_PROPERTY_ENTITY_TYPE,
91
  DonationPaymentRequest.JSON_PROPERTY_FRAUD_OFFSET,
92
  DonationPaymentRequest.JSON_PROPERTY_FUND_ORIGIN,
93
  DonationPaymentRequest.JSON_PROPERTY_FUND_RECIPIENT,
94
  DonationPaymentRequest.JSON_PROPERTY_FUNDING_SOURCE,
95
  DonationPaymentRequest.JSON_PROPERTY_INDUSTRY_USAGE,
96
  DonationPaymentRequest.JSON_PROPERTY_INSTALLMENTS,
97
  DonationPaymentRequest.JSON_PROPERTY_LINE_ITEMS,
98
  DonationPaymentRequest.JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT,
99
  DonationPaymentRequest.JSON_PROPERTY_MANDATE,
100
  DonationPaymentRequest.JSON_PROPERTY_MCC,
101
  DonationPaymentRequest.JSON_PROPERTY_MERCHANT_ACCOUNT,
102
  DonationPaymentRequest.JSON_PROPERTY_MERCHANT_ORDER_REFERENCE,
103
  DonationPaymentRequest.JSON_PROPERTY_MERCHANT_RISK_INDICATOR,
104
  DonationPaymentRequest.JSON_PROPERTY_METADATA,
105
  DonationPaymentRequest.JSON_PROPERTY_MPI_DATA,
106
  DonationPaymentRequest.JSON_PROPERTY_ORDER,
107
  DonationPaymentRequest.JSON_PROPERTY_ORDER_REFERENCE,
108
  DonationPaymentRequest.JSON_PROPERTY_ORIGIN,
109
  DonationPaymentRequest.JSON_PROPERTY_PAYMENT_METHOD,
110
  DonationPaymentRequest.JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC,
111
  DonationPaymentRequest.JSON_PROPERTY_RECURRING_EXPIRY,
112
  DonationPaymentRequest.JSON_PROPERTY_RECURRING_FREQUENCY,
113
  DonationPaymentRequest.JSON_PROPERTY_RECURRING_PROCESSING_MODEL,
114
  DonationPaymentRequest.JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD,
115
  DonationPaymentRequest.JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD,
116
  DonationPaymentRequest.JSON_PROPERTY_REFERENCE,
117
  DonationPaymentRequest.JSON_PROPERTY_RETURN_URL,
118
  DonationPaymentRequest.JSON_PROPERTY_RISK_DATA,
119
  DonationPaymentRequest.JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE,
120
  DonationPaymentRequest.JSON_PROPERTY_SESSION_VALIDITY,
121
  DonationPaymentRequest.JSON_PROPERTY_SHOPPER_EMAIL,
122
  DonationPaymentRequest.JSON_PROPERTY_SHOPPER_I_P,
123
  DonationPaymentRequest.JSON_PROPERTY_SHOPPER_INTERACTION,
124
  DonationPaymentRequest.JSON_PROPERTY_SHOPPER_LOCALE,
125
  DonationPaymentRequest.JSON_PROPERTY_SHOPPER_NAME,
126
  DonationPaymentRequest.JSON_PROPERTY_SHOPPER_REFERENCE,
127
  DonationPaymentRequest.JSON_PROPERTY_SHOPPER_STATEMENT,
128
  DonationPaymentRequest.JSON_PROPERTY_SOCIAL_SECURITY_NUMBER,
129
  DonationPaymentRequest.JSON_PROPERTY_SPLITS,
130
  DonationPaymentRequest.JSON_PROPERTY_STORE,
131
  DonationPaymentRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD,
132
  DonationPaymentRequest.JSON_PROPERTY_TELEPHONE_NUMBER,
133
  DonationPaymentRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA,
134
  DonationPaymentRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY,
135
  DonationPaymentRequest.JSON_PROPERTY_TRUSTED_SHOPPER
136
})
137

138
public class DonationPaymentRequest {
139
  public static final String JSON_PROPERTY_ACCOUNT_INFO = "accountInfo";
140
  private AccountInfo accountInfo;
141

142
  public static final String JSON_PROPERTY_ADDITIONAL_AMOUNT = "additionalAmount";
143
  private Amount additionalAmount;
144

145
  public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData";
146
  private Map<String, String> additionalData = null;
1✔
147

148
  public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods";
149
  private List<String> allowedPaymentMethods = null;
1✔
150

151
  public static final String JSON_PROPERTY_AMOUNT = "amount";
152
  private Amount amount;
153

154
  public static final String JSON_PROPERTY_APPLICATION_INFO = "applicationInfo";
155
  private ApplicationInfo applicationInfo;
156

157
  public static final String JSON_PROPERTY_AUTHENTICATION_DATA = "authenticationData";
158
  private AuthenticationData authenticationData;
159

160
  public static final String JSON_PROPERTY_BILLING_ADDRESS = "billingAddress";
161
  private BillingAddress billingAddress;
162

163
  public static final String JSON_PROPERTY_BLOCKED_PAYMENT_METHODS = "blockedPaymentMethods";
164
  private List<String> blockedPaymentMethods = null;
1✔
165

166
  public static final String JSON_PROPERTY_BROWSER_INFO = "browserInfo";
167
  private BrowserInfo browserInfo;
168

169
  public static final String JSON_PROPERTY_CAPTURE_DELAY_HOURS = "captureDelayHours";
170
  private Integer captureDelayHours;
171

172
  /**
173
   * 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
174
   */
175
  public enum ChannelEnum {
×
176
    IOS("iOS"),
×
177
    
178
    ANDROID("Android"),
×
179
    
180
    WEB("Web");
×
181

182
    private String value;
183

184
    ChannelEnum(String value) {
×
185
      this.value = value;
×
186
    }
×
187

188
    @JsonValue
189
    public String getValue() {
190
      return value;
×
191
    }
192

193
    @Override
194
    public String toString() {
195
      return String.valueOf(value);
×
196
    }
197

198
    @JsonCreator
199
    public static ChannelEnum fromValue(String value) {
200
      for (ChannelEnum b : ChannelEnum.values()) {
×
201
        if (b.value.equals(value)) {
×
202
          return b;
×
203
        }
204
      }
205
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
206
    }
207
  }
208

209
  public static final String JSON_PROPERTY_CHANNEL = "channel";
210
  private ChannelEnum channel;
211

212
  public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
213
  private String checkoutAttemptId;
214

215
  public static final String JSON_PROPERTY_COMPANY = "company";
216
  private Company company;
217

218
  public static final String JSON_PROPERTY_CONVERSION_ID = "conversionId";
219
  private String conversionId;
220

221
  public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode";
222
  private String countryCode;
223

224
  public static final String JSON_PROPERTY_DATE_OF_BIRTH = "dateOfBirth";
225
  private OffsetDateTime dateOfBirth;
226

227
  public static final String JSON_PROPERTY_DCC_QUOTE = "dccQuote";
228
  private ForexQuote dccQuote;
229

230
  public static final String JSON_PROPERTY_DELIVER_AT = "deliverAt";
231
  private OffsetDateTime deliverAt;
232

233
  public static final String JSON_PROPERTY_DELIVERY_ADDRESS = "deliveryAddress";
234
  private DeliveryAddress deliveryAddress;
235

236
  public static final String JSON_PROPERTY_DELIVERY_DATE = "deliveryDate";
237
  private OffsetDateTime deliveryDate;
238

239
  public static final String JSON_PROPERTY_DEVICE_FINGERPRINT = "deviceFingerprint";
240
  private String deviceFingerprint;
241

242
  public static final String JSON_PROPERTY_DONATION_ACCOUNT = "donationAccount";
243
  private String donationAccount;
244

245
  public static final String JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE = "donationOriginalPspReference";
246
  private String donationOriginalPspReference;
247

248
  public static final String JSON_PROPERTY_DONATION_TOKEN = "donationToken";
249
  private String donationToken;
250

251
  public static final String JSON_PROPERTY_ENABLE_ONE_CLICK = "enableOneClick";
252
  private Boolean enableOneClick;
253

254
  public static final String JSON_PROPERTY_ENABLE_PAY_OUT = "enablePayOut";
255
  private Boolean enablePayOut;
256

257
  public static final String JSON_PROPERTY_ENABLE_RECURRING = "enableRecurring";
258
  private Boolean enableRecurring;
259

260
  /**
261
   * The type of the entity the payment is processed for.
262
   */
263
  public enum EntityTypeEnum {
×
264
    NATURALPERSON("NaturalPerson"),
×
265
    
266
    COMPANYNAME("CompanyName");
×
267

268
    private String value;
269

270
    EntityTypeEnum(String value) {
×
271
      this.value = value;
×
272
    }
×
273

274
    @JsonValue
275
    public String getValue() {
276
      return value;
×
277
    }
278

279
    @Override
280
    public String toString() {
281
      return String.valueOf(value);
×
282
    }
283

284
    @JsonCreator
285
    public static EntityTypeEnum fromValue(String value) {
286
      for (EntityTypeEnum b : EntityTypeEnum.values()) {
×
287
        if (b.value.equals(value)) {
×
288
          return b;
×
289
        }
290
      }
291
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
292
    }
293
  }
294

295
  public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType";
296
  private EntityTypeEnum entityType;
297

298
  public static final String JSON_PROPERTY_FRAUD_OFFSET = "fraudOffset";
299
  private Integer fraudOffset;
300

301
  public static final String JSON_PROPERTY_FUND_ORIGIN = "fundOrigin";
302
  private FundOrigin fundOrigin;
303

304
  public static final String JSON_PROPERTY_FUND_RECIPIENT = "fundRecipient";
305
  private FundRecipient fundRecipient;
306

307
  /**
308
   * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
309
   */
310
  public enum FundingSourceEnum {
×
311
    DEBIT("debit");
×
312

313
    private String value;
314

315
    FundingSourceEnum(String value) {
×
316
      this.value = value;
×
317
    }
×
318

319
    @JsonValue
320
    public String getValue() {
321
      return value;
×
322
    }
323

324
    @Override
325
    public String toString() {
326
      return String.valueOf(value);
×
327
    }
328

329
    @JsonCreator
330
    public static FundingSourceEnum fromValue(String value) {
331
      for (FundingSourceEnum b : FundingSourceEnum.values()) {
×
332
        if (b.value.equals(value)) {
×
333
          return b;
×
334
        }
335
      }
336
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
337
    }
338
  }
339

340
  public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource";
341
  private FundingSourceEnum fundingSource;
342

343
  /**
344
   * The reason for the amount update. Possible values:  * **delayedCharge**  * **noShow**  * **installment**
345
   */
346
  public enum IndustryUsageEnum {
×
347
    DELAYEDCHARGE("delayedCharge"),
×
348
    
349
    INSTALLMENT("installment"),
×
350
    
351
    NOSHOW("noShow");
×
352

353
    private String value;
354

355
    IndustryUsageEnum(String value) {
×
356
      this.value = value;
×
357
    }
×
358

359
    @JsonValue
360
    public String getValue() {
361
      return value;
×
362
    }
363

364
    @Override
365
    public String toString() {
366
      return String.valueOf(value);
×
367
    }
368

369
    @JsonCreator
370
    public static IndustryUsageEnum fromValue(String value) {
371
      for (IndustryUsageEnum b : IndustryUsageEnum.values()) {
×
372
        if (b.value.equals(value)) {
×
373
          return b;
×
374
        }
375
      }
376
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
377
    }
378
  }
379

380
  public static final String JSON_PROPERTY_INDUSTRY_USAGE = "industryUsage";
381
  private IndustryUsageEnum industryUsage;
382

383
  public static final String JSON_PROPERTY_INSTALLMENTS = "installments";
384
  private Installments installments;
385

386
  public static final String JSON_PROPERTY_LINE_ITEMS = "lineItems";
387
  private List<LineItem> lineItems = null;
1✔
388

389
  public static final String JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT = "localizedShopperStatement";
390
  private Map<String, String> localizedShopperStatement = null;
1✔
391

392
  public static final String JSON_PROPERTY_MANDATE = "mandate";
393
  private Mandate mandate;
394

395
  public static final String JSON_PROPERTY_MCC = "mcc";
396
  private String mcc;
397

398
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
399
  private String merchantAccount;
400

401
  public static final String JSON_PROPERTY_MERCHANT_ORDER_REFERENCE = "merchantOrderReference";
402
  private String merchantOrderReference;
403

404
  public static final String JSON_PROPERTY_MERCHANT_RISK_INDICATOR = "merchantRiskIndicator";
405
  private MerchantRiskIndicator merchantRiskIndicator;
406

407
  public static final String JSON_PROPERTY_METADATA = "metadata";
408
  private Map<String, String> metadata = null;
1✔
409

410
  public static final String JSON_PROPERTY_MPI_DATA = "mpiData";
411
  private ThreeDSecureData mpiData;
412

413
  public static final String JSON_PROPERTY_ORDER = "order";
414
  private EncryptedOrderData order;
415

416
  public static final String JSON_PROPERTY_ORDER_REFERENCE = "orderReference";
417
  private String orderReference;
418

419
  public static final String JSON_PROPERTY_ORIGIN = "origin";
420
  private String origin;
421

422
  public static final String JSON_PROPERTY_PAYMENT_METHOD = "paymentMethod";
423
  private DonationPaymentMethod paymentMethod;
424

425
  public static final String JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC = "platformChargebackLogic";
426
  private PlatformChargebackLogic platformChargebackLogic;
427

428
  public static final String JSON_PROPERTY_RECURRING_EXPIRY = "recurringExpiry";
429
  private String recurringExpiry;
430

431
  public static final String JSON_PROPERTY_RECURRING_FREQUENCY = "recurringFrequency";
432
  private String recurringFrequency;
433

434
  /**
435
   * Defines a recurring payment type. Required when creating a token to store payment details or using stored 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. 
436
   */
437
  public enum RecurringProcessingModelEnum {
×
438
    CARDONFILE("CardOnFile"),
×
439
    
440
    SUBSCRIPTION("Subscription"),
×
441
    
442
    UNSCHEDULEDCARDONFILE("UnscheduledCardOnFile");
×
443

444
    private String value;
445

446
    RecurringProcessingModelEnum(String value) {
×
447
      this.value = value;
×
448
    }
×
449

450
    @JsonValue
451
    public String getValue() {
452
      return value;
×
453
    }
454

455
    @Override
456
    public String toString() {
457
      return String.valueOf(value);
×
458
    }
459

460
    @JsonCreator
461
    public static RecurringProcessingModelEnum fromValue(String value) {
462
      for (RecurringProcessingModelEnum b : RecurringProcessingModelEnum.values()) {
×
463
        if (b.value.equals(value)) {
×
464
          return b;
×
465
        }
466
      }
467
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
468
    }
469
  }
470

471
  public static final String JSON_PROPERTY_RECURRING_PROCESSING_MODEL = "recurringProcessingModel";
472
  private RecurringProcessingModelEnum recurringProcessingModel;
473

474
  public static final String JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD = "redirectFromIssuerMethod";
475
  private String redirectFromIssuerMethod;
476

477
  public static final String JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD = "redirectToIssuerMethod";
478
  private String redirectToIssuerMethod;
479

480
  public static final String JSON_PROPERTY_REFERENCE = "reference";
481
  private String reference;
482

483
  public static final String JSON_PROPERTY_RETURN_URL = "returnUrl";
484
  private String returnUrl;
485

486
  public static final String JSON_PROPERTY_RISK_DATA = "riskData";
487
  private RiskData riskData;
488

489
  public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE = "selectedRecurringDetailReference";
490
  private String selectedRecurringDetailReference;
491

492
  public static final String JSON_PROPERTY_SESSION_VALIDITY = "sessionValidity";
493
  private String sessionValidity;
494

495
  public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail";
496
  private String shopperEmail;
497

498
  public static final String JSON_PROPERTY_SHOPPER_I_P = "shopperIP";
499
  private String shopperIP;
500

501
  /**
502
   * 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.
503
   */
504
  public enum ShopperInteractionEnum {
×
505
    ECOMMERCE("Ecommerce"),
×
506
    
507
    CONTAUTH("ContAuth"),
×
508
    
509
    MOTO("Moto"),
×
510
    
511
    POS("POS");
×
512

513
    private String value;
514

515
    ShopperInteractionEnum(String value) {
×
516
      this.value = value;
×
517
    }
×
518

519
    @JsonValue
520
    public String getValue() {
521
      return value;
×
522
    }
523

524
    @Override
525
    public String toString() {
526
      return String.valueOf(value);
×
527
    }
528

529
    @JsonCreator
530
    public static ShopperInteractionEnum fromValue(String value) {
531
      for (ShopperInteractionEnum b : ShopperInteractionEnum.values()) {
×
532
        if (b.value.equals(value)) {
×
533
          return b;
×
534
        }
535
      }
536
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
537
    }
538
  }
539

540
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
541
  private ShopperInteractionEnum shopperInteraction;
542

543
  public static final String JSON_PROPERTY_SHOPPER_LOCALE = "shopperLocale";
544
  private String shopperLocale;
545

546
  public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
547
  private Name shopperName;
548

549
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
550
  private String shopperReference;
551

552
  public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement";
553
  private String shopperStatement;
554

555
  public static final String JSON_PROPERTY_SOCIAL_SECURITY_NUMBER = "socialSecurityNumber";
556
  private String socialSecurityNumber;
557

558
  public static final String JSON_PROPERTY_SPLITS = "splits";
559
  private List<Split> splits = null;
1✔
560

561
  public static final String JSON_PROPERTY_STORE = "store";
562
  private String store;
563

564
  public static final String JSON_PROPERTY_STORE_PAYMENT_METHOD = "storePaymentMethod";
565
  private Boolean storePaymentMethod;
566

567
  public static final String JSON_PROPERTY_TELEPHONE_NUMBER = "telephoneNumber";
568
  private String telephoneNumber;
569

570
  public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData";
571
  private ThreeDS2RequestData2 threeDS2RequestData;
572

573
  public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly";
574
  private Boolean threeDSAuthenticationOnly = false;
1✔
575

576
  public static final String JSON_PROPERTY_TRUSTED_SHOPPER = "trustedShopper";
577
  private Boolean trustedShopper;
578

579
  public DonationPaymentRequest() { 
1✔
580
  }
1✔
581

582
  public DonationPaymentRequest accountInfo(AccountInfo accountInfo) {
583
    this.accountInfo = accountInfo;
×
584
    return this;
×
585
  }
586

587
   /**
588
   * Get accountInfo
589
   * @return accountInfo
590
  **/
591
  @ApiModelProperty(value = "")
592
  @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
593
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
594

595
  public AccountInfo getAccountInfo() {
596
    return accountInfo;
1✔
597
  }
598

599

600
  @JsonProperty(JSON_PROPERTY_ACCOUNT_INFO)
601
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
602
  public void setAccountInfo(AccountInfo accountInfo) {
603
    this.accountInfo = accountInfo;
×
604
  }
×
605

606

607
  public DonationPaymentRequest additionalAmount(Amount additionalAmount) {
608
    this.additionalAmount = additionalAmount;
×
609
    return this;
×
610
  }
611

612
   /**
613
   * Get additionalAmount
614
   * @return additionalAmount
615
  **/
616
  @ApiModelProperty(value = "")
617
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
618
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
619

620
  public Amount getAdditionalAmount() {
621
    return additionalAmount;
1✔
622
  }
623

624

625
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_AMOUNT)
626
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
627
  public void setAdditionalAmount(Amount additionalAmount) {
628
    this.additionalAmount = additionalAmount;
×
629
  }
×
630

631

632
  public DonationPaymentRequest additionalData(Map<String, String> additionalData) {
633
    this.additionalData = additionalData;
×
634
    return this;
×
635
  }
636

637
  public DonationPaymentRequest putAdditionalDataItem(String key, String additionalDataItem) {
638
    if (this.additionalData == null) {
×
639
      this.additionalData = new HashMap<>();
×
640
    }
641
    this.additionalData.put(key, additionalDataItem);
×
642
    return this;
×
643
  }
644

645
   /**
646
   * 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.
647
   * @return additionalData
648
  **/
649
  @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.")
650
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
651
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
652

653
  public Map<String, String> getAdditionalData() {
654
    return additionalData;
1✔
655
  }
656

657

658
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
659
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
660
  public void setAdditionalData(Map<String, String> additionalData) {
661
    this.additionalData = additionalData;
×
662
  }
×
663

664

665
  public DonationPaymentRequest allowedPaymentMethods(List<String> allowedPaymentMethods) {
666
    this.allowedPaymentMethods = allowedPaymentMethods;
×
667
    return this;
×
668
  }
669

670
  public DonationPaymentRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) {
671
    if (this.allowedPaymentMethods == null) {
×
672
      this.allowedPaymentMethods = new ArrayList<>();
×
673
    }
674
    this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
×
675
    return this;
×
676
  }
677

678
   /**
679
   * 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;
680
   * @return allowedPaymentMethods
681
  **/
682
  @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\"]`")
683
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
684
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
685

686
  public List<String> getAllowedPaymentMethods() {
687
    return allowedPaymentMethods;
1✔
688
  }
689

690

691
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
692
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
693
  public void setAllowedPaymentMethods(List<String> allowedPaymentMethods) {
694
    this.allowedPaymentMethods = allowedPaymentMethods;
×
695
  }
×
696

697

698
  public DonationPaymentRequest amount(Amount amount) {
699
    this.amount = amount;
×
700
    return this;
×
701
  }
702

703
   /**
704
   * Get amount
705
   * @return amount
706
  **/
707
  @ApiModelProperty(required = true, value = "")
708
  @JsonProperty(JSON_PROPERTY_AMOUNT)
709
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
710

711
  public Amount getAmount() {
712
    return amount;
1✔
713
  }
714

715

716
  @JsonProperty(JSON_PROPERTY_AMOUNT)
717
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
718
  public void setAmount(Amount amount) {
719
    this.amount = amount;
1✔
720
  }
1✔
721

722

723
  public DonationPaymentRequest applicationInfo(ApplicationInfo applicationInfo) {
724
    this.applicationInfo = applicationInfo;
×
725
    return this;
×
726
  }
727

728
   /**
729
   * Get applicationInfo
730
   * @return applicationInfo
731
  **/
732
  @ApiModelProperty(value = "")
733
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
734
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
735

736
  public ApplicationInfo getApplicationInfo() {
737
    return applicationInfo;
1✔
738
  }
739

740

741
  @JsonProperty(JSON_PROPERTY_APPLICATION_INFO)
742
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
743
  public void setApplicationInfo(ApplicationInfo applicationInfo) {
744
    this.applicationInfo = applicationInfo;
×
745
  }
×
746

747

748
  public DonationPaymentRequest authenticationData(AuthenticationData authenticationData) {
749
    this.authenticationData = authenticationData;
×
750
    return this;
×
751
  }
752

753
   /**
754
   * Get authenticationData
755
   * @return authenticationData
756
  **/
757
  @ApiModelProperty(value = "")
758
  @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
759
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
760

761
  public AuthenticationData getAuthenticationData() {
762
    return authenticationData;
1✔
763
  }
764

765

766
  @JsonProperty(JSON_PROPERTY_AUTHENTICATION_DATA)
767
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
768
  public void setAuthenticationData(AuthenticationData authenticationData) {
769
    this.authenticationData = authenticationData;
×
770
  }
×
771

772

773
  public DonationPaymentRequest billingAddress(BillingAddress billingAddress) {
774
    this.billingAddress = billingAddress;
×
775
    return this;
×
776
  }
777

778
   /**
779
   * Get billingAddress
780
   * @return billingAddress
781
  **/
782
  @ApiModelProperty(value = "")
783
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
784
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
785

786
  public BillingAddress getBillingAddress() {
787
    return billingAddress;
1✔
788
  }
789

790

791
  @JsonProperty(JSON_PROPERTY_BILLING_ADDRESS)
792
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
793
  public void setBillingAddress(BillingAddress billingAddress) {
794
    this.billingAddress = billingAddress;
×
795
  }
×
796

797

798
  public DonationPaymentRequest blockedPaymentMethods(List<String> blockedPaymentMethods) {
799
    this.blockedPaymentMethods = blockedPaymentMethods;
×
800
    return this;
×
801
  }
802

803
  public DonationPaymentRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) {
804
    if (this.blockedPaymentMethods == null) {
×
805
      this.blockedPaymentMethods = new ArrayList<>();
×
806
    }
807
    this.blockedPaymentMethods.add(blockedPaymentMethodsItem);
×
808
    return this;
×
809
  }
810

811
   /**
812
   * 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;
813
   * @return blockedPaymentMethods
814
  **/
815
  @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\"]`")
816
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
817
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
818

819
  public List<String> getBlockedPaymentMethods() {
820
    return blockedPaymentMethods;
1✔
821
  }
822

823

824
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
825
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
826
  public void setBlockedPaymentMethods(List<String> blockedPaymentMethods) {
827
    this.blockedPaymentMethods = blockedPaymentMethods;
×
828
  }
×
829

830

831
  public DonationPaymentRequest browserInfo(BrowserInfo browserInfo) {
832
    this.browserInfo = browserInfo;
×
833
    return this;
×
834
  }
835

836
   /**
837
   * Get browserInfo
838
   * @return browserInfo
839
  **/
840
  @ApiModelProperty(value = "")
841
  @JsonProperty(JSON_PROPERTY_BROWSER_INFO)
842
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
843

844
  public BrowserInfo getBrowserInfo() {
845
    return browserInfo;
1✔
846
  }
847

848

849
  @JsonProperty(JSON_PROPERTY_BROWSER_INFO)
850
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
851
  public void setBrowserInfo(BrowserInfo browserInfo) {
852
    this.browserInfo = browserInfo;
×
853
  }
×
854

855

856
  public DonationPaymentRequest captureDelayHours(Integer captureDelayHours) {
857
    this.captureDelayHours = captureDelayHours;
×
858
    return this;
×
859
  }
860

861
   /**
862
   * The delay between the authorisation and scheduled auto-capture, specified in hours.
863
   * @return captureDelayHours
864
  **/
865
  @ApiModelProperty(value = "The delay between the authorisation and scheduled auto-capture, specified in hours.")
866
  @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
867
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
868

869
  public Integer getCaptureDelayHours() {
870
    return captureDelayHours;
1✔
871
  }
872

873

874
  @JsonProperty(JSON_PROPERTY_CAPTURE_DELAY_HOURS)
875
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
876
  public void setCaptureDelayHours(Integer captureDelayHours) {
877
    this.captureDelayHours = captureDelayHours;
×
878
  }
×
879

880

881
  public DonationPaymentRequest channel(ChannelEnum channel) {
882
    this.channel = channel;
×
883
    return this;
×
884
  }
885

886
   /**
887
   * 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
888
   * @return channel
889
  **/
890
  @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")
891
  @JsonProperty(JSON_PROPERTY_CHANNEL)
892
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
893

894
  public ChannelEnum getChannel() {
895
    return channel;
1✔
896
  }
897

898

899
  @JsonProperty(JSON_PROPERTY_CHANNEL)
900
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
901
  public void setChannel(ChannelEnum channel) {
902
    this.channel = channel;
×
903
  }
×
904

905

906
  public DonationPaymentRequest checkoutAttemptId(String checkoutAttemptId) {
907
    this.checkoutAttemptId = checkoutAttemptId;
×
908
    return this;
×
909
  }
910

911
   /**
912
   * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey.
913
   * @return checkoutAttemptId
914
  **/
915
  @ApiModelProperty(value = "Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey.")
916
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
917
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
918

919
  public String getCheckoutAttemptId() {
920
    return checkoutAttemptId;
1✔
921
  }
922

923

924
  @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID)
925
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
926
  public void setCheckoutAttemptId(String checkoutAttemptId) {
927
    this.checkoutAttemptId = checkoutAttemptId;
×
928
  }
×
929

930

931
  public DonationPaymentRequest company(Company company) {
932
    this.company = company;
×
933
    return this;
×
934
  }
935

936
   /**
937
   * Get company
938
   * @return company
939
  **/
940
  @ApiModelProperty(value = "")
941
  @JsonProperty(JSON_PROPERTY_COMPANY)
942
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
943

944
  public Company getCompany() {
945
    return company;
1✔
946
  }
947

948

949
  @JsonProperty(JSON_PROPERTY_COMPANY)
950
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
951
  public void setCompany(Company company) {
952
    this.company = company;
×
953
  }
×
954

955

956
  public DonationPaymentRequest conversionId(String conversionId) {
957
    this.conversionId = conversionId;
×
958
    return this;
×
959
  }
960

961
   /**
962
   * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey.
963
   * @return conversionId
964
   * @deprecated
965
  **/
966
  @Deprecated
967
  @ApiModelProperty(value = "Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey.")
968
  @JsonProperty(JSON_PROPERTY_CONVERSION_ID)
969
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
970

971
  public String getConversionId() {
972
    return conversionId;
1✔
973
  }
974

975

976
  @Deprecated
977
  @JsonProperty(JSON_PROPERTY_CONVERSION_ID)
978
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
979
  public void setConversionId(String conversionId) {
980
    this.conversionId = conversionId;
×
981
  }
×
982

983

984
  public DonationPaymentRequest countryCode(String countryCode) {
985
    this.countryCode = countryCode;
×
986
    return this;
×
987
  }
988

989
   /**
990
   * The shopper country.  Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE
991
   * @return countryCode
992
  **/
993
  @ApiModelProperty(value = "The shopper country.  Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE")
994
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
995
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
996

997
  public String getCountryCode() {
998
    return countryCode;
1✔
999
  }
1000

1001

1002
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
1003
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1004
  public void setCountryCode(String countryCode) {
1005
    this.countryCode = countryCode;
×
1006
  }
×
1007

1008

1009
  public DonationPaymentRequest dateOfBirth(OffsetDateTime dateOfBirth) {
1010
    this.dateOfBirth = dateOfBirth;
×
1011
    return this;
×
1012
  }
1013

1014
   /**
1015
   * The shopper&#39;s date of birth.  Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD
1016
   * @return dateOfBirth
1017
  **/
1018
  @ApiModelProperty(value = "The shopper's date of birth.  Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD")
1019
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
1020
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1021

1022
  public OffsetDateTime getDateOfBirth() {
1023
    return dateOfBirth;
1✔
1024
  }
1025

1026

1027
  @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH)
1028
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1029
  public void setDateOfBirth(OffsetDateTime dateOfBirth) {
1030
    this.dateOfBirth = dateOfBirth;
×
1031
  }
×
1032

1033

1034
  public DonationPaymentRequest dccQuote(ForexQuote dccQuote) {
1035
    this.dccQuote = dccQuote;
×
1036
    return this;
×
1037
  }
1038

1039
   /**
1040
   * Get dccQuote
1041
   * @return dccQuote
1042
  **/
1043
  @ApiModelProperty(value = "")
1044
  @JsonProperty(JSON_PROPERTY_DCC_QUOTE)
1045
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1046

1047
  public ForexQuote getDccQuote() {
1048
    return dccQuote;
1✔
1049
  }
1050

1051

1052
  @JsonProperty(JSON_PROPERTY_DCC_QUOTE)
1053
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1054
  public void setDccQuote(ForexQuote dccQuote) {
1055
    this.dccQuote = dccQuote;
×
1056
  }
×
1057

1058

1059
  public DonationPaymentRequest deliverAt(OffsetDateTime deliverAt) {
1060
    this.deliverAt = deliverAt;
×
1061
    return this;
×
1062
  }
1063

1064
   /**
1065
   * The date and time the purchased goods should be delivered.  Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD  Example: 2017-07-17T13:42:40.428+01:00
1066
   * @return deliverAt
1067
  **/
1068
  @ApiModelProperty(value = "The date and time the purchased goods should be delivered.  Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD  Example: 2017-07-17T13:42:40.428+01:00")
1069
  @JsonProperty(JSON_PROPERTY_DELIVER_AT)
1070
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1071

1072
  public OffsetDateTime getDeliverAt() {
1073
    return deliverAt;
1✔
1074
  }
1075

1076

1077
  @JsonProperty(JSON_PROPERTY_DELIVER_AT)
1078
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1079
  public void setDeliverAt(OffsetDateTime deliverAt) {
1080
    this.deliverAt = deliverAt;
×
1081
  }
×
1082

1083

1084
  public DonationPaymentRequest deliveryAddress(DeliveryAddress deliveryAddress) {
1085
    this.deliveryAddress = deliveryAddress;
×
1086
    return this;
×
1087
  }
1088

1089
   /**
1090
   * Get deliveryAddress
1091
   * @return deliveryAddress
1092
  **/
1093
  @ApiModelProperty(value = "")
1094
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
1095
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1096

1097
  public DeliveryAddress getDeliveryAddress() {
1098
    return deliveryAddress;
1✔
1099
  }
1100

1101

1102
  @JsonProperty(JSON_PROPERTY_DELIVERY_ADDRESS)
1103
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1104
  public void setDeliveryAddress(DeliveryAddress deliveryAddress) {
1105
    this.deliveryAddress = deliveryAddress;
×
1106
  }
×
1107

1108

1109
  public DonationPaymentRequest deliveryDate(OffsetDateTime deliveryDate) {
1110
    this.deliveryDate = deliveryDate;
×
1111
    return this;
×
1112
  }
1113

1114
   /**
1115
   * The date and time the purchased goods should be delivered.  Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD  Example: 2017-07-17T13:42:40.428+01:00
1116
   * @return deliveryDate
1117
  **/
1118
  @ApiModelProperty(value = "The date and time the purchased goods should be delivered.  Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD  Example: 2017-07-17T13:42:40.428+01:00")
1119
  @JsonProperty(JSON_PROPERTY_DELIVERY_DATE)
1120
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1121

1122
  public OffsetDateTime getDeliveryDate() {
1123
    return deliveryDate;
1✔
1124
  }
1125

1126

1127
  @JsonProperty(JSON_PROPERTY_DELIVERY_DATE)
1128
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1129
  public void setDeliveryDate(OffsetDateTime deliveryDate) {
1130
    this.deliveryDate = deliveryDate;
×
1131
  }
×
1132

1133

1134
  public DonationPaymentRequest deviceFingerprint(String deviceFingerprint) {
1135
    this.deviceFingerprint = deviceFingerprint;
×
1136
    return this;
×
1137
  }
1138

1139
   /**
1140
   * A string containing the shopper&#39;s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).
1141
   * @return deviceFingerprint
1142
  **/
1143
  @ApiModelProperty(value = "A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).")
1144
  @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT)
1145
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1146

1147
  public String getDeviceFingerprint() {
1148
    return deviceFingerprint;
1✔
1149
  }
1150

1151

1152
  @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINT)
1153
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1154
  public void setDeviceFingerprint(String deviceFingerprint) {
1155
    this.deviceFingerprint = deviceFingerprint;
×
1156
  }
×
1157

1158

1159
  public DonationPaymentRequest donationAccount(String donationAccount) {
1160
    this.donationAccount = donationAccount;
×
1161
    return this;
×
1162
  }
1163

1164
   /**
1165
   * Donation account to which the transaction is credited.
1166
   * @return donationAccount
1167
  **/
1168
  @ApiModelProperty(required = true, value = "Donation account to which the transaction is credited.")
1169
  @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT)
1170
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1171

1172
  public String getDonationAccount() {
1173
    return donationAccount;
1✔
1174
  }
1175

1176

1177
  @JsonProperty(JSON_PROPERTY_DONATION_ACCOUNT)
1178
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1179
  public void setDonationAccount(String donationAccount) {
1180
    this.donationAccount = donationAccount;
1✔
1181
  }
1✔
1182

1183

1184
  public DonationPaymentRequest donationOriginalPspReference(String donationOriginalPspReference) {
1185
    this.donationOriginalPspReference = donationOriginalPspReference;
×
1186
    return this;
×
1187
  }
1188

1189
   /**
1190
   * PSP reference of the transaction from which the donation token is generated. Required when &#x60;donationToken&#x60; is provided.
1191
   * @return donationOriginalPspReference
1192
  **/
1193
  @ApiModelProperty(value = "PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided.")
1194
  @JsonProperty(JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE)
1195
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1196

1197
  public String getDonationOriginalPspReference() {
1198
    return donationOriginalPspReference;
1✔
1199
  }
1200

1201

1202
  @JsonProperty(JSON_PROPERTY_DONATION_ORIGINAL_PSP_REFERENCE)
1203
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1204
  public void setDonationOriginalPspReference(String donationOriginalPspReference) {
1205
    this.donationOriginalPspReference = donationOriginalPspReference;
×
1206
  }
×
1207

1208

1209
  public DonationPaymentRequest donationToken(String donationToken) {
1210
    this.donationToken = donationToken;
×
1211
    return this;
×
1212
  }
1213

1214
   /**
1215
   * Donation token received in the &#x60;/payments&#x60; call.
1216
   * @return donationToken
1217
  **/
1218
  @ApiModelProperty(value = "Donation token received in the `/payments` call.")
1219
  @JsonProperty(JSON_PROPERTY_DONATION_TOKEN)
1220
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1221

1222
  public String getDonationToken() {
1223
    return donationToken;
1✔
1224
  }
1225

1226

1227
  @JsonProperty(JSON_PROPERTY_DONATION_TOKEN)
1228
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1229
  public void setDonationToken(String donationToken) {
1230
    this.donationToken = donationToken;
×
1231
  }
×
1232

1233

1234
  public DonationPaymentRequest enableOneClick(Boolean enableOneClick) {
1235
    this.enableOneClick = enableOneClick;
×
1236
    return this;
×
1237
  }
1238

1239
   /**
1240
   * 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.
1241
   * @return enableOneClick
1242
  **/
1243
  @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.")
1244
  @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK)
1245
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1246

1247
  public Boolean getEnableOneClick() {
1248
    return enableOneClick;
1✔
1249
  }
1250

1251

1252
  @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK)
1253
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1254
  public void setEnableOneClick(Boolean enableOneClick) {
1255
    this.enableOneClick = enableOneClick;
×
1256
  }
×
1257

1258

1259
  public DonationPaymentRequest enablePayOut(Boolean enablePayOut) {
1260
    this.enablePayOut = enablePayOut;
×
1261
    return this;
×
1262
  }
1263

1264
   /**
1265
   * When true and &#x60;shopperReference&#x60; is provided, the payment details will be tokenized for payouts.
1266
   * @return enablePayOut
1267
  **/
1268
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for payouts.")
1269
  @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT)
1270
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1271

1272
  public Boolean getEnablePayOut() {
1273
    return enablePayOut;
1✔
1274
  }
1275

1276

1277
  @JsonProperty(JSON_PROPERTY_ENABLE_PAY_OUT)
1278
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1279
  public void setEnablePayOut(Boolean enablePayOut) {
1280
    this.enablePayOut = enablePayOut;
×
1281
  }
×
1282

1283

1284
  public DonationPaymentRequest enableRecurring(Boolean enableRecurring) {
1285
    this.enableRecurring = enableRecurring;
×
1286
    return this;
×
1287
  }
1288

1289
   /**
1290
   * When true and &#x60;shopperReference&#x60; is provided, the payment details will be tokenized for recurring payments.
1291
   * @return enableRecurring
1292
  **/
1293
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.")
1294
  @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING)
1295
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1296

1297
  public Boolean getEnableRecurring() {
1298
    return enableRecurring;
1✔
1299
  }
1300

1301

1302
  @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING)
1303
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1304
  public void setEnableRecurring(Boolean enableRecurring) {
1305
    this.enableRecurring = enableRecurring;
×
1306
  }
×
1307

1308

1309
  public DonationPaymentRequest entityType(EntityTypeEnum entityType) {
1310
    this.entityType = entityType;
×
1311
    return this;
×
1312
  }
1313

1314
   /**
1315
   * The type of the entity the payment is processed for.
1316
   * @return entityType
1317
  **/
1318
  @ApiModelProperty(value = "The type of the entity the payment is processed for.")
1319
  @JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
1320
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1321

1322
  public EntityTypeEnum getEntityType() {
1323
    return entityType;
1✔
1324
  }
1325

1326

1327
  @JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
1328
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1329
  public void setEntityType(EntityTypeEnum entityType) {
1330
    this.entityType = entityType;
×
1331
  }
×
1332

1333

1334
  public DonationPaymentRequest fraudOffset(Integer fraudOffset) {
1335
    this.fraudOffset = fraudOffset;
×
1336
    return this;
×
1337
  }
1338

1339
   /**
1340
   * An integer value that is added to the normal fraud score. The value can be either positive or negative.
1341
   * @return fraudOffset
1342
  **/
1343
  @ApiModelProperty(value = "An integer value that is added to the normal fraud score. The value can be either positive or negative.")
1344
  @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET)
1345
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1346

1347
  public Integer getFraudOffset() {
1348
    return fraudOffset;
1✔
1349
  }
1350

1351

1352
  @JsonProperty(JSON_PROPERTY_FRAUD_OFFSET)
1353
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1354
  public void setFraudOffset(Integer fraudOffset) {
1355
    this.fraudOffset = fraudOffset;
×
1356
  }
×
1357

1358

1359
  public DonationPaymentRequest fundOrigin(FundOrigin fundOrigin) {
1360
    this.fundOrigin = fundOrigin;
×
1361
    return this;
×
1362
  }
1363

1364
   /**
1365
   * Get fundOrigin
1366
   * @return fundOrigin
1367
  **/
1368
  @ApiModelProperty(value = "")
1369
  @JsonProperty(JSON_PROPERTY_FUND_ORIGIN)
1370
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1371

1372
  public FundOrigin getFundOrigin() {
1373
    return fundOrigin;
1✔
1374
  }
1375

1376

1377
  @JsonProperty(JSON_PROPERTY_FUND_ORIGIN)
1378
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1379
  public void setFundOrigin(FundOrigin fundOrigin) {
1380
    this.fundOrigin = fundOrigin;
×
1381
  }
×
1382

1383

1384
  public DonationPaymentRequest fundRecipient(FundRecipient fundRecipient) {
1385
    this.fundRecipient = fundRecipient;
×
1386
    return this;
×
1387
  }
1388

1389
   /**
1390
   * Get fundRecipient
1391
   * @return fundRecipient
1392
  **/
1393
  @ApiModelProperty(value = "")
1394
  @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT)
1395
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1396

1397
  public FundRecipient getFundRecipient() {
1398
    return fundRecipient;
1✔
1399
  }
1400

1401

1402
  @JsonProperty(JSON_PROPERTY_FUND_RECIPIENT)
1403
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1404
  public void setFundRecipient(FundRecipient fundRecipient) {
1405
    this.fundRecipient = fundRecipient;
×
1406
  }
×
1407

1408

1409
  public DonationPaymentRequest fundingSource(FundingSourceEnum fundingSource) {
1410
    this.fundingSource = fundingSource;
×
1411
    return this;
×
1412
  }
1413

1414
   /**
1415
   * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
1416
   * @return fundingSource
1417
  **/
1418
  @ApiModelProperty(value = "The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.")
1419
  @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE)
1420
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1421

1422
  public FundingSourceEnum getFundingSource() {
1423
    return fundingSource;
1✔
1424
  }
1425

1426

1427
  @JsonProperty(JSON_PROPERTY_FUNDING_SOURCE)
1428
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1429
  public void setFundingSource(FundingSourceEnum fundingSource) {
1430
    this.fundingSource = fundingSource;
×
1431
  }
×
1432

1433

1434
  public DonationPaymentRequest industryUsage(IndustryUsageEnum industryUsage) {
1435
    this.industryUsage = industryUsage;
×
1436
    return this;
×
1437
  }
1438

1439
   /**
1440
   * The reason for the amount update. Possible values:  * **delayedCharge**  * **noShow**  * **installment**
1441
   * @return industryUsage
1442
  **/
1443
  @ApiModelProperty(value = "The reason for the amount update. Possible values:  * **delayedCharge**  * **noShow**  * **installment**")
1444
  @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE)
1445
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1446

1447
  public IndustryUsageEnum getIndustryUsage() {
1448
    return industryUsage;
1✔
1449
  }
1450

1451

1452
  @JsonProperty(JSON_PROPERTY_INDUSTRY_USAGE)
1453
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1454
  public void setIndustryUsage(IndustryUsageEnum industryUsage) {
1455
    this.industryUsage = industryUsage;
×
1456
  }
×
1457

1458

1459
  public DonationPaymentRequest installments(Installments installments) {
1460
    this.installments = installments;
×
1461
    return this;
×
1462
  }
1463

1464
   /**
1465
   * Get installments
1466
   * @return installments
1467
  **/
1468
  @ApiModelProperty(value = "")
1469
  @JsonProperty(JSON_PROPERTY_INSTALLMENTS)
1470
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1471

1472
  public Installments getInstallments() {
1473
    return installments;
1✔
1474
  }
1475

1476

1477
  @JsonProperty(JSON_PROPERTY_INSTALLMENTS)
1478
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1479
  public void setInstallments(Installments installments) {
1480
    this.installments = installments;
×
1481
  }
×
1482

1483

1484
  public DonationPaymentRequest lineItems(List<LineItem> lineItems) {
1485
    this.lineItems = lineItems;
×
1486
    return this;
×
1487
  }
1488

1489
  public DonationPaymentRequest addLineItemsItem(LineItem lineItemsItem) {
1490
    if (this.lineItems == null) {
×
1491
      this.lineItems = new ArrayList<>();
×
1492
    }
1493
    this.lineItems.add(lineItemsItem);
×
1494
    return this;
×
1495
  }
1496

1497
   /**
1498
   * 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.
1499
   * @return lineItems
1500
  **/
1501
  @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.")
1502
  @JsonProperty(JSON_PROPERTY_LINE_ITEMS)
1503
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1504

1505
  public List<LineItem> getLineItems() {
1506
    return lineItems;
1✔
1507
  }
1508

1509

1510
  @JsonProperty(JSON_PROPERTY_LINE_ITEMS)
1511
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1512
  public void setLineItems(List<LineItem> lineItems) {
1513
    this.lineItems = lineItems;
×
1514
  }
×
1515

1516

1517
  public DonationPaymentRequest localizedShopperStatement(Map<String, String> localizedShopperStatement) {
1518
    this.localizedShopperStatement = localizedShopperStatement;
×
1519
    return this;
×
1520
  }
1521

1522
  public DonationPaymentRequest putLocalizedShopperStatementItem(String key, String localizedShopperStatementItem) {
1523
    if (this.localizedShopperStatement == null) {
×
1524
      this.localizedShopperStatement = new HashMap<>();
×
1525
    }
1526
    this.localizedShopperStatement.put(key, localizedShopperStatementItem);
×
1527
    return this;
×
1528
  }
1529

1530
   /**
1531
   * The &#x60;localizedShopperStatement&#x60; field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used.  Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports:  * UTF-8 based Katakana, capital letters, numbers and special characters.  * Half-width or full-width characters.
1532
   * @return localizedShopperStatement
1533
  **/
1534
  @ApiModelProperty(value = "The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used.  Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports:  * UTF-8 based Katakana, capital letters, numbers and special characters.  * Half-width or full-width characters.")
1535
  @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT)
1536
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1537

1538
  public Map<String, String> getLocalizedShopperStatement() {
1539
    return localizedShopperStatement;
1✔
1540
  }
1541

1542

1543
  @JsonProperty(JSON_PROPERTY_LOCALIZED_SHOPPER_STATEMENT)
1544
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1545
  public void setLocalizedShopperStatement(Map<String, String> localizedShopperStatement) {
1546
    this.localizedShopperStatement = localizedShopperStatement;
×
1547
  }
×
1548

1549

1550
  public DonationPaymentRequest mandate(Mandate mandate) {
1551
    this.mandate = mandate;
×
1552
    return this;
×
1553
  }
1554

1555
   /**
1556
   * Get mandate
1557
   * @return mandate
1558
  **/
1559
  @ApiModelProperty(value = "")
1560
  @JsonProperty(JSON_PROPERTY_MANDATE)
1561
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1562

1563
  public Mandate getMandate() {
1564
    return mandate;
1✔
1565
  }
1566

1567

1568
  @JsonProperty(JSON_PROPERTY_MANDATE)
1569
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1570
  public void setMandate(Mandate mandate) {
1571
    this.mandate = mandate;
×
1572
  }
×
1573

1574

1575
  public DonationPaymentRequest mcc(String mcc) {
1576
    this.mcc = mcc;
×
1577
    return this;
×
1578
  }
1579

1580
   /**
1581
   * 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.
1582
   * @return mcc
1583
  **/
1584
  @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.")
1585
  @JsonProperty(JSON_PROPERTY_MCC)
1586
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1587

1588
  public String getMcc() {
1589
    return mcc;
1✔
1590
  }
1591

1592

1593
  @JsonProperty(JSON_PROPERTY_MCC)
1594
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1595
  public void setMcc(String mcc) {
1596
    this.mcc = mcc;
×
1597
  }
×
1598

1599

1600
  public DonationPaymentRequest merchantAccount(String merchantAccount) {
1601
    this.merchantAccount = merchantAccount;
×
1602
    return this;
×
1603
  }
1604

1605
   /**
1606
   * The merchant account identifier, with which you want to process the transaction.
1607
   * @return merchantAccount
1608
  **/
1609
  @ApiModelProperty(required = true, value = "The merchant account identifier, with which you want to process the transaction.")
1610
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
1611
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1612

1613
  public String getMerchantAccount() {
1614
    return merchantAccount;
1✔
1615
  }
1616

1617

1618
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
1619
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1620
  public void setMerchantAccount(String merchantAccount) {
1621
    this.merchantAccount = merchantAccount;
1✔
1622
  }
1✔
1623

1624

1625
  public DonationPaymentRequest merchantOrderReference(String merchantOrderReference) {
1626
    this.merchantOrderReference = merchantOrderReference;
×
1627
    return this;
×
1628
  }
1629

1630
   /**
1631
   * 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;.
1632
   * @return merchantOrderReference
1633
  **/
1634
  @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`.")
1635
  @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE)
1636
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1637

1638
  public String getMerchantOrderReference() {
1639
    return merchantOrderReference;
1✔
1640
  }
1641

1642

1643
  @JsonProperty(JSON_PROPERTY_MERCHANT_ORDER_REFERENCE)
1644
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1645
  public void setMerchantOrderReference(String merchantOrderReference) {
1646
    this.merchantOrderReference = merchantOrderReference;
×
1647
  }
×
1648

1649

1650
  public DonationPaymentRequest merchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) {
1651
    this.merchantRiskIndicator = merchantRiskIndicator;
×
1652
    return this;
×
1653
  }
1654

1655
   /**
1656
   * Get merchantRiskIndicator
1657
   * @return merchantRiskIndicator
1658
  **/
1659
  @ApiModelProperty(value = "")
1660
  @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR)
1661
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1662

1663
  public MerchantRiskIndicator getMerchantRiskIndicator() {
1664
    return merchantRiskIndicator;
1✔
1665
  }
1666

1667

1668
  @JsonProperty(JSON_PROPERTY_MERCHANT_RISK_INDICATOR)
1669
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1670
  public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) {
1671
    this.merchantRiskIndicator = merchantRiskIndicator;
×
1672
  }
×
1673

1674

1675
  public DonationPaymentRequest metadata(Map<String, String> metadata) {
1676
    this.metadata = metadata;
×
1677
    return this;
×
1678
  }
1679

1680
  public DonationPaymentRequest putMetadataItem(String key, String metadataItem) {
1681
    if (this.metadata == null) {
×
1682
      this.metadata = new HashMap<>();
×
1683
    }
1684
    this.metadata.put(key, metadataItem);
×
1685
    return this;
×
1686
  }
1687

1688
   /**
1689
   * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \&quot;177\&quot; error occurs: \&quot;Metadata size exceeds limit\&quot;. * Maximum 20 characters per key. * Maximum 80 characters per value. 
1690
   * @return metadata
1691
  **/
1692
  @ApiModelProperty(value = "Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. ")
1693
  @JsonProperty(JSON_PROPERTY_METADATA)
1694
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1695

1696
  public Map<String, String> getMetadata() {
1697
    return metadata;
1✔
1698
  }
1699

1700

1701
  @JsonProperty(JSON_PROPERTY_METADATA)
1702
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1703
  public void setMetadata(Map<String, String> metadata) {
1704
    this.metadata = metadata;
×
1705
  }
×
1706

1707

1708
  public DonationPaymentRequest mpiData(ThreeDSecureData mpiData) {
1709
    this.mpiData = mpiData;
×
1710
    return this;
×
1711
  }
1712

1713
   /**
1714
   * Get mpiData
1715
   * @return mpiData
1716
  **/
1717
  @ApiModelProperty(value = "")
1718
  @JsonProperty(JSON_PROPERTY_MPI_DATA)
1719
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1720

1721
  public ThreeDSecureData getMpiData() {
1722
    return mpiData;
1✔
1723
  }
1724

1725

1726
  @JsonProperty(JSON_PROPERTY_MPI_DATA)
1727
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1728
  public void setMpiData(ThreeDSecureData mpiData) {
1729
    this.mpiData = mpiData;
×
1730
  }
×
1731

1732

1733
  public DonationPaymentRequest order(EncryptedOrderData order) {
1734
    this.order = order;
×
1735
    return this;
×
1736
  }
1737

1738
   /**
1739
   * Get order
1740
   * @return order
1741
  **/
1742
  @ApiModelProperty(value = "")
1743
  @JsonProperty(JSON_PROPERTY_ORDER)
1744
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1745

1746
  public EncryptedOrderData getOrder() {
1747
    return order;
1✔
1748
  }
1749

1750

1751
  @JsonProperty(JSON_PROPERTY_ORDER)
1752
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1753
  public void setOrder(EncryptedOrderData order) {
1754
    this.order = order;
×
1755
  }
×
1756

1757

1758
  public DonationPaymentRequest orderReference(String orderReference) {
1759
    this.orderReference = orderReference;
×
1760
    return this;
×
1761
  }
1762

1763
   /**
1764
   * When you are doing multiple partial (gift card) payments, this is the &#x60;pspReference&#x60; of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the &#x60;merchantOrderReference&#x60;instead.
1765
   * @return orderReference
1766
  **/
1767
  @ApiModelProperty(value = "When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead.")
1768
  @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE)
1769
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1770

1771
  public String getOrderReference() {
1772
    return orderReference;
1✔
1773
  }
1774

1775

1776
  @JsonProperty(JSON_PROPERTY_ORDER_REFERENCE)
1777
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1778
  public void setOrderReference(String orderReference) {
1779
    this.orderReference = orderReference;
×
1780
  }
×
1781

1782

1783
  public DonationPaymentRequest origin(String origin) {
1784
    this.origin = origin;
×
1785
    return this;
×
1786
  }
1787

1788
   /**
1789
   * Required for the 3D Secure 2 &#x60;channel&#x60; **Web** integration.  Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from.
1790
   * @return origin
1791
  **/
1792
  @ApiModelProperty(value = "Required for the 3D Secure 2 `channel` **Web** integration.  Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from.")
1793
  @JsonProperty(JSON_PROPERTY_ORIGIN)
1794
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1795

1796
  public String getOrigin() {
1797
    return origin;
1✔
1798
  }
1799

1800

1801
  @JsonProperty(JSON_PROPERTY_ORIGIN)
1802
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1803
  public void setOrigin(String origin) {
1804
    this.origin = origin;
×
1805
  }
×
1806

1807

1808
  public DonationPaymentRequest paymentMethod(DonationPaymentMethod paymentMethod) {
1809
    this.paymentMethod = paymentMethod;
1✔
1810
    return this;
1✔
1811
  }
1812

1813
   /**
1814
   * Get paymentMethod
1815
   * @return paymentMethod
1816
  **/
1817
  @ApiModelProperty(required = true, value = "")
1818
  @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD)
1819
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1820

1821
  public DonationPaymentMethod getPaymentMethod() {
1822
    return paymentMethod;
1✔
1823
  }
1824

1825

1826
  @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD)
1827
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1828
  public void setPaymentMethod(DonationPaymentMethod paymentMethod) {
1829
    this.paymentMethod = paymentMethod;
×
1830
  }
×
1831

1832

1833
  public DonationPaymentRequest platformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) {
1834
    this.platformChargebackLogic = platformChargebackLogic;
×
1835
    return this;
×
1836
  }
1837

1838
   /**
1839
   * Get platformChargebackLogic
1840
   * @return platformChargebackLogic
1841
  **/
1842
  @ApiModelProperty(value = "")
1843
  @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC)
1844
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1845

1846
  public PlatformChargebackLogic getPlatformChargebackLogic() {
1847
    return platformChargebackLogic;
1✔
1848
  }
1849

1850

1851
  @JsonProperty(JSON_PROPERTY_PLATFORM_CHARGEBACK_LOGIC)
1852
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1853
  public void setPlatformChargebackLogic(PlatformChargebackLogic platformChargebackLogic) {
1854
    this.platformChargebackLogic = platformChargebackLogic;
×
1855
  }
×
1856

1857

1858
  public DonationPaymentRequest recurringExpiry(String recurringExpiry) {
1859
    this.recurringExpiry = recurringExpiry;
×
1860
    return this;
×
1861
  }
1862

1863
   /**
1864
   * Date after which no further authorisations shall be performed. Only for 3D Secure 2.
1865
   * @return recurringExpiry
1866
  **/
1867
  @ApiModelProperty(value = "Date after which no further authorisations shall be performed. Only for 3D Secure 2.")
1868
  @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)
1869
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1870

1871
  public String getRecurringExpiry() {
1872
    return recurringExpiry;
1✔
1873
  }
1874

1875

1876
  @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)
1877
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1878
  public void setRecurringExpiry(String recurringExpiry) {
1879
    this.recurringExpiry = recurringExpiry;
×
1880
  }
×
1881

1882

1883
  public DonationPaymentRequest recurringFrequency(String recurringFrequency) {
1884
    this.recurringFrequency = recurringFrequency;
×
1885
    return this;
×
1886
  }
1887

1888
   /**
1889
   * Minimum number of days between authorisations. Only for 3D Secure 2.
1890
   * @return recurringFrequency
1891
  **/
1892
  @ApiModelProperty(value = "Minimum number of days between authorisations. Only for 3D Secure 2.")
1893
  @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY)
1894
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1895

1896
  public String getRecurringFrequency() {
1897
    return recurringFrequency;
1✔
1898
  }
1899

1900

1901
  @JsonProperty(JSON_PROPERTY_RECURRING_FREQUENCY)
1902
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1903
  public void setRecurringFrequency(String recurringFrequency) {
1904
    this.recurringFrequency = recurringFrequency;
×
1905
  }
×
1906

1907

1908
  public DonationPaymentRequest recurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) {
1909
    this.recurringProcessingModel = recurringProcessingModel;
×
1910
    return this;
×
1911
  }
1912

1913
   /**
1914
   * Defines a recurring payment type. Required when creating a token to store payment details or using stored 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. 
1915
   * @return recurringProcessingModel
1916
  **/
1917
  @ApiModelProperty(value = "Defines a recurring payment type. Required when creating a token to store payment details or using stored 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. ")
1918
  @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL)
1919
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1920

1921
  public RecurringProcessingModelEnum getRecurringProcessingModel() {
1922
    return recurringProcessingModel;
1✔
1923
  }
1924

1925

1926
  @JsonProperty(JSON_PROPERTY_RECURRING_PROCESSING_MODEL)
1927
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1928
  public void setRecurringProcessingModel(RecurringProcessingModelEnum recurringProcessingModel) {
1929
    this.recurringProcessingModel = recurringProcessingModel;
×
1930
  }
×
1931

1932

1933
  public DonationPaymentRequest redirectFromIssuerMethod(String redirectFromIssuerMethod) {
1934
    this.redirectFromIssuerMethod = redirectFromIssuerMethod;
×
1935
    return this;
×
1936
  }
1937

1938
   /**
1939
   * Specifies the redirect method (GET or POST) when redirecting back from the issuer.
1940
   * @return redirectFromIssuerMethod
1941
  **/
1942
  @ApiModelProperty(value = "Specifies the redirect method (GET or POST) when redirecting back from the issuer.")
1943
  @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD)
1944
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1945

1946
  public String getRedirectFromIssuerMethod() {
1947
    return redirectFromIssuerMethod;
1✔
1948
  }
1949

1950

1951
  @JsonProperty(JSON_PROPERTY_REDIRECT_FROM_ISSUER_METHOD)
1952
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1953
  public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod) {
1954
    this.redirectFromIssuerMethod = redirectFromIssuerMethod;
×
1955
  }
×
1956

1957

1958
  public DonationPaymentRequest redirectToIssuerMethod(String redirectToIssuerMethod) {
1959
    this.redirectToIssuerMethod = redirectToIssuerMethod;
×
1960
    return this;
×
1961
  }
1962

1963
   /**
1964
   * Specifies the redirect method (GET or POST) when redirecting to the issuer.
1965
   * @return redirectToIssuerMethod
1966
  **/
1967
  @ApiModelProperty(value = "Specifies the redirect method (GET or POST) when redirecting to the issuer.")
1968
  @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD)
1969
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1970

1971
  public String getRedirectToIssuerMethod() {
1972
    return redirectToIssuerMethod;
1✔
1973
  }
1974

1975

1976
  @JsonProperty(JSON_PROPERTY_REDIRECT_TO_ISSUER_METHOD)
1977
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1978
  public void setRedirectToIssuerMethod(String redirectToIssuerMethod) {
1979
    this.redirectToIssuerMethod = redirectToIssuerMethod;
×
1980
  }
×
1981

1982

1983
  public DonationPaymentRequest reference(String reference) {
1984
    this.reference = reference;
×
1985
    return this;
×
1986
  }
1987

1988
   /**
1989
   * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\&quot;-\&quot;). Maximum length: 80 characters.
1990
   * @return reference
1991
  **/
1992
  @ApiModelProperty(required = true, value = "The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.")
1993
  @JsonProperty(JSON_PROPERTY_REFERENCE)
1994
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1995

1996
  public String getReference() {
1997
    return reference;
1✔
1998
  }
1999

2000

2001
  @JsonProperty(JSON_PROPERTY_REFERENCE)
2002
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2003
  public void setReference(String reference) {
2004
    this.reference = reference;
1✔
2005
  }
1✔
2006

2007

2008
  public DonationPaymentRequest returnUrl(String returnUrl) {
2009
    this.returnUrl = returnUrl;
×
2010
    return this;
×
2011
  }
2012

2013
   /**
2014
   * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol &#x60;http://&#x60; or &#x60;https://&#x60;. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: &#x60;https://your-company.com/checkout?shopperOrder&#x3D;12xy&#x60; * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: &#x60;my-app://&#x60; * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: &#x60;my-app://your.package.name&#x60;
2015
   * @return returnUrl
2016
  **/
2017
  @ApiModelProperty(required = true, value = "The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`")
2018
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
2019
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2020

2021
  public String getReturnUrl() {
2022
    return returnUrl;
1✔
2023
  }
2024

2025

2026
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
2027
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2028
  public void setReturnUrl(String returnUrl) {
2029
    this.returnUrl = returnUrl;
1✔
2030
  }
1✔
2031

2032

2033
  public DonationPaymentRequest riskData(RiskData riskData) {
2034
    this.riskData = riskData;
×
2035
    return this;
×
2036
  }
2037

2038
   /**
2039
   * Get riskData
2040
   * @return riskData
2041
  **/
2042
  @ApiModelProperty(value = "")
2043
  @JsonProperty(JSON_PROPERTY_RISK_DATA)
2044
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2045

2046
  public RiskData getRiskData() {
2047
    return riskData;
1✔
2048
  }
2049

2050

2051
  @JsonProperty(JSON_PROPERTY_RISK_DATA)
2052
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2053
  public void setRiskData(RiskData riskData) {
2054
    this.riskData = riskData;
×
2055
  }
×
2056

2057

2058
  public DonationPaymentRequest selectedRecurringDetailReference(String selectedRecurringDetailReference) {
2059
    this.selectedRecurringDetailReference = selectedRecurringDetailReference;
×
2060
    return this;
×
2061
  }
2062

2063
   /**
2064
   * The &#x60;recurringDetailReference&#x60; you want to use for this payment. The value &#x60;LATEST&#x60; can be used to select the most recently stored recurring detail.
2065
   * @return selectedRecurringDetailReference
2066
  **/
2067
  @ApiModelProperty(value = "The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.")
2068
  @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE)
2069
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2070

2071
  public String getSelectedRecurringDetailReference() {
2072
    return selectedRecurringDetailReference;
1✔
2073
  }
2074

2075

2076
  @JsonProperty(JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE)
2077
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2078
  public void setSelectedRecurringDetailReference(String selectedRecurringDetailReference) {
2079
    this.selectedRecurringDetailReference = selectedRecurringDetailReference;
×
2080
  }
×
2081

2082

2083
  public DonationPaymentRequest sessionValidity(String sessionValidity) {
2084
    this.sessionValidity = sessionValidity;
×
2085
    return this;
×
2086
  }
2087

2088
   /**
2089
   * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format.  For example: 2020-07-18T15:42:40.428+01:00
2090
   * @return sessionValidity
2091
  **/
2092
  @ApiModelProperty(value = "The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format.  For example: 2020-07-18T15:42:40.428+01:00")
2093
  @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY)
2094
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2095

2096
  public String getSessionValidity() {
2097
    return sessionValidity;
1✔
2098
  }
2099

2100

2101
  @JsonProperty(JSON_PROPERTY_SESSION_VALIDITY)
2102
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2103
  public void setSessionValidity(String sessionValidity) {
2104
    this.sessionValidity = sessionValidity;
×
2105
  }
×
2106

2107

2108
  public DonationPaymentRequest shopperEmail(String shopperEmail) {
2109
    this.shopperEmail = shopperEmail;
×
2110
    return this;
×
2111
  }
2112

2113
   /**
2114
   * The shopper&#39;s email address. We recommend that you provide this data, as it is used in velocity fraud checks. &gt; For 3D Secure 2 transactions, schemes require &#x60;shopperEmail&#x60; for all browser-based and mobile implementations.
2115
   * @return shopperEmail
2116
  **/
2117
  @ApiModelProperty(value = "The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations.")
2118
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
2119
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2120

2121
  public String getShopperEmail() {
2122
    return shopperEmail;
1✔
2123
  }
2124

2125

2126
  @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL)
2127
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2128
  public void setShopperEmail(String shopperEmail) {
2129
    this.shopperEmail = shopperEmail;
×
2130
  }
×
2131

2132

2133
  public DonationPaymentRequest shopperIP(String shopperIP) {
2134
    this.shopperIP = shopperIP;
×
2135
    return this;
×
2136
  }
2137

2138
   /**
2139
   * 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).
2140
   * @return shopperIP
2141
  **/
2142
  @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).")
2143
  @JsonProperty(JSON_PROPERTY_SHOPPER_I_P)
2144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2145

2146
  public String getShopperIP() {
2147
    return shopperIP;
1✔
2148
  }
2149

2150

2151
  @JsonProperty(JSON_PROPERTY_SHOPPER_I_P)
2152
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2153
  public void setShopperIP(String shopperIP) {
2154
    this.shopperIP = shopperIP;
×
2155
  }
×
2156

2157

2158
  public DonationPaymentRequest shopperInteraction(ShopperInteractionEnum shopperInteraction) {
2159
    this.shopperInteraction = shopperInteraction;
×
2160
    return this;
×
2161
  }
2162

2163
   /**
2164
   * 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.
2165
   * @return shopperInteraction
2166
  **/
2167
  @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.")
2168
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
2169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2170

2171
  public ShopperInteractionEnum getShopperInteraction() {
2172
    return shopperInteraction;
1✔
2173
  }
2174

2175

2176
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
2177
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2178
  public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) {
2179
    this.shopperInteraction = shopperInteraction;
×
2180
  }
×
2181

2182

2183
  public DonationPaymentRequest shopperLocale(String shopperLocale) {
2184
    this.shopperLocale = shopperLocale;
×
2185
    return this;
×
2186
  }
2187

2188
   /**
2189
   * The combination of a language code and a country code to specify the language to be used in the payment.
2190
   * @return shopperLocale
2191
  **/
2192
  @ApiModelProperty(value = "The combination of a language code and a country code to specify the language to be used in the payment.")
2193
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
2194
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2195

2196
  public String getShopperLocale() {
2197
    return shopperLocale;
1✔
2198
  }
2199

2200

2201
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
2202
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2203
  public void setShopperLocale(String shopperLocale) {
2204
    this.shopperLocale = shopperLocale;
×
2205
  }
×
2206

2207

2208
  public DonationPaymentRequest shopperName(Name shopperName) {
2209
    this.shopperName = shopperName;
×
2210
    return this;
×
2211
  }
2212

2213
   /**
2214
   * Get shopperName
2215
   * @return shopperName
2216
  **/
2217
  @ApiModelProperty(value = "")
2218
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
2219
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2220

2221
  public Name getShopperName() {
2222
    return shopperName;
1✔
2223
  }
2224

2225

2226
  @JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
2227
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2228
  public void setShopperName(Name shopperName) {
2229
    this.shopperName = shopperName;
×
2230
  }
×
2231

2232

2233
  public DonationPaymentRequest shopperReference(String shopperReference) {
2234
    this.shopperReference = shopperReference;
×
2235
    return this;
×
2236
  }
2237

2238
   /**
2239
   * Required for recurring payments.  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.
2240
   * @return shopperReference
2241
  **/
2242
  @ApiModelProperty(value = "Required for recurring payments.  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.")
2243
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
2244
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2245

2246
  public String getShopperReference() {
2247
    return shopperReference;
1✔
2248
  }
2249

2250

2251
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
2252
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2253
  public void setShopperReference(String shopperReference) {
2254
    this.shopperReference = shopperReference;
×
2255
  }
×
2256

2257

2258
  public DonationPaymentRequest shopperStatement(String shopperStatement) {
2259
    this.shopperStatement = shopperStatement;
×
2260
    return this;
×
2261
  }
2262

2263
   /**
2264
   * 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; _ - ? + * /_**.
2265
   * @return shopperStatement
2266
  **/
2267
  @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 **. , ' _ - ? + * /_**.")
2268
  @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
2269
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2270

2271
  public String getShopperStatement() {
2272
    return shopperStatement;
1✔
2273
  }
2274

2275

2276
  @JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
2277
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2278
  public void setShopperStatement(String shopperStatement) {
2279
    this.shopperStatement = shopperStatement;
×
2280
  }
×
2281

2282

2283
  public DonationPaymentRequest socialSecurityNumber(String socialSecurityNumber) {
2284
    this.socialSecurityNumber = socialSecurityNumber;
×
2285
    return this;
×
2286
  }
2287

2288
   /**
2289
   * The shopper&#39;s social security number.
2290
   * @return socialSecurityNumber
2291
  **/
2292
  @ApiModelProperty(value = "The shopper's social security number.")
2293
  @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER)
2294
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2295

2296
  public String getSocialSecurityNumber() {
2297
    return socialSecurityNumber;
1✔
2298
  }
2299

2300

2301
  @JsonProperty(JSON_PROPERTY_SOCIAL_SECURITY_NUMBER)
2302
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2303
  public void setSocialSecurityNumber(String socialSecurityNumber) {
2304
    this.socialSecurityNumber = socialSecurityNumber;
×
2305
  }
×
2306

2307

2308
  public DonationPaymentRequest splits(List<Split> splits) {
2309
    this.splits = splits;
×
2310
    return this;
×
2311
  }
2312

2313
  public DonationPaymentRequest addSplitsItem(Split splitsItem) {
2314
    if (this.splits == null) {
×
2315
      this.splits = new ArrayList<>();
×
2316
    }
2317
    this.splits.add(splitsItem);
×
2318
    return this;
×
2319
  }
2320

2321
   /**
2322
   * 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).
2323
   * @return splits
2324
  **/
2325
  @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).")
2326
  @JsonProperty(JSON_PROPERTY_SPLITS)
2327
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2328

2329
  public List<Split> getSplits() {
2330
    return splits;
1✔
2331
  }
2332

2333

2334
  @JsonProperty(JSON_PROPERTY_SPLITS)
2335
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2336
  public void setSplits(List<Split> splits) {
2337
    this.splits = splits;
×
2338
  }
×
2339

2340

2341
  public DonationPaymentRequest store(String store) {
2342
    this.store = store;
×
2343
    return this;
×
2344
  }
2345

2346
   /**
2347
   * 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).
2348
   * @return store
2349
  **/
2350
  @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).")
2351
  @JsonProperty(JSON_PROPERTY_STORE)
2352
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2353

2354
  public String getStore() {
2355
    return store;
1✔
2356
  }
2357

2358

2359
  @JsonProperty(JSON_PROPERTY_STORE)
2360
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2361
  public void setStore(String store) {
2362
    this.store = store;
×
2363
  }
×
2364

2365

2366
  public DonationPaymentRequest storePaymentMethod(Boolean storePaymentMethod) {
2367
    this.storePaymentMethod = storePaymentMethod;
×
2368
    return this;
×
2369
  }
2370

2371
   /**
2372
   * When true and &#x60;shopperReference&#x60; is provided, the payment details will be stored.
2373
   * @return storePaymentMethod
2374
  **/
2375
  @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored.")
2376
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD)
2377
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2378

2379
  public Boolean getStorePaymentMethod() {
2380
    return storePaymentMethod;
1✔
2381
  }
2382

2383

2384
  @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD)
2385
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2386
  public void setStorePaymentMethod(Boolean storePaymentMethod) {
2387
    this.storePaymentMethod = storePaymentMethod;
×
2388
  }
×
2389

2390

2391
  public DonationPaymentRequest telephoneNumber(String telephoneNumber) {
2392
    this.telephoneNumber = telephoneNumber;
×
2393
    return this;
×
2394
  }
2395

2396
   /**
2397
   * The shopper&#39;s telephone number.
2398
   * @return telephoneNumber
2399
  **/
2400
  @ApiModelProperty(value = "The shopper's telephone number.")
2401
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
2402
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2403

2404
  public String getTelephoneNumber() {
2405
    return telephoneNumber;
1✔
2406
  }
2407

2408

2409
  @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER)
2410
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2411
  public void setTelephoneNumber(String telephoneNumber) {
2412
    this.telephoneNumber = telephoneNumber;
×
2413
  }
×
2414

2415

2416
  public DonationPaymentRequest threeDS2RequestData(ThreeDS2RequestData2 threeDS2RequestData) {
2417
    this.threeDS2RequestData = threeDS2RequestData;
×
2418
    return this;
×
2419
  }
2420

2421
   /**
2422
   * Get threeDS2RequestData
2423
   * @return threeDS2RequestData
2424
  **/
2425
  @ApiModelProperty(value = "")
2426
  @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA)
2427
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2428

2429
  public ThreeDS2RequestData2 getThreeDS2RequestData() {
2430
    return threeDS2RequestData;
1✔
2431
  }
2432

2433

2434
  @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA)
2435
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2436
  public void setThreeDS2RequestData(ThreeDS2RequestData2 threeDS2RequestData) {
2437
    this.threeDS2RequestData = threeDS2RequestData;
×
2438
  }
×
2439

2440

2441
  public DonationPaymentRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) {
2442
    this.threeDSAuthenticationOnly = threeDSAuthenticationOnly;
×
2443
    return this;
×
2444
  }
2445

2446
   /**
2447
   * 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.
2448
   * @return threeDSAuthenticationOnly
2449
   * @deprecated
2450
  **/
2451
  @Deprecated
2452
  @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.")
2453
  @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY)
2454
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2455

2456
  public Boolean getThreeDSAuthenticationOnly() {
2457
    return threeDSAuthenticationOnly;
1✔
2458
  }
2459

2460

2461
  @Deprecated
2462
  @JsonProperty(JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY)
2463
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2464
  public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) {
2465
    this.threeDSAuthenticationOnly = threeDSAuthenticationOnly;
×
2466
  }
×
2467

2468

2469
  public DonationPaymentRequest trustedShopper(Boolean trustedShopper) {
2470
    this.trustedShopper = trustedShopper;
×
2471
    return this;
×
2472
  }
2473

2474
   /**
2475
   * Set to true if the payment should be routed to a trusted MID.
2476
   * @return trustedShopper
2477
  **/
2478
  @ApiModelProperty(value = "Set to true if the payment should be routed to a trusted MID.")
2479
  @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER)
2480
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2481

2482
  public Boolean getTrustedShopper() {
2483
    return trustedShopper;
1✔
2484
  }
2485

2486

2487
  @JsonProperty(JSON_PROPERTY_TRUSTED_SHOPPER)
2488
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2489
  public void setTrustedShopper(Boolean trustedShopper) {
2490
    this.trustedShopper = trustedShopper;
×
2491
  }
×
2492

2493

2494
  /**
2495
   * Return true if this DonationPaymentRequest object is equal to o.
2496
   */
2497
  @Override
2498
  public boolean equals(Object o) {
2499
    if (this == o) {
×
2500
      return true;
×
2501
    }
2502
    if (o == null || getClass() != o.getClass()) {
×
2503
      return false;
×
2504
    }
2505
    DonationPaymentRequest donationPaymentRequest = (DonationPaymentRequest) o;
×
2506
    return Objects.equals(this.accountInfo, donationPaymentRequest.accountInfo) &&
×
2507
        Objects.equals(this.additionalAmount, donationPaymentRequest.additionalAmount) &&
×
2508
        Objects.equals(this.additionalData, donationPaymentRequest.additionalData) &&
×
2509
        Objects.equals(this.allowedPaymentMethods, donationPaymentRequest.allowedPaymentMethods) &&
×
2510
        Objects.equals(this.amount, donationPaymentRequest.amount) &&
×
2511
        Objects.equals(this.applicationInfo, donationPaymentRequest.applicationInfo) &&
×
2512
        Objects.equals(this.authenticationData, donationPaymentRequest.authenticationData) &&
×
2513
        Objects.equals(this.billingAddress, donationPaymentRequest.billingAddress) &&
×
2514
        Objects.equals(this.blockedPaymentMethods, donationPaymentRequest.blockedPaymentMethods) &&
×
2515
        Objects.equals(this.browserInfo, donationPaymentRequest.browserInfo) &&
×
2516
        Objects.equals(this.captureDelayHours, donationPaymentRequest.captureDelayHours) &&
×
2517
        Objects.equals(this.channel, donationPaymentRequest.channel) &&
×
2518
        Objects.equals(this.checkoutAttemptId, donationPaymentRequest.checkoutAttemptId) &&
×
2519
        Objects.equals(this.company, donationPaymentRequest.company) &&
×
2520
        Objects.equals(this.conversionId, donationPaymentRequest.conversionId) &&
×
2521
        Objects.equals(this.countryCode, donationPaymentRequest.countryCode) &&
×
2522
        Objects.equals(this.dateOfBirth, donationPaymentRequest.dateOfBirth) &&
×
2523
        Objects.equals(this.dccQuote, donationPaymentRequest.dccQuote) &&
×
2524
        Objects.equals(this.deliverAt, donationPaymentRequest.deliverAt) &&
×
2525
        Objects.equals(this.deliveryAddress, donationPaymentRequest.deliveryAddress) &&
×
2526
        Objects.equals(this.deliveryDate, donationPaymentRequest.deliveryDate) &&
×
2527
        Objects.equals(this.deviceFingerprint, donationPaymentRequest.deviceFingerprint) &&
×
2528
        Objects.equals(this.donationAccount, donationPaymentRequest.donationAccount) &&
×
2529
        Objects.equals(this.donationOriginalPspReference, donationPaymentRequest.donationOriginalPspReference) &&
×
2530
        Objects.equals(this.donationToken, donationPaymentRequest.donationToken) &&
×
2531
        Objects.equals(this.enableOneClick, donationPaymentRequest.enableOneClick) &&
×
2532
        Objects.equals(this.enablePayOut, donationPaymentRequest.enablePayOut) &&
×
2533
        Objects.equals(this.enableRecurring, donationPaymentRequest.enableRecurring) &&
×
2534
        Objects.equals(this.entityType, donationPaymentRequest.entityType) &&
×
2535
        Objects.equals(this.fraudOffset, donationPaymentRequest.fraudOffset) &&
×
2536
        Objects.equals(this.fundOrigin, donationPaymentRequest.fundOrigin) &&
×
2537
        Objects.equals(this.fundRecipient, donationPaymentRequest.fundRecipient) &&
×
2538
        Objects.equals(this.fundingSource, donationPaymentRequest.fundingSource) &&
×
2539
        Objects.equals(this.industryUsage, donationPaymentRequest.industryUsage) &&
×
2540
        Objects.equals(this.installments, donationPaymentRequest.installments) &&
×
2541
        Objects.equals(this.lineItems, donationPaymentRequest.lineItems) &&
×
2542
        Objects.equals(this.localizedShopperStatement, donationPaymentRequest.localizedShopperStatement) &&
×
2543
        Objects.equals(this.mandate, donationPaymentRequest.mandate) &&
×
2544
        Objects.equals(this.mcc, donationPaymentRequest.mcc) &&
×
2545
        Objects.equals(this.merchantAccount, donationPaymentRequest.merchantAccount) &&
×
2546
        Objects.equals(this.merchantOrderReference, donationPaymentRequest.merchantOrderReference) &&
×
2547
        Objects.equals(this.merchantRiskIndicator, donationPaymentRequest.merchantRiskIndicator) &&
×
2548
        Objects.equals(this.metadata, donationPaymentRequest.metadata) &&
×
2549
        Objects.equals(this.mpiData, donationPaymentRequest.mpiData) &&
×
2550
        Objects.equals(this.order, donationPaymentRequest.order) &&
×
2551
        Objects.equals(this.orderReference, donationPaymentRequest.orderReference) &&
×
2552
        Objects.equals(this.origin, donationPaymentRequest.origin) &&
×
2553
        Objects.equals(this.paymentMethod, donationPaymentRequest.paymentMethod) &&
×
2554
        Objects.equals(this.platformChargebackLogic, donationPaymentRequest.platformChargebackLogic) &&
×
2555
        Objects.equals(this.recurringExpiry, donationPaymentRequest.recurringExpiry) &&
×
2556
        Objects.equals(this.recurringFrequency, donationPaymentRequest.recurringFrequency) &&
×
2557
        Objects.equals(this.recurringProcessingModel, donationPaymentRequest.recurringProcessingModel) &&
×
2558
        Objects.equals(this.redirectFromIssuerMethod, donationPaymentRequest.redirectFromIssuerMethod) &&
×
2559
        Objects.equals(this.redirectToIssuerMethod, donationPaymentRequest.redirectToIssuerMethod) &&
×
2560
        Objects.equals(this.reference, donationPaymentRequest.reference) &&
×
2561
        Objects.equals(this.returnUrl, donationPaymentRequest.returnUrl) &&
×
2562
        Objects.equals(this.riskData, donationPaymentRequest.riskData) &&
×
2563
        Objects.equals(this.selectedRecurringDetailReference, donationPaymentRequest.selectedRecurringDetailReference) &&
×
2564
        Objects.equals(this.sessionValidity, donationPaymentRequest.sessionValidity) &&
×
2565
        Objects.equals(this.shopperEmail, donationPaymentRequest.shopperEmail) &&
×
2566
        Objects.equals(this.shopperIP, donationPaymentRequest.shopperIP) &&
×
2567
        Objects.equals(this.shopperInteraction, donationPaymentRequest.shopperInteraction) &&
×
2568
        Objects.equals(this.shopperLocale, donationPaymentRequest.shopperLocale) &&
×
2569
        Objects.equals(this.shopperName, donationPaymentRequest.shopperName) &&
×
2570
        Objects.equals(this.shopperReference, donationPaymentRequest.shopperReference) &&
×
2571
        Objects.equals(this.shopperStatement, donationPaymentRequest.shopperStatement) &&
×
2572
        Objects.equals(this.socialSecurityNumber, donationPaymentRequest.socialSecurityNumber) &&
×
2573
        Objects.equals(this.splits, donationPaymentRequest.splits) &&
×
2574
        Objects.equals(this.store, donationPaymentRequest.store) &&
×
2575
        Objects.equals(this.storePaymentMethod, donationPaymentRequest.storePaymentMethod) &&
×
2576
        Objects.equals(this.telephoneNumber, donationPaymentRequest.telephoneNumber) &&
×
2577
        Objects.equals(this.threeDS2RequestData, donationPaymentRequest.threeDS2RequestData) &&
×
2578
        Objects.equals(this.threeDSAuthenticationOnly, donationPaymentRequest.threeDSAuthenticationOnly) &&
×
2579
        Objects.equals(this.trustedShopper, donationPaymentRequest.trustedShopper);
×
2580
  }
2581

2582
  @Override
2583
  public int hashCode() {
2584
    return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, browserInfo, captureDelayHours, channel, checkoutAttemptId, company, conversionId, countryCode, dateOfBirth, dccQuote, deliverAt, deliveryAddress, deliveryDate, deviceFingerprint, donationAccount, donationOriginalPspReference, donationToken, enableOneClick, enablePayOut, enableRecurring, entityType, fraudOffset, fundOrigin, fundRecipient, fundingSource, industryUsage, installments, lineItems, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, merchantRiskIndicator, metadata, mpiData, order, orderReference, origin, paymentMethod, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, selectedRecurringDetailReference, sessionValidity, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, storePaymentMethod, telephoneNumber, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper);
×
2585
  }
2586

2587
  @Override
2588
  public String toString() {
2589
    StringBuilder sb = new StringBuilder();
×
2590
    sb.append("class DonationPaymentRequest {\n");
×
2591
    sb.append("    accountInfo: ").append(toIndentedString(accountInfo)).append("\n");
×
2592
    sb.append("    additionalAmount: ").append(toIndentedString(additionalAmount)).append("\n");
×
2593
    sb.append("    additionalData: ").append(toIndentedString(additionalData)).append("\n");
×
2594
    sb.append("    allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n");
×
2595
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
2596
    sb.append("    applicationInfo: ").append(toIndentedString(applicationInfo)).append("\n");
×
2597
    sb.append("    authenticationData: ").append(toIndentedString(authenticationData)).append("\n");
×
2598
    sb.append("    billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
×
2599
    sb.append("    blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n");
×
2600
    sb.append("    browserInfo: ").append(toIndentedString(browserInfo)).append("\n");
×
2601
    sb.append("    captureDelayHours: ").append(toIndentedString(captureDelayHours)).append("\n");
×
2602
    sb.append("    channel: ").append(toIndentedString(channel)).append("\n");
×
2603
    sb.append("    checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
×
2604
    sb.append("    company: ").append(toIndentedString(company)).append("\n");
×
2605
    sb.append("    conversionId: ").append(toIndentedString(conversionId)).append("\n");
×
2606
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
×
2607
    sb.append("    dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n");
×
2608
    sb.append("    dccQuote: ").append(toIndentedString(dccQuote)).append("\n");
×
2609
    sb.append("    deliverAt: ").append(toIndentedString(deliverAt)).append("\n");
×
2610
    sb.append("    deliveryAddress: ").append(toIndentedString(deliveryAddress)).append("\n");
×
2611
    sb.append("    deliveryDate: ").append(toIndentedString(deliveryDate)).append("\n");
×
2612
    sb.append("    deviceFingerprint: ").append(toIndentedString(deviceFingerprint)).append("\n");
×
2613
    sb.append("    donationAccount: ").append(toIndentedString(donationAccount)).append("\n");
×
2614
    sb.append("    donationOriginalPspReference: ").append(toIndentedString(donationOriginalPspReference)).append("\n");
×
2615
    sb.append("    donationToken: ").append(toIndentedString(donationToken)).append("\n");
×
2616
    sb.append("    enableOneClick: ").append(toIndentedString(enableOneClick)).append("\n");
×
2617
    sb.append("    enablePayOut: ").append(toIndentedString(enablePayOut)).append("\n");
×
2618
    sb.append("    enableRecurring: ").append(toIndentedString(enableRecurring)).append("\n");
×
2619
    sb.append("    entityType: ").append(toIndentedString(entityType)).append("\n");
×
2620
    sb.append("    fraudOffset: ").append(toIndentedString(fraudOffset)).append("\n");
×
2621
    sb.append("    fundOrigin: ").append(toIndentedString(fundOrigin)).append("\n");
×
2622
    sb.append("    fundRecipient: ").append(toIndentedString(fundRecipient)).append("\n");
×
2623
    sb.append("    fundingSource: ").append(toIndentedString(fundingSource)).append("\n");
×
2624
    sb.append("    industryUsage: ").append(toIndentedString(industryUsage)).append("\n");
×
2625
    sb.append("    installments: ").append(toIndentedString(installments)).append("\n");
×
2626
    sb.append("    lineItems: ").append(toIndentedString(lineItems)).append("\n");
×
2627
    sb.append("    localizedShopperStatement: ").append(toIndentedString(localizedShopperStatement)).append("\n");
×
2628
    sb.append("    mandate: ").append(toIndentedString(mandate)).append("\n");
×
2629
    sb.append("    mcc: ").append(toIndentedString(mcc)).append("\n");
×
2630
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
2631
    sb.append("    merchantOrderReference: ").append(toIndentedString(merchantOrderReference)).append("\n");
×
2632
    sb.append("    merchantRiskIndicator: ").append(toIndentedString(merchantRiskIndicator)).append("\n");
×
2633
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
×
2634
    sb.append("    mpiData: ").append(toIndentedString(mpiData)).append("\n");
×
2635
    sb.append("    order: ").append(toIndentedString(order)).append("\n");
×
2636
    sb.append("    orderReference: ").append(toIndentedString(orderReference)).append("\n");
×
2637
    sb.append("    origin: ").append(toIndentedString(origin)).append("\n");
×
2638
    sb.append("    paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n");
×
2639
    sb.append("    platformChargebackLogic: ").append(toIndentedString(platformChargebackLogic)).append("\n");
×
2640
    sb.append("    recurringExpiry: ").append(toIndentedString(recurringExpiry)).append("\n");
×
2641
    sb.append("    recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n");
×
2642
    sb.append("    recurringProcessingModel: ").append(toIndentedString(recurringProcessingModel)).append("\n");
×
2643
    sb.append("    redirectFromIssuerMethod: ").append(toIndentedString(redirectFromIssuerMethod)).append("\n");
×
2644
    sb.append("    redirectToIssuerMethod: ").append(toIndentedString(redirectToIssuerMethod)).append("\n");
×
2645
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
×
2646
    sb.append("    returnUrl: ").append(toIndentedString(returnUrl)).append("\n");
×
2647
    sb.append("    riskData: ").append(toIndentedString(riskData)).append("\n");
×
2648
    sb.append("    selectedRecurringDetailReference: ").append(toIndentedString(selectedRecurringDetailReference)).append("\n");
×
2649
    sb.append("    sessionValidity: ").append(toIndentedString(sessionValidity)).append("\n");
×
2650
    sb.append("    shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n");
×
2651
    sb.append("    shopperIP: ").append(toIndentedString(shopperIP)).append("\n");
×
2652
    sb.append("    shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n");
×
2653
    sb.append("    shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n");
×
2654
    sb.append("    shopperName: ").append(toIndentedString(shopperName)).append("\n");
×
2655
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
2656
    sb.append("    shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n");
×
2657
    sb.append("    socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n");
×
2658
    sb.append("    splits: ").append(toIndentedString(splits)).append("\n");
×
2659
    sb.append("    store: ").append(toIndentedString(store)).append("\n");
×
2660
    sb.append("    storePaymentMethod: ").append(toIndentedString(storePaymentMethod)).append("\n");
×
2661
    sb.append("    telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
×
2662
    sb.append("    threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n");
×
2663
    sb.append("    threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n");
×
2664
    sb.append("    trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n");
×
2665
    sb.append("}");
×
2666
    return sb.toString();
×
2667
  }
2668

2669
  /**
2670
   * Convert the given object to string with each line indented by 4 spaces
2671
   * (except the first line).
2672
   */
2673
  private String toIndentedString(Object o) {
2674
    if (o == null) {
×
2675
      return "null";
×
2676
    }
2677
    return o.toString().replace("\n", "\n    ");
×
2678
  }
2679

2680
/**
2681
   * Create an instance of DonationPaymentRequest given an JSON string
2682
   *
2683
   * @param jsonString JSON string
2684
   * @return An instance of DonationPaymentRequest
2685
   * @throws JsonProcessingException if the JSON string is invalid with respect to DonationPaymentRequest
2686
   */
2687
  public static DonationPaymentRequest fromJson(String jsonString) throws JsonProcessingException {
2688
    return JSON.getMapper().readValue(jsonString, DonationPaymentRequest.class);
×
2689
  }
2690
/**
2691
  * Convert an instance of DonationPaymentRequest to an JSON string
2692
  *
2693
  * @return JSON string
2694
  */
2695
  public String toJson() throws JsonProcessingException {
2696
    return JSON.getMapper().writeValueAsString(this);
1✔
2697
  }
2698
}
2699

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