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

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

18 Nov 2024 03:11PM UTC coverage: 12.345%. First build
#3804

push

web-flow
Merge 2f1727c0d into 1d8235624

62 of 245 new or added lines in 5 files covered. (25.31%)

13123 of 106304 relevant lines covered (12.34%)

0.12 hits per line

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

14.1
/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java
1
/*
2
 * Adyen Checkout API
3
 *
4
 * The version of the OpenAPI document: 71
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.Amount;
20
import com.adyen.model.checkout.EncryptedOrderData;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import java.util.ArrayList;
29
import java.util.HashMap;
30
import java.util.List;
31
import java.util.Map;
32
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
33
import com.fasterxml.jackson.core.JsonProcessingException;
34

35

36
/**
37
 * PaymentMethodsRequest
38
 */
39
@JsonPropertyOrder({
40
  PaymentMethodsRequest.JSON_PROPERTY_ADDITIONAL_DATA,
41
  PaymentMethodsRequest.JSON_PROPERTY_ALLOWED_PAYMENT_METHODS,
42
  PaymentMethodsRequest.JSON_PROPERTY_AMOUNT,
43
  PaymentMethodsRequest.JSON_PROPERTY_BLOCKED_PAYMENT_METHODS,
44
  PaymentMethodsRequest.JSON_PROPERTY_CHANNEL,
45
  PaymentMethodsRequest.JSON_PROPERTY_COUNTRY_CODE,
46
  PaymentMethodsRequest.JSON_PROPERTY_MERCHANT_ACCOUNT,
47
  PaymentMethodsRequest.JSON_PROPERTY_ORDER,
48
  PaymentMethodsRequest.JSON_PROPERTY_SHOPPER_CONVERSION_ID,
49
  PaymentMethodsRequest.JSON_PROPERTY_SHOPPER_LOCALE,
50
  PaymentMethodsRequest.JSON_PROPERTY_SHOPPER_REFERENCE,
51
  PaymentMethodsRequest.JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES,
52
  PaymentMethodsRequest.JSON_PROPERTY_STORE,
53
  PaymentMethodsRequest.JSON_PROPERTY_STORE_FILTRATION_MODE
54
})
55

56
public class PaymentMethodsRequest {
57
  public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData";
58
  private Map<String, String> additionalData = null;
1✔
59

60
  public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowedPaymentMethods";
61
  private List<String> allowedPaymentMethods = null;
1✔
62

63
  public static final String JSON_PROPERTY_AMOUNT = "amount";
64
  private Amount amount;
65

66
  public static final String JSON_PROPERTY_BLOCKED_PAYMENT_METHODS = "blockedPaymentMethods";
67
  private List<String> blockedPaymentMethods = null;
1✔
68

69
  /**
70
   * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web
71
   */
72
  public enum ChannelEnum {
×
73
    IOS("iOS"),
×
74
    
75
    ANDROID("Android"),
×
76
    
77
    WEB("Web");
×
78

79
    private String value;
80

81
    ChannelEnum(String value) {
×
82
      this.value = value;
×
83
    }
×
84

85
    @JsonValue
86
    public String getValue() {
87
      return value;
×
88
    }
89

90
    @Override
91
    public String toString() {
92
      return String.valueOf(value);
×
93
    }
94

95
    @JsonCreator
96
    public static ChannelEnum fromValue(String value) {
97
      for (ChannelEnum b : ChannelEnum.values()) {
×
98
        if (b.value.equals(value)) {
×
99
          return b;
×
100
        }
101
      }
102
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
103
    }
104
  }
105

106
  public static final String JSON_PROPERTY_CHANNEL = "channel";
107
  private ChannelEnum channel;
108

109
  public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode";
110
  private String countryCode;
111

112
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
113
  private String merchantAccount;
114

115
  public static final String JSON_PROPERTY_ORDER = "order";
116
  private EncryptedOrderData order;
117

118
  public static final String JSON_PROPERTY_SHOPPER_CONVERSION_ID = "shopperConversionId";
119
  private String shopperConversionId;
120

121
  public static final String JSON_PROPERTY_SHOPPER_LOCALE = "shopperLocale";
122
  private String shopperLocale;
123

124
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
125
  private String shopperReference;
126

127
  public static final String JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES = "splitCardFundingSources";
128
  private Boolean splitCardFundingSources;
129

130
  public static final String JSON_PROPERTY_STORE = "store";
131
  private String store;
132

133
  /**
134
   * Specifies how payment methods should be filtered based on the &#39;store&#39; parameter:   - &#39;exclusive&#39;: Only payment methods belonging to the specified &#39;store&#39; are returned.   - &#39;inclusive&#39;: Payment methods from the &#39;store&#39; and those not associated with any other store are returned.
135
   */
136
  public enum StoreFiltrationModeEnum {
×
137
    EXCLUSIVE("exclusive"),
×
138
    
139
    INCLUSIVE("inclusive"),
×
140
    
141
    SKIPFILTER("skipFilter");
×
142

143
    private String value;
144

145
    StoreFiltrationModeEnum(String value) {
×
146
      this.value = value;
×
147
    }
×
148

149
    @JsonValue
150
    public String getValue() {
151
      return value;
×
152
    }
153

154
    @Override
155
    public String toString() {
156
      return String.valueOf(value);
×
157
    }
158

159
    @JsonCreator
160
    public static StoreFiltrationModeEnum fromValue(String value) {
161
      for (StoreFiltrationModeEnum b : StoreFiltrationModeEnum.values()) {
×
162
        if (b.value.equals(value)) {
×
163
          return b;
×
164
        }
165
      }
166
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
167
    }
168
  }
169

170
  public static final String JSON_PROPERTY_STORE_FILTRATION_MODE = "storeFiltrationMode";
171
  private StoreFiltrationModeEnum storeFiltrationMode;
172

173
  public PaymentMethodsRequest() { 
1✔
174
  }
1✔
175

176
  /**
177
   * 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.
178
   *
179
   * @param additionalData
180
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
181
   */
182
  public PaymentMethodsRequest additionalData(Map<String, String> additionalData) {
183
    this.additionalData = additionalData;
×
184
    return this;
×
185
  }
186

187
  public PaymentMethodsRequest putAdditionalDataItem(String key, String additionalDataItem) {
188
    if (this.additionalData == null) {
×
189
      this.additionalData = new HashMap<>();
×
190
    }
191
    this.additionalData.put(key, additionalDataItem);
×
192
    return this;
×
193
  }
194

195
  /**
196
   * 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.
197
   * @return additionalData
198
   */
199
  @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.")
200
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
201
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
202
  public Map<String, String> getAdditionalData() {
203
    return additionalData;
1✔
204
  }
205

206
  /**
207
   * 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.
208
   *
209
   * @param additionalData
210
   */ 
211
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
212
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213
  public void setAdditionalData(Map<String, String> additionalData) {
214
    this.additionalData = additionalData;
×
215
  }
×
216

217
  /**
218
   * 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;
219
   *
220
   * @param allowedPaymentMethods
221
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
222
   */
223
  public PaymentMethodsRequest allowedPaymentMethods(List<String> allowedPaymentMethods) {
224
    this.allowedPaymentMethods = allowedPaymentMethods;
×
225
    return this;
×
226
  }
227

228
  public PaymentMethodsRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) {
229
    if (this.allowedPaymentMethods == null) {
×
230
      this.allowedPaymentMethods = new ArrayList<>();
×
231
    }
232
    this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
×
233
    return this;
×
234
  }
235

236
  /**
237
   * 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;
238
   * @return allowedPaymentMethods
239
   */
240
  @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\"]`")
241
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
243
  public List<String> getAllowedPaymentMethods() {
244
    return allowedPaymentMethods;
1✔
245
  }
246

247
  /**
248
   * 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;
249
   *
250
   * @param allowedPaymentMethods
251
   */ 
252
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
253
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
254
  public void setAllowedPaymentMethods(List<String> allowedPaymentMethods) {
255
    this.allowedPaymentMethods = allowedPaymentMethods;
×
256
  }
×
257

258
  /**
259
   * amount
260
   *
261
   * @param amount
262
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
263
   */
264
  public PaymentMethodsRequest amount(Amount amount) {
265
    this.amount = amount;
×
266
    return this;
×
267
  }
268

269
  /**
270
   * amount
271
   * @return amount
272
   */
273
  @ApiModelProperty(value = "")
274
  @JsonProperty(JSON_PROPERTY_AMOUNT)
275
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
276
  public Amount getAmount() {
277
    return amount;
1✔
278
  }
279

280
  /**
281
   * amount
282
   *
283
   * @param amount
284
   */ 
285
  @JsonProperty(JSON_PROPERTY_AMOUNT)
286
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
287
  public void setAmount(Amount amount) {
288
    this.amount = amount;
×
289
  }
×
290

291
  /**
292
   * 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;
293
   *
294
   * @param blockedPaymentMethods
295
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
296
   */
297
  public PaymentMethodsRequest blockedPaymentMethods(List<String> blockedPaymentMethods) {
298
    this.blockedPaymentMethods = blockedPaymentMethods;
×
299
    return this;
×
300
  }
301

302
  public PaymentMethodsRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) {
303
    if (this.blockedPaymentMethods == null) {
×
304
      this.blockedPaymentMethods = new ArrayList<>();
×
305
    }
306
    this.blockedPaymentMethods.add(blockedPaymentMethodsItem);
×
307
    return this;
×
308
  }
309

310
  /**
311
   * 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;
312
   * @return blockedPaymentMethods
313
   */
314
  @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\"]`")
315
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
316
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
317
  public List<String> getBlockedPaymentMethods() {
318
    return blockedPaymentMethods;
1✔
319
  }
320

321
  /**
322
   * 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;
323
   *
324
   * @param blockedPaymentMethods
325
   */ 
326
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
327
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
328
  public void setBlockedPaymentMethods(List<String> blockedPaymentMethods) {
329
    this.blockedPaymentMethods = blockedPaymentMethods;
×
330
  }
×
331

332
  /**
333
   * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web
334
   *
335
   * @param channel
336
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
337
   */
338
  public PaymentMethodsRequest channel(ChannelEnum channel) {
339
    this.channel = channel;
×
340
    return this;
×
341
  }
342

343
  /**
344
   * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web
345
   * @return channel
346
   */
347
  @ApiModelProperty(value = "The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web")
348
  @JsonProperty(JSON_PROPERTY_CHANNEL)
349
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
350
  public ChannelEnum getChannel() {
351
    return channel;
1✔
352
  }
353

354
  /**
355
   * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web
356
   *
357
   * @param channel
358
   */ 
359
  @JsonProperty(JSON_PROPERTY_CHANNEL)
360
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
361
  public void setChannel(ChannelEnum channel) {
362
    this.channel = channel;
×
363
  }
×
364

365
  /**
366
   * The shopper&#39;s country code.
367
   *
368
   * @param countryCode
369
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
370
   */
371
  public PaymentMethodsRequest countryCode(String countryCode) {
372
    this.countryCode = countryCode;
×
373
    return this;
×
374
  }
375

376
  /**
377
   * The shopper&#39;s country code.
378
   * @return countryCode
379
   */
380
  @ApiModelProperty(value = "The shopper's country code.")
381
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
382
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
383
  public String getCountryCode() {
384
    return countryCode;
1✔
385
  }
386

387
  /**
388
   * The shopper&#39;s country code.
389
   *
390
   * @param countryCode
391
   */ 
392
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
393
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
394
  public void setCountryCode(String countryCode) {
395
    this.countryCode = countryCode;
×
396
  }
×
397

398
  /**
399
   * The merchant account identifier, with which you want to process the transaction.
400
   *
401
   * @param merchantAccount
402
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
403
   */
404
  public PaymentMethodsRequest merchantAccount(String merchantAccount) {
405
    this.merchantAccount = merchantAccount;
×
406
    return this;
×
407
  }
408

409
  /**
410
   * The merchant account identifier, with which you want to process the transaction.
411
   * @return merchantAccount
412
   */
413
  @ApiModelProperty(required = true, value = "The merchant account identifier, with which you want to process the transaction.")
414
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
415
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
416
  public String getMerchantAccount() {
417
    return merchantAccount;
1✔
418
  }
419

420
  /**
421
   * The merchant account identifier, with which you want to process the transaction.
422
   *
423
   * @param merchantAccount
424
   */ 
425
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
426
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
427
  public void setMerchantAccount(String merchantAccount) {
428
    this.merchantAccount = merchantAccount;
1✔
429
  }
1✔
430

431
  /**
432
   * order
433
   *
434
   * @param order
435
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
436
   */
437
  public PaymentMethodsRequest order(EncryptedOrderData order) {
438
    this.order = order;
×
439
    return this;
×
440
  }
441

442
  /**
443
   * order
444
   * @return order
445
   */
446
  @ApiModelProperty(value = "")
447
  @JsonProperty(JSON_PROPERTY_ORDER)
448
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
449
  public EncryptedOrderData getOrder() {
450
    return order;
1✔
451
  }
452

453
  /**
454
   * order
455
   *
456
   * @param order
457
   */ 
458
  @JsonProperty(JSON_PROPERTY_ORDER)
459
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
460
  public void setOrder(EncryptedOrderData order) {
461
    this.order = order;
×
462
  }
×
463

464
  /**
465
   * A unique ID that can be used to associate &#x60;/paymentMethods&#x60; and &#x60;/payments&#x60; requests with the same shopper transaction, offering insights into conversion rates.
466
   *
467
   * @param shopperConversionId
468
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
469
   */
470
  public PaymentMethodsRequest shopperConversionId(String shopperConversionId) {
NEW
471
    this.shopperConversionId = shopperConversionId;
×
NEW
472
    return this;
×
473
  }
474

475
  /**
476
   * A unique ID that can be used to associate &#x60;/paymentMethods&#x60; and &#x60;/payments&#x60; requests with the same shopper transaction, offering insights into conversion rates.
477
   * @return shopperConversionId
478
   */
479
  @ApiModelProperty(value = "A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates.")
480
  @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID)
481
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
482
  public String getShopperConversionId() {
483
    return shopperConversionId;
1✔
484
  }
485

486
  /**
487
   * A unique ID that can be used to associate &#x60;/paymentMethods&#x60; and &#x60;/payments&#x60; requests with the same shopper transaction, offering insights into conversion rates.
488
   *
489
   * @param shopperConversionId
490
   */ 
491
  @JsonProperty(JSON_PROPERTY_SHOPPER_CONVERSION_ID)
492
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
493
  public void setShopperConversionId(String shopperConversionId) {
NEW
494
    this.shopperConversionId = shopperConversionId;
×
NEW
495
  }
×
496

497
  /**
498
   * The combination of a language code and a country code to specify the language to be used in the payment.
499
   *
500
   * @param shopperLocale
501
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
502
   */
503
  public PaymentMethodsRequest shopperLocale(String shopperLocale) {
504
    this.shopperLocale = shopperLocale;
×
505
    return this;
×
506
  }
507

508
  /**
509
   * The combination of a language code and a country code to specify the language to be used in the payment.
510
   * @return shopperLocale
511
   */
512
  @ApiModelProperty(value = "The combination of a language code and a country code to specify the language to be used in the payment.")
513
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
514
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
515
  public String getShopperLocale() {
516
    return shopperLocale;
1✔
517
  }
518

519
  /**
520
   * The combination of a language code and a country code to specify the language to be used in the payment.
521
   *
522
   * @param shopperLocale
523
   */ 
524
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
525
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
526
  public void setShopperLocale(String shopperLocale) {
527
    this.shopperLocale = shopperLocale;
×
528
  }
×
529

530
  /**
531
   * 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.
532
   *
533
   * @param shopperReference
534
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
535
   */
536
  public PaymentMethodsRequest shopperReference(String shopperReference) {
537
    this.shopperReference = shopperReference;
×
538
    return this;
×
539
  }
540

541
  /**
542
   * 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.
543
   * @return shopperReference
544
   */
545
  @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.")
546
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
547
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
548
  public String getShopperReference() {
549
    return shopperReference;
1✔
550
  }
551

552
  /**
553
   * 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.
554
   *
555
   * @param shopperReference
556
   */ 
557
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
558
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
559
  public void setShopperReference(String shopperReference) {
560
    this.shopperReference = shopperReference;
×
561
  }
×
562

563
  /**
564
   * Boolean value indicating whether the card payment method should be split into separate debit and credit options.
565
   *
566
   * @param splitCardFundingSources
567
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
568
   */
569
  public PaymentMethodsRequest splitCardFundingSources(Boolean splitCardFundingSources) {
570
    this.splitCardFundingSources = splitCardFundingSources;
×
571
    return this;
×
572
  }
573

574
  /**
575
   * Boolean value indicating whether the card payment method should be split into separate debit and credit options.
576
   * @return splitCardFundingSources
577
   */
578
  @ApiModelProperty(value = "Boolean value indicating whether the card payment method should be split into separate debit and credit options.")
579
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
580
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
581
  public Boolean getSplitCardFundingSources() {
582
    return splitCardFundingSources;
1✔
583
  }
584

585
  /**
586
   * Boolean value indicating whether the card payment method should be split into separate debit and credit options.
587
   *
588
   * @param splitCardFundingSources
589
   */ 
590
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
591
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
592
  public void setSplitCardFundingSources(Boolean splitCardFundingSources) {
593
    this.splitCardFundingSources = splitCardFundingSources;
×
594
  }
×
595

596
  /**
597
   * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
598
   *
599
   * @param store
600
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
601
   */
602
  public PaymentMethodsRequest store(String store) {
603
    this.store = store;
×
604
    return this;
×
605
  }
606

607
  /**
608
   * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
609
   * @return store
610
   */
611
  @ApiModelProperty(value = "Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.")
612
  @JsonProperty(JSON_PROPERTY_STORE)
613
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
614
  public String getStore() {
615
    return store;
1✔
616
  }
617

618
  /**
619
   * Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
620
   *
621
   * @param store
622
   */ 
623
  @JsonProperty(JSON_PROPERTY_STORE)
624
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
625
  public void setStore(String store) {
626
    this.store = store;
×
627
  }
×
628

629
  /**
630
   * Specifies how payment methods should be filtered based on the &#39;store&#39; parameter:   - &#39;exclusive&#39;: Only payment methods belonging to the specified &#39;store&#39; are returned.   - &#39;inclusive&#39;: Payment methods from the &#39;store&#39; and those not associated with any other store are returned.
631
   *
632
   * @param storeFiltrationMode
633
   * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining
634
   */
635
  public PaymentMethodsRequest storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) {
636
    this.storeFiltrationMode = storeFiltrationMode;
×
637
    return this;
×
638
  }
639

640
  /**
641
   * Specifies how payment methods should be filtered based on the &#39;store&#39; parameter:   - &#39;exclusive&#39;: Only payment methods belonging to the specified &#39;store&#39; are returned.   - &#39;inclusive&#39;: Payment methods from the &#39;store&#39; and those not associated with any other store are returned.
642
   * @return storeFiltrationMode
643
   */
644
  @ApiModelProperty(value = "Specifies how payment methods should be filtered based on the 'store' parameter:   - 'exclusive': Only payment methods belonging to the specified 'store' are returned.   - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned.")
645
  @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE)
646
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
647
  public StoreFiltrationModeEnum getStoreFiltrationMode() {
648
    return storeFiltrationMode;
1✔
649
  }
650

651
  /**
652
   * Specifies how payment methods should be filtered based on the &#39;store&#39; parameter:   - &#39;exclusive&#39;: Only payment methods belonging to the specified &#39;store&#39; are returned.   - &#39;inclusive&#39;: Payment methods from the &#39;store&#39; and those not associated with any other store are returned.
653
   *
654
   * @param storeFiltrationMode
655
   */ 
656
  @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE)
657
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
658
  public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) {
659
    this.storeFiltrationMode = storeFiltrationMode;
×
660
  }
×
661

662
  /**
663
   * Return true if this PaymentMethodsRequest object is equal to o.
664
   */
665
  @Override
666
  public boolean equals(Object o) {
667
    if (this == o) {
×
668
      return true;
×
669
    }
670
    if (o == null || getClass() != o.getClass()) {
×
671
      return false;
×
672
    }
673
    PaymentMethodsRequest paymentMethodsRequest = (PaymentMethodsRequest) o;
×
674
    return Objects.equals(this.additionalData, paymentMethodsRequest.additionalData) &&
×
675
        Objects.equals(this.allowedPaymentMethods, paymentMethodsRequest.allowedPaymentMethods) &&
×
676
        Objects.equals(this.amount, paymentMethodsRequest.amount) &&
×
677
        Objects.equals(this.blockedPaymentMethods, paymentMethodsRequest.blockedPaymentMethods) &&
×
678
        Objects.equals(this.channel, paymentMethodsRequest.channel) &&
×
679
        Objects.equals(this.countryCode, paymentMethodsRequest.countryCode) &&
×
680
        Objects.equals(this.merchantAccount, paymentMethodsRequest.merchantAccount) &&
×
681
        Objects.equals(this.order, paymentMethodsRequest.order) &&
×
NEW
682
        Objects.equals(this.shopperConversionId, paymentMethodsRequest.shopperConversionId) &&
×
683
        Objects.equals(this.shopperLocale, paymentMethodsRequest.shopperLocale) &&
×
684
        Objects.equals(this.shopperReference, paymentMethodsRequest.shopperReference) &&
×
685
        Objects.equals(this.splitCardFundingSources, paymentMethodsRequest.splitCardFundingSources) &&
×
686
        Objects.equals(this.store, paymentMethodsRequest.store) &&
×
687
        Objects.equals(this.storeFiltrationMode, paymentMethodsRequest.storeFiltrationMode);
×
688
  }
689

690
  @Override
691
  public int hashCode() {
NEW
692
    return Objects.hash(additionalData, allowedPaymentMethods, amount, blockedPaymentMethods, channel, countryCode, merchantAccount, order, shopperConversionId, shopperLocale, shopperReference, splitCardFundingSources, store, storeFiltrationMode);
×
693
  }
694

695
  @Override
696
  public String toString() {
697
    StringBuilder sb = new StringBuilder();
×
698
    sb.append("class PaymentMethodsRequest {\n");
×
699
    sb.append("    additionalData: ").append(toIndentedString(additionalData)).append("\n");
×
700
    sb.append("    allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n");
×
701
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
702
    sb.append("    blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n");
×
703
    sb.append("    channel: ").append(toIndentedString(channel)).append("\n");
×
704
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
×
705
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
706
    sb.append("    order: ").append(toIndentedString(order)).append("\n");
×
NEW
707
    sb.append("    shopperConversionId: ").append(toIndentedString(shopperConversionId)).append("\n");
×
708
    sb.append("    shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n");
×
709
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
710
    sb.append("    splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n");
×
711
    sb.append("    store: ").append(toIndentedString(store)).append("\n");
×
712
    sb.append("    storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n");
×
713
    sb.append("}");
×
714
    return sb.toString();
×
715
  }
716

717
  /**
718
   * Convert the given object to string with each line indented by 4 spaces
719
   * (except the first line).
720
   */
721
  private String toIndentedString(Object o) {
722
    if (o == null) {
×
723
      return "null";
×
724
    }
725
    return o.toString().replace("\n", "\n    ");
×
726
  }
727

728
/**
729
   * Create an instance of PaymentMethodsRequest given an JSON string
730
   *
731
   * @param jsonString JSON string
732
   * @return An instance of PaymentMethodsRequest
733
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodsRequest
734
   */
735
  public static PaymentMethodsRequest fromJson(String jsonString) throws JsonProcessingException {
736
    return JSON.getMapper().readValue(jsonString, PaymentMethodsRequest.class);
×
737
  }
738
/**
739
  * Convert an instance of PaymentMethodsRequest to an JSON string
740
  *
741
  * @return JSON string
742
  */
743
  public String toJson() throws JsonProcessingException {
744
    return JSON.getMapper().writeValueAsString(this);
1✔
745
  }
746
}
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

© 2026 Coveralls, Inc