Class: ProductAttribute

Model~ProductAttribute(data) → {void}

ProductAttribute data model.

Constructor

new ProductAttribute(data) → {void}

ProductAttribute Constructor.

ProductAttribute Constructor.

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

Methods

getAttributeTemplateId() → {number}

Get attemp_id.

Get attemp_id.

Source:
Returns:
Type
number

getCode() → {string}

Get code.

Get code.

Source:
Returns:
Type
string

getCost() → {number}

Get cost.

Get cost.

Source:
Returns:
Type
number

getDefaultId() → {number}

Get default_id.

Get default_id.

Source:
Returns:
Type
number

getDisplayOrder() → {number}

Get disp_order.

Get disp_order.

Source:
Returns:
Type
number

getId() → {number}

Get id.

Get id.

Source:
Returns:
Type
number

getImage() → {string}

Get image.

Get image.

Source:
Returns:
Type
string

getInventory() → {boolean}

Get inventory.

Get inventory.

Source:
Returns:
Type
boolean

getOptions() → {Array.<ProductOption>}

Get options.

Get options.

Source:
Returns:
Type
Array.<ProductOption>

getPrice() → {number}

Get price.

Get price.

Source:
Returns:
Type
number

getProductId() → {number}

Get product_id.

Get product_id.

Source:
Returns:
Type
number

getPrompt() → {string}

Get prompt.

Get prompt.

Source:
Returns:
Type
string

getRequired() → {boolean}

Get required.

Get required.

Source:
Returns:
Type
boolean

getType() → {string}

Get type.

Get type.

Source:
Returns:
Type
string

getWeight() → {number}

Get weight.

Get weight.

Source:
Returns:
Type
number

toObject()

Source: