Class EventMessage


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class EventMessage
    extends Object
    EventMessage
    • Constructor Detail

      • EventMessage

        public EventMessage()
    • Method Detail

      • getMessage

        @Nonnull
        public Object getMessage()
        Event-specific information
        Returns:
        message
      • setMessage

        public void setMessage​(Object message)
      • getTenantId

        @Nonnull
        public String getTenantId()
        Tenant ID of the event
        Returns:
        tenantId
      • setTenantId

        public void setTenantId​(String tenantId)
      • 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)
      • 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&#58; Avalara Systems</a>
        Returns:
        systemCode
      • setSystemCode

        public void setSystemCode​(String systemCode)
      • getEventName

        @Nonnull
        public String getEventName()
        Type of the event
        Returns:
        eventName
      • setEventName

        public void setEventName​(String eventName)
      • getEventVersion

        @Nullable
        public String getEventVersion()
        Version of the included payload.
        Returns:
        eventVersion
      • setEventVersion

        public void setEventVersion​(String eventVersion)
      • getReceiptTimestamp

        @Nullable
        public OffsetDateTime getReceiptTimestamp()
        Timestamp when the event was received by the dispatch service.
        Returns:
        receiptTimestamp
      • setReceiptTimestamp

        public void setReceiptTimestamp​(OffsetDateTime receiptTimestamp)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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