new OrderModel(obj)
Order helper class providing enhanced order functionality.
Parameters:
Name | Type | Description |
---|---|---|
obj |
dw.order.Order |
The order object to enhance/wrap. |
Extends
Methods
(static) submit(order) → {Object}T
Submits an order
Parameters:
Name | Type | Description |
---|---|---|
order |
dw.order.Order |
The order object to be submitted. |
Returns:
object If order cannot be placed, object.error is set to true. Ortherwise, object.order_created is true, and object.Order is set to the order.
- Type
- Object