Package com.adyen.model.checkout
Class StoredPaymentMethod
- java.lang.Object
-
- com.adyen.model.checkout.StoredPaymentMethod
-
public class StoredPaymentMethod extends Object
StoredPaymentMethod
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BANK_ACCOUNT_NUMBERstatic StringJSON_PROPERTY_BANK_LOCATION_IDstatic StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_EXPIRY_MONTHstatic StringJSON_PROPERTY_EXPIRY_YEARstatic StringJSON_PROPERTY_HOLDER_NAMEstatic StringJSON_PROPERTY_IBANstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LABELstatic StringJSON_PROPERTY_LAST_FOURstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NETWORK_TX_REFERENCEstatic StringJSON_PROPERTY_OWNER_NAMEstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELSstatic StringJSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONSstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description StoredPaymentMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredPaymentMethodaddSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem)StoredPaymentMethodaddSupportedShopperInteractionsItem(String supportedShopperInteractionsItem)StoredPaymentMethodbankAccountNumber(String bankAccountNumber)StoredPaymentMethodbankLocationId(String bankLocationId)StoredPaymentMethodbrand(String brand)booleanequals(Object o)Return true if this StoredPaymentMethod object is equal to o.StoredPaymentMethodexpiryMonth(String expiryMonth)StoredPaymentMethodexpiryYear(String expiryYear)static StoredPaymentMethodfromJson(String jsonString)Create an instance of StoredPaymentMethod given an JSON stringStringgetBankAccountNumber()The bank account number (without separators).StringgetBankLocationId()The location id of the bank.StringgetBrand()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.StringgetLabel()The shopper’s issuer account labelStringgetLastFour()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>getSupportedRecurringProcessingModels()The supported recurring processing models for this stored payment method.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)StoredPaymentMethodlabel(String label)StoredPaymentMethodlastFour(String lastFour)StoredPaymentMethodname(String name)StoredPaymentMethodnetworkTxReference(String networkTxReference)StoredPaymentMethodownerName(String ownerName)voidsetBankAccountNumber(String bankAccountNumber)The bank account number (without separators).voidsetBankLocationId(String bankLocationId)The location id of the bank.voidsetBrand(String brand)The brand of the card.voidsetExpiryMonth(String expiryMonth)The month the card expires.voidsetExpiryYear(String expiryYear)The last two digits of the year the card expires.voidsetHolderName(String holderName)The unique payment method code.voidsetIban(String iban)The IBAN of the bank account.voidsetId(String id)A unique identifier of this stored payment method.voidsetLabel(String label)The shopper’s issuer account labelvoidsetLastFour(String lastFour)The last four digits of the PAN.voidsetName(String name)The display name of the stored payment method.voidsetNetworkTxReference(String networkTxReference)Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa.voidsetOwnerName(String ownerName)The name of the bank account holder.voidsetShopperEmail(String shopperEmail)The shopper’s email address.voidsetSupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)The supported recurring processing models for this stored payment method.voidsetSupportedShopperInteractions(List<String> supportedShopperInteractions)The supported shopper interactions for this stored payment method.voidsetType(String type)The type of payment method.StoredPaymentMethodshopperEmail(String shopperEmail)StoredPaymentMethodsupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)StoredPaymentMethodsupportedShopperInteractions(List<String> supportedShopperInteractions)StringtoJson()Convert an instance of StoredPaymentMethod to an JSON stringStringtoString()StoredPaymentMethodtype(String type)
-
-
-
Field Detail
-
JSON_PROPERTY_BANK_ACCOUNT_NUMBER
public static final String JSON_PROPERTY_BANK_ACCOUNT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_LOCATION_ID
public static final String JSON_PROPERTY_BANK_LOCATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BRAND
public static final String JSON_PROPERTY_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_MONTH
public static final String JSON_PROPERTY_EXPIRY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_YEAR
public static final String JSON_PROPERTY_EXPIRY_YEAR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOLDER_NAME
public static final String JSON_PROPERTY_HOLDER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IBAN
public static final String JSON_PROPERTY_IBAN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABEL
public static final String JSON_PROPERTY_LABEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_FOUR
public static final String JSON_PROPERTY_LAST_FOUR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK_TX_REFERENCE
public static final String JSON_PROPERTY_NETWORK_TX_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OWNER_NAME
public static final String JSON_PROPERTY_OWNER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_EMAIL
public static final String JSON_PROPERTY_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS
public static final String JSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS
public static final String JSON_PROPERTY_SUPPORTED_SHOPPER_INTERACTIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
bankAccountNumber
public StoredPaymentMethod bankAccountNumber(String bankAccountNumber)
-
getBankAccountNumber
public String getBankAccountNumber()
The bank account number (without separators).- Returns:
- bankAccountNumber
-
setBankAccountNumber
public void setBankAccountNumber(String bankAccountNumber)
The bank account number (without separators).- Parameters:
bankAccountNumber-
-
bankLocationId
public StoredPaymentMethod bankLocationId(String bankLocationId)
-
getBankLocationId
public String getBankLocationId()
The location id of the bank. The field value is `nil` in most cases.- Returns:
- bankLocationId
-
setBankLocationId
public void setBankLocationId(String bankLocationId)
The location id of the bank. The field value is `nil` in most cases.- Parameters:
bankLocationId-
-
brand
public StoredPaymentMethod brand(String brand)
-
getBrand
public String getBrand()
The brand of the card.- Returns:
- brand
-
setBrand
public void setBrand(String brand)
The brand of the card.- Parameters:
brand-
-
expiryMonth
public StoredPaymentMethod expiryMonth(String expiryMonth)
-
getExpiryMonth
public String getExpiryMonth()
The month the card expires.- Returns:
- expiryMonth
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
The month the card expires.- Parameters:
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)
The last two digits of the year the card expires. For example, **22** for the year 2022.- Parameters:
expiryYear-
-
holderName
public StoredPaymentMethod holderName(String holderName)
-
getHolderName
public String getHolderName()
The unique payment method code.- Returns:
- holderName
-
setHolderName
public void setHolderName(String holderName)
The unique payment method code.- Parameters:
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)
The IBAN of the bank account.- Parameters:
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)
A unique identifier of this stored payment method.- Parameters:
id-
-
label
public StoredPaymentMethod label(String label)
-
getLabel
public String getLabel()
The shopper’s issuer account label- Returns:
- label
-
setLabel
public void setLabel(String label)
The shopper’s issuer account label- Parameters:
label-
-
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)
The last four digits of the PAN.- Parameters:
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)
The display name of the stored payment method.- Parameters:
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)
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.- Parameters:
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)
The name of the bank account holder.- Parameters:
ownerName-
-
shopperEmail
public StoredPaymentMethod shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper’s email address.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
The shopper’s email address.- Parameters:
shopperEmail-
-
supportedRecurringProcessingModels
public StoredPaymentMethod supportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)
-
addSupportedRecurringProcessingModelsItem
public StoredPaymentMethod addSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem)
-
getSupportedRecurringProcessingModels
public List<String> getSupportedRecurringProcessingModels()
The supported recurring processing models for this stored payment method.- Returns:
- supportedRecurringProcessingModels
-
setSupportedRecurringProcessingModels
public void setSupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)
The supported recurring processing models for this stored payment method.- Parameters:
supportedRecurringProcessingModels-
-
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)
The supported shopper interactions for this stored payment method.- Parameters:
supportedShopperInteractions-
-
type
public StoredPaymentMethod type(String type)
-
getType
public String getType()
The type of payment method.- Returns:
- type
-
setType
public void setType(String type)
The type of payment method.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this StoredPaymentMethod object is equal to o.
-
fromJson
public static StoredPaymentMethod fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoredPaymentMethod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredPaymentMethod
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoredPaymentMethod
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoredPaymentMethod to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-