Package com.adyen.model.checkout
Class StoredPaymentMethodResource
- java.lang.Object
-
- com.adyen.model.checkout.StoredPaymentMethodResource
-
public class StoredPaymentMethodResource extends Object
StoredPaymentMethodResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredPaymentMethodResource.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_EXTERNAL_RESPONSE_CODEstatic StringSERIALIZED_NAME_EXTERNAL_TOKEN_REFERENCEstatic StringSERIALIZED_NAME_HOLDER_NAMEstatic StringSERIALIZED_NAME_IBANstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_ISSUER_NAMEstatic StringSERIALIZED_NAME_LAST_FOURstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_NETWORK_TX_REFERENCEstatic StringSERIALIZED_NAME_OWNER_NAMEstatic StringSERIALIZED_NAME_SHOPPER_EMAILstatic StringSERIALIZED_NAME_SHOPPER_REFERENCEstatic StringSERIALIZED_NAME_SUPPORTED_RECURRING_PROCESSING_MODELSstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description StoredPaymentMethodResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredPaymentMethodResourceaddSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem)StoredPaymentMethodResourcebrand(String brand)booleanequals(Object o)StoredPaymentMethodResourceexpiryMonth(String expiryMonth)StoredPaymentMethodResourceexpiryYear(String expiryYear)StoredPaymentMethodResourceexternalResponseCode(String externalResponseCode)StoredPaymentMethodResourceexternalTokenReference(String externalTokenReference)static StoredPaymentMethodResourcefromJson(String jsonString)Create an instance of StoredPaymentMethodResource 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.StringgetExternalResponseCode()The response code returned by an external system (for example after a provisioning operation).StringgetExternalTokenReference()The token reference of a linked token in an external system (for example a network token reference).StringgetHolderName()The unique payment method code.StringgetIban()The IBAN of the bank account.StringgetId()A unique identifier of this stored payment method.StringgetIssuerName()The name of the issuer of token or card.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.StringgetShopperReference()Your reference to uniquely identify this shopper, for example user ID or account ID.List<String>getSupportedRecurringProcessingModels()Defines a recurring payment type.StringgetType()The type of payment method.inthashCode()StoredPaymentMethodResourceholderName(String holderName)StoredPaymentMethodResourceiban(String iban)StoredPaymentMethodResourceid(String id)StoredPaymentMethodResourceissuerName(String issuerName)StoredPaymentMethodResourcelastFour(String lastFour)StoredPaymentMethodResourcename(String name)StoredPaymentMethodResourcenetworkTxReference(String networkTxReference)StoredPaymentMethodResourceownerName(String ownerName)voidsetBrand(String brand)voidsetExpiryMonth(String expiryMonth)voidsetExpiryYear(String expiryYear)voidsetExternalResponseCode(String externalResponseCode)voidsetExternalTokenReference(String externalTokenReference)voidsetHolderName(String holderName)voidsetIban(String iban)voidsetId(String id)voidsetIssuerName(String issuerName)voidsetLastFour(String lastFour)voidsetName(String name)voidsetNetworkTxReference(String networkTxReference)voidsetOwnerName(String ownerName)voidsetShopperEmail(String shopperEmail)voidsetShopperReference(String shopperReference)voidsetSupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)voidsetType(String type)StoredPaymentMethodResourceshopperEmail(String shopperEmail)StoredPaymentMethodResourceshopperReference(String shopperReference)StoredPaymentMethodResourcesupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)StringtoJson()Convert an instance of StoredPaymentMethodResource to an JSON stringStringtoString()StoredPaymentMethodResourcetype(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_EXTERNAL_RESPONSE_CODE
public static final String SERIALIZED_NAME_EXTERNAL_RESPONSE_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXTERNAL_TOKEN_REFERENCE
public static final String SERIALIZED_NAME_EXTERNAL_TOKEN_REFERENCE
- 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_ISSUER_NAME
public static final String SERIALIZED_NAME_ISSUER_NAME
- 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_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUPPORTED_RECURRING_PROCESSING_MODELS
public static final String SERIALIZED_NAME_SUPPORTED_RECURRING_PROCESSING_MODELS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public StoredPaymentMethodResource brand(String brand)
-
getBrand
public String getBrand()
The brand of the card.- Returns:
- brand
-
setBrand
public void setBrand(String brand)
-
expiryMonth
public StoredPaymentMethodResource expiryMonth(String expiryMonth)
-
getExpiryMonth
public String getExpiryMonth()
The month the card expires.- Returns:
- expiryMonth
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
-
expiryYear
public StoredPaymentMethodResource 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)
-
externalResponseCode
public StoredPaymentMethodResource externalResponseCode(String externalResponseCode)
-
getExternalResponseCode
public String getExternalResponseCode()
The response code returned by an external system (for example after a provisioning operation).- Returns:
- externalResponseCode
-
setExternalResponseCode
public void setExternalResponseCode(String externalResponseCode)
-
externalTokenReference
public StoredPaymentMethodResource externalTokenReference(String externalTokenReference)
-
getExternalTokenReference
public String getExternalTokenReference()
The token reference of a linked token in an external system (for example a network token reference).- Returns:
- externalTokenReference
-
setExternalTokenReference
public void setExternalTokenReference(String externalTokenReference)
-
holderName
public StoredPaymentMethodResource holderName(String holderName)
-
getHolderName
public String getHolderName()
The unique payment method code.- Returns:
- holderName
-
setHolderName
public void setHolderName(String holderName)
-
iban
public StoredPaymentMethodResource iban(String iban)
-
getIban
public String getIban()
The IBAN of the bank account.- Returns:
- iban
-
setIban
public void setIban(String iban)
-
id
public StoredPaymentMethodResource id(String id)
-
getId
public String getId()
A unique identifier of this stored payment method.- Returns:
- id
-
setId
public void setId(String id)
-
issuerName
public StoredPaymentMethodResource issuerName(String issuerName)
-
getIssuerName
public String getIssuerName()
The name of the issuer of token or card.- Returns:
- issuerName
-
setIssuerName
public void setIssuerName(String issuerName)
-
lastFour
public StoredPaymentMethodResource lastFour(String lastFour)
-
getLastFour
public String getLastFour()
The last four digits of the PAN.- Returns:
- lastFour
-
setLastFour
public void setLastFour(String lastFour)
-
name
public StoredPaymentMethodResource 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 StoredPaymentMethodResource 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 StoredPaymentMethodResource ownerName(String ownerName)
-
getOwnerName
public String getOwnerName()
The name of the bank account holder.- Returns:
- ownerName
-
setOwnerName
public void setOwnerName(String ownerName)
-
shopperEmail
public StoredPaymentMethodResource shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper’s email address.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperReference
public StoredPaymentMethodResource shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
supportedRecurringProcessingModels
public StoredPaymentMethodResource supportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)
-
addSupportedRecurringProcessingModelsItem
public StoredPaymentMethodResource addSupportedRecurringProcessingModelsItem(String supportedRecurringProcessingModelsItem)
-
getSupportedRecurringProcessingModels
public List<String> getSupportedRecurringProcessingModels()
Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount.- Returns:
- supportedRecurringProcessingModels
-
setSupportedRecurringProcessingModels
public void setSupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)
-
type
public StoredPaymentMethodResource 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 StoredPaymentMethodResource
-
fromJson
public static StoredPaymentMethodResource fromJson(String jsonString) throws IOException
Create an instance of StoredPaymentMethodResource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredPaymentMethodResource
- Throws:
IOException- if the JSON string is invalid with respect to StoredPaymentMethodResource
-
toJson
public String toJson()
Convert an instance of StoredPaymentMethodResource to an JSON string- Returns:
- JSON string
-
-