Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCurrencyConverted ¶
func HandleCurrencyConverted( bus eventbus.Bus, uow repository.UnitOfWork, logger *slog.Logger, ) func( ctx context.Context, e events.Event, ) error
HandleCurrencyConverted performs domain validation after currency conversion for withdrawals. Emits WithdrawBusinessValidated event to trigger payment initiation.
func HandleRequested ¶
func HandleRequested( bus eventbus.Bus, uow repository.UnitOfWork, logger *slog.Logger, ) func( ctx context.Context, e events.Event, ) error
HandleRequested handles WithdrawRequested events by validating and persisting the withdraw. This follows the new event flow pattern: Requested -> HandleRequested (validate and persist).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.