StrawHat.Mailer v0.4.4 StrawHat.Mailer.Partial View Source

Defines functionality for partial management.

A Partial is just a chunk of email content that you could reuse cross multiple emails.

Link to this section Summary

Functions

Destroy a partial

Get a partial by id

Get the list of partials by owner_id

Get a partial by id

Get the list of partials

Link to this section Functions

Create a partial.

Destroy a partial.

Link to this function find_partial(partial_id) View Source
find_partial(String.t()) ::
  {:ok, StrawHat.Mailer.Schema.Partial.t()} | {:error, StrawHat.Error.t()}

Get a partial by id.

Link to this function get_owner_partials(owner_id, pagination \\ []) View Source
get_owner_partials(String.t(), Scrivener.Config.t()) :: Scrivener.Page.t()

Get the list of partials by owner_id.

Get a partial by id.

Link to this function get_partials(pagination \\ []) View Source
get_partials(Scrivener.Config.t()) :: Scrivener.Page.t()

Get the list of partials.

Update a partial.