Unicom360.WhatsApp.TemplateList (Unicom360 v0.1.0)

Copy Markdown View Source

The result of Unicom360.WhatsApp.templates/2 (canonical name TemplateList): templates, a list of Unicom360.WhatsApp.TemplateInfo, plus api_reference, message, raw and extra.

Summary

Functions

The first template named name (and in language, when given), or nil.

Types

t()

@type t() :: %Unicom360.WhatsApp.TemplateList{
  api_reference: String.t() | nil,
  extra: map(),
  message: String.t() | nil,
  raw: map(),
  templates: [Unicom360.WhatsApp.TemplateInfo.t()]
}

Functions

by_name(template_list, name, language \\ nil)

@spec by_name(t(), String.t(), String.t() | nil) ::
  Unicom360.WhatsApp.TemplateInfo.t() | nil

The first template named name (and in language, when given), or nil.