Unicom360.WhatsApp.TemplateResult (Unicom360 v0.1.0)

Copy Markdown View Source

One recipient of a template send (canonical name TemplateResult).

  • message_id - a string; nil unless the message was queued (or, with reason "DUPLICATE_MSG_REF", the original message's id).
  • to, user_reference_id - strings: a rejected recipient echoes what the request sent, converted to a string.
  • status - "ACKNOWLEDGED" or "REJECTED" (open).
  • reason - why it was rejected (open; for example "INVALID_NUMBER"); nil when accepted.
  • category - the template's category.
  • raw, extra - the JSON object, and the members this version does not model.

Summary

Types

t()

@type t() :: %Unicom360.WhatsApp.TemplateResult{
  category: String.t() | nil,
  extra: map(),
  message_id: String.t() | nil,
  raw: map(),
  reason: String.t() | nil,
  status: String.t() | nil,
  to: String.t() | nil,
  user_reference_id: String.t() | nil
}