Karta.Messaging.ServerSettings (Karta v1.0.0)

A server's messaging settings: the country its local phone numbers are in (default_country, an ISO 3166 code: BQ, CW, AW, NL, ...), whether paid channels (SMS) may be used at all (sms_allowed, off until someone switches it on) and whether messaging.message.received events carry the text (webhook_include_body, off by default: a webhook event is kept 30 days in a table that is not encrypted, so the text stays out of it unless someone chooses otherwise).

Summary

Types

t()

@type t() :: %Karta.Messaging.ServerSettings{
  __meta__: term(),
  default_country: term(),
  id: term(),
  inserted_at: term(),
  server: term(),
  server_id: term(),
  sms_allowed: term(),
  updated_at: term(),
  webhook_include_body: term()
}

Functions

changeset(settings, attrs)

What input may set.