Inttegro.MessageTemplates.ReferenceInput (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Reference Input in the MessageTemplates API.

Build this struct with new!/1 and pass it to the corresponding function on Inttegro.MessageTemplates. Required keys are enforced immediately; optional values left as nil are omitted from the request sent to Inttegro.

Manages reusable email and SMS templates for Chimes.

Templates separate reviewed message content from recipient data supplied at send time. Render a preview before publishing, and treat safety results as part of the template lifecycle rather than as proof that a downstream carrier accepted a message.

Summary

Types

t()

A validated reference input request.

Functions

Builds a Inttegro.MessageTemplates.ReferenceInput and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.MessageTemplates.ReferenceInput{
  template_id: String.t(),
  variables: %{optional(String.t()) => term()} | nil
}

A validated reference input request.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.MessageTemplates.ReferenceInput and raises KeyError when a required field is missing.