Class Consents


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class Consents
    extends Object
    Consents
    • Field Detail

      • SERIALIZED_NAME_LIST_IN_AVALARA_DIRECTORY

        public static final String SERIALIZED_NAME_LIST_IN_AVALARA_DIRECTORY
        See Also:
        Constant Field Values
      • openapiRequiredFields

        public static HashSet<String> openapiRequiredFields
    • Constructor Detail

      • Consents

        public Consents()
    • Method Detail

      • listInAvalaraDirectory

        public Consents listInAvalaraDirectory​(Boolean listInAvalaraDirectory)
      • getListInAvalaraDirectory

        @Nullable
        public Boolean getListInAvalaraDirectory()
        Indicates whether the trading partner consents to being listed in the directory. If not provided in the payload, its value will default to true.
        Returns:
        listInAvalaraDirectory
      • setListInAvalaraDirectory

        public void setListInAvalaraDirectory​(Boolean listInAvalaraDirectory)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to Consents
      • fromJson

        public static Consents fromJson​(String jsonString)
                                 throws IOException
        Create an instance of Consents given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Consents
        Throws:
        IOException - if the JSON string is invalid with respect to Consents
      • toJson

        public String toJson()
        Convert an instance of Consents to an JSON string
        Returns:
        JSON string