Package Avalara.SDK.model.EInvoicing.V1
Class Consents
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.Consents
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class Consents extends Object
Consents
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsents.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LIST_IN_AVALARA_DIRECTORY
-
Constructor Summary
Constructors Constructor Description Consents()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ConsentsfromJson(String jsonString)Create an instance of Consents given an JSON stringBooleangetListInAvalaraDirectory()Indicates whether the trading partner consents to being listed in the directory.inthashCode()ConsentslistInAvalaraDirectory(Boolean listInAvalaraDirectory)voidsetListInAvalaraDirectory(Boolean listInAvalaraDirectory)StringtoJson()Convert an instance of Consents to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Method Detail
-
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)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-