Class StoredPaymentMethodResource


  • public class StoredPaymentMethodResource
    extends Object
    StoredPaymentMethodResource
    • Constructor Detail

      • StoredPaymentMethodResource

        public StoredPaymentMethodResource()
    • Method Detail

      • brand

        public StoredPaymentMethodResource brand​(String brand)
        The brand of the card.
        Parameters:
        brand -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • getBrand

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

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

        public StoredPaymentMethodResource expiryMonth​(String expiryMonth)
        The month the card expires.
        Parameters:
        expiryMonth -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • getExpiryMonth

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

        public void setExpiryMonth​(String expiryMonth)
        The month the card expires.
        Parameters:
        expiryMonth -
      • expiryYear

        public StoredPaymentMethodResource expiryYear​(String expiryYear)
        The last two digits of the year the card expires. For example, **22** for the year 2022.
        Parameters:
        expiryYear -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • externalResponseCode

        public StoredPaymentMethodResource externalResponseCode​(String externalResponseCode)
        The response code returned by an external system (for example after a provisioning operation).
        Parameters:
        externalResponseCode -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • externalTokenReference

        public StoredPaymentMethodResource externalTokenReference​(String externalTokenReference)
        The token reference of a linked token in an external system (for example a network token reference).
        Parameters:
        externalTokenReference -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • holderName

        public StoredPaymentMethodResource holderName​(String holderName)
        The unique payment method code.
        Parameters:
        holderName -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • getHolderName

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

        public void setHolderName​(String holderName)
        The unique payment method code.
        Parameters:
        holderName -
      • iban

        public StoredPaymentMethodResource iban​(String iban)
        The IBAN of the bank account.
        Parameters:
        iban -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • id

        public StoredPaymentMethodResource id​(String id)
        A unique identifier of this stored payment method.
        Parameters:
        id -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • issuerName

        public StoredPaymentMethodResource issuerName​(String issuerName)
        The name of the issuer of token or card.
        Parameters:
        issuerName -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • lastFour

        public StoredPaymentMethodResource lastFour​(String lastFour)
        The last four digits of the PAN.
        Parameters:
        lastFour -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • name

        public StoredPaymentMethodResource name​(String name)
        The display name of the stored payment method.
        Parameters:
        name -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • networkTxReference

        public StoredPaymentMethodResource networkTxReference​(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 -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • ownerName

        public StoredPaymentMethodResource ownerName​(String ownerName)
        The name of the bank account holder.
        Parameters:
        ownerName -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • shopperEmail

        public StoredPaymentMethodResource shopperEmail​(String shopperEmail)
        The shopper’s email address.
        Parameters:
        shopperEmail -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • getShopperEmail

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

        public void setShopperEmail​(String shopperEmail)
        The shopper’s email address.
        Parameters:
        shopperEmail -
      • shopperReference

        public StoredPaymentMethodResource shopperReference​(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 -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • supportedRecurringProcessingModels

        public StoredPaymentMethodResource supportedRecurringProcessingModels​(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 -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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 -
      • type

        public StoredPaymentMethodResource type​(String type)
        The type of payment method.
        Parameters:
        type -
        Returns:
        the current StoredPaymentMethodResource instance, allowing for method chaining
      • 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