Constructor
new OrderShipment(data) → {void}
OrderShipment Constructor.
OrderShipment Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Members
(static, constant) ORDER_SHIPMENT_STATUS_PENDING
Constant ORDER_SHIPMENT_STATUS_PENDING
.Constant ORDER_SHIPMENT_STATUS_PENDING
(static, constant) ORDER_SHIPMENT_STATUS_PICKING
Constant ORDER_SHIPMENT_STATUS_PICKING
.Constant ORDER_SHIPMENT_STATUS_PICKING
(static, constant) ORDER_SHIPMENT_STATUS_SHIPPED
Constant ORDER_SHIPMENT_STATUS_SHIPPED
.Constant ORDER_SHIPMENT_STATUS_SHIPPED
Methods
getBatchId() → {number}
Get batch_id.
Get batch_id.
Returns:
- Type
- number
getCode() → {string}
Get code.
Get code.
Returns:
- Type
- string
getCost() → {number}
Get cost.
Get cost.
Returns:
- Type
- number
getFormattedCost() → {string}
Get formatted_cost.
Get formatted_cost.
Returns:
- Type
- string
getId() → {number}
Get id.
Get id.
Returns:
- Type
- number
getLabelCount() → {number}
Get labelcount.
Get labelcount.
Returns:
- Type
- number
getOrderId() → {number}
Get order_id.
Get order_id.
Returns:
- Type
- number
getShipDate() → {number}
Get ship_date.
Get ship_date.
Returns:
- Type
- number
getStatus() → {number}
Get status.
Get status.
Returns:
- Type
- number
getTrackingLink() → {string}
Get tracklink.
Get tracklink.
Returns:
- Type
- string
getTrackingNumber() → {string}
Get tracknum.
Get tracknum.
Returns:
- Type
- string
getTrackingType() → {string}
Get tracktype.
Get tracktype.
Returns:
- Type
- string
getWeight() → {number}
Get weight.
Get weight.
Returns:
- Type
- number
setBatchId(batchId) → {OrderShipment}
Set batch_id.
Set batch_id.
Parameters:
Name | Type | Description |
---|---|---|
batchId |
number |
Returns:
- Type
- OrderShipment
setCode(code) → {OrderShipment}
Set code.
Set code.
Parameters:
Name | Type | Description |
---|---|---|
code |
string |
Returns:
- Type
- OrderShipment
setCost(cost) → {OrderShipment}
Set cost.
Set cost.
Parameters:
Name | Type | Description |
---|---|---|
cost |
number |
Returns:
- Type
- OrderShipment
setId(id) → {OrderShipment}
Set id.
Set id.
Parameters:
Name | Type | Description |
---|---|---|
id |
number |
Returns:
- Type
- OrderShipment
setLabelCount(labelCount) → {OrderShipment}
Set labelcount.
Set labelcount.
Parameters:
Name | Type | Description |
---|---|---|
labelCount |
number |
Returns:
- Type
- OrderShipment
setOrderId(orderId) → {OrderShipment}
Set order_id.
Set order_id.
Parameters:
Name | Type | Description |
---|---|---|
orderId |
number |
Returns:
- Type
- OrderShipment
setShipDate(shipDate) → {OrderShipment}
Set ship_date.
Set ship_date.
Parameters:
Name | Type | Description |
---|---|---|
shipDate |
number |
Returns:
- Type
- OrderShipment
setStatus(status) → {OrderShipment}
Set status.
Set status.
Parameters:
Name | Type | Description |
---|---|---|
status |
number |
Returns:
- Type
- OrderShipment
setTrackingLink(trackingLink) → {OrderShipment}
Set tracklink.
Set tracklink.
Parameters:
Name | Type | Description |
---|---|---|
trackingLink |
string |
Returns:
- Type
- OrderShipment
setTrackingNumber(trackingNumber) → {OrderShipment}
Set tracknum.
Set tracknum.
Parameters:
Name | Type | Description |
---|---|---|
trackingNumber |
string |
Returns:
- Type
- OrderShipment
setTrackingType(trackingType) → {OrderShipment}
Set tracktype.
Set tracktype.
Parameters:
Name | Type | Description |
---|---|---|
trackingType |
string |
Returns:
- Type
- OrderShipment
setWeight(weight) → {OrderShipment}
Set weight.
Set weight.
Parameters:
Name | Type | Description |
---|---|---|
weight |
number |
Returns:
- Type
- OrderShipment