Class: OrderProduct

Model~OrderProduct(data) → {void}

OrderProduct data model.

Constructor

new OrderProduct(data) → {void}

OrderProduct Constructor.

OrderProduct Constructor.

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

Methods

addAttribute(attribute) → {OrderProduct}

Add a OrderProductAttribute.

Add a OrderProductAttribute.

Parameters:
Name Type Description
attribute OrderProductAttribute
Source:
Returns:
Type
OrderProduct

getAttributes() → {Array.<OrderProductAttribute>}

Get attributes.

Get attributes.

Source:
Returns:
Type
Array.<OrderProductAttribute>

getCode() → {string}

Get code.

Get code.

Source:
Returns:
Type
string

getQuantity() → {number}

Get quantity.

Get quantity.

Source:
Returns:
Type
number

getSku() → {string}

Get sku.

Get sku.

Source:
Returns:
Type
string

getStatus() → {number}

Get status.

Get status.

Source:
Returns:
Type
number

getTrackingNumber() → {string}

Get tracknum.

Get tracknum.

Source:
Returns:
Type
string

getTrackingType() → {string}

Get tracktype.

Get tracktype.

Source:
Returns:
Type
string

setAttributes(attributes) → {OrderProduct}

Set attributes.

Set attributes.

Parameters:
Name Type Description
attributes Array.<OrderProductAttribute>
Source:
Throws:
Error
Returns:
Type
OrderProduct

setCode(code) → {OrderProduct}

Set code.

Set code.

Parameters:
Name Type Description
code string
Source:
Returns:
Type
OrderProduct

setQuantity(quantity) → {OrderProduct}

Set quantity.

Set quantity.

Parameters:
Name Type Description
quantity number
Source:
Returns:
Type
OrderProduct

setSku(sku) → {OrderProduct}

Set sku.

Set sku.

Parameters:
Name Type Description
sku string
Source:
Returns:
Type
OrderProduct

setStatus(status) → {OrderProduct}

Set status.

Set status.

Parameters:
Name Type Description
status number
Source:
Returns:
Type
OrderProduct

setTrackingNumber(trackingNumber) → {OrderProduct}

Set tracknum.

Set tracknum.

Parameters:
Name Type Description
trackingNumber string
Source:
Returns:
Type
OrderProduct

setTrackingType(trackingType) → {OrderProduct}

Set tracktype.

Set tracktype.

Parameters:
Name Type Description
trackingType string
Source:
Returns:
Type
OrderProduct

toObject()

Source: