Class: OrderItemAttribute

Model~OrderItemAttribute(data) → {void}

OrderItemAttribute data model.

Constructor

new OrderItemAttribute(data) → {void}

OrderItemAttribute Constructor.

OrderItemAttribute Constructor.

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

Methods

getAttributeCode() → {string}

Get attr_code.

Get attr_code.

Source:
Returns:
Type
string

getOptionCodeOrData() → {string}

Get opt_code_or_data.

Get opt_code_or_data.

Source:
Returns:
Type
string

getPrice() → {number}

Get price.

Get price.

Source:
Returns:
Type
number

getWeight() → {number}

Get weight.

Get weight.

Source:
Returns:
Type
number

setAttributeCode(attributeCode) → {OrderItemAttribute}

Set attr_code.

Set attr_code.

Parameters:
Name Type Description
attributeCode string
Source:
Returns:
Type
OrderItemAttribute

setOptionCodeOrData(optionCodeOrData) → {OrderItemAttribute}

Set opt_code_or_data.

Set opt_code_or_data.

Parameters:
Name Type Description
optionCodeOrData string
Source:
Returns:
Type
OrderItemAttribute

setPrice(price) → {OrderItemAttribute}

Set price.

Set price.

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

setWeight(weight) → {OrderItemAttribute}

Set weight.

Set weight.

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