Coffrify.Resources.Recipients (Coffrify v0.9.0)

View Source

Address book — saved recipient emails.

Summary

Functions

Delete a recipient.

List recipients.

Idempotent — updating an existing email returns the same id with a refreshed name.

Functions

delete(client, id)

@spec delete(Coffrify.t(), String.t()) :: {:ok, map()} | {:error, Exception.t()}

Delete a recipient.

list(client)

@spec list(Coffrify.t()) :: {:ok, map()} | {:error, Exception.t()}

List recipients.

upsert(client, opts)

@spec upsert(Coffrify.t(), map() | keyword()) ::
  {:ok, map()} | {:error, Exception.t()}

Idempotent — updating an existing email returns the same id with a refreshed name.