Class PaymentMethodToStore


  • public class PaymentMethodToStore
    extends Object
    PaymentMethodToStore
    • Constructor Detail

      • PaymentMethodToStore

        public PaymentMethodToStore()
    • Method Detail

      • brand

        public PaymentMethodToStore brand​(String brand)
        Secondary brand of the card. For example: **plastix**, **hmclub**.
        Parameters:
        brand - Secondary brand of the card. For example: **plastix**, **hmclub**.
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getBrand

        public String getBrand()
        Secondary brand of the card. For example: **plastix**, **hmclub**.
        Returns:
        brand Secondary brand of the card. For example: **plastix**, **hmclub**.
      • setBrand

        public void setBrand​(String brand)
        Secondary brand of the card. For example: **plastix**, **hmclub**.
        Parameters:
        brand - Secondary brand of the card. For example: **plastix**, **hmclub**.
      • cvc

        public PaymentMethodToStore cvc​(String cvc)
        The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
        Parameters:
        cvc - The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getCvc

        public String getCvc()
        The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
        Returns:
        cvc The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
      • setCvc

        public void setCvc​(String cvc)
        The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
        Parameters:
        cvc - The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
      • encryptedCard

        public PaymentMethodToStore encryptedCard​(String encryptedCard)
        The encrypted card.
        Parameters:
        encryptedCard - The encrypted card.
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getEncryptedCard

        public String getEncryptedCard()
        The encrypted card.
        Returns:
        encryptedCard The encrypted card.
      • setEncryptedCard

        public void setEncryptedCard​(String encryptedCard)
        The encrypted card.
        Parameters:
        encryptedCard - The encrypted card.
      • encryptedCardNumber

        public PaymentMethodToStore encryptedCardNumber​(String encryptedCardNumber)
        The encrypted card number.
        Parameters:
        encryptedCardNumber - The encrypted card number.
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getEncryptedCardNumber

        public String getEncryptedCardNumber()
        The encrypted card number.
        Returns:
        encryptedCardNumber The encrypted card number.
      • setEncryptedCardNumber

        public void setEncryptedCardNumber​(String encryptedCardNumber)
        The encrypted card number.
        Parameters:
        encryptedCardNumber - The encrypted card number.
      • encryptedExpiryMonth

        public PaymentMethodToStore encryptedExpiryMonth​(String encryptedExpiryMonth)
        The encrypted card expiry month.
        Parameters:
        encryptedExpiryMonth - The encrypted card expiry month.
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getEncryptedExpiryMonth

        public String getEncryptedExpiryMonth()
        The encrypted card expiry month.
        Returns:
        encryptedExpiryMonth The encrypted card expiry month.
      • setEncryptedExpiryMonth

        public void setEncryptedExpiryMonth​(String encryptedExpiryMonth)
        The encrypted card expiry month.
        Parameters:
        encryptedExpiryMonth - The encrypted card expiry month.
      • encryptedExpiryYear

        public PaymentMethodToStore encryptedExpiryYear​(String encryptedExpiryYear)
        The encrypted card expiry year.
        Parameters:
        encryptedExpiryYear - The encrypted card expiry year.
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getEncryptedExpiryYear

        public String getEncryptedExpiryYear()
        The encrypted card expiry year.
        Returns:
        encryptedExpiryYear The encrypted card expiry year.
      • setEncryptedExpiryYear

        public void setEncryptedExpiryYear​(String encryptedExpiryYear)
        The encrypted card expiry year.
        Parameters:
        encryptedExpiryYear - The encrypted card expiry year.
      • encryptedSecurityCode

        public PaymentMethodToStore encryptedSecurityCode​(String encryptedSecurityCode)
        The encrypted card verification code.
        Parameters:
        encryptedSecurityCode - The encrypted card verification code.
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getEncryptedSecurityCode

        public String getEncryptedSecurityCode()
        The encrypted card verification code.
        Returns:
        encryptedSecurityCode The encrypted card verification code.
      • setEncryptedSecurityCode

        public void setEncryptedSecurityCode​(String encryptedSecurityCode)
        The encrypted card verification code.
        Parameters:
        encryptedSecurityCode - The encrypted card verification code.
      • expiryMonth

        public PaymentMethodToStore 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 PaymentMethodToStore 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 PaymentMethodToStore 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 PaymentMethodToStore 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 PaymentMethodToStore holderName​(String holderName)
        The name of the card holder.
        Parameters:
        holderName - The name of the card holder.
        Returns:
        the current PaymentMethodToStore 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 PaymentMethodToStore 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 PaymentMethodToStore 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).
      • type

        public PaymentMethodToStore type​(String type)
        Set to **scheme**.
        Parameters:
        type - Set to **scheme**.
        Returns:
        the current PaymentMethodToStore instance, allowing for method chaining
      • getType

        public String getType()
        Set to **scheme**.
        Returns:
        type Set to **scheme**.
      • setType

        public void setType​(String type)
        Set to **scheme**.
        Parameters:
        type - Set to **scheme**.
      • includeNullValues

        public PaymentMethodToStore 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 PaymentMethodToStore 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 PaymentMethodToStore fromJson​(String jsonString)
                                             throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PaymentMethodToStore given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PaymentMethodToStore
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PaymentMethodToStore
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of PaymentMethodToStore to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException