create_transaction

package
v0.0.0-...-3bb572b Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TransactionCreated = "wallet.core.transaction.created"

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTransactionCommand

type CreateTransactionCommand struct {
	FromAccountID uuid.UUID       `json:"from_account_id"`
	ToAccountID   uuid.UUID       `json:"to_account_id"`
	Amount        decimal.Decimal `json:"amount"`
}

type CreateTransactionOutput

type CreateTransactionOutput struct {
	ID            uuid.UUID       `json:"id"`
	FromAccountID uuid.UUID       `json:"from_account_id"`
	ToAccountID   uuid.UUID       `json:"to_account_id"`
	Amount        decimal.Decimal `json:"amount"`
}

type CreateTransactionUseCase

type CreateTransactionUseCase struct {
	UnitOfWork     uow.UnitOfWorkInterface
	EventPublisher events.EventPublisherInterface
}

func NewCreateTransactionUseCase

func NewCreateTransactionUseCase(
	UnitOfWork uow.UnitOfWorkInterface,
	EventPublisher events.EventPublisherInterface,
) *CreateTransactionUseCase

func (*CreateTransactionUseCase) Execute

Jump to

Keyboard shortcuts

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