menu

SiteGenesis / Server-side JS / Class: OrderModel

models/OrderModel~ OrderModel

new OrderModel(obj)

Order helper class providing enhanced order functionality.

Parameters:
Name Type Description
obj dw.order.Order

The order object to enhance/wrap.

Source:

Extends

Methods

(static) submit(order) → {Object}T

Submits an order

Parameters:
Name Type Description
order dw.order.Order

The order object to be submitted.

Source:
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