Zazu.Customers (zazu v0.2.1)

Copy Markdown View Source

Individuals or businesses the entity invoices.

Summary

Functions

Calls POST /api/customers.

Calls DELETE /api/customers/:id.

Calls GET /api/customers/:id.

Calls GET /api/customers.

Calls PATCH /api/customers/:id.

Functions

create(client, attributes)

@spec create(Zazu.Client.t(), map()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls POST /api/customers.

delete(client, id)

@spec delete(Zazu.Client.t(), String.t()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls DELETE /api/customers/:id.

get(client, id)

@spec get(Zazu.Client.t(), String.t()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls GET /api/customers/:id.

list(client, opts \\ [])

@spec list(
  Zazu.Client.t(),
  keyword()
) :: {:ok, Zazu.Page.t()} | {:error, Exception.t()}

Calls GET /api/customers.

Options

  • :q — matches company name, person name, email.
  • :limit — page size (1..100, default 100).
  • :cursor — pagination cursor.

update(client, id, attributes)

@spec update(Zazu.Client.t(), String.t(), map()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls PATCH /api/customers/:id.