Namespace: Products

Products

Methods

(static) calculatePrice(catalogId, foreignKeyId) → {Promise}

Parameters:
Name Type Description
catalogId number
foreignKeyId number
Returns:
Type
Promise

(static) calculateStock(catalogId, foreignKeyId) → {Promise}

Parameters:
Name Type Description
catalogId number
foreignKeyId number
Returns:
Type
Promise

(static) getGallery(webstoreProductId) → {Promise}

Parameters:
Name Type Description
webstoreProductId number
Returns:
Type
Promise

(static) getMakes(webstoreProductId, year) → {Promise}

Parameters:
Name Type Description
webstoreProductId Number
year Number | String
Returns:
Type
Promise

(static) getModels(webstoreProductId, year, make) → {Promise}

Parameters:
Name Type Description
webstoreProductId Number
year Number | String
make String
Returns:
Type
Promise

(static) getProduct(webstoreProductId) → {Promise}

Parameters:
Name Type Description
webstoreProductId number
Returns:
Type
Promise

(static) getVariation(catalogId, foreignKeyId) → {Promise}

Parameters:
Name Type Description
catalogId number
foreignKeyId
Returns:
Type
Promise

(static) getYears(webstoreProductId) → {Promise}

Parameters:
Name Type Description
webstoreProductId Number
Returns:
Type
Promise

(static) heroImageUrl(webstoreProductId) → {Promise}

Parameters:
Name Type Description
webstoreProductId number
Returns:
Type
Promise

(static) imageUrl(catalogId, foreignKeyId, maxWidth, maxHeight, encode) → {string}

Parameters:
Name Type Description
catalogId number
foreignKeyId number
maxWidth number
maxHeight number
encode string
Returns:
Type
string