Package Avalara.SDK.model.EInvoicing.V1
Class SubmitDocumentData
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.SubmitDocumentData
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SubmitDocumentData extends Object
The document to be submitted, as indicated by the metadata fields 'dataFormat' and 'dataFormatVersion'
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubmitDocumentData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATA
-
Constructor Summary
Constructors Constructor Description SubmitDocumentData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmitDocumentDatadata(String data)booleanequals(Object o)static SubmitDocumentDatafromJson(String jsonString)Create an instance of SubmitDocumentData given an JSON stringStringgetData()The document to be submitted, as indicated by the metadata fields 'dataFormat' and 'dataFormatVersion'inthashCode()voidsetData(String data)StringtoJson()Convert an instance of SubmitDocumentData to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Method Detail
-
data
public SubmitDocumentData data(String data)
-
getData
@Nullable public String getData()
The document to be submitted, as indicated by the metadata fields 'dataFormat' and 'dataFormatVersion'- Returns:
- data
-
setData
public void setData(String data)
-
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 SubmitDocumentData
-
fromJson
public static SubmitDocumentData fromJson(String jsonString) throws IOException
Create an instance of SubmitDocumentData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubmitDocumentData
- Throws:
IOException- if the JSON string is invalid with respect to SubmitDocumentData
-
toJson
public String toJson()
Convert an instance of SubmitDocumentData to an JSON string- Returns:
- JSON string
-
-