DefaultOrderPlacedStrategy

DefaultOrderPlacedStrategy

DefaultOrderPlacedStrategy

The default OrderPlacedStrategy. The order is set as “placed” when it transitions from ‘ArrangingPayment’ to either ‘PaymentAuthorized’ or ‘PaymentSettled’.

Signature

class DefaultOrderPlacedStrategy implements OrderPlacedStrategy {
  shouldSetAsPlaced(ctx: RequestContext, fromState: OrderState, toState: OrderState, order: Order) => boolean;
}

Implements

Members

shouldSetAsPlaced

method
type:
(ctx: RequestContext, fromState: OrderState, toState: OrderState, order: Order) => boolean