Class CreatePermitRequest


  • public class CreatePermitRequest
    extends Object
    CreatePermitRequest
    • Constructor Detail

      • CreatePermitRequest

        public CreatePermitRequest()
    • Method Detail

      • 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 -
      • getPermits

        public List<Permit> getPermits()
        The permits to create for this recurring contract.
        Returns:
        permits
      • setPermits

        public void setPermits​(List<Permit> permits)
        The permits to create for this recurring contract.
        Parameters:
        permits -
      • getRecurringDetailReference

        public String getRecurringDetailReference()
        The recurring contract the new permits will use.
        Returns:
        recurringDetailReference
      • setRecurringDetailReference

        public void setRecurringDetailReference​(String recurringDetailReference)
        The recurring contract the new permits will use.
        Parameters:
        recurringDetailReference -
      • getShopperReference

        public String getShopperReference()
        The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).
        Returns:
        shopperReference
      • setShopperReference

        public void setShopperReference​(String shopperReference)
        The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).
        Parameters:
        shopperReference -
      • equals

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

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

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

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