An approved WhatsApp template, as Unicom360.WhatsApp.templates/2 lists it.
name,language,category,from(the WhatsApp number it belongs to).header- aUnicom360.WhatsApp.TemplateInfo.Header(type,variables) ornil.body- aUnicom360.WhatsApp.TemplateInfo.Body(text,variables).footer- text ornil.buttons- a list ofUnicom360.WhatsApp.TemplateButtonInfo.authentication- aUnicom360.WhatsApp.TemplateInfo.Authentication(otp_type,code_expiration_minutes) ornil.raw,extra- the JSON object, and the members this version does not model.
Summary
Types
@type t() :: %Unicom360.WhatsApp.TemplateInfo{ authentication: Unicom360.WhatsApp.TemplateInfo.Authentication.t() | nil, body: Unicom360.WhatsApp.TemplateInfo.Body.t() | nil, buttons: [Unicom360.WhatsApp.TemplateButtonInfo.t()] | nil, category: String.t() | nil, extra: map(), footer: String.t() | nil, from: String.t() | nil, header: Unicom360.WhatsApp.TemplateInfo.Header.t() | nil, language: String.t() | nil, name: String.t() | nil, raw: map() }