Versions in this module Expand all Collapse all v0 v0.0.3 Mar 13, 2024 Changes in this version + const ValidatePaymentErrorNoActionDisplayData + const ValidatePaymentErrorNoActionURL + const ValidatePaymentErrorNoWalletDetails + var ErrAnotherPlaceOrderProcessRunning = errors.New("ErrAnotherPlaceOrderProcessRunning") + var ErrLockTaken = errors.New("lock already taken") + var ErrNoPlaceOrderProcess = errors.New("ErrNoPlaceOrderProcess") + func PaymentValidator(ctx context.Context, p *process.Process, ...) process.RunResult + type CancelPlaceOrderCommand struct + type Coordinator struct + func (c *Coordinator) Cancel(ctx context.Context) error + func (c *Coordinator) ClearLastProcess(ctx context.Context) error + func (c *Coordinator) HasUnfinishedProcess(ctx context.Context) (bool, error) + func (c *Coordinator) Inject(locker TryLocker, logger flamingo.Logger, processFactory *process.Factory, ...) + func (c *Coordinator) LastProcess(ctx context.Context) (*process.Process, error) + func (c *Coordinator) New(ctx context.Context, cart cartDomain.Cart, returnURL *url.URL) (*process.Context, error) + func (c *Coordinator) Run(ctx context.Context) + func (c *Coordinator) RunBlocking(ctx context.Context) (*process.Context, error) + type Handler struct + func (h *Handler) CancelPlaceOrder(ctx context.Context, _ CancelPlaceOrderCommand) error + func (h *Handler) ClearPlaceOrder(ctx context.Context) error + func (h *Handler) CurrentContext(ctx context.Context) (*process.Context, error) + func (h *Handler) HasUnfinishedProcess(ctx context.Context) (bool, error) + func (h *Handler) Inject(c *Coordinator) *Handler + func (h *Handler) RefreshPlaceOrder(ctx context.Context, _ RefreshPlaceOrderCommand) (*process.Context, error) + func (h *Handler) RefreshPlaceOrderBlocking(ctx context.Context, _ RefreshPlaceOrderCommand) (*process.Context, error) + func (h *Handler) StartPlaceOrder(ctx context.Context, command StartPlaceOrderCommand) (*process.Context, error) + type RefreshPlaceOrderCommand struct + type StartPlaceOrderCommand struct + Cart cartDomain.Cart + ReturnURL *url.URL + type TryLocker interface + TryLock func(ctx context.Context, key string, maxLockDuration time.Duration) (Unlock, error) + type Unlock func() error