Sendio.Broadcasts.Broadcast (sendio v1.2.0)

Sendio Broadcast struct.

get/2 returns every field; list/2 returns the summary fields (id, name, segment and audience fields, status, dates and template_name).

A broadcast made from a published template has template_id and template_version_id (the exact version it copied). unfillable_variables (get/2 only) lists the template variables a broadcast has no value for: while it is not empty, sending or scheduling is refused with 422 unfillable_variables. create, update, send, cancel and duplicate return only the id.

Summary

Types

@type t() :: %Sendio.Broadcasts.Broadcast{
  audience: String.t() | nil,
  audience_id: String.t() | nil,
  created_at: DateTime.t() | nil,
  exclude_segment_ids: [String.t()] | nil,
  failed_reason: String.t() | nil,
  from: String.t() | nil,
  html: String.t() | nil,
  id: String.t(),
  name: String.t() | nil,
  preview_text: String.t() | nil,
  reply_to: [String.t()] | nil,
  scheduled_at: DateTime.t() | nil,
  segment_id: String.t() | nil,
  segment_ids: [String.t()] | nil,
  sent_at: DateTime.t() | nil,
  status: String.t() | nil,
  subject: String.t() | nil,
  template_deleted: boolean() | nil,
  template_engine: String.t() | nil,
  template_id: String.t() | nil,
  template_name: String.t() | nil,
  template_version_id: String.t() | nil,
  template_version_name: String.t() | nil,
  template_version_number: integer() | nil,
  text: String.t() | nil,
  topic_id: String.t() | nil,
  tracking: boolean() | nil,
  unfillable_variables: [String.t()] | nil,
  unsubscribe_scope: String.t() | nil,
  version_number: integer() | nil
}