Class: module:models/ProductRef

module:models/ProductRef(id, link)

new module:models/ProductRef(id, link)

Constructs a new ProductRef. Document representing a product reference.

Parameters:
Name Type Description
id String

The ID of the product reference.

link String

The link to the product reference.

Source:

Members

(inner) id :String

The ID of the product reference.

Type:
  • String
Source:

The link to the product reference.

Type:
  • String
Source:

Methods

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

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

Optional instance to populate.

Source:
Returns:

The populated ProductRef instance.

Type
module:models/ProductRef