Class: Product

Model~Product(data) → {void}

Product data model.

Constructor

new Product(data) → {void}

Product Constructor.

Product Constructor.

Parameters:
Name Type Description
data Object
Source:
Returns:
Type
void

Methods

getActive() → {boolean}

Get active.

Get active.

Source:
Returns:
Type
boolean

getAttributes() → {Array.<ProductAttribute>}

Get attributes.

Get attributes.

Source:
Returns:
Type
Array.<ProductAttribute>

getCanonicalCategoryCode() → {string}

Get cancat_code.

Get cancat_code.

Source:
Returns:
Type
string

getCategories() → {Array.<Category>}

Get categories.

Get categories.

Source:
Returns:
Type
Array.<Category>

getCategoryCount() → {number}

Get catcount.

Get catcount.

Source:
Returns:
Type
number

getCode() → {string}

Get code.

Get code.

Source:
Returns:
Type
string

getCost() → {number}

Get cost.

Get cost.

Source:
Returns:
Type
number

getCustomFieldValues() → {CustomFieldValues|*}

Get CustomField_Values.

Get CustomField_Values.

Source:
Returns:
Type
CustomFieldValues | *

getDateTimeCreated() → {number}

Get dt_created.

Get dt_created.

Source:
Returns:
Type
number

getDateTimeUpdate() → {number}

Get dt_updated.

Get dt_updated.

Source:
Returns:
Type
number

getDescription() → {string}

Get descrip.

Get descrip.

Source:
Returns:
Type
string

getFormattedCost() → {string}

Get formatted_cost.

Get formatted_cost.

Source:
Returns:
Type
string

getFormattedPrice() → {string}

Get formatted_price.

Get formatted_price.

Source:
Returns:
Type
string

getId() → {number}

Get id.

Get id.

Source:
Returns:
Type
number

getImage() → {string}

Get image.

Get image.

Source:
Returns:
Type
string

getName() → {string}

Get name.

Get name.

Source:
Returns:
Type
string

getPageCode() → {string}

Get page_code.

Get page_code.

Source:
Returns:
Type
string

getPageTitle() → {string}

Get page_title.

Get page_title.

Source:
Returns:
Type
string

getPrice() → {number}

Get price.

Get price.

Source:
Returns:
Type
number

getProductImageData() → {Array.<ProductImageData>}

Get productimagedata.

Get productimagedata.

Source:
Returns:
Type
Array.<ProductImageData>

getProductInventory() → {number}

Get product_inventory.

Get product_inventory.

Source:
Returns:
Type
number

getProductInventoryActive() → {boolean}

Get product_inventory_active.

Get product_inventory_active.

Source:
Returns:
Type
boolean

getProductInventorySettings() → {ProductInventorySettings|*}

Get productinventorysettings.

Get productinventorysettings.

Source:
Returns:
Type
ProductInventorySettings | *

getProductShuppingRules() → {ProductShippingRules|*}

Get productshippingrules.

Get productshippingrules.

Source:
Returns:
Type
ProductShippingRules | *

getRelatedProducts() → {Array.<RelatedProduct>}

Get relatedproducts.

Get relatedproducts.

Source:
Returns:
Type
Array.<RelatedProduct>

getSku() → {string}

Get sku.

Get sku.

Source:
Returns:
Type
string

getTaxable() → {boolean}

Get taxable.

Get taxable.

Source:
Returns:
Type
boolean

getThumbnail() → {string}

Get thumbnail.

Get thumbnail.

Source:
Returns:
Type
string

getUris() → {Array.<Uri>}

Get uris.

Get uris.

Source:
Returns:
Type
Array.<Uri>

getWeight() → {number}

Get weight.

Get weight.

Source:
Returns:
Type
number

setActive(active) → {Product}

Set active.

Set active.

Parameters:
Name Type Description
active boolean
Source:
Returns:
Type
Product

setCanonicalCategoryCode(canonicalCategoryCode) → {Product}

Set cancat_code.

Set cancat_code.

Parameters:
Name Type Description
canonicalCategoryCode string
Source:
Returns:
Type
Product

setCode(code) → {Product}

Set code.

Set code.

Parameters:
Name Type Description
code string
Source:
Returns:
Type
Product

setCost(cost) → {Product}

Set cost.

Set cost.

Parameters:
Name Type Description
cost number
Source:
Returns:
Type
Product

setCustomFieldValues(customFieldValues) → {Product}

Set CustomField_Values.

Set CustomField_Values.

Parameters:
Name Type Description
customFieldValues CustomFieldValues | Object
Source:
Throws:
Error
Returns:
Type
Product

setDescription(description) → {Product}

Set descrip.

Set descrip.

Parameters:
Name Type Description
description string
Source:
Returns:
Type
Product

setImage(image) → {Product}

Set image.

Set image.

Parameters:
Name Type Description
image string
Source:
Returns:
Type
Product

setName(name) → {Product}

Set name.

Set name.

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Product

setPageCode(pageCode) → {Product}

Set page_code.

Set page_code.

Parameters:
Name Type Description
pageCode string
Source:
Returns:
Type
Product

setPageTitle(pageTitle) → {Product}

Set page_title.

Set page_title.

Parameters:
Name Type Description
pageTitle string
Source:
Returns:
Type
Product

setPrice(price) → {Product}

Set price.

Set price.

Parameters:
Name Type Description
price number
Source:
Returns:
Type
Product

setProductInventory(productInventory) → {Product}

Set product_inventory.

Set product_inventory.

Parameters:
Name Type Description
productInventory number
Source:
Returns:
Type
Product

setSku(sku) → {Product}

Set sku.

Set sku.

Parameters:
Name Type Description
sku string
Source:
Returns:
Type
Product

setTaxable(taxable) → {Product}

Set taxable.

Set taxable.

Parameters:
Name Type Description
taxable boolean
Source:
Returns:
Type
Product

setThumbnail(thumbnail) → {Product}

Set thumbnail.

Set thumbnail.

Parameters:
Name Type Description
thumbnail string
Source:
Returns:
Type
Product

setWeight(weight) → {Product}

Set weight.

Set weight.

Parameters:
Name Type Description
weight number
Source:
Returns:
Type
Product

toObject()

Source: