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_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)PaymentMethodbrand(String brand)PaymentMethodbrands(List<String> brands)PaymentMethodconfiguration(Map<String,String> configuration)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)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.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.StringgetType()The unique payment method code.PaymentMethodgroup(PaymentMethodGroup group)inthashCode()PaymentMethodinputDetails(List<InputDetail> inputDetails)Deprecated.PaymentMethodissuers(List<PaymentMethodIssuer> issuers)PaymentMethodname(String name)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)groupvoidsetInputDetails(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.voidsetType(String type)The unique payment method code.StringtoJson()Convert an instance of PaymentMethod to an JSON stringStringtoString()PaymentMethodtype(String type)
-
-
-
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_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
apps
public PaymentMethod apps(List<PaymentMethodUPIApps> apps)
-
addAppsItem
public PaymentMethod addAppsItem(PaymentMethodUPIApps appsItem)
-
getApps
public List<PaymentMethodUPIApps> getApps()
A list of apps for this payment method.- Returns:
- apps
-
setApps
public void setApps(List<PaymentMethodUPIApps> apps)
A list of apps for this payment method.- Parameters:
apps-
-
brand
public PaymentMethod brand(String brand)
-
getBrand
public String getBrand()
Brand for the selected gift card. For example: plastix, hmclub.- Returns:
- brand
-
setBrand
public void setBrand(String brand)
Brand for the selected gift card. For example: plastix, hmclub.- Parameters:
brand-
-
brands
public PaymentMethod brands(List<String> brands)
-
addBrandsItem
public PaymentMethod addBrandsItem(String brandsItem)
-
getBrands
public List<String> getBrands()
List of possible brands. For example: visa, mc.- Returns:
- brands
-
setBrands
public void setBrands(List<String> brands)
List of possible brands. For example: visa, mc.- Parameters:
brands-
-
configuration
public PaymentMethod configuration(Map<String,String> configuration)
-
putConfigurationItem
public PaymentMethod putConfigurationItem(String key, String configurationItem)
-
getConfiguration
public Map<String,String> getConfiguration()
The configuration of the payment method.- Returns:
- configuration
-
setConfiguration
public void setConfiguration(Map<String,String> configuration)
The configuration of the payment method.- Parameters:
configuration-
-
fundingSource
public PaymentMethod fundingSource(PaymentMethod.FundingSourceEnum fundingSource)
-
getFundingSource
public PaymentMethod.FundingSourceEnum getFundingSource()
The funding source of the payment method.- Returns:
- fundingSource
-
setFundingSource
public void setFundingSource(PaymentMethod.FundingSourceEnum fundingSource)
The funding source of the payment method.- Parameters:
fundingSource-
-
group
public PaymentMethod group(PaymentMethodGroup group)
-
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.
-
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
-
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-
-
issuers
public PaymentMethod issuers(List<PaymentMethodIssuer> issuers)
-
addIssuersItem
public PaymentMethod addIssuersItem(PaymentMethodIssuer issuersItem)
-
getIssuers
public List<PaymentMethodIssuer> getIssuers()
A list of issuers for this payment method.- Returns:
- issuers
-
setIssuers
public void setIssuers(List<PaymentMethodIssuer> issuers)
A list of issuers for this payment method.- Parameters:
issuers-
-
name
public PaymentMethod name(String name)
-
getName
public String getName()
The displayable name of this payment method.- Returns:
- name
-
setName
public void setName(String name)
The displayable name of this payment method.- Parameters:
name-
-
type
public PaymentMethod type(String type)
-
getType
public String getType()
The unique payment method code.- Returns:
- type
-
setType
public void setType(String type)
The unique payment method code.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this PaymentMethod object is equal to o.
-
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
-
-