Package Avalara.SDK.model.EInvoicing.V1
Class DocumentFetch
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.DocumentFetch
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class DocumentFetch extends Object
DocumentFetch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentFetch.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EVENT_DATE_TIMEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description DocumentFetch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DocumentFetcheventDateTime(String eventDateTime)static DocumentFetchfromJson(String jsonString)Create an instance of DocumentFetch given an JSON stringStringgetEventDateTime()The date and time when the inbound document was accepted by the Avalara E-Invoicing PlatformStringgetId()Unique ID for this document that can be used for status checking and file downloads.StringgetStatus()Status of the documentinthashCode()DocumentFetchid(String id)voidsetEventDateTime(String eventDateTime)voidsetId(String id)voidsetStatus(String status)DocumentFetchstatus(String status)StringtoJson()Convert an instance of DocumentFetch to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EVENT_DATE_TIME
public static final String SERIALIZED_NAME_EVENT_DATE_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public DocumentFetch id(String id)
-
getId
@Nullable public String getId()
Unique ID for this document that can be used for status checking and file downloads. This is a UID created by the Avalara E-Invoicing platform.- Returns:
- id
-
setId
public void setId(String id)
-
status
public DocumentFetch status(String status)
-
setStatus
public void setStatus(String status)
-
eventDateTime
public DocumentFetch eventDateTime(String eventDateTime)
-
getEventDateTime
@Nullable public String getEventDateTime()
The date and time when the inbound document was accepted by the Avalara E-Invoicing Platform- Returns:
- eventDateTime
-
setEventDateTime
public void setEventDateTime(String eventDateTime)
-
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 DocumentFetch
-
fromJson
public static DocumentFetch fromJson(String jsonString) throws IOException
Create an instance of DocumentFetch given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentFetch
- Throws:
IOException- if the JSON string is invalid with respect to DocumentFetch
-
toJson
public String toJson()
Convert an instance of DocumentFetch to an JSON string- Returns:
- JSON string
-
-