Class StoredPaymentMethod


  • public class StoredPaymentMethod
    extends Object
    StoredPaymentMethod
    • Constructor Detail

      • StoredPaymentMethod

        public StoredPaymentMethod()
    • Method Detail

      • getBankAccountNumber

        public String getBankAccountNumber()
        The bank account number (without separators).
        Returns:
        bankAccountNumber
      • setBankAccountNumber

        public void setBankAccountNumber​(String bankAccountNumber)
        The bank account number (without separators).
        Parameters:
        bankAccountNumber -
      • getBankLocationId

        public String getBankLocationId()
        The location id of the bank. The field value is `nil` in most cases.
        Returns:
        bankLocationId
      • setBankLocationId

        public void setBankLocationId​(String bankLocationId)
        The location id of the bank. The field value is `nil` in most cases.
        Parameters:
        bankLocationId -
      • 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 -
      • 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 -
      • getLabel

        public String getLabel()
        The shopper’s issuer account label
        Returns:
        label
      • setLabel

        public void setLabel​(String label)
        The shopper’s issuer account label
        Parameters:
        label -
      • 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 -
      • supportedRecurringProcessingModels

        public StoredPaymentMethod supportedRecurringProcessingModels​(List<String> supportedRecurringProcessingModels)
      • addSupportedRecurringProcessingModelsItem

        public StoredPaymentMethod addSupportedRecurringProcessingModelsItem​(String supportedRecurringProcessingModelsItem)
      • getSupportedRecurringProcessingModels

        public List<String> getSupportedRecurringProcessingModels()
        The supported recurring processing models for this stored payment method.
        Returns:
        supportedRecurringProcessingModels
      • setSupportedRecurringProcessingModels

        public void setSupportedRecurringProcessingModels​(List<String> supportedRecurringProcessingModels)
        The supported recurring processing models for this stored payment method.
        Parameters:
        supportedRecurringProcessingModels -
      • addSupportedShopperInteractionsItem

        public StoredPaymentMethod addSupportedShopperInteractionsItem​(String supportedShopperInteractionsItem)
      • getSupportedShopperInteractions

        public List<String> getSupportedShopperInteractions()
        The supported shopper interactions for this stored payment method.
        Returns:
        supportedShopperInteractions
      • setSupportedShopperInteractions

        public void setSupportedShopperInteractions​(List<String> supportedShopperInteractions)
        The supported shopper interactions for this stored payment method.
        Parameters:
        supportedShopperInteractions -
      • 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 StoredPaymentMethod object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

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