Karta.Messaging.Settings (Karta v1.0.0)

An organisation's messaging settings: how long messages and media are kept (retention_days; retention_keep keeps them forever; neither set means the instance default, KARTA_MESSAGING_RETENTION_DAYS, 730), the default limits of sends, quiet hours (a fixed offset from UTC in minutes, Bonaire is -240), the default channels and the paid-channel switches.

Summary

Types

t()

@type t() :: %Karta.Messaging.Settings{
  __meta__: term(),
  default_channels: term(),
  id: term(),
  inserted_at: term(),
  organisation: term(),
  organisation_id: term(),
  paid_by_default: term(),
  paid_daily_cap: term(),
  quiet_end: term(),
  quiet_hours_enabled: term(),
  quiet_start: term(),
  retention_days: term(),
  retention_keep: term(),
  send_per_day: term(),
  send_per_minute: term(),
  sms_countries: term(),
  updated_at: term(),
  utc_offset_minutes: term()
}

Functions

changeset(settings, attrs)

What input may set.