Package com.adyen.model.checkout
Class StoredPaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.StoredPaymentMethod
-
public class StoredPaymentMethod extends Object
StoredPaymentMethod
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredPaymentMethod.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BRANDstatic StringSERIALIZED_NAME_EXPIRY_MONTHstatic StringSERIALIZED_NAME_EXPIRY_YEARstatic StringSERIALIZED_NAME_HOLDER_NAMEstatic StringSERIALIZED_NAME_IBANstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LAST_FOURstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_NETWORK_TX_REFERENCEstatic StringSERIALIZED_NAME_OWNER_NAMEstatic StringSERIALIZED_NAME_SHOPPER_EMAILstatic StringSERIALIZED_NAME_SUPPORTED_SHOPPER_INTERACTIONSstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description StoredPaymentMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredPaymentMethodaddSupportedShopperInteractionsItem(String supportedShopperInteractionsItem)StoredPaymentMethodbrand(String brand)booleanequals(Object o)StoredPaymentMethodexpiryMonth(String expiryMonth)StoredPaymentMethodexpiryYear(String expiryYear)static StoredPaymentMethodfromJson(String jsonString)Create an instance of StoredPaymentMethod given an JSON stringStringgetBrand()The brand of the card.StringgetExpiryMonth()The month the card expires.StringgetExpiryYear()The last two digits of the year the card expires.StringgetHolderName()The unique payment method code.StringgetIban()The IBAN of the bank account.StringgetId()A unique identifier of this stored payment method.StringgetLastFour()The last four digits of the PAN.StringgetName()The display name of the stored payment method.StringgetNetworkTxReference()Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa.StringgetOwnerName()The name of the bank account holder.StringgetShopperEmail()The shopper’s email address.List<String>getSupportedShopperInteractions()The supported shopper interactions for this stored payment method.StringgetType()The type of payment method.inthashCode()StoredPaymentMethodholderName(String holderName)StoredPaymentMethodiban(String iban)StoredPaymentMethodid(String id)StoredPaymentMethodlastFour(String lastFour)StoredPaymentMethodname(String name)StoredPaymentMethodnetworkTxReference(String networkTxReference)StoredPaymentMethodownerName(String ownerName)voidsetBrand(String brand)voidsetExpiryMonth(String expiryMonth)voidsetExpiryYear(String expiryYear)voidsetHolderName(String holderName)voidsetIban(String iban)voidsetId(String id)voidsetLastFour(String lastFour)voidsetName(String name)voidsetNetworkTxReference(String networkTxReference)voidsetOwnerName(String ownerName)voidsetShopperEmail(String shopperEmail)voidsetSupportedShopperInteractions(List<String> supportedShopperInteractions)voidsetType(String type)StoredPaymentMethodshopperEmail(String shopperEmail)StoredPaymentMethodsupportedShopperInteractions(List<String> supportedShopperInteractions)StringtoJson()Convert an instance of StoredPaymentMethod to an JSON stringStringtoString()StoredPaymentMethodtype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BRAND
public static final String SERIALIZED_NAME_BRAND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRY_MONTH
public static final String SERIALIZED_NAME_EXPIRY_MONTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRY_YEAR
public static final String SERIALIZED_NAME_EXPIRY_YEAR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HOLDER_NAME
public static final String SERIALIZED_NAME_HOLDER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IBAN
public static final String SERIALIZED_NAME_IBAN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_FOUR
public static final String SERIALIZED_NAME_LAST_FOUR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NETWORK_TX_REFERENCE
public static final String SERIALIZED_NAME_NETWORK_TX_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OWNER_NAME
public static final String SERIALIZED_NAME_OWNER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_EMAIL
public static final String SERIALIZED_NAME_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUPPORTED_SHOPPER_INTERACTIONS
public static final String SERIALIZED_NAME_SUPPORTED_SHOPPER_INTERACTIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public StoredPaymentMethod brand(String brand)
-
getBrand
public String getBrand()
The brand of the card.- Returns:
- brand
-
setBrand
public void setBrand(String brand)
-
expiryMonth
public StoredPaymentMethod expiryMonth(String expiryMonth)
-
getExpiryMonth
public String getExpiryMonth()
The month the card expires.- Returns:
- expiryMonth
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
-
expiryYear
public StoredPaymentMethod expiryYear(String expiryYear)
-
getExpiryYear
public String getExpiryYear()
The last two digits of the year the card expires. For example, **22** for the year 2022.- Returns:
- expiryYear
-
setExpiryYear
public void setExpiryYear(String expiryYear)
-
holderName
public StoredPaymentMethod holderName(String holderName)
-
getHolderName
public String getHolderName()
The unique payment method code.- Returns:
- holderName
-
setHolderName
public void setHolderName(String holderName)
-
iban
public StoredPaymentMethod iban(String iban)
-
getIban
public String getIban()
The IBAN of the bank account.- Returns:
- iban
-
setIban
public void setIban(String iban)
-
id
public StoredPaymentMethod id(String id)
-
getId
public String getId()
A unique identifier of this stored payment method.- Returns:
- id
-
setId
public void setId(String id)
-
lastFour
public StoredPaymentMethod lastFour(String lastFour)
-
getLastFour
public String getLastFour()
The last four digits of the PAN.- Returns:
- lastFour
-
setLastFour
public void setLastFour(String lastFour)
-
name
public StoredPaymentMethod name(String name)
-
getName
public String getName()
The display name of the stored payment method.- Returns:
- name
-
setName
public void setName(String name)
-
networkTxReference
public StoredPaymentMethod networkTxReference(String networkTxReference)
-
getNetworkTxReference
public String getNetworkTxReference()
Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID.- Returns:
- networkTxReference
-
setNetworkTxReference
public void setNetworkTxReference(String networkTxReference)
-
ownerName
public StoredPaymentMethod ownerName(String ownerName)
-
getOwnerName
public String getOwnerName()
The name of the bank account holder.- Returns:
- ownerName
-
setOwnerName
public void setOwnerName(String ownerName)
-
shopperEmail
public StoredPaymentMethod shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper’s email address.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
supportedShopperInteractions
public StoredPaymentMethod supportedShopperInteractions(List<String> supportedShopperInteractions)
-
addSupportedShopperInteractionsItem
public StoredPaymentMethod addSupportedShopperInteractionsItem(String supportedShopperInteractionsItem)
-
getSupportedShopperInteractions
public List<String> getSupportedShopperInteractions()
The supported shopper interactions for this stored payment method.- Returns:
- supportedShopperInteractions
-
setSupportedShopperInteractions
public void setSupportedShopperInteractions(List<String> supportedShopperInteractions)
-
type
public StoredPaymentMethod type(String type)
-
getType
public String getType()
The type of payment method.- 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 StoredPaymentMethod
-
fromJson
public static StoredPaymentMethod fromJson(String jsonString) throws IOException
Create an instance of StoredPaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredPaymentMethod
- Throws:
IOException- if the JSON string is invalid with respect to StoredPaymentMethod
-
toJson
public String toJson()
Convert an instance of StoredPaymentMethod to an JSON string- Returns:
- JSON string
-
-