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

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

28 Mar 2024 02:10PM UTC coverage: 12.291%. First build
#3191

push

web-flow
Merge ca41e208f into 78d4e3259

1 of 209 new or added lines in 23 files covered. (0.48%)

12445 of 101256 relevant lines covered (12.29%)

0.12 hits per line

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

14.09
/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_LOCALE,
49
  PaymentMethodsRequest.JSON_PROPERTY_SHOPPER_REFERENCE,
50
  PaymentMethodsRequest.JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES,
51
  PaymentMethodsRequest.JSON_PROPERTY_STORE,
52
  PaymentMethodsRequest.JSON_PROPERTY_STORE_FILTRATION_MODE
53
})
54

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

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

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

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

68
  /**
69
   * 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
70
   */
71
  public enum ChannelEnum {
×
72
    IOS("iOS"),
×
73
    
74
    ANDROID("Android"),
×
75
    
76
    WEB("Web");
×
77

78
    private String value;
79

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

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

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

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

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

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

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

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

117
  public static final String JSON_PROPERTY_SHOPPER_LOCALE = "shopperLocale";
118
  private String shopperLocale;
119

120
  public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
121
  private String shopperReference;
122

123
  public static final String JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES = "splitCardFundingSources";
124
  private Boolean splitCardFundingSources;
125

126
  public static final String JSON_PROPERTY_STORE = "store";
127
  private String store;
128

129
  /**
130
   * 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.   - &#39;skipFilter&#39;: All payment methods are returned, regardless of store association.
131
   */
NEW
132
  public enum StoreFiltrationModeEnum {
×
NEW
133
    EXCLUSIVE("exclusive"),
×
134
    
NEW
135
    INCLUSIVE("inclusive"),
×
136
    
NEW
137
    SKIPFILTER("skipFilter");
×
138

139
    private String value;
140

NEW
141
    StoreFiltrationModeEnum(String value) {
×
NEW
142
      this.value = value;
×
NEW
143
    }
×
144

145
    @JsonValue
146
    public String getValue() {
NEW
147
      return value;
×
148
    }
149

150
    @Override
151
    public String toString() {
NEW
152
      return String.valueOf(value);
×
153
    }
154

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

166
  public static final String JSON_PROPERTY_STORE_FILTRATION_MODE = "storeFiltrationMode";
167
  private StoreFiltrationModeEnum storeFiltrationMode;
168

169
  public PaymentMethodsRequest() { 
1✔
170
  }
1✔
171

172
  public PaymentMethodsRequest additionalData(Map<String, String> additionalData) {
173
    this.additionalData = additionalData;
×
174
    return this;
×
175
  }
176

177
  public PaymentMethodsRequest putAdditionalDataItem(String key, String additionalDataItem) {
178
    if (this.additionalData == null) {
×
179
      this.additionalData = new HashMap<>();
×
180
    }
181
    this.additionalData.put(key, additionalDataItem);
×
182
    return this;
×
183
  }
184

185
   /**
186
   * 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.
187
   * @return additionalData
188
  **/
189
  @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.")
190
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
191
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
192

193
  public Map<String, String> getAdditionalData() {
194
    return additionalData;
1✔
195
  }
196

197

198
 /**
199
  * 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.
200
  *
201
  * @param additionalData
202
  */ 
203
  @JsonProperty(JSON_PROPERTY_ADDITIONAL_DATA)
204
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205
  public void setAdditionalData(Map<String, String> additionalData) {
206
    this.additionalData = additionalData;
×
207
  }
×
208

209

210
  public PaymentMethodsRequest allowedPaymentMethods(List<String> allowedPaymentMethods) {
211
    this.allowedPaymentMethods = allowedPaymentMethods;
×
212
    return this;
×
213
  }
214

215
  public PaymentMethodsRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem) {
216
    if (this.allowedPaymentMethods == null) {
×
217
      this.allowedPaymentMethods = new ArrayList<>();
×
218
    }
219
    this.allowedPaymentMethods.add(allowedPaymentMethodsItem);
×
220
    return this;
×
221
  }
222

223
   /**
224
   * 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;
225
   * @return allowedPaymentMethods
226
  **/
227
  @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\"]`")
228
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
229
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
230

231
  public List<String> getAllowedPaymentMethods() {
232
    return allowedPaymentMethods;
1✔
233
  }
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
  *
239
  * @param allowedPaymentMethods
240
  */ 
241
  @JsonProperty(JSON_PROPERTY_ALLOWED_PAYMENT_METHODS)
242
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
243
  public void setAllowedPaymentMethods(List<String> allowedPaymentMethods) {
244
    this.allowedPaymentMethods = allowedPaymentMethods;
×
245
  }
×
246

247

248
  public PaymentMethodsRequest amount(Amount amount) {
249
    this.amount = amount;
×
250
    return this;
×
251
  }
252

253
   /**
254
   * Get amount
255
   * @return amount
256
  **/
257
  @ApiModelProperty(value = "")
258
  @JsonProperty(JSON_PROPERTY_AMOUNT)
259
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
260

261
  public Amount getAmount() {
262
    return amount;
1✔
263
  }
264

265

266
 /**
267
  * amount
268
  *
269
  * @param amount
270
  */ 
271
  @JsonProperty(JSON_PROPERTY_AMOUNT)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273
  public void setAmount(Amount amount) {
274
    this.amount = amount;
×
275
  }
×
276

277

278
  public PaymentMethodsRequest blockedPaymentMethods(List<String> blockedPaymentMethods) {
279
    this.blockedPaymentMethods = blockedPaymentMethods;
×
280
    return this;
×
281
  }
282

283
  public PaymentMethodsRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem) {
284
    if (this.blockedPaymentMethods == null) {
×
285
      this.blockedPaymentMethods = new ArrayList<>();
×
286
    }
287
    this.blockedPaymentMethods.add(blockedPaymentMethodsItem);
×
288
    return this;
×
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
   * @return blockedPaymentMethods
294
  **/
295
  @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\"]`")
296
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
297
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
298

299
  public List<String> getBlockedPaymentMethods() {
300
    return blockedPaymentMethods;
1✔
301
  }
302

303

304
 /**
305
  * 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;
306
  *
307
  * @param blockedPaymentMethods
308
  */ 
309
  @JsonProperty(JSON_PROPERTY_BLOCKED_PAYMENT_METHODS)
310
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
311
  public void setBlockedPaymentMethods(List<String> blockedPaymentMethods) {
312
    this.blockedPaymentMethods = blockedPaymentMethods;
×
313
  }
×
314

315

316
  public PaymentMethodsRequest channel(ChannelEnum channel) {
317
    this.channel = channel;
×
318
    return this;
×
319
  }
320

321
   /**
322
   * 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
323
   * @return channel
324
  **/
325
  @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")
326
  @JsonProperty(JSON_PROPERTY_CHANNEL)
327
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
328

329
  public ChannelEnum getChannel() {
330
    return channel;
1✔
331
  }
332

333

334
 /**
335
  * 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
336
  *
337
  * @param channel
338
  */ 
339
  @JsonProperty(JSON_PROPERTY_CHANNEL)
340
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
341
  public void setChannel(ChannelEnum channel) {
342
    this.channel = channel;
×
343
  }
×
344

345

346
  public PaymentMethodsRequest countryCode(String countryCode) {
347
    this.countryCode = countryCode;
×
348
    return this;
×
349
  }
350

351
   /**
352
   * The shopper&#39;s country code.
353
   * @return countryCode
354
  **/
355
  @ApiModelProperty(value = "The shopper's country code.")
356
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
357
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
358

359
  public String getCountryCode() {
360
    return countryCode;
1✔
361
  }
362

363

364
 /**
365
  * The shopper&#39;s country code.
366
  *
367
  * @param countryCode
368
  */ 
369
  @JsonProperty(JSON_PROPERTY_COUNTRY_CODE)
370
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
371
  public void setCountryCode(String countryCode) {
372
    this.countryCode = countryCode;
×
373
  }
×
374

375

376
  public PaymentMethodsRequest merchantAccount(String merchantAccount) {
377
    this.merchantAccount = merchantAccount;
×
378
    return this;
×
379
  }
380

381
   /**
382
   * The merchant account identifier, with which you want to process the transaction.
383
   * @return merchantAccount
384
  **/
385
  @ApiModelProperty(required = true, value = "The merchant account identifier, with which you want to process the transaction.")
386
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
387
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
388

389
  public String getMerchantAccount() {
390
    return merchantAccount;
1✔
391
  }
392

393

394
 /**
395
  * The merchant account identifier, with which you want to process the transaction.
396
  *
397
  * @param merchantAccount
398
  */ 
399
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
400
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
401
  public void setMerchantAccount(String merchantAccount) {
402
    this.merchantAccount = merchantAccount;
1✔
403
  }
1✔
404

405

406
  public PaymentMethodsRequest order(EncryptedOrderData order) {
407
    this.order = order;
×
408
    return this;
×
409
  }
410

411
   /**
412
   * Get order
413
   * @return order
414
  **/
415
  @ApiModelProperty(value = "")
416
  @JsonProperty(JSON_PROPERTY_ORDER)
417
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
418

419
  public EncryptedOrderData getOrder() {
420
    return order;
1✔
421
  }
422

423

424
 /**
425
  * order
426
  *
427
  * @param order
428
  */ 
429
  @JsonProperty(JSON_PROPERTY_ORDER)
430
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
431
  public void setOrder(EncryptedOrderData order) {
432
    this.order = order;
×
433
  }
×
434

435

436
  public PaymentMethodsRequest shopperLocale(String shopperLocale) {
437
    this.shopperLocale = shopperLocale;
×
438
    return this;
×
439
  }
440

441
   /**
442
   * The combination of a language code and a country code to specify the language to be used in the payment.
443
   * @return shopperLocale
444
  **/
445
  @ApiModelProperty(value = "The combination of a language code and a country code to specify the language to be used in the payment.")
446
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
447
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
448

449
  public String getShopperLocale() {
450
    return shopperLocale;
1✔
451
  }
452

453

454
 /**
455
  * The combination of a language code and a country code to specify the language to be used in the payment.
456
  *
457
  * @param shopperLocale
458
  */ 
459
  @JsonProperty(JSON_PROPERTY_SHOPPER_LOCALE)
460
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
461
  public void setShopperLocale(String shopperLocale) {
462
    this.shopperLocale = shopperLocale;
×
463
  }
×
464

465

466
  public PaymentMethodsRequest shopperReference(String shopperReference) {
467
    this.shopperReference = shopperReference;
×
468
    return this;
×
469
  }
470

471
   /**
472
   * 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.
473
   * @return shopperReference
474
  **/
475
  @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.")
476
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
477
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
478

479
  public String getShopperReference() {
480
    return shopperReference;
1✔
481
  }
482

483

484
 /**
485
  * 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.
486
  *
487
  * @param shopperReference
488
  */ 
489
  @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE)
490
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
491
  public void setShopperReference(String shopperReference) {
492
    this.shopperReference = shopperReference;
×
493
  }
×
494

495

496
  public PaymentMethodsRequest splitCardFundingSources(Boolean splitCardFundingSources) {
497
    this.splitCardFundingSources = splitCardFundingSources;
×
498
    return this;
×
499
  }
500

501
   /**
502
   * Boolean value indicating whether the card payment method should be split into separate debit and credit options.
503
   * @return splitCardFundingSources
504
  **/
505
  @ApiModelProperty(value = "Boolean value indicating whether the card payment method should be split into separate debit and credit options.")
506
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
507
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
508

509
  public Boolean getSplitCardFundingSources() {
510
    return splitCardFundingSources;
1✔
511
  }
512

513

514
 /**
515
  * Boolean value indicating whether the card payment method should be split into separate debit and credit options.
516
  *
517
  * @param splitCardFundingSources
518
  */ 
519
  @JsonProperty(JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES)
520
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
521
  public void setSplitCardFundingSources(Boolean splitCardFundingSources) {
522
    this.splitCardFundingSources = splitCardFundingSources;
×
523
  }
×
524

525

526
  public PaymentMethodsRequest store(String store) {
527
    this.store = store;
×
528
    return this;
×
529
  }
530

531
   /**
532
   * 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.
533
   * @return store
534
  **/
535
  @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.")
536
  @JsonProperty(JSON_PROPERTY_STORE)
537
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
538

539
  public String getStore() {
540
    return store;
1✔
541
  }
542

543

544
 /**
545
  * 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.
546
  *
547
  * @param store
548
  */ 
549
  @JsonProperty(JSON_PROPERTY_STORE)
550
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
551
  public void setStore(String store) {
552
    this.store = store;
×
553
  }
×
554

555

556
  public PaymentMethodsRequest storeFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) {
NEW
557
    this.storeFiltrationMode = storeFiltrationMode;
×
NEW
558
    return this;
×
559
  }
560

561
   /**
562
   * 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.   - &#39;skipFilter&#39;: All payment methods are returned, regardless of store association.
563
   * @return storeFiltrationMode
564
  **/
565
  @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.   - 'skipFilter': All payment methods are returned, regardless of store association.")
566
  @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE)
567
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
568

569
  public StoreFiltrationModeEnum getStoreFiltrationMode() {
570
    return storeFiltrationMode;
1✔
571
  }
572

573

574
 /**
575
  * 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.   - &#39;skipFilter&#39;: All payment methods are returned, regardless of store association.
576
  *
577
  * @param storeFiltrationMode
578
  */ 
579
  @JsonProperty(JSON_PROPERTY_STORE_FILTRATION_MODE)
580
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
581
  public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) {
NEW
582
    this.storeFiltrationMode = storeFiltrationMode;
×
NEW
583
  }
×
584

585

586
  /**
587
   * Return true if this PaymentMethodsRequest object is equal to o.
588
   */
589
  @Override
590
  public boolean equals(Object o) {
591
    if (this == o) {
×
592
      return true;
×
593
    }
594
    if (o == null || getClass() != o.getClass()) {
×
595
      return false;
×
596
    }
597
    PaymentMethodsRequest paymentMethodsRequest = (PaymentMethodsRequest) o;
×
598
    return Objects.equals(this.additionalData, paymentMethodsRequest.additionalData) &&
×
599
        Objects.equals(this.allowedPaymentMethods, paymentMethodsRequest.allowedPaymentMethods) &&
×
600
        Objects.equals(this.amount, paymentMethodsRequest.amount) &&
×
601
        Objects.equals(this.blockedPaymentMethods, paymentMethodsRequest.blockedPaymentMethods) &&
×
602
        Objects.equals(this.channel, paymentMethodsRequest.channel) &&
×
603
        Objects.equals(this.countryCode, paymentMethodsRequest.countryCode) &&
×
604
        Objects.equals(this.merchantAccount, paymentMethodsRequest.merchantAccount) &&
×
605
        Objects.equals(this.order, paymentMethodsRequest.order) &&
×
606
        Objects.equals(this.shopperLocale, paymentMethodsRequest.shopperLocale) &&
×
607
        Objects.equals(this.shopperReference, paymentMethodsRequest.shopperReference) &&
×
608
        Objects.equals(this.splitCardFundingSources, paymentMethodsRequest.splitCardFundingSources) &&
×
NEW
609
        Objects.equals(this.store, paymentMethodsRequest.store) &&
×
NEW
610
        Objects.equals(this.storeFiltrationMode, paymentMethodsRequest.storeFiltrationMode);
×
611
  }
612

613
  @Override
614
  public int hashCode() {
NEW
615
    return Objects.hash(additionalData, allowedPaymentMethods, amount, blockedPaymentMethods, channel, countryCode, merchantAccount, order, shopperLocale, shopperReference, splitCardFundingSources, store, storeFiltrationMode);
×
616
  }
617

618
  @Override
619
  public String toString() {
620
    StringBuilder sb = new StringBuilder();
×
621
    sb.append("class PaymentMethodsRequest {\n");
×
622
    sb.append("    additionalData: ").append(toIndentedString(additionalData)).append("\n");
×
623
    sb.append("    allowedPaymentMethods: ").append(toIndentedString(allowedPaymentMethods)).append("\n");
×
624
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
×
625
    sb.append("    blockedPaymentMethods: ").append(toIndentedString(blockedPaymentMethods)).append("\n");
×
626
    sb.append("    channel: ").append(toIndentedString(channel)).append("\n");
×
627
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
×
628
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
629
    sb.append("    order: ").append(toIndentedString(order)).append("\n");
×
630
    sb.append("    shopperLocale: ").append(toIndentedString(shopperLocale)).append("\n");
×
631
    sb.append("    shopperReference: ").append(toIndentedString(shopperReference)).append("\n");
×
632
    sb.append("    splitCardFundingSources: ").append(toIndentedString(splitCardFundingSources)).append("\n");
×
633
    sb.append("    store: ").append(toIndentedString(store)).append("\n");
×
NEW
634
    sb.append("    storeFiltrationMode: ").append(toIndentedString(storeFiltrationMode)).append("\n");
×
635
    sb.append("}");
×
636
    return sb.toString();
×
637
  }
638

639
  /**
640
   * Convert the given object to string with each line indented by 4 spaces
641
   * (except the first line).
642
   */
643
  private String toIndentedString(Object o) {
644
    if (o == null) {
×
645
      return "null";
×
646
    }
647
    return o.toString().replace("\n", "\n    ");
×
648
  }
649

650
/**
651
   * Create an instance of PaymentMethodsRequest given an JSON string
652
   *
653
   * @param jsonString JSON string
654
   * @return An instance of PaymentMethodsRequest
655
   * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodsRequest
656
   */
657
  public static PaymentMethodsRequest fromJson(String jsonString) throws JsonProcessingException {
658
    return JSON.getMapper().readValue(jsonString, PaymentMethodsRequest.class);
×
659
  }
660
/**
661
  * Convert an instance of PaymentMethodsRequest to an JSON string
662
  *
663
  * @return JSON string
664
  */
665
  public String toJson() throws JsonProcessingException {
666
    return JSON.getMapper().writeValueAsString(this);
1✔
667
  }
668
}
669

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