Constructor
new OrderItemAttribute(data) → {void}
OrderItemAttribute Constructor.
OrderItemAttribute Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getAttributeCode() → {string}
Get attr_code.
Get attr_code.
Returns:
- Type
- string
getOptionCodeOrData() → {string}
Get opt_code_or_data.
Get opt_code_or_data.
Returns:
- Type
- string
getPrice() → {number}
Get price.
Get price.
Returns:
- Type
- number
getWeight() → {number}
Get weight.
Get weight.
Returns:
- Type
- number
setAttributeCode(attributeCode) → {OrderItemAttribute}
Set attr_code.
Set attr_code.
Parameters:
Name | Type | Description |
---|---|---|
attributeCode |
string |
Returns:
- Type
- OrderItemAttribute
setOptionCodeOrData(optionCodeOrData) → {OrderItemAttribute}
Set opt_code_or_data.
Set opt_code_or_data.
Parameters:
Name | Type | Description |
---|---|---|
optionCodeOrData |
string |
Returns:
- Type
- OrderItemAttribute
setPrice(price) → {OrderItemAttribute}
Set price.
Set price.
Parameters:
Name | Type | Description |
---|---|---|
price |
number |
Returns:
- Type
- OrderItemAttribute
setWeight(weight) → {OrderItemAttribute}
Set weight.
Set weight.
Parameters:
Name | Type | Description |
---|---|---|
weight |
number |
Returns:
- Type
- OrderItemAttribute