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 - The key to link permit requests to permit results.
        Returns:
        the current PermitResult instance, allowing for method chaining
      • getResultKey

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

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

        public PermitResult token​(String token)
        The permit token which is used to make payments by the partner company.
        Parameters:
        token - The permit token which is used to make payments by the partner company.
        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 The permit token which is used to make payments by the partner company.
      • setToken

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

        public PermitResult includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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