Class: module:models/Recommendation

module:models/Recommendation()

new module:models/Recommendation()

Constructs a new Recommendation. Document representing a product recommendation.

Source:

Members

(inner) callout_msg :String

The localized callout message of the recommendation.

Type:
  • String
Source:

(inner) image :module:models/Image

The image of the recommendation.

Type:
Source:

(inner) long_description :String

The localized long description of the recommendation.

Type:
  • String
Source:

(inner) name :String

The localized name of the recommendation.

Type:
  • String
Source:

(inner) recommendation_type :module:models/RecommendationType

The recommendation type of the recommendation.

Type:
Source:

(inner) recommended_item_id :String

The recommended item id of the recommendation.

Type:
  • String
Source:

The recommended item link of the recommendation.

Type:
  • String
Source:

(inner) short_description :String

The localized short description of the recommendation.

Type:
  • String
Source:

Methods

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

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

Optional instance to populate.

Source:
Returns:

The populated Recommendation instance.

Type
module:models/Recommendation