Glific v0.3.1 Glific.Partners.Provider View Source

Provider are the third party Business Service providers who will give a access of WhatsApp API

Link to this section Summary

Functions

Standard changeset pattern we use for all datat types

Link to this section Types

Specs

t() :: %Glific.Partners.Provider{
  __meta__: Ecto.Schema.Metadata.t(),
  api_end_point: term(),
  id: non_neg_integer() | nil,
  inserted_at: term(),
  name: String.t() | nil,
  organizations: term(),
  updated_at: term(),
  url: String.t() | nil
}

Link to this section Functions

Link to this function

changeset(provider, attrs)

View Source

Specs

changeset(
  %Glific.Partners.Provider{
    __meta__: term(),
    api_end_point: term(),
    id: term(),
    inserted_at: term(),
    name: term(),
    organizations: term(),
    updated_at: term(),
    url: term()
  },
  map()
) :: Ecto.Changeset.t()

Standard changeset pattern we use for all datat types