🚨 Announcing Vendure v2 Beta

CustomOrderProcess

CustomOrderProcess

Used to define extensions to or modifications of the default order process.

For detailed description of the interface members, see the StateMachineConfig docs.

Signature

interface CustomOrderProcess<State extends keyof CustomOrderStates | string> extends InjectableStrategy {
  transitions?: Transitions<State, State | OrderState> & Partial<Transitions<OrderState | State>>;
  onTransitionStart?: OnTransitionStartFn<State | OrderState, OrderTransitionData>;
  onTransitionEnd?: OnTransitionEndFn<State | OrderState, OrderTransitionData>;
  onTransitionError?: OnTransitionErrorFn<State | OrderState>;
}

Extends

Members

transitions

property
type:
Transitions<State, State | OrderState> & Partial<Transitions<OrderState | State>>

onTransitionStart

property
type:
OnTransitionStartFn<State | OrderState, OrderTransitionData>

onTransitionEnd

property
type:
OnTransitionEndFn<State | OrderState, OrderTransitionData>

onTransitionError

property