shopbuilder_api v0.1.24 ExSbapi.Product View Source

A Shopbuilder Product struct and functions.

Link to this section Summary

Link to this section Types

Link to this type collections() View Source
collections() :: [ExSbapi.ProductType.t()]
Link to this type images() View Source
images() :: []
Link to this type language() View Source
language() :: any()
Link to this type on_sale() View Source
on_sale() :: boolean() | nil
Link to this type same_price() View Source
same_price() :: boolean() | nil
Link to this type same_weight_dimensions() View Source
same_weight_dimensions() :: boolean()
Link to this type status() View Source
status() :: binary() | nil
Link to this type suggested_products() View Source
suggested_products() :: []
Link to this type t() View Source
t() :: %ExSbapi.Product{
  description: body(),
  dimensions: dimensions(),
  image_product: images(),
  language: language(),
  new: new(),
  on_sale: on_sale(),
  price: price(),
  product: variations(),
  product_type: collections(),
  reference: ref(),
  same_price: same_price(),
  same_weight_dimensions: same_weight_dimensions(),
  seo: seo(),
  status: status(),
  suggested_products: suggested_products(),
  title: title(),
  type: type(),
  weight: weight()
}
Link to this type variations() View Source
variations() :: [ExSbapi.ProductVariation.t()]

Link to this section Functions

Link to this function new(title, variations, collections, description \\ "", status \\ "1", images \\ [], ref \\ "", language \\ "en", new \\ true, on_sale \\ false, same_price \\ false, price \\ nil, same_weight_dimensions \\ false, weight \\ nil, dimensions \\ nil, suggested_products \\ nil, seo \\ nil, type \\ "shop_builder_display") View Source

Builds a new Shopbuilder Product