Constructor
new RelatedProduct(data) → {void}
RelatedProduct Constructor.
RelatedProduct Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getActive() → {boolean}
Get active.
Get active.
Returns:
- Type
- boolean
getCode() → {string}
Get code.
Get code.
Returns:
- Type
- string
getCost() → {number}
Get cost.
Get cost.
Returns:
- Type
- number
getDateTimeCreated() → {number}
Get dt_created.
Get dt_created.
Returns:
- Type
- number
getDateTimeUpdated() → {number}
Get dt_updated.
Get dt_updated.
Returns:
- Type
- number
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
getPageTitle() → {string}
Get page_title.
Get page_title.
Returns:
- Type
- string
getPrice() → {number}
Get price.
Get price.
Returns:
- Type
- number
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
getWeight() → {number}
Get weight.
Get weight.
Returns:
- Type
- number
setActive(active) → {RelatedProduct}
Set active.
Set active.
Parameters:
Name | Type | Description |
---|---|---|
active |
boolean |
Returns:
- Type
- RelatedProduct
setCode(code) → {RelatedProduct}
Set code.
Set code.
Parameters:
Name | Type | Description |
---|---|---|
code |
string |
Returns:
- Type
- RelatedProduct
setCost(cost) → {RelatedProduct}
Set cost.
Set cost.
Parameters:
Name | Type | Description |
---|---|---|
cost |
number |
Returns:
- Type
- RelatedProduct
setImage(image) → {RelatedProduct}
Set image.
Set image.
Parameters:
Name | Type | Description |
---|---|---|
image |
string |
Returns:
- Type
- RelatedProduct
setName(name) → {RelatedProduct}
Set name.
Set name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
Returns:
- Type
- RelatedProduct
setPageTitle(pageTitle) → {RelatedProduct}
Set page_title.
Set page_title.
Parameters:
Name | Type | Description |
---|---|---|
pageTitle |
string |
Returns:
- Type
- RelatedProduct
setPrice(price) → {RelatedProduct}
Set price.
Set price.
Parameters:
Name | Type | Description |
---|---|---|
price |
number |
Returns:
- Type
- RelatedProduct
setSku(sku) → {RelatedProduct}
Set sku.
Set sku.
Parameters:
Name | Type | Description |
---|---|---|
sku |
string |
Returns:
- Type
- RelatedProduct
setTaxable(taxable) → {RelatedProduct}
Set taxable.
Set taxable.
Parameters:
Name | Type | Description |
---|---|---|
taxable |
boolean |
Returns:
- Type
- RelatedProduct
setThumbnail(thumbnail) → {RelatedProduct}
Set thumbnail.
Set thumbnail.
Parameters:
Name | Type | Description |
---|---|---|
thumbnail |
string |
Returns:
- Type
- RelatedProduct
setWeight(weight) → {RelatedProduct}
Set weight.
Set weight.
Parameters:
Name | Type | Description |
---|---|---|
weight |
number |
Returns:
- Type
- RelatedProduct