View Source ExCatalog.Product (ex_catalog v1.5.0)

Link to this section Summary

Link to this section Functions

Link to this function

new(params \\ %{}, struct \\ %ExCatalog.Product{})

View Source

Create a New Product

examples

Examples

iex> price = Money.new(:USD, 100)
iex> product = %{sku: "12345", price: price, title: "test product", sub_title: "test product", description: "test product"}
iex> ExCatalog.Product.new(product)