Constructor
# new Order(orderId, requesterId, senderId, shipToAddress, status, orderLines)
Parameters:
| Name | Type | Description |
|---|---|---|
orderId |
||
requesterId |
||
senderId |
||
shipToAddress |
||
status |
||
orderLines |
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.