Constructor
new ProductAttribute(data) → {void}
ProductAttribute Constructor.
ProductAttribute Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getAttributeTemplateId() → {number}
Get attemp_id.
Get attemp_id.
Returns:
- Type
- number
getCode() → {string}
Get code.
Get code.
Returns:
- Type
- string
getCost() → {number}
Get cost.
Get cost.
Returns:
- Type
- number
getDefaultId() → {number}
Get default_id.
Get default_id.
Returns:
- Type
- number
getDisplayOrder() → {number}
Get disp_order.
Get disp_order.
Returns:
- Type
- number
getId() → {number}
Get id.
Get id.
Returns:
- Type
- number
getImage() → {string}
Get image.
Get image.
Returns:
- Type
- string
getInventory() → {boolean}
Get inventory.
Get inventory.
Returns:
- Type
- boolean
getOptions() → {Array.<ProductOption>}
Get options.
Get options.
Returns:
- Type
- Array.<ProductOption>
getPrice() → {number}
Get price.
Get price.
Returns:
- Type
- number
getProductId() → {number}
Get product_id.
Get product_id.
Returns:
- Type
- number
getPrompt() → {string}
Get prompt.
Get prompt.
Returns:
- Type
- string
getRequired() → {boolean}
Get required.
Get required.
Returns:
- Type
- boolean
getType() → {string}
Get type.
Get type.
Returns:
- Type
- string
getWeight() → {number}
Get weight.
Get weight.
Returns:
- Type
- number