Constructor
new OrderProduct(data) → {void}
OrderProduct Constructor.
OrderProduct Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
addAttribute(attribute) → {OrderProduct}
Add a OrderProductAttribute.
Add a OrderProductAttribute.
Parameters:
Name | Type | Description |
---|---|---|
attribute |
OrderProductAttribute |
Returns:
- Type
- OrderProduct
getAttributes() → {Array.<OrderProductAttribute>}
Get attributes.
Get attributes.
Returns:
- Type
- Array.<OrderProductAttribute>
getCode() → {string}
Get code.
Get code.
Returns:
- Type
- string
getQuantity() → {number}
Get quantity.
Get quantity.
Returns:
- Type
- number
getSku() → {string}
Get sku.
Get sku.
Returns:
- Type
- string
getStatus() → {number}
Get status.
Get status.
Returns:
- Type
- number
getTrackingNumber() → {string}
Get tracknum.
Get tracknum.
Returns:
- Type
- string
getTrackingType() → {string}
Get tracktype.
Get tracktype.
Returns:
- Type
- string
setAttributes(attributes) → {OrderProduct}
Set attributes.
Set attributes.
Parameters:
Name | Type | Description |
---|---|---|
attributes |
Array.<OrderProductAttribute> |
Throws:
Error
Returns:
- Type
- OrderProduct
setCode(code) → {OrderProduct}
Set code.
Set code.
Parameters:
Name | Type | Description |
---|---|---|
code |
string |
Returns:
- Type
- OrderProduct
setQuantity(quantity) → {OrderProduct}
Set quantity.
Set quantity.
Parameters:
Name | Type | Description |
---|---|---|
quantity |
number |
Returns:
- Type
- OrderProduct
setSku(sku) → {OrderProduct}
Set sku.
Set sku.
Parameters:
Name | Type | Description |
---|---|---|
sku |
string |
Returns:
- Type
- OrderProduct
setStatus(status) → {OrderProduct}
Set status.
Set status.
Parameters:
Name | Type | Description |
---|---|---|
status |
number |
Returns:
- Type
- OrderProduct
setTrackingNumber(trackingNumber) → {OrderProduct}
Set tracknum.
Set tracknum.
Parameters:
Name | Type | Description |
---|---|---|
trackingNumber |
string |
Returns:
- Type
- OrderProduct
setTrackingType(trackingType) → {OrderProduct}
Set tracktype.
Set tracktype.
Parameters:
Name | Type | Description |
---|---|---|
trackingType |
string |
Returns:
- Type
- OrderProduct