Skip to main content

Order

Overview

The Order type represents an order in the High Velocity front-end app. It is a generic type that extends LineItemContainer and BaseOrder, and can be customized based on the CartModes.

Attributes

lineItemType

type: 'expanded' | 'reference'


Defines the type of line items in the order. Can be either 'expanded' or 'reference'.

lineItemPricing

type: 'internal' | 'external'


Defines the pricing model for the line items in the order. Can be either 'internal' or 'external'.

BaseOrder

Overview

The BaseOrder type extends BaseCart and represents the base structure of an order. It includes attributes applicable to all cart modes, and that are typically common to any vendor.

note

You are not stuck with these attributes, since you have full control of the code in High Velocity, you are free to modify, remove, or add attributes

Attributes

orderNumber

type: string


The unique identifier for the order.

datePlaced

type: Date


The date when the order was placed.