🚨 Announcement: A New Chapter for Vendure read more

DefaultActiveOrderStrategy

DefaultActiveOrderStrategy

The default ActiveOrderStrategy, which uses the current Session to determine the active Order, and requires no additional input in the Shop API since it is based on the session which is part of the RequestContext.

Signature

class DefaultActiveOrderStrategy implements ActiveOrderStrategy {
  name: 'default-active-order-strategy';
  async init(injector: Injector) => ;
  createActiveOrder(ctx: RequestContext) => ;
  async determineActiveOrder(ctx: RequestContext) => ;
}

Implements

Members

name

property
type:
'default-active-order-strategy'

init

async method
type:
(injector: Injector) =>

createActiveOrder

method
type:
(ctx: RequestContext) =>

determineActiveOrder

async method
type:
(ctx: RequestContext) =>