Class: RelatedProduct

Model~RelatedProduct(data) → {void}

RelatedProduct data model.

Constructor

new RelatedProduct(data) → {void}

RelatedProduct Constructor.

RelatedProduct Constructor.

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

Methods

getActive() → {boolean}

Get active.

Get active.

Source:
Returns:
Type
boolean

getCode() → {string}

Get code.

Get code.

Source:
Returns:
Type
string

getCost() → {number}

Get cost.

Get cost.

Source:
Returns:
Type
number

getDateTimeCreated() → {number}

Get dt_created.

Get dt_created.

Source:
Returns:
Type
number

getDateTimeUpdated() → {number}

Get dt_updated.

Get dt_updated.

Source:
Returns:
Type
number

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

getPageTitle() → {string}

Get page_title.

Get page_title.

Source:
Returns:
Type
string

getPrice() → {number}

Get price.

Get price.

Source:
Returns:
Type
number

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

getWeight() → {number}

Get weight.

Get weight.

Source:
Returns:
Type
number

setActive(active) → {RelatedProduct}

Set active.

Set active.

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

setCode(code) → {RelatedProduct}

Set code.

Set code.

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

setCost(cost) → {RelatedProduct}

Set cost.

Set cost.

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

setImage(image) → {RelatedProduct}

Set image.

Set image.

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

setName(name) → {RelatedProduct}

Set name.

Set name.

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

setPageTitle(pageTitle) → {RelatedProduct}

Set page_title.

Set page_title.

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

setPrice(price) → {RelatedProduct}

Set price.

Set price.

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

setSku(sku) → {RelatedProduct}

Set sku.

Set sku.

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

setTaxable(taxable) → {RelatedProduct}

Set taxable.

Set taxable.

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

setThumbnail(thumbnail) → {RelatedProduct}

Set thumbnail.

Set thumbnail.

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

setWeight(weight) → {RelatedProduct}

Set weight.

Set weight.

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