Package com.adyen.model.checkout
Class ExternalTokenDetails
- java.lang.Object
-
- com.adyen.model.checkout.ExternalTokenDetails
-
public class ExternalTokenDetails extends Object
ExternalTokenDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExternalTokenDetails.SubtypeEnumThe external service from which to fetch the token.static classExternalTokenDetails.TypeEnumThe type of token.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_EXPIRY_MONTHstatic StringJSON_PROPERTY_EXPIRY_YEARstatic StringJSON_PROPERTY_HOLDER_NAMEstatic StringJSON_PROPERTY_NUMBERstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_IDstatic StringJSON_PROPERTY_SUBTYPEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description ExternalTokenDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalTokenDetailscheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.booleanequals(Object o)Return true if this ExternalTokenDetails object is equal to o.ExternalTokenDetailsexpiryMonth(String expiryMonth)The card expiry month.ExternalTokenDetailsexpiryYear(String expiryYear)The card expiry year.static ExternalTokenDetailsfromJson(String jsonString)Create an instance of ExternalTokenDetails given an JSON stringStringgetCheckoutAttemptId()The checkout attempt identifier.StringgetExpiryMonth()The card expiry month.StringgetExpiryYear()The card expiry year.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetHolderName()The name of the card holder.StringgetNumber()The card number.StringgetStoredPaymentMethodId()Identifier used to fetch the token from the external serviceExternalTokenDetails.SubtypeEnumgetSubtype()The external service from which to fetch the token.ExternalTokenDetails.TypeEnumgetType()The type of token.inthashCode()ExternalTokenDetailsholderName(String holderName)The name of the card holder.ExternalTokenDetailsincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.ExternalTokenDetailsnumber(String number)The card number.voidsetCheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.voidsetExpiryMonth(String expiryMonth)The card expiry month.voidsetExpiryYear(String expiryYear)The card expiry year.voidsetHolderName(String holderName)The name of the card holder.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetNumber(String number)The card number.voidsetStoredPaymentMethodId(String storedPaymentMethodId)Identifier used to fetch the token from the external servicevoidsetSubtype(ExternalTokenDetails.SubtypeEnum subtype)The external service from which to fetch the token.voidsetType(ExternalTokenDetails.TypeEnum type)The type of token.ExternalTokenDetailsstoredPaymentMethodId(String storedPaymentMethodId)Identifier used to fetch the token from the external serviceExternalTokenDetailssubtype(ExternalTokenDetails.SubtypeEnum subtype)The external service from which to fetch the token.StringtoJson()Convert an instance of ExternalTokenDetails to an JSON stringStringtoString()ExternalTokenDetailstype(ExternalTokenDetails.TypeEnum type)The type of token.
-
-
-
Field Detail
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- 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_NUMBER
public static final String JSON_PROPERTY_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUBTYPE
public static final String JSON_PROPERTY_SUBTYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public ExternalTokenDetails checkoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId- The checkout attempt identifier.- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId The checkout attempt identifier.
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId- The checkout attempt identifier.
-
expiryMonth
public ExternalTokenDetails expiryMonth(String expiryMonth)
The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
expiryMonth- The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getExpiryMonth
public String getExpiryMonth()
The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- expiryMonth The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
-
setExpiryMonth
public void setExpiryMonth(String expiryMonth)
The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
expiryMonth- The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
-
expiryYear
public ExternalTokenDetails expiryYear(String expiryYear)
The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
expiryYear- The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getExpiryYear
public String getExpiryYear()
The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- expiryYear The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
-
setExpiryYear
public void setExpiryYear(String expiryYear)
The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
expiryYear- The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
-
holderName
public ExternalTokenDetails holderName(String holderName)
The name of the card holder.- Parameters:
holderName- The name of the card holder.- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getHolderName
public String getHolderName()
The name of the card holder.- Returns:
- holderName The name of the card holder.
-
setHolderName
public void setHolderName(String holderName)
The name of the card holder.- Parameters:
holderName- The name of the card holder.
-
number
public ExternalTokenDetails number(String number)
The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
number- The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getNumber
public String getNumber()
The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Returns:
- number The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
-
setNumber
public void setNumber(String number)
The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).- Parameters:
number- The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
-
storedPaymentMethodId
public ExternalTokenDetails storedPaymentMethodId(String storedPaymentMethodId)
Identifier used to fetch the token from the external service- Parameters:
storedPaymentMethodId- Identifier used to fetch the token from the external service- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
Identifier used to fetch the token from the external service- Returns:
- storedPaymentMethodId Identifier used to fetch the token from the external service
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
Identifier used to fetch the token from the external service- Parameters:
storedPaymentMethodId- Identifier used to fetch the token from the external service
-
subtype
public ExternalTokenDetails subtype(ExternalTokenDetails.SubtypeEnum subtype)
The external service from which to fetch the token. Supported only for specific companies. Contact Adyen if you want to use this feature.- Parameters:
subtype- The external service from which to fetch the token. Supported only for specific companies. Contact Adyen if you want to use this feature.- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getSubtype
public ExternalTokenDetails.SubtypeEnum getSubtype()
The external service from which to fetch the token. Supported only for specific companies. Contact Adyen if you want to use this feature.- Returns:
- subtype The external service from which to fetch the token. Supported only for specific companies. Contact Adyen if you want to use this feature.
-
setSubtype
public void setSubtype(ExternalTokenDetails.SubtypeEnum subtype)
The external service from which to fetch the token. Supported only for specific companies. Contact Adyen if you want to use this feature.- Parameters:
subtype- The external service from which to fetch the token. Supported only for specific companies. Contact Adyen if you want to use this feature.
-
type
public ExternalTokenDetails type(ExternalTokenDetails.TypeEnum type)
The type of token. Allowed value: **externalToken**.- Parameters:
type- The type of token. Allowed value: **externalToken**.- Returns:
- the current
ExternalTokenDetailsinstance, allowing for method chaining
-
getType
public ExternalTokenDetails.TypeEnum getType()
The type of token. Allowed value: **externalToken**.- Returns:
- type The type of token. Allowed value: **externalToken**.
-
setType
public void setType(ExternalTokenDetails.TypeEnum type)
The type of token. Allowed value: **externalToken**.- Parameters:
type- The type of token. Allowed value: **externalToken**.
-
includeNullValues
public ExternalTokenDetails includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this ExternalTokenDetails object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static ExternalTokenDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ExternalTokenDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExternalTokenDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ExternalTokenDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ExternalTokenDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-