ExFattureincloud.Products (ExFattureincloud v0.1.0)

Copy Markdown View Source

Operations in the Fatture in Cloud Products resource.

Summary

Functions

create_product(client, company_id, body, opts \\ [])

Creates a new product.

Sends POST /c/{company_id}/products (createProduct).

Pass the JSON body with the provider's envelope. Use nil to omit it.

delete_product(client, company_id, product_id, opts \\ [])

Deletes the specified product.

Sends DELETE /c/{company_id}/products/{product_id} (deleteProduct).

get_product(client, company_id, product_id, opts \\ [])

Gets the specified product.

Sends GET /c/{company_id}/products/{product_id} (getProduct).

Query options

  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")

list_products(client, company_id, opts \\ [])

Lists the products.

Sends GET /c/{company_id}/products (listProducts).

Query options

  • :fields (string)
  • :fieldset (string, one of "basic", "detailed", "fic_view")
  • :sort (string)
  • :page (integer, minimum 1)
  • :per_page (integer, minimum 1, maximum 100)
  • :q (string)

modify_product(client, company_id, product_id, body, opts \\ [])

Modifies the specified product.

Sends PUT /c/{company_id}/products/{product_id} (modifyProduct).

Pass the JSON body with the provider's envelope. Use nil to omit it.