Skip to main content

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;
}

shouldSetAsPlaced

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