Class

Shipment

Shipment(shipmentId, requesterId, senderId, shipToAddress, status, shipmentLines)

Constructor

# new Shipment(shipmentId, requesterId, senderId, shipToAddress, status, shipmentLines)

Parameters:
Name Type Description
shipmentId
requesterId
senderId
shipToAddress
status
shipmentLines

View Source model/Shipment.js, line 31

Methods

# validate(oldStatusopt)

Validate if everything seems ok with the properties of this object.

Validate if everything seems ok with the properties of this object.

Parameters:
Name Type Attributes Description
oldStatus string <optional>

if oldStatus validation is available

View Source model/Shipment.js, line 45

undefined if all ok. An arry of errors if not all ok.