Class: OrderShipment

Model~OrderShipment(data) → {void}

OrderShipment data model.

Constructor

new OrderShipment(data) → {void}

OrderShipment Constructor.

OrderShipment Constructor.

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

Members

(static, constant) ORDER_SHIPMENT_STATUS_PENDING

Constant ORDER_SHIPMENT_STATUS_PENDING

.

Constant ORDER_SHIPMENT_STATUS_PENDING

Source:

(static, constant) ORDER_SHIPMENT_STATUS_PICKING

Constant ORDER_SHIPMENT_STATUS_PICKING

.

Constant ORDER_SHIPMENT_STATUS_PICKING

Source:

(static, constant) ORDER_SHIPMENT_STATUS_SHIPPED

Constant ORDER_SHIPMENT_STATUS_SHIPPED

.

Constant ORDER_SHIPMENT_STATUS_SHIPPED

Source:

Methods

getBatchId() → {number}

Get batch_id.

Get batch_id.

Source:
Returns:
Type
number

getCode() → {string}

Get code.

Get code.

Source:
Returns:
Type
string

getCost() → {number}

Get cost.

Get cost.

Source:
Returns:
Type
number

getFormattedCost() → {string}

Get formatted_cost.

Get formatted_cost.

Source:
Returns:
Type
string

getId() → {number}

Get id.

Get id.

Source:
Returns:
Type
number

getLabelCount() → {number}

Get labelcount.

Get labelcount.

Source:
Returns:
Type
number

getOrderId() → {number}

Get order_id.

Get order_id.

Source:
Returns:
Type
number

getShipDate() → {number}

Get ship_date.

Get ship_date.

Source:
Returns:
Type
number

getStatus() → {number}

Get status.

Get status.

Source:
Returns:
Type
number

Get tracklink.

Get tracklink.

Source:
Returns:
Type
string

getTrackingNumber() → {string}

Get tracknum.

Get tracknum.

Source:
Returns:
Type
string

getTrackingType() → {string}

Get tracktype.

Get tracktype.

Source:
Returns:
Type
string

getWeight() → {number}

Get weight.

Get weight.

Source:
Returns:
Type
number

setBatchId(batchId) → {OrderShipment}

Set batch_id.

Set batch_id.

Parameters:
Name Type Description
batchId number
Source:
Returns:
Type
OrderShipment

setCode(code) → {OrderShipment}

Set code.

Set code.

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

setCost(cost) → {OrderShipment}

Set cost.

Set cost.

Parameters:
Name Type Description
cost number
Source:
Returns:
Type
OrderShipment

setId(id) → {OrderShipment}

Set id.

Set id.

Parameters:
Name Type Description
id number
Source:
Returns:
Type
OrderShipment

setLabelCount(labelCount) → {OrderShipment}

Set labelcount.

Set labelcount.

Parameters:
Name Type Description
labelCount number
Source:
Returns:
Type
OrderShipment

setOrderId(orderId) → {OrderShipment}

Set order_id.

Set order_id.

Parameters:
Name Type Description
orderId number
Source:
Returns:
Type
OrderShipment

setShipDate(shipDate) → {OrderShipment}

Set ship_date.

Set ship_date.

Parameters:
Name Type Description
shipDate number
Source:
Returns:
Type
OrderShipment

setStatus(status) → {OrderShipment}

Set status.

Set status.

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

Set tracklink.

Set tracklink.

Parameters:
Name Type Description
trackingLink string
Source:
Returns:
Type
OrderShipment

setTrackingNumber(trackingNumber) → {OrderShipment}

Set tracknum.

Set tracknum.

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

setTrackingType(trackingType) → {OrderShipment}

Set tracktype.

Set tracktype.

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

setWeight(weight) → {OrderShipment}

Set weight.

Set weight.

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