A strategy that determines how to deal with guest checkouts - i.e. when a customer checks out without being logged in. For example, a strategy could be used to implement business rules such as:
This is configured via the orderOptions.guestCheckoutStrategy property of
your VendureConfig.
InjectableStrategy(ctx: RequestContext, order: Order, input: CreateCustomerInput) => | ErrorResultUnion<SetCustomerForOrderResult, Customer> | Promise<ErrorResultUnion<SetCustomerForOrderResult, Customer>>This method is called when the setCustomerForOrder mutation is executed.
It should return either a Customer object or an ErrorResult.