Package Avalara.SDK.model.EInvoicing.V1
Class EventMessage
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.EventMessage
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class EventMessage extends Object
EventMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventMessage.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CORRELATION_IDstatic StringSERIALIZED_NAME_EVENT_NAMEstatic StringSERIALIZED_NAME_EVENT_VERSIONstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_RECEIPT_TIMESTAMPstatic StringSERIALIZED_NAME_SIGNATUREstatic StringSERIALIZED_NAME_SYSTEM_CODEstatic StringSERIALIZED_NAME_TENANT_ID
-
Constructor Summary
Constructors Constructor Description EventMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventMessagecorrelationId(String correlationId)booleanequals(Object o)EventMessageeventName(String eventName)EventMessageeventVersion(String eventVersion)static EventMessagefromJson(String jsonString)Create an instance of EventMessage given an JSON stringStringgetCorrelationId()The correlation ID used by Avalara to aid in tracing through to provenance of this event massage.StringgetEventName()Type of the eventStringgetEventVersion()Version of the included payload.ObjectgetMessage()Event-specific informationOffsetDateTimegetReceiptTimestamp()Timestamp when the event was received by the dispatch service.SignatureValueSignaturegetSignature()Get signatureStringgetSystemCode()The Avalara registered code for the system.StringgetTenantId()Tenant ID of the eventinthashCode()EventMessagemessage(Object message)EventMessagereceiptTimestamp(OffsetDateTime receiptTimestamp)voidsetCorrelationId(String correlationId)voidsetEventName(String eventName)voidsetEventVersion(String eventVersion)voidsetMessage(Object message)voidsetReceiptTimestamp(OffsetDateTime receiptTimestamp)voidsetSignature(SignatureValueSignature signature)voidsetSystemCode(String systemCode)voidsetTenantId(String tenantId)EventMessagesignature(SignatureValueSignature signature)EventMessagesystemCode(String systemCode)EventMessagetenantId(String tenantId)StringtoJson()Convert an instance of EventMessage 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_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNATURE
public static final String SERIALIZED_NAME_SIGNATURE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TENANT_ID
public static final String SERIALIZED_NAME_TENANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CORRELATION_ID
public static final String SERIALIZED_NAME_CORRELATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SYSTEM_CODE
public static final String SERIALIZED_NAME_SYSTEM_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EVENT_NAME
public static final String SERIALIZED_NAME_EVENT_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EVENT_VERSION
public static final String SERIALIZED_NAME_EVENT_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECEIPT_TIMESTAMP
public static final String SERIALIZED_NAME_RECEIPT_TIMESTAMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
message
public EventMessage message(Object message)
-
setMessage
public void setMessage(Object message)
-
signature
public EventMessage signature(SignatureValueSignature signature)
-
getSignature
@Nonnull public SignatureValueSignature getSignature()
Get signature- Returns:
- signature
-
setSignature
public void setSignature(SignatureValueSignature signature)
-
tenantId
public EventMessage tenantId(String tenantId)
-
setTenantId
public void setTenantId(String tenantId)
-
correlationId
public EventMessage correlationId(String correlationId)
-
getCorrelationId
@Nullable public String getCorrelationId()
The correlation ID used by Avalara to aid in tracing through to provenance of this event massage.- Returns:
- correlationId
-
setCorrelationId
public void setCorrelationId(String correlationId)
-
systemCode
public EventMessage systemCode(String systemCode)
-
getSystemCode
@Nonnull public String getSystemCode()
The Avalara registered code for the system. See <a href=\"https://avalara.atlassian.net/wiki/spaces/AIM/pages/637250338966/Taxonomy+Avalara+Systems\">Taxonomy: Avalara Systems</a>- Returns:
- systemCode
-
setSystemCode
public void setSystemCode(String systemCode)
-
eventName
public EventMessage eventName(String eventName)
-
setEventName
public void setEventName(String eventName)
-
eventVersion
public EventMessage eventVersion(String eventVersion)
-
getEventVersion
@Nullable public String getEventVersion()
Version of the included payload.- Returns:
- eventVersion
-
setEventVersion
public void setEventVersion(String eventVersion)
-
receiptTimestamp
public EventMessage receiptTimestamp(OffsetDateTime receiptTimestamp)
-
getReceiptTimestamp
@Nullable public OffsetDateTime getReceiptTimestamp()
Timestamp when the event was received by the dispatch service.- Returns:
- receiptTimestamp
-
setReceiptTimestamp
public void setReceiptTimestamp(OffsetDateTime receiptTimestamp)
-
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 EventMessage
-
fromJson
public static EventMessage fromJson(String jsonString) throws IOException
Create an instance of EventMessage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EventMessage
- Throws:
IOException- if the JSON string is invalid with respect to EventMessage
-
toJson
public String toJson()
Convert an instance of EventMessage to an JSON string- Returns:
- JSON string
-
-