Wax.Messages.Templates.Parameter (wax v1.1.4)

Template parameter struct

TODO: Support for currency and date time parameters

Summary

Functions

Converts a keyword list of params to a list of structs

Types

t()

@type t() :: %Wax.Messages.Templates.Parameter{
  document: Wax.Messages.Media.t(),
  image: Wax.Messages.Media.t(),
  text: String.t(),
  type: parameter_type(),
  video: Wax.Messages.Media.t()
}

Functions

parse(params)

@spec parse(Keyword.t()) :: [t()]

Converts a keyword list of params to a list of structs