commands

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package commands contains command DTOs for service and handler orchestration.

Package commands contains command DTOs for service and handler orchestration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deposit

type Deposit struct {
	UserID      uuid.UUID
	AccountID   uuid.UUID
	Amount      float64
	Currency    string
	MoneySource string
	PaymentID   string
	Timestamp   int64
}

Deposit is a DTO for deposit operations (command pattern).

type ExternalTarget

type ExternalTarget struct {
	BankAccountNumber     string
	RoutingNumber         string
	ExternalWalletAddress string
}

ExternalTarget represents the destination for an external withdrawal, such as a bank account or wallet.

type Transfer

type Transfer struct {
	UserID        uuid.UUID
	AccountID     uuid.UUID
	Amount        float64
	Currency      string
	FromAccountID uuid.UUID
	ToAccountID   uuid.UUID
}

type Withdraw

type Withdraw struct {
	UserID         uuid.UUID
	AccountID      uuid.UUID
	Amount         float64
	Currency       string
	MoneySource    string
	ExternalTarget *ExternalTarget // pointer for optionality
}

Withdraw is a DTO for withdraw operations (command pattern).

Jump to

Keyboard shortcuts

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