Amarula.Content.Order (amarula v0.4.3)
View SourceA received order message (WhatsApp Business). Surfaces the few useful fields; for
full detail read msg.raw.
:order_id— the order id.:title— the order title.:item_count— number of items.:message— an accompanying message.:seller— the seller as an%Amarula.Address{}.
Summary
Functions
Normalize a %Proto.Message.OrderMessage{} into a minimal %Amarula.Content.Order{}.
Types
@type t() :: %Amarula.Content.Order{ item_count: integer() | nil, message: String.t() | nil, order_id: String.t() | nil, seller: Amarula.Address.t() | nil, title: String.t() | nil }