Karta.Accounts.Organisation (Karta v1.0.0)

A customer (tenant). Owns domains and mail servers.

Summary

Functions

What the provisioning API sets about sending (Karta.Quotas): the trust level and the two daily limits, which must be positive; nil removes a limit.

What the provisioning API sets (Karta.Provisioning): the name and the external system's reference (letters, digits and . _ : -, at most 128). The slug is set by the context, which makes it unique.

A new name; the slug stays, because the identity provider's group mapping names organisations by slug.

Types

t()

@type t() :: %Karta.Accounts.Organisation{
  __meta__: term(),
  daily_send_limit: term(),
  deleted_at: term(),
  domains: term(),
  external_ref: term(),
  id: term(),
  inserted_at: term(),
  memberships: term(),
  name: term(),
  per_recipient_daily_limit: term(),
  servers: term(),
  slug: term(),
  suspended_at: term(),
  suspension_reason: term(),
  trust_level: term(),
  updated_at: term()
}

Functions

changeset(organisation, attrs)

limits_changeset(organisation, attrs)

What the provisioning API sets about sending (Karta.Quotas): the trust level and the two daily limits, which must be positive; nil removes a limit.

provisioning_changeset(organisation, attrs)

What the provisioning API sets (Karta.Provisioning): the name and the external system's reference (letters, digits and . _ : -, at most 128). The slug is set by the context, which makes it unique.

rename_changeset(organisation, attrs)

A new name; the slug stays, because the identity provider's group mapping names organisations by slug.