Class PermitResult


  • public class PermitResult
    extends Object
    PermitResult
    • Constructor Detail

      • PermitResult

        public PermitResult()
    • Method Detail

      • resultKey

        public PermitResult resultKey​(String resultKey)
        The key to link permit requests to permit results.
        Parameters:
        resultKey -
        Returns:
        the current PermitResult instance, allowing for method chaining
      • getResultKey

        public String getResultKey()
        The key to link permit requests to permit results.
        Returns:
        resultKey
      • setResultKey

        public void setResultKey​(String resultKey)
        The key to link permit requests to permit results.
        Parameters:
        resultKey -
      • token

        public PermitResult token​(String token)
        The permit token which is used to make payments by the partner company.
        Parameters:
        token -
        Returns:
        the current PermitResult instance, allowing for method chaining
      • getToken

        public String getToken()
        The permit token which is used to make payments by the partner company.
        Returns:
        token
      • setToken

        public void setToken​(String token)
        The permit token which is used to make payments by the partner company.
        Parameters:
        token -
      • equals

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

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

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

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