Constructor
# new Shipment(shipmentId, requesterId, senderId, shipToAddress, status, shipmentLines)
Parameters:
| Name | Type | Description |
|---|---|---|
shipmentId |
||
requesterId |
||
senderId |
||
shipToAddress |
||
status |
||
shipmentLines |
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 |
undefined if all ok. An arry of errors if not all ok.