Class StoredPaymentMethodResource


  • public class StoredPaymentMethodResource
    extends Object
    StoredPaymentMethodResource
    • Constructor Detail

      • StoredPaymentMethodResource

        public StoredPaymentMethodResource()
    • Method Detail

      • getBrand

        public String getBrand()
        The brand of the card.
        Returns:
        brand
      • setBrand

        public void setBrand​(String brand)
        The brand of the card.
        Parameters:
        brand -
      • getExpiryMonth

        public String getExpiryMonth()
        The month the card expires.
        Returns:
        expiryMonth
      • setExpiryMonth

        public void setExpiryMonth​(String expiryMonth)
        The month the card expires.
        Parameters:
        expiryMonth -
      • 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 -
      • 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 -
      • 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 -
      • getHolderName

        public String getHolderName()
        The unique payment method code.
        Returns:
        holderName
      • setHolderName

        public void setHolderName​(String holderName)
        The unique payment method code.
        Parameters:
        holderName -
      • 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 -
      • 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 -
      • 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 -
      • 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 -
      • 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 -
      • 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 -
      • 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 -
      • getShopperEmail

        public String getShopperEmail()
        The shopper’s email address.
        Returns:
        shopperEmail
      • setShopperEmail

        public void setShopperEmail​(String shopperEmail)
        The shopper’s email address.
        Parameters:
        shopperEmail -
      • 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 -
      • 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 -
      • 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.
        Overrides:
        equals in class Object
      • hashCode

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