Constructor
new Product(data) → {void}
Product Constructor.
Product Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getActive() → {boolean}
Get active.
Get active.
Returns:
- Type
- boolean
getAttributes() → {Array.<ProductAttribute>}
Get attributes.
Get attributes.
Returns:
- Type
- Array.<ProductAttribute>
getCanonicalCategoryCode() → {string}
Get cancat_code.
Get cancat_code.
Returns:
- Type
- string
getCategories() → {Array.<Category>}
Get categories.
Get categories.
Returns:
- Type
- Array.<Category>
getCategoryCount() → {number}
Get catcount.
Get catcount.
Returns:
- Type
- number
getCode() → {string}
Get code.
Get code.
Returns:
- Type
- string
getCost() → {number}
Get cost.
Get cost.
Returns:
- Type
- number
getCustomFieldValues() → {CustomFieldValues|*}
Get CustomField_Values.
Get CustomField_Values.
Returns:
- Type
- CustomFieldValues | *
getDateTimeCreated() → {number}
Get dt_created.
Get dt_created.
Returns:
- Type
- number
getDateTimeUpdate() → {number}
Get dt_updated.
Get dt_updated.
Returns:
- Type
- number
getDescription() → {string}
Get descrip.
Get descrip.
Returns:
- Type
- string
getFormattedCost() → {string}
Get formatted_cost.
Get formatted_cost.
Returns:
- Type
- string
getFormattedPrice() → {string}
Get formatted_price.
Get formatted_price.
Returns:
- Type
- string
getId() → {number}
Get id.
Get id.
Returns:
- Type
- number
getImage() → {string}
Get image.
Get image.
Returns:
- Type
- string
getName() → {string}
Get name.
Get name.
Returns:
- Type
- string
getPageCode() → {string}
Get page_code.
Get page_code.
Returns:
- Type
- string
getPageTitle() → {string}
Get page_title.
Get page_title.
Returns:
- Type
- string
getPrice() → {number}
Get price.
Get price.
Returns:
- Type
- number
getProductImageData() → {Array.<ProductImageData>}
Get productimagedata.
Get productimagedata.
Returns:
- Type
- Array.<ProductImageData>
getProductInventory() → {number}
Get product_inventory.
Get product_inventory.
Returns:
- Type
- number
getProductInventoryActive() → {boolean}
Get product_inventory_active.
Get product_inventory_active.
Returns:
- Type
- boolean
getProductInventorySettings() → {ProductInventorySettings|*}
Get productinventorysettings.
Get productinventorysettings.
Returns:
- Type
- ProductInventorySettings | *
getProductShuppingRules() → {ProductShippingRules|*}
Get productshippingrules.
Get productshippingrules.
Returns:
- Type
- ProductShippingRules | *
getRelatedProducts() → {Array.<RelatedProduct>}
Get relatedproducts.
Get relatedproducts.
Returns:
- Type
- Array.<RelatedProduct>
getSku() → {string}
Get sku.
Get sku.
Returns:
- Type
- string
getTaxable() → {boolean}
Get taxable.
Get taxable.
Returns:
- Type
- boolean
getThumbnail() → {string}
Get thumbnail.
Get thumbnail.
Returns:
- Type
- string
getUris() → {Array.<Uri>}
Get uris.
Get uris.
Returns:
- Type
- Array.<Uri>
getWeight() → {number}
Get weight.
Get weight.
Returns:
- Type
- number
setActive(active) → {Product}
Set active.
Set active.
Parameters:
Name | Type | Description |
---|---|---|
active |
boolean |
Returns:
- Type
- Product
setCanonicalCategoryCode(canonicalCategoryCode) → {Product}
Set cancat_code.
Set cancat_code.
Parameters:
Name | Type | Description |
---|---|---|
canonicalCategoryCode |
string |
Returns:
- Type
- Product
setCode(code) → {Product}
Set code.
Set code.
Parameters:
Name | Type | Description |
---|---|---|
code |
string |
Returns:
- Type
- Product
setCost(cost) → {Product}
Set cost.
Set cost.
Parameters:
Name | Type | Description |
---|---|---|
cost |
number |
Returns:
- Type
- Product
setCustomFieldValues(customFieldValues) → {Product}
Set CustomField_Values.
Set CustomField_Values.
Parameters:
Name | Type | Description |
---|---|---|
customFieldValues |
CustomFieldValues | Object |
Throws:
Returns:
- Type
- Product
setDescription(description) → {Product}
Set descrip.
Set descrip.
Parameters:
Name | Type | Description |
---|---|---|
description |
string |
Returns:
- Type
- Product
setImage(image) → {Product}
Set image.
Set image.
Parameters:
Name | Type | Description |
---|---|---|
image |
string |
Returns:
- Type
- Product
setName(name) → {Product}
Set name.
Set name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
Returns:
- Type
- Product
setPageCode(pageCode) → {Product}
Set page_code.
Set page_code.
Parameters:
Name | Type | Description |
---|---|---|
pageCode |
string |
Returns:
- Type
- Product
setPageTitle(pageTitle) → {Product}
Set page_title.
Set page_title.
Parameters:
Name | Type | Description |
---|---|---|
pageTitle |
string |
Returns:
- Type
- Product
setPrice(price) → {Product}
Set price.
Set price.
Parameters:
Name | Type | Description |
---|---|---|
price |
number |
Returns:
- Type
- Product
setProductInventory(productInventory) → {Product}
Set product_inventory.
Set product_inventory.
Parameters:
Name | Type | Description |
---|---|---|
productInventory |
number |
Returns:
- Type
- Product
setSku(sku) → {Product}
Set sku.
Set sku.
Parameters:
Name | Type | Description |
---|---|---|
sku |
string |
Returns:
- Type
- Product
setTaxable(taxable) → {Product}
Set taxable.
Set taxable.
Parameters:
Name | Type | Description |
---|---|---|
taxable |
boolean |
Returns:
- Type
- Product
setThumbnail(thumbnail) → {Product}
Set thumbnail.
Set thumbnail.
Parameters:
Name | Type | Description |
---|---|---|
thumbnail |
string |
Returns:
- Type
- Product
setWeight(weight) → {Product}
Set weight.
Set weight.
Parameters:
Name | Type | Description |
---|---|---|
weight |
number |
Returns:
- Type
- Product