Class ExternalTokenDetails


  • public class ExternalTokenDetails
    extends Object
    ExternalTokenDetails
    • Constructor Detail

      • ExternalTokenDetails

        public ExternalTokenDetails()
    • Method Detail

      • checkoutAttemptId

        public ExternalTokenDetails checkoutAttemptId​(String checkoutAttemptId)
        The checkout attempt identifier.
        Parameters:
        checkoutAttemptId - The checkout attempt identifier.
        Returns:
        the current ExternalTokenDetails instance, 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 ExternalTokenDetails instance, 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 ExternalTokenDetails instance, 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 ExternalTokenDetails instance, 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 ExternalTokenDetails instance, 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 ExternalTokenDetails instance, 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 ExternalTokenDetails instance, 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 ExternalTokenDetails instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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