View Source Glific.Partners.Organization (Glific v5.1.6)

Organizations are the group of users who will access the system

Link to this section Summary


Standard changeset pattern we use for all data types

Link to this section Types

@type t() :: %Glific.Partners.Organization{
  __meta__: Ecto.Schema.Metadata.t(),
  active_language_ids: [integer()] | [],
  bsp: Glific.Partners.Provider.t() | Ecto.Association.NotLoaded.t() | nil,
  bsp_id: non_neg_integer() | nil,
  contact: Glific.Contacts.Contact.t() | Ecto.Association.NotLoaded.t() | nil,
  contact_id: non_neg_integer() | nil,
  days: list() | nil,
    Glific.Settings.Language.t() | Ecto.Association.NotLoaded.t() | nil,
  default_language_id: non_neg_integer() | nil,
  email: String.t() | nil,
  fields: map() | nil,
  hours: list() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  is_active: boolean() | true,
  is_approved: boolean() | false,
  is_contact_profile_enabled: term(),
  is_flow_uuid_display: term(),
  is_roles_and_permission: term(),
  is_suspended: boolean() | false,
  languages: [Glific.Settings.Language.t()] | nil,
  last_communication_at: :utc_datetime | nil,
  name: String.t() | nil,
  newcontact_flow_id: non_neg_integer() | nil,
  organization_id: non_neg_integer() | nil,
  out_of_office: Glific.Partners.OrganizationSettings.OutOfOffice.t() | nil,
  regx_flow: Glific.Partners.OrganizationSettings.RegxFlow.t() | nil,
  root_user: map() | nil,
  services: map(),
  session_limit: non_neg_integer() | nil,
  shortcode: String.t() | nil,
  signature_phrase: binary() | nil,
  status: String.t() | nil,
  suspended_until: DateTime.t() | nil,
  timezone: String.t() | nil,
  updated_at: :utc_datetime | nil

Link to this section Functions

Link to this function

changeset(organization, attrs)

View Source
@spec changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types