Package com.adyen.model.checkout
Class StoredPaymentMethodResource
- java.lang.Object
-
- com.adyen.model.checkout.StoredPaymentMethodResource
-
public class StoredPaymentMethodResource extends Object
StoredPaymentMethodResource
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_EXPIRY_MONTHstatic StringJSON_PROPERTY_EXPIRY_YEARstatic StringJSON_PROPERTY_EXTERNAL_RESPONSE_CODEstatic StringJSON_PROPERTY_EXTERNAL_TOKEN_REFERENCEstatic StringJSON_PROPERTY_HOLDER_NAMEstatic StringJSON_PROPERTY_IBANstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_ISSUER_NAMEstatic StringJSON_PROPERTY_LAST_FOURstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NETWORK_TX_REFERENCEstatic StringJSON_PROPERTY_OWNER_NAMEstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_SUPPORTED_RECURRING_PROCESSING_MODELSstatic StringJSON_PROPERTY_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)The brand of the card.booleanequals(Object o)Return true if this StoredPaymentMethodResource object is equal to o.StoredPaymentMethodResourceexpiryMonth(String expiryMonth)The month the card expires.StoredPaymentMethodResourceexpiryYear(String expiryYear)The last two digits of the year the card expires.StoredPaymentMethodResourceexternalResponseCode(String externalResponseCode)The response code returned by an external system (for example after a provisioning operation).StoredPaymentMethodResourceexternalTokenReference(String externalTokenReference)The token reference of a linked token in an external system (for example a network token reference).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)The unique payment method code.StoredPaymentMethodResourceiban(String iban)The IBAN of the bank account.StoredPaymentMethodResourceid(String id)A unique identifier of this stored payment method.StoredPaymentMethodResourceissuerName(String issuerName)The name of the issuer of token or card.StoredPaymentMethodResourcelastFour(String lastFour)The last four digits of the PAN.StoredPaymentMethodResourcename(String name)The display name of the stored payment method.StoredPaymentMethodResourcenetworkTxReference(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.StoredPaymentMethodResourceownerName(String ownerName)The name of the bank account holder.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.voidsetExternalResponseCode(String externalResponseCode)The response code returned by an external system (for example after a provisioning operation).voidsetExternalTokenReference(String externalTokenReference)The token reference of a linked token in an external system (for example a network token reference).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.voidsetIssuerName(String issuerName)The name of the issuer of token or card.voidsetLastFour(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.voidsetShopperReference(String shopperReference)Your reference to uniquely identify this shopper, for example user ID or account ID.voidsetSupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)Defines a recurring payment type.voidsetType(String type)The type of payment method.StoredPaymentMethodResourceshopperEmail(String shopperEmail)The shopper’s email address.StoredPaymentMethodResourceshopperReference(String shopperReference)Your reference to uniquely identify this shopper, for example user ID or account ID.StoredPaymentMethodResourcesupportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)Defines a recurring payment type.StringtoJson()Convert an instance of StoredPaymentMethodResource to an JSON stringStringtoString()StoredPaymentMethodResourcetype(String type)The type of payment method.
-
-
-
Field Detail
-
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_EXTERNAL_RESPONSE_CODE
public static final String JSON_PROPERTY_EXTERNAL_RESPONSE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXTERNAL_TOKEN_REFERENCE
public static final String JSON_PROPERTY_EXTERNAL_TOKEN_REFERENCE
- 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_ISSUER_NAME
public static final String JSON_PROPERTY_ISSUER_NAME
- 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_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- 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_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
brand
public StoredPaymentMethodResource brand(String brand)
The brand of the card.- Parameters:
brand-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource expiryMonth(String expiryMonth)
The month the card expires.- Parameters:
expiryMonth-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource expiryYear(String expiryYear)
The last two digits of the year the card expires. For example, **22** for the year 2022.- Parameters:
expiryYear-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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-
-
externalResponseCode
public StoredPaymentMethodResource externalResponseCode(String externalResponseCode)
The response code returned by an external system (for example after a provisioning operation).- Parameters:
externalResponseCode-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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)
The response code returned by an external system (for example after a provisioning operation).- Parameters:
externalResponseCode-
-
externalTokenReference
public StoredPaymentMethodResource externalTokenReference(String externalTokenReference)
The token reference of a linked token in an external system (for example a network token reference).- Parameters:
externalTokenReference-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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)
The token reference of a linked token in an external system (for example a network token reference).- Parameters:
externalTokenReference-
-
holderName
public StoredPaymentMethodResource holderName(String holderName)
The unique payment method code.- Parameters:
holderName-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource iban(String iban)
The IBAN of the bank account.- Parameters:
iban-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource id(String id)
A unique identifier of this stored payment method.- Parameters:
id-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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-
-
issuerName
public StoredPaymentMethodResource issuerName(String issuerName)
The name of the issuer of token or card.- Parameters:
issuerName-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
getIssuerName
public String getIssuerName()
The name of the issuer of token or card.- Returns:
- issuerName
-
setIssuerName
public void setIssuerName(String issuerName)
The name of the issuer of token or card.- Parameters:
issuerName-
-
lastFour
public StoredPaymentMethodResource lastFour(String lastFour)
The last four digits of the PAN.- Parameters:
lastFour-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource name(String name)
The display name of the stored payment method.- Parameters:
name-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource networkTxReference(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-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource ownerName(String ownerName)
The name of the bank account holder.- Parameters:
ownerName-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource shopperEmail(String shopperEmail)
The shopper’s email address.- Parameters:
shopperEmail-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
getShopperEmail
public String getShopperEmail()
The shopper’s email address.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
The shopper’s email address.- Parameters:
shopperEmail-
-
shopperReference
public StoredPaymentMethodResource shopperReference(String shopperReference)
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.- Parameters:
shopperReference-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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)
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.- Parameters:
shopperReference-
-
supportedRecurringProcessingModels
public StoredPaymentMethodResource supportedRecurringProcessingModels(List<String> supportedRecurringProcessingModels)
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.- Parameters:
supportedRecurringProcessingModels-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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)
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.- Parameters:
supportedRecurringProcessingModels-
-
type
public StoredPaymentMethodResource type(String type)
The type of payment method.- Parameters:
type-- Returns:
- the current
StoredPaymentMethodResourceinstance, allowing for method chaining
-
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 StoredPaymentMethodResource object is equal to o.
-
fromJson
public static StoredPaymentMethodResource fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoredPaymentMethodResource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredPaymentMethodResource
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoredPaymentMethodResource
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoredPaymentMethodResource to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-