menu

SFRA / Server-side JS / Class: OrderModel

OrderModel

new OrderModel(lineItemContainer, options)

Order class that represents the current order

Parameters:
Name Type Description
lineItemContainer dw.order.LineItemCtnr

Current users's basket/order

options Object

The current order's line items

Properties
Name Type Description
config Object

Object to help configure the orderModel

Properties
Name Type Description
numberOfLineItems string

helps determine the number of lineitems needed

countryCode string

the current request country code

Source: