Constructor
new OrderItemOption(data) → {void}
OrderItemOption Constructor.
OrderItemOption Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getAttribute() → {string}
Get attribute.
Get attribute.
Returns:
- Type
- string
getBasePrice() → {number}
Get base_price.
Get base_price.
Returns:
- Type
- number
getPrice() → {number}
Get price.
Get price.
Returns:
- Type
- number
getRetail() → {number}
Get retail.
Get retail.
Returns:
- Type
- number
getValue() → {string}
Get value.
Get value.
Returns:
- Type
- string
getWeight() → {number}
Get weight.
Get weight.
Returns:
- Type
- number
setAttribute(attribute) → {OrderItemOption}
Set attribute.
Set attribute.
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string |
Returns:
- Type
- OrderItemOption
setPrice(price) → {OrderItemOption}
Set price.
Set price.
Parameters:
Name | Type | Description |
---|---|---|
price |
number |
Returns:
- Type
- OrderItemOption
setValue(value) → {OrderItemOption}
Set value.
Set value.
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Returns:
- Type
- OrderItemOption
setWeight(weight) → {OrderItemOption}
Set weight.
Set weight.
Parameters:
Name | Type | Description |
---|---|---|
weight |
number |
Returns:
- Type
- OrderItemOption