Class: module:models/BundledProduct

module:models/BundledProduct()

new module:models/BundledProduct()

Constructs a new BundledProduct. Document representing a bundled product within a product bundle.

Source:

Members

(inner) id :String

Type:
  • String
Source:

(inner) product :module:models/Product

The product being bundled.

Type:
Source:

(inner) quantity :Number

For the product being bundled, the quantity added to the bundle.

Type:
  • Number
Source:

Methods

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

Constructs a BundledProduct 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/BundledProduct

Optional instance to populate.

Source:
Returns:

The populated BundledProduct instance.

Type
module:models/BundledProduct