FortnoxEx.Models.SupplierInvoice (FortnoxEx v0.3.0) View Source

Link to this section Summary

Functions

Gets a list of partial supplier_invoice objects with pagination information.

Streams a partial supplier_invoice objects. Will go through each page of results with a delay between page. The stream will produce a single supplier_invoice data object for each hit.

Link to this section Functions

Link to this function

create_supplier_invoice(client, supplier_invoice_data)

View Source

Creates a supplier_invoice

Examples

iex> create_supplier_invoice(client, %{"Name" => "ACME") {:ok, %{"SupplierInvoiceNumber" => "1", "Name" => "ACME"}}

iex> create_supplier_invoice(client, supplier_invoice_attrs)

Link to this function

delete_supplier_invoice(client, supplier_invoice_number)

View Source

Deletes a supplier_invoice

Examples

iex> delete_supplier_invoice(client, "1") :ok

iex> delete_supplier_invoice(client, "missing")

Link to this function

get_supplier_invoice(client, supplier_invoice_number)

View Source

Gets a supplier_invoice

Examples

iex> get_supplier_invoice(client, "1")

iex> get_supplier_invoice(clientm "1")

Link to this function

list_supplier_invoices(client, query)

View Source

Gets a list of partial supplier_invoice objects with pagination information.

Examples

iex> list_supplier_invoices(client, []) {:ok, %{"@CurrentPage" => 1, "@TotalPages" => 1, "@TotalResources" => 1}, [%{"SupplierInvoiceNumber" => "1", "Name" => "ACME"}]}

iex> list_supplier_invoices(client, [])

Link to this function

stream_supplier_invoices(client, query)

View Source

Streams a partial supplier_invoice objects. Will go through each page of results with a delay between page. The stream will produce a single supplier_invoice data object for each hit.

Examples

iex> stream_supplier_invoices(client, []) stream_of_supplier_invoices

iex> stream_supplier_invoices(client, [])

Link to this function

update_supplier_invoice(client, supplier_invoice_number, supplier_invoice_data)

View Source

Updates a supplier_invoice

Examples

iex> update_supplier_invoice(client, "1", %{"Name" => "Johnny"})

iex> update_supplier_invoice(clientm "1", supplier_invoice_attrs)