FortnoxEx.Models.SupplierInvoice (FortnoxEx v0.3.0) View Source
Link to this section Summary
Functions
Creates a supplier_invoice
Deletes a supplier_invoice
Gets a supplier_invoice
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.
Updates a supplier_invoice
Link to this section Functions
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)
Deletes a supplier_invoice
Examples
iex> delete_supplier_invoice(client, "1") :ok
iex> delete_supplier_invoice(client, "missing")
Gets a supplier_invoice
Examples
iex> get_supplier_invoice(client, "1")
iex> get_supplier_invoice(clientm "1")
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, [])
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, [])
update_supplier_invoice(client, supplier_invoice_number, supplier_invoice_data)
View SourceUpdates a supplier_invoice
Examples
iex> update_supplier_invoice(client, "1", %{"Name" => "Johnny"})
iex> update_supplier_invoice(clientm "1", supplier_invoice_attrs)