Class StoredPaymentMethodRequest


  • public class StoredPaymentMethodRequest
    extends Object
    StoredPaymentMethodRequest
    • Constructor Detail

      • StoredPaymentMethodRequest

        public StoredPaymentMethodRequest()
    • Method Detail

      • merchantAccount

        public StoredPaymentMethodRequest merchantAccount​(String merchantAccount)
        The merchant account identifier, with which you want to process the transaction.
        Parameters:
        merchantAccount -
        Returns:
        the current StoredPaymentMethodRequest instance, allowing for method chaining
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account identifier, with which you want to process the transaction.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
        The merchant account identifier, with which you want to process the transaction.
        Parameters:
        merchantAccount -
      • paymentMethod

        public StoredPaymentMethodRequest paymentMethod​(PaymentMethodToStore paymentMethod)
        paymentMethod
        Parameters:
        paymentMethod -
        Returns:
        the current StoredPaymentMethodRequest instance, allowing for method chaining
      • getPaymentMethod

        public PaymentMethodToStore getPaymentMethod()
        paymentMethod
        Returns:
        paymentMethod
      • setPaymentMethod

        public void setPaymentMethod​(PaymentMethodToStore paymentMethod)
        paymentMethod
        Parameters:
        paymentMethod -
      • recurringProcessingModel

        public StoredPaymentMethodRequest recurringProcessingModel​(StoredPaymentMethodRequest.RecurringProcessingModelEnum recurringProcessingModel)
        Defines a recurring payment type. Required when creating a token to store payment details. 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:
        recurringProcessingModel -
        Returns:
        the current StoredPaymentMethodRequest instance, allowing for method chaining
      • getRecurringProcessingModel

        public StoredPaymentMethodRequest.RecurringProcessingModelEnum getRecurringProcessingModel()
        Defines a recurring payment type. Required when creating a token to store payment details. 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:
        recurringProcessingModel
      • setRecurringProcessingModel

        public void setRecurringProcessingModel​(StoredPaymentMethodRequest.RecurringProcessingModelEnum recurringProcessingModel)
        Defines a recurring payment type. Required when creating a token to store payment details. 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:
        recurringProcessingModel -
      • shopperEmail

        public StoredPaymentMethodRequest shopperEmail​(String shopperEmail)
        The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks.
        Parameters:
        shopperEmail -
        Returns:
        the current StoredPaymentMethodRequest instance, allowing for method chaining
      • getShopperEmail

        public String getShopperEmail()
        The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks.
        Returns:
        shopperEmail
      • setShopperEmail

        public void setShopperEmail​(String shopperEmail)
        The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks.
        Parameters:
        shopperEmail -
      • shopperIP

        public StoredPaymentMethodRequest shopperIP​(String shopperIP)
        The IP address of a shopper.
        Parameters:
        shopperIP -
        Returns:
        the current StoredPaymentMethodRequest instance, allowing for method chaining
      • getShopperIP

        public String getShopperIP()
        The IP address of a shopper.
        Returns:
        shopperIP
      • setShopperIP

        public void setShopperIP​(String shopperIP)
        The IP address of a shopper.
        Parameters:
        shopperIP -
      • shopperReference

        public StoredPaymentMethodRequest shopperReference​(String shopperReference)
        A unique identifier for the shopper (for example, user ID or account ID).
        Parameters:
        shopperReference -
        Returns:
        the current StoredPaymentMethodRequest instance, allowing for method chaining
      • getShopperReference

        public String getShopperReference()
        A unique identifier for the shopper (for example, user ID or account ID).
        Returns:
        shopperReference
      • setShopperReference

        public void setShopperReference​(String shopperReference)
        A unique identifier for the shopper (for example, user ID or account ID).
        Parameters:
        shopperReference -
      • equals

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

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

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

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