Class: OrderItemOption

Model~OrderItemOption(data) → {void}

OrderItemOption data model.

Constructor

new OrderItemOption(data) → {void}

OrderItemOption Constructor.

OrderItemOption Constructor.

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

Methods

getAttribute() → {string}

Get attribute.

Get attribute.

Source:
Returns:
Type
string

getBasePrice() → {number}

Get base_price.

Get base_price.

Source:
Returns:
Type
number

getPrice() → {number}

Get price.

Get price.

Source:
Returns:
Type
number

getRetail() → {number}

Get retail.

Get retail.

Source:
Returns:
Type
number

getValue() → {string}

Get value.

Get value.

Source:
Returns:
Type
string

getWeight() → {number}

Get weight.

Get weight.

Source:
Returns:
Type
number

setAttribute(attribute) → {OrderItemOption}

Set attribute.

Set attribute.

Parameters:
Name Type Description
attribute string
Source:
Returns:
Type
OrderItemOption

setPrice(price) → {OrderItemOption}

Set price.

Set price.

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

setValue(value) → {OrderItemOption}

Set value.

Set value.

Parameters:
Name Type Description
value string
Source:
Returns:
Type
OrderItemOption

setWeight(weight) → {OrderItemOption}

Set weight.

Set weight.

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

toObject()

Source: