Package com.adyen.model.checkout
Class PaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.PaymentMethod
-
public class PaymentMethod extends Object
PaymentMethod
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentMethod.FundingSourceEnumThe funding source of the payment method.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_APPSstatic StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_BRANDSstatic StringJSON_PROPERTY_CONFIGURATIONstatic StringJSON_PROPERTY_FUNDING_SOURCEstatic StringJSON_PROPERTY_GROUPstatic StringJSON_PROPERTY_INPUT_DETAILSstatic StringJSON_PROPERTY_ISSUERSstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_PROMOTEDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PaymentMethodaddAppsItem(PaymentMethodUPIApps appsItem)PaymentMethodaddBrandsItem(String brandsItem)PaymentMethodaddInputDetailsItem(InputDetail inputDetailsItem)PaymentMethodaddIssuersItem(PaymentMethodIssuer issuersItem)PaymentMethodapps(List<PaymentMethodUPIApps> apps)A list of apps for this payment method.PaymentMethodbrand(String brand)Brand for the selected gift card.PaymentMethodbrands(List<String> brands)List of possible brands.PaymentMethodconfiguration(Map<String,String> configuration)The configuration of the payment method.booleanequals(Object o)Return true if this PaymentMethod object is equal to o.static PaymentMethodfromJson(String jsonString)Create an instance of PaymentMethod given an JSON stringPaymentMethodfundingSource(PaymentMethod.FundingSourceEnum fundingSource)The funding source of the payment method.List<PaymentMethodUPIApps>getApps()A list of apps for this payment method.StringgetBrand()Brand for the selected gift card.List<String>getBrands()List of possible brands.Map<String,String>getConfiguration()The configuration of the payment method.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.PaymentMethod.FundingSourceEnumgetFundingSource()The funding source of the payment method.PaymentMethodGroupgetGroup()Get groupList<InputDetail>getInputDetails()Deprecated.List<PaymentMethodIssuer>getIssuers()A list of issuers for this payment method.StringgetName()The displayable name of this payment method.BooleangetPromoted()Indicates whether this payment method should be promoted or not.StringgetType()The unique payment method code.PaymentMethodgroup(PaymentMethodGroup group)groupinthashCode()PaymentMethodincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.PaymentMethodinputDetails(List<InputDetail> inputDetails)Deprecated.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentMethodissuers(List<PaymentMethodIssuer> issuers)A list of issuers for this payment method.PaymentMethodname(String name)The displayable name of this payment method.PaymentMethodpromoted(Boolean promoted)Indicates whether this payment method should be promoted or not.PaymentMethodputConfigurationItem(String key, String configurationItem)voidsetApps(List<PaymentMethodUPIApps> apps)A list of apps for this payment method.voidsetBrand(String brand)Brand for the selected gift card.voidsetBrands(List<String> brands)List of possible brands.voidsetConfiguration(Map<String,String> configuration)The configuration of the payment method.voidsetFundingSource(PaymentMethod.FundingSourceEnum fundingSource)The funding source of the payment method.voidsetGroup(PaymentMethodGroup group)groupvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetInputDetails(List<InputDetail> inputDetails)Deprecated.voidsetIssuers(List<PaymentMethodIssuer> issuers)A list of issuers for this payment method.voidsetName(String name)The displayable name of this payment method.voidsetPromoted(Boolean promoted)Indicates whether this payment method should be promoted or not.voidsetType(String type)The unique payment method code.StringtoJson()Convert an instance of PaymentMethod to an JSON stringStringtoString()PaymentMethodtype(String type)The unique payment method code.
-
-
-
Field Detail
-
JSON_PROPERTY_APPS
public static final String JSON_PROPERTY_APPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BRAND
public static final String JSON_PROPERTY_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BRANDS
public static final String JSON_PROPERTY_BRANDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONFIGURATION
public static final String JSON_PROPERTY_CONFIGURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FUNDING_SOURCE
public static final String JSON_PROPERTY_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GROUP
public static final String JSON_PROPERTY_GROUP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INPUT_DETAILS
public static final String JSON_PROPERTY_INPUT_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUERS
public static final String JSON_PROPERTY_ISSUERS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROMOTED
public static final String JSON_PROPERTY_PROMOTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
apps
public PaymentMethod apps(List<PaymentMethodUPIApps> apps)
A list of apps for this payment method.- Parameters:
apps- A list of apps for this payment method.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
addAppsItem
public PaymentMethod addAppsItem(PaymentMethodUPIApps appsItem)
-
getApps
public List<PaymentMethodUPIApps> getApps()
A list of apps for this payment method.- Returns:
- apps A list of apps for this payment method.
-
setApps
public void setApps(List<PaymentMethodUPIApps> apps)
A list of apps for this payment method.- Parameters:
apps- A list of apps for this payment method.
-
brand
public PaymentMethod brand(String brand)
Brand for the selected gift card. For example: plastix, hmclub.- Parameters:
brand- Brand for the selected gift card. For example: plastix, hmclub.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
getBrand
public String getBrand()
Brand for the selected gift card. For example: plastix, hmclub.- Returns:
- brand Brand for the selected gift card. For example: plastix, hmclub.
-
setBrand
public void setBrand(String brand)
Brand for the selected gift card. For example: plastix, hmclub.- Parameters:
brand- Brand for the selected gift card. For example: plastix, hmclub.
-
brands
public PaymentMethod brands(List<String> brands)
List of possible brands. For example: visa, mc.- Parameters:
brands- List of possible brands. For example: visa, mc.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
addBrandsItem
public PaymentMethod addBrandsItem(String brandsItem)
-
getBrands
public List<String> getBrands()
List of possible brands. For example: visa, mc.- Returns:
- brands List of possible brands. For example: visa, mc.
-
setBrands
public void setBrands(List<String> brands)
List of possible brands. For example: visa, mc.- Parameters:
brands- List of possible brands. For example: visa, mc.
-
configuration
public PaymentMethod configuration(Map<String,String> configuration)
The configuration of the payment method.- Parameters:
configuration- The configuration of the payment method.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
putConfigurationItem
public PaymentMethod putConfigurationItem(String key, String configurationItem)
-
getConfiguration
public Map<String,String> getConfiguration()
The configuration of the payment method.- Returns:
- configuration The configuration of the payment method.
-
setConfiguration
public void setConfiguration(Map<String,String> configuration)
The configuration of the payment method.- Parameters:
configuration- The configuration of the payment method.
-
fundingSource
public PaymentMethod fundingSource(PaymentMethod.FundingSourceEnum fundingSource)
The funding source of the payment method.- Parameters:
fundingSource- The funding source of the payment method.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
getFundingSource
public PaymentMethod.FundingSourceEnum getFundingSource()
The funding source of the payment method.- Returns:
- fundingSource The funding source of the payment method.
-
setFundingSource
public void setFundingSource(PaymentMethod.FundingSourceEnum fundingSource)
The funding source of the payment method.- Parameters:
fundingSource- The funding source of the payment method.
-
group
public PaymentMethod group(PaymentMethodGroup group)
group- Parameters:
group-- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
getGroup
public PaymentMethodGroup getGroup()
Get group- Returns:
- group
-
setGroup
public void setGroup(PaymentMethodGroup group)
group- Parameters:
group-
-
inputDetails
@Deprecated public PaymentMethod inputDetails(List<InputDetail> inputDetails)
Deprecated.All input details to be provided to complete the payment with this payment method.- Parameters:
inputDetails- All input details to be provided to complete the payment with this payment method.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
addInputDetailsItem
public PaymentMethod addInputDetailsItem(InputDetail inputDetailsItem)
-
getInputDetails
@Deprecated public List<InputDetail> getInputDetails()
Deprecated.All input details to be provided to complete the payment with this payment method.- Returns:
- inputDetails All input details to be provided to complete the payment with this payment method.
-
setInputDetails
@Deprecated public void setInputDetails(List<InputDetail> inputDetails)
Deprecated.All input details to be provided to complete the payment with this payment method.- Parameters:
inputDetails- All input details to be provided to complete the payment with this payment method.
-
issuers
public PaymentMethod issuers(List<PaymentMethodIssuer> issuers)
A list of issuers for this payment method.- Parameters:
issuers- A list of issuers for this payment method.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
addIssuersItem
public PaymentMethod addIssuersItem(PaymentMethodIssuer issuersItem)
-
getIssuers
public List<PaymentMethodIssuer> getIssuers()
A list of issuers for this payment method.- Returns:
- issuers A list of issuers for this payment method.
-
setIssuers
public void setIssuers(List<PaymentMethodIssuer> issuers)
A list of issuers for this payment method.- Parameters:
issuers- A list of issuers for this payment method.
-
name
public PaymentMethod name(String name)
The displayable name of this payment method.- Parameters:
name- The displayable name of this payment method.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
getName
public String getName()
The displayable name of this payment method.- Returns:
- name The displayable name of this payment method.
-
setName
public void setName(String name)
The displayable name of this payment method.- Parameters:
name- The displayable name of this payment method.
-
promoted
public PaymentMethod promoted(Boolean promoted)
Indicates whether this payment method should be promoted or not.- Parameters:
promoted- Indicates whether this payment method should be promoted or not.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
getPromoted
public Boolean getPromoted()
Indicates whether this payment method should be promoted or not.- Returns:
- promoted Indicates whether this payment method should be promoted or not.
-
setPromoted
public void setPromoted(Boolean promoted)
Indicates whether this payment method should be promoted or not.- Parameters:
promoted- Indicates whether this payment method should be promoted or not.
-
type
public PaymentMethod type(String type)
The unique payment method code.- Parameters:
type- The unique payment method code.- Returns:
- the current
PaymentMethodinstance, allowing for method chaining
-
getType
public String getType()
The unique payment method code.- Returns:
- type The unique payment method code.
-
setType
public void setType(String type)
The unique payment method code.- Parameters:
type- The unique payment method code.
-
includeNullValues
public PaymentMethod includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaymentMethod object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static PaymentMethod fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethod
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentMethod
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentMethod to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-