Class: module:models/SuggestedProduct

module:models/SuggestedProduct()

new module:models/SuggestedProduct()

Constructs a new SuggestedProduct. Document representing a product search hit.

Source:

Members

(inner) currency :String

The ISO 4217 mnemonic code of the currency.

Type:
  • String
Source:

(inner) image :module:models/Image

The first image of the product hit for the configured viewtype.

Type:
Source:

The URL addressing the product.

Type:
  • String
Source:

(inner) price :Number

The sales price of the product. In the case of complex products like a master or a set, this is the minimum price of related child products.

Type:
  • Number
Source:

(inner) product_id :String

The id (SKU) of the product.

Type:
  • String
Source:

(inner) product_name :String

The localized name of the product.

Type:
  • String
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/SuggestedProduct}

Constructs a SuggestedProduct from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/SuggestedProduct

Optional instance to populate.

Source:
Returns:

The populated SuggestedProduct instance.

Type
module:models/SuggestedProduct