Package Avalara.SDK.model.EInvoicing.V1
Class StatusEvent
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.StatusEvent
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class StatusEvent extends Object
Displays when a status event occurred
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatusEvent.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EVENT_DATE_TIMEstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_RESPONSE_KEYstatic StringSERIALIZED_NAME_RESPONSE_VALUE
-
Constructor Summary
Constructors Constructor Description StatusEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StatusEventeventDateTime(String eventDateTime)static StatusEventfromJson(String jsonString)Create an instance of StatusEvent given an JSON stringStringgetEventDateTime()The date and time when the status event occured, displayed in the format YYYY-MM-DDThh:mm:ssStringgetMessage()A message describing the status eventStringgetResponseKey()The type of number or acknowledgement returned by the tax authority (if applicable).StringgetResponseValue()The corresponding value associated with the response key.inthashCode()StatusEventmessage(String message)StatusEventresponseKey(String responseKey)StatusEventresponseValue(String responseValue)voidsetEventDateTime(String eventDateTime)voidsetMessage(String message)voidsetResponseKey(String responseKey)voidsetResponseValue(String responseValue)StringtoJson()Convert an instance of StatusEvent 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_EVENT_DATE_TIME
public static final String SERIALIZED_NAME_EVENT_DATE_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESPONSE_KEY
public static final String SERIALIZED_NAME_RESPONSE_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESPONSE_VALUE
public static final String SERIALIZED_NAME_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
eventDateTime
public StatusEvent eventDateTime(String eventDateTime)
-
getEventDateTime
@Nullable public String getEventDateTime()
The date and time when the status event occured, displayed in the format YYYY-MM-DDThh:mm:ss- Returns:
- eventDateTime
-
setEventDateTime
public void setEventDateTime(String eventDateTime)
-
message
public StatusEvent message(String message)
-
getMessage
@Nullable public String getMessage()
A message describing the status event- Returns:
- message
-
setMessage
public void setMessage(String message)
-
responseKey
public StatusEvent responseKey(String responseKey)
-
getResponseKey
@Nullable public String getResponseKey()
The type of number or acknowledgement returned by the tax authority (if applicable). For example, it could be an identification key, acknowledgement code, or any other relevant identifier.- Returns:
- responseKey
-
setResponseKey
public void setResponseKey(String responseKey)
-
responseValue
public StatusEvent responseValue(String responseValue)
-
getResponseValue
@Nullable public String getResponseValue()
The corresponding value associated with the response key. This value is provided by the tax authority in response to the event.- Returns:
- responseValue
-
setResponseValue
public void setResponseValue(String responseValue)
-
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 StatusEvent
-
fromJson
public static StatusEvent fromJson(String jsonString) throws IOException
Create an instance of StatusEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StatusEvent
- Throws:
IOException- if the JSON string is invalid with respect to StatusEvent
-
toJson
public String toJson()
Convert an instance of StatusEvent to an JSON string- Returns:
- JSON string
-
-