withdraw

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL