Class RecurringToken


  • public class RecurringToken
    extends Object
    RecurringToken
    • Constructor Detail

      • RecurringToken

        public RecurringToken()
    • Method Detail

      • merchantAccount

        public RecurringToken merchantAccount​(String merchantAccount)
        The identifier of the merchant account related to the event that triggered the webhook.
        Parameters:
        merchantAccount - The identifier of the merchant account related to the event that triggered the webhook.
        Returns:
        the current RecurringToken instance, allowing for method chaining
      • getMerchantAccount

        public String getMerchantAccount()
        The identifier of the merchant account related to the event that triggered the webhook.
        Returns:
        merchantAccount The identifier of the merchant account related to the event that triggered the webhook.
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
        The identifier of the merchant account related to the event that triggered the webhook.
        Parameters:
        merchantAccount - The identifier of the merchant account related to the event that triggered the webhook.
      • shopperReference

        public RecurringToken shopperReference​(String shopperReference)
        Your unique shopper reference that is associated with the `storedPaymentMethodId`.
        Parameters:
        shopperReference - Your unique shopper reference that is associated with the `storedPaymentMethodId`.
        Returns:
        the current RecurringToken instance, allowing for method chaining
      • getShopperReference

        public String getShopperReference()
        Your unique shopper reference that is associated with the `storedPaymentMethodId`.
        Returns:
        shopperReference Your unique shopper reference that is associated with the `storedPaymentMethodId`.
      • setShopperReference

        public void setShopperReference​(String shopperReference)
        Your unique shopper reference that is associated with the `storedPaymentMethodId`.
        Parameters:
        shopperReference - Your unique shopper reference that is associated with the `storedPaymentMethodId`.
      • storedPaymentMethodId

        public RecurringToken storedPaymentMethodId​(String storedPaymentMethodId)
        The ID of the token.
        Parameters:
        storedPaymentMethodId - The ID of the token.
        Returns:
        the current RecurringToken instance, allowing for method chaining
      • getStoredPaymentMethodId

        public String getStoredPaymentMethodId()
        The ID of the token.
        Returns:
        storedPaymentMethodId The ID of the token.
      • setStoredPaymentMethodId

        public void setStoredPaymentMethodId​(String storedPaymentMethodId)
        The ID of the token.
        Parameters:
        storedPaymentMethodId - The ID of the token.
      • type

        public RecurringToken type​(String type)
        The type of the payment method.
        Parameters:
        type - The type of the payment method.
        Returns:
        the current RecurringToken instance, allowing for method chaining
      • getType

        public String getType()
        The type of the payment method.
        Returns:
        type The type of the payment method.
      • setType

        public void setType​(String type)
        The type of the payment method.
        Parameters:
        type - The type of the payment method.
      • equals

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

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

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

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