Class CardDetails


  • public class CardDetails
    extends Object
    CardDetails
    • Constructor Detail

      • CardDetails

        public CardDetails()
    • Method Detail

      • getBrand

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

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

        public CardDetails checkoutAttemptId​(String checkoutAttemptId)
      • getCheckoutAttemptId

        public String getCheckoutAttemptId()
        The checkout attempt identifier.
        Returns:
        checkoutAttemptId
      • setCheckoutAttemptId

        public void setCheckoutAttemptId​(String checkoutAttemptId)
        The checkout attempt identifier.
        Parameters:
        checkoutAttemptId -
      • getCupsecureplusSmscode

        @Deprecated
        public String getCupsecureplusSmscode()
        Deprecated.
        Get cupsecureplusSmscode
        Returns:
        cupsecureplusSmscode
      • setCupsecureplusSmscode

        @Deprecated
        public void setCupsecureplusSmscode​(String cupsecureplusSmscode)
        Deprecated.
        cupsecureplusSmscode
        Parameters:
        cupsecureplusSmscode -
      • 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
      • 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 -
      • encryptedCardNumber

        public CardDetails encryptedCardNumber​(String encryptedCardNumber)
      • getEncryptedCardNumber

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

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

        public CardDetails encryptedExpiryMonth​(String encryptedExpiryMonth)
      • getEncryptedExpiryMonth

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

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

        public CardDetails encryptedExpiryYear​(String encryptedExpiryYear)
      • getEncryptedExpiryYear

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

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

        public CardDetails encryptedSecurityCode​(String encryptedSecurityCode)
      • getEncryptedSecurityCode

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

        public void setEncryptedSecurityCode​(String encryptedSecurityCode)
        The encrypted card verification code.
        Parameters:
        encryptedSecurityCode -
      • 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
      • 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 -
      • 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
      • 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 -
      • getFundingSource

        public CardDetails.FundingSourceEnum getFundingSource()
        The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
        Returns:
        fundingSource
      • setFundingSource

        public void setFundingSource​(CardDetails.FundingSourceEnum fundingSource)
        The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
        Parameters:
        fundingSource -
      • getHolderName

        public String getHolderName()
        The name of the card holder.
        Returns:
        holderName
      • setHolderName

        public void setHolderName​(String holderName)
        The name of the card holder.
        Parameters:
        holderName -
      • networkPaymentReference

        public CardDetails networkPaymentReference​(String networkPaymentReference)
      • getNetworkPaymentReference

        public String getNetworkPaymentReference()
        The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
        Returns:
        networkPaymentReference
      • setNetworkPaymentReference

        public void setNetworkPaymentReference​(String networkPaymentReference)
        The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.
        Parameters:
        networkPaymentReference -
      • 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
      • 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 -
      • getRecurringDetailReference

        @Deprecated
        public String getRecurringDetailReference()
        Deprecated.
        This is the `recurringDetailReference` returned in the response when you created the token.
        Returns:
        recurringDetailReference
      • setRecurringDetailReference

        @Deprecated
        public void setRecurringDetailReference​(String recurringDetailReference)
        Deprecated.
        This is the `recurringDetailReference` returned in the response when you created the token.
        Parameters:
        recurringDetailReference -
      • shopperNotificationReference

        public CardDetails shopperNotificationReference​(String shopperNotificationReference)
      • getShopperNotificationReference

        public String getShopperNotificationReference()
        The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India.
        Returns:
        shopperNotificationReference
      • setShopperNotificationReference

        public void setShopperNotificationReference​(String shopperNotificationReference)
        The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India.
        Parameters:
        shopperNotificationReference -
      • srcCorrelationId

        public CardDetails srcCorrelationId​(String srcCorrelationId)
      • getSrcCorrelationId

        public String getSrcCorrelationId()
        An identifier used for the Click to Pay transaction.
        Returns:
        srcCorrelationId
      • setSrcCorrelationId

        public void setSrcCorrelationId​(String srcCorrelationId)
        An identifier used for the Click to Pay transaction.
        Parameters:
        srcCorrelationId -
      • getSrcScheme

        public String getSrcScheme()
        The scheme that is being used for Click to Pay.
        Returns:
        srcScheme
      • setSrcScheme

        public void setSrcScheme​(String srcScheme)
        The scheme that is being used for Click to Pay.
        Parameters:
        srcScheme -
      • srcTokenReference

        public CardDetails srcTokenReference​(String srcTokenReference)
      • getSrcTokenReference

        public String getSrcTokenReference()
        The reference for the Click to Pay token.
        Returns:
        srcTokenReference
      • setSrcTokenReference

        public void setSrcTokenReference​(String srcTokenReference)
        The reference for the Click to Pay token.
        Parameters:
        srcTokenReference -
      • storedPaymentMethodId

        public CardDetails storedPaymentMethodId​(String storedPaymentMethodId)
      • getStoredPaymentMethodId

        public String getStoredPaymentMethodId()
        This is the `recurringDetailReference` returned in the response when you created the token.
        Returns:
        storedPaymentMethodId
      • setStoredPaymentMethodId

        public void setStoredPaymentMethodId​(String storedPaymentMethodId)
        This is the `recurringDetailReference` returned in the response when you created the token.
        Parameters:
        storedPaymentMethodId -
      • threeDS2SdkVersion

        public CardDetails threeDS2SdkVersion​(String threeDS2SdkVersion)
      • getThreeDS2SdkVersion

        public String getThreeDS2SdkVersion()
        Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.
        Returns:
        threeDS2SdkVersion
      • setThreeDS2SdkVersion

        public void setThreeDS2SdkVersion​(String threeDS2SdkVersion)
        Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.
        Parameters:
        threeDS2SdkVersion -
      • getType

        public CardDetails.TypeEnum getType()
        Default payment method details. Common for scheme payment methods, and for simple payment method details.
        Returns:
        type
      • setType

        public void setType​(CardDetails.TypeEnum type)
        Default payment method details. Common for scheme payment methods, and for simple payment method details.
        Parameters:
        type -
      • equals

        public boolean equals​(Object o)
        Return true if this CardDetails object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static CardDetails fromJson​(String jsonString)
                                    throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of CardDetails given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CardDetails
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to CardDetails
      • toJson

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