ExQuickBooks.Vendors (ex_quickbooks v0.9.0)

Copy Markdown View Source

Vendor resource helpers for QuickBooks.

Summary

Functions

Fetches a vendor by ID.

Lists vendors, 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 a vendor.

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

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

Fetches a vendor by ID.

list(client, options \\ [])

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

Lists vendors, 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 a vendor.