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.CustomTypeAdapterFactorystatic classPaymentMethod.FundingSourceEnumThe funding source of the payment method.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BRANDstatic StringSERIALIZED_NAME_BRANDSstatic StringSERIALIZED_NAME_CONFIGURATIONstatic StringSERIALIZED_NAME_FUNDING_SOURCEstatic StringSERIALIZED_NAME_GROUPstatic StringSERIALIZED_NAME_INPUT_DETAILSstatic StringSERIALIZED_NAME_ISSUERSstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentMethod()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_BRAND
public static final String SERIALIZED_NAME_BRAND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BRANDS
public static final String SERIALIZED_NAME_BRANDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIGURATION
public static final String SERIALIZED_NAME_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FUNDING_SOURCE
public static final String SERIALIZED_NAME_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GROUP
public static final String SERIALIZED_NAME_GROUP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INPUT_DETAILS
public static final String SERIALIZED_NAME_INPUT_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUERS
public static final String SERIALIZED_NAME_ISSUERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
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
-
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
-
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)
-
group
public PaymentMethod group(PaymentMethodGroup group)
-
getGroup
public PaymentMethodGroup getGroup()
Get group- Returns:
- group
-
setGroup
public void setGroup(PaymentMethodGroup group)
-
inputDetails
public PaymentMethod inputDetails(List<InputDetail> inputDetails)
-
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
public void setInputDetails(List<InputDetail> 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)
-
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)
-
type
public PaymentMethod type(String type)
-
getType
public String getType()
The unique payment method code.- Returns:
- type
-
setType
public void setType(String type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to PaymentMethod
-
fromJson
public static PaymentMethod fromJson(String jsonString) throws IOException
Create an instance of PaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethod
- Throws:
IOException- if the JSON string is invalid with respect to PaymentMethod
-
toJson
public String toJson()
Convert an instance of PaymentMethod to an JSON string- Returns:
- JSON string
-
-