Inttegro.Schedules.CancelDetail (inttegro v0.2.0)

Copy Markdown View Source

Represents Cancel Detail data in the Schedules API.

Inttegro decodes API responses into this struct. Required fields are always present; optional fields are nil when they do not apply or were not returned. Follow the linked types in t/0 for nested domain values.

Reads and cancels scheduled work created through Inttegro APIs.

A schedule records when a supported operation should run and whether it is still actionable. Cancellation affects future execution; it does not reverse work that has already completed.

Summary

Types

t()

The decoded cancel detail value.

Functions

Builds a Inttegro.Schedules.CancelDetail and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Schedules.CancelDetail{
  canceled_at: String.t() | nil,
  chime_ids: [String.t()] | nil,
  content: String.t(),
  created_at: String.t(),
  customer_ids: [String.t()] | nil,
  email: Inttegro.Chimes.EmailMessage.t() | nil,
  errors: [Inttegro.Schedules.Error.t()] | nil,
  executed_at: String.t() | nil,
  id: String.t(),
  idempotency_key: String.t() | nil,
  purpose: String.t() | nil,
  recipients: [String.t()],
  send_after: String.t(),
  sender_id: String.t()
}

The decoded cancel detail value.

Functions

new!(attrs \\ %{})

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

Builds a Inttegro.Schedules.CancelDetail and raises KeyError when a required field is missing.