ExQuickBooks.Invoices (ex_quickbooks v0.9.0)

Copy Markdown View Source

Invoice resource helpers for QuickBooks.

Summary

Functions

Fetches an invoice by ID.

Lists invoices, optionally filtered with a WHERE clause and query pagination.

Functions

create(client, attributes, options \\ [])

@spec create(ExQuickBooks.Client.t(), map(), keyword()) ::
  {:ok, map()} | {:error, ExQuickBooks.Error.t()}

Creates an invoice.

get(client, id, options \\ [])

@spec get(ExQuickBooks.Client.t(), String.t() | integer(), keyword()) ::
  {:ok, map()} | {:error, ExQuickBooks.Error.t()}

Fetches an invoice by ID.

list(client, options \\ [])

@spec list(
  ExQuickBooks.Client.t(),
  keyword()
) :: {:ok, [map()]} | {:error, ExQuickBooks.Error.t()}

Lists invoices, optionally filtered with a WHERE clause and query pagination.

update(client, attributes, options \\ [])

@spec update(ExQuickBooks.Client.t(), map(), keyword()) ::
  {:ok, map()} | {:error, ExQuickBooks.Error.t()}

Updates an invoice.