Unicom360.Webhook.MessageStatusData (Unicom360 v0.1.0)

Copy Markdown View Source

The data of a message.status event.

  • message_id - the id the send returned (a UUID).
  • user_reference_id, channel, to, from.
  • status - "sent", "delivered", "read" or "failed" (open).
  • timestamp - an ISO 8601 string, as received.
  • error - a Unicom360.WhatsApp.MessageError or nil.
  • category, billable.
  • raw, extra - the JSON object, and the members this version does not model.

Summary

Types

t()

@type t() :: %Unicom360.Webhook.MessageStatusData{
  billable: boolean() | nil,
  category: String.t() | nil,
  channel: String.t() | nil,
  error: Unicom360.WhatsApp.MessageError.t() | nil,
  extra: map(),
  from: String.t() | nil,
  message_id: String.t() | nil,
  raw: map(),
  status: String.t() | nil,
  timestamp: String.t() | nil,
  to: String.t() | nil,
  user_reference_id: String.t() | nil
}