Package com.adyen.model.checkout
Class PaymentMethodsRequest
- java.lang.Object
-
- com.adyen.model.checkout.PaymentMethodsRequest
-
public class PaymentMethodsRequest extends Object
PaymentMethodsRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentMethodsRequest.ChannelEnumThe platform where a payment transaction takes place.static classPaymentMethodsRequest.StoreFiltrationModeEnumSpecifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDITIONAL_DATAstatic StringJSON_PROPERTY_ALLOWED_PAYMENT_METHODSstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_BLOCKED_PAYMENT_METHODSstatic StringJSON_PROPERTY_CHANNELstatic StringJSON_PROPERTY_COUNTRY_CODEstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_ORDERstatic StringJSON_PROPERTY_SHOPPER_CONVERSION_IDstatic StringJSON_PROPERTY_SHOPPER_LOCALEstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCESstatic StringJSON_PROPERTY_STOREstatic StringJSON_PROPERTY_STORE_FILTRATION_MODE
-
Constructor Summary
Constructors Constructor Description PaymentMethodsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentMethodsRequestaddAllowedPaymentMethodsItem(String allowedPaymentMethodsItem)PaymentMethodsRequestaddBlockedPaymentMethodsItem(String blockedPaymentMethodsItem)PaymentMethodsRequestadditionalData(Map<String,String> additionalData)This field contains additional data, which may be required for a particular payment request.PaymentMethodsRequestallowedPaymentMethods(List<String> allowedPaymentMethods)List of payment methods to be presented to the shopper.PaymentMethodsRequestamount(Amount amount)amountPaymentMethodsRequestblockedPaymentMethods(List<String> blockedPaymentMethods)List of payment methods to be hidden from the shopper.PaymentMethodsRequestchannel(PaymentMethodsRequest.ChannelEnum channel)The platform where a payment transaction takes place.PaymentMethodsRequestcountryCode(String countryCode)The shopper's country code.booleanequals(Object o)Return true if this PaymentMethodsRequest object is equal to o.static PaymentMethodsRequestfromJson(String jsonString)Create an instance of PaymentMethodsRequest given an JSON stringMap<String,String>getAdditionalData()This field contains additional data, which may be required for a particular payment request.List<String>getAllowedPaymentMethods()List of payment methods to be presented to the shopper.AmountgetAmount()amountList<String>getBlockedPaymentMethods()List of payment methods to be hidden from the shopper.PaymentMethodsRequest.ChannelEnumgetChannel()The platform where a payment transaction takes place.StringgetCountryCode()The shopper's country code.StringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.EncryptedOrderDatagetOrder()orderStringgetShopperConversionId()A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates.StringgetShopperLocale()The combination of a language code and a country code to specify the language to be used in the payment.StringgetShopperReference()Required for recurring payments.BooleangetSplitCardFundingSources()Boolean value indicating whether the card payment method should be split into separate debit and credit options.StringgetStore()Required for Adyen for Platforms integrations if you are a platform model.PaymentMethodsRequest.StoreFiltrationModeEnumgetStoreFiltrationMode()Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returnedinthashCode()PaymentMethodsRequestmerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.PaymentMethodsRequestorder(EncryptedOrderData order)orderPaymentMethodsRequestputAdditionalDataItem(String key, String additionalDataItem)voidsetAdditionalData(Map<String,String> additionalData)This field contains additional data, which may be required for a particular payment request.voidsetAllowedPaymentMethods(List<String> allowedPaymentMethods)List of payment methods to be presented to the shopper.voidsetAmount(Amount amount)amountvoidsetBlockedPaymentMethods(List<String> blockedPaymentMethods)List of payment methods to be hidden from the shopper.voidsetChannel(PaymentMethodsRequest.ChannelEnum channel)The platform where a payment transaction takes place.voidsetCountryCode(String countryCode)The shopper's country code.voidsetMerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.voidsetOrder(EncryptedOrderData order)ordervoidsetShopperConversionId(String shopperConversionId)A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates.voidsetShopperLocale(String shopperLocale)The combination of a language code and a country code to specify the language to be used in the payment.voidsetShopperReference(String shopperReference)Required for recurring payments.voidsetSplitCardFundingSources(Boolean splitCardFundingSources)Boolean value indicating whether the card payment method should be split into separate debit and credit options.voidsetStore(String store)Required for Adyen for Platforms integrations if you are a platform model.voidsetStoreFiltrationMode(PaymentMethodsRequest.StoreFiltrationModeEnum storeFiltrationMode)Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returnedPaymentMethodsRequestshopperConversionId(String shopperConversionId)A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates.PaymentMethodsRequestshopperLocale(String shopperLocale)The combination of a language code and a country code to specify the language to be used in the payment.PaymentMethodsRequestshopperReference(String shopperReference)Required for recurring payments.PaymentMethodsRequestsplitCardFundingSources(Boolean splitCardFundingSources)Boolean value indicating whether the card payment method should be split into separate debit and credit options.PaymentMethodsRequeststore(String store)Required for Adyen for Platforms integrations if you are a platform model.PaymentMethodsRequeststoreFiltrationMode(PaymentMethodsRequest.StoreFiltrationModeEnum storeFiltrationMode)Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returnedStringtoJson()Convert an instance of PaymentMethodsRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDITIONAL_DATA
public static final String JSON_PROPERTY_ADDITIONAL_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOWED_PAYMENT_METHODS
public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BLOCKED_PAYMENT_METHODS
public static final String JSON_PROPERTY_BLOCKED_PAYMENT_METHODS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHANNEL
public static final String JSON_PROPERTY_CHANNEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY_CODE
public static final String JSON_PROPERTY_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORDER
public static final String JSON_PROPERTY_ORDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_CONVERSION_ID
public static final String JSON_PROPERTY_SHOPPER_CONVERSION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_LOCALE
public static final String JSON_PROPERTY_SHOPPER_LOCALE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES
public static final String JSON_PROPERTY_SPLIT_CARD_FUNDING_SOURCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE
public static final String JSON_PROPERTY_STORE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE_FILTRATION_MODE
public static final String JSON_PROPERTY_STORE_FILTRATION_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalData
public PaymentMethodsRequest additionalData(Map<String,String> additionalData)
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.- Parameters:
additionalData-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
putAdditionalDataItem
public PaymentMethodsRequest putAdditionalDataItem(String key, String additionalDataItem)
-
getAdditionalData
public Map<String,String> getAdditionalData()
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.- Returns:
- additionalData
-
setAdditionalData
public void setAdditionalData(Map<String,String> additionalData)
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.- Parameters:
additionalData-
-
allowedPaymentMethods
public PaymentMethodsRequest allowedPaymentMethods(List<String> allowedPaymentMethods)
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\"]`- Parameters:
allowedPaymentMethods-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
addAllowedPaymentMethodsItem
public PaymentMethodsRequest addAllowedPaymentMethodsItem(String allowedPaymentMethodsItem)
-
getAllowedPaymentMethods
public List<String> getAllowedPaymentMethods()
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\"]`- Returns:
- allowedPaymentMethods
-
setAllowedPaymentMethods
public void setAllowedPaymentMethods(List<String> allowedPaymentMethods)
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\"]`- Parameters:
allowedPaymentMethods-
-
amount
public PaymentMethodsRequest amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
blockedPaymentMethods
public PaymentMethodsRequest blockedPaymentMethods(List<String> blockedPaymentMethods)
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\"]`- Parameters:
blockedPaymentMethods-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
addBlockedPaymentMethodsItem
public PaymentMethodsRequest addBlockedPaymentMethodsItem(String blockedPaymentMethodsItem)
-
getBlockedPaymentMethods
public List<String> getBlockedPaymentMethods()
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\"]`- Returns:
- blockedPaymentMethods
-
setBlockedPaymentMethods
public void setBlockedPaymentMethods(List<String> blockedPaymentMethods)
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\"]`- Parameters:
blockedPaymentMethods-
-
channel
public PaymentMethodsRequest channel(PaymentMethodsRequest.ChannelEnum channel)
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- Parameters:
channel-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getChannel
public PaymentMethodsRequest.ChannelEnum getChannel()
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- Returns:
- channel
-
setChannel
public void setChannel(PaymentMethodsRequest.ChannelEnum channel)
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- Parameters:
channel-
-
countryCode
public PaymentMethodsRequest countryCode(String countryCode)
The shopper's country code.- Parameters:
countryCode-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getCountryCode
public String getCountryCode()
The shopper's country code.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
The shopper's country code.- Parameters:
countryCode-
-
merchantAccount
public PaymentMethodsRequest merchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-
-
order
public PaymentMethodsRequest order(EncryptedOrderData order)
order- Parameters:
order-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getOrder
public EncryptedOrderData getOrder()
order- Returns:
- order
-
setOrder
public void setOrder(EncryptedOrderData order)
order- Parameters:
order-
-
shopperConversionId
public PaymentMethodsRequest shopperConversionId(String shopperConversionId)
A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates.- Parameters:
shopperConversionId-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getShopperConversionId
public String getShopperConversionId()
A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates.- Returns:
- shopperConversionId
-
setShopperConversionId
public void setShopperConversionId(String shopperConversionId)
A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates.- Parameters:
shopperConversionId-
-
shopperLocale
public PaymentMethodsRequest shopperLocale(String shopperLocale)
The combination of a language code and a country code to specify the language to be used in the payment.- Parameters:
shopperLocale-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getShopperLocale
public String getShopperLocale()
The combination of a language code and a country code to specify the language to be used in the payment.- Returns:
- shopperLocale
-
setShopperLocale
public void setShopperLocale(String shopperLocale)
The combination of a language code and a country code to specify the language to be used in the payment.- Parameters:
shopperLocale-
-
shopperReference
public PaymentMethodsRequest shopperReference(String shopperReference)
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.- Parameters:
shopperReference-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
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.- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
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.- Parameters:
shopperReference-
-
splitCardFundingSources
public PaymentMethodsRequest splitCardFundingSources(Boolean splitCardFundingSources)
Boolean value indicating whether the card payment method should be split into separate debit and credit options.- Parameters:
splitCardFundingSources-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getSplitCardFundingSources
public Boolean getSplitCardFundingSources()
Boolean value indicating whether the card payment method should be split into separate debit and credit options.- Returns:
- splitCardFundingSources
-
setSplitCardFundingSources
public void setSplitCardFundingSources(Boolean splitCardFundingSources)
Boolean value indicating whether the card payment method should be split into separate debit and credit options.- Parameters:
splitCardFundingSources-
-
store
public PaymentMethodsRequest store(String store)
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.- Parameters:
store-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getStore
public String getStore()
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.- Returns:
- store
-
setStore
public void setStore(String store)
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.- Parameters:
store-
-
storeFiltrationMode
public PaymentMethodsRequest storeFiltrationMode(PaymentMethodsRequest.StoreFiltrationModeEnum storeFiltrationMode)
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.- Parameters:
storeFiltrationMode-- Returns:
- the current
PaymentMethodsRequestinstance, allowing for method chaining
-
getStoreFiltrationMode
public PaymentMethodsRequest.StoreFiltrationModeEnum getStoreFiltrationMode()
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.- Returns:
- storeFiltrationMode
-
setStoreFiltrationMode
public void setStoreFiltrationMode(PaymentMethodsRequest.StoreFiltrationModeEnum storeFiltrationMode)
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.- Parameters:
storeFiltrationMode-
-
equals
public boolean equals(Object o)
Return true if this PaymentMethodsRequest object is equal to o.
-
fromJson
public static PaymentMethodsRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentMethodsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethodsRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentMethodsRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentMethodsRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-