usecase

package
v0.0.0-...-8a555e4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PixUsecase

type PixUsecase struct {
	PixKeyRepository model.PixKeyRepositoryInterface
}

func (*PixUsecase) FindKeyByKind

func (p *PixUsecase) FindKeyByKind(key string, kind string) (*model.PixKey, error)

func (*PixUsecase) RegisterKey

func (p *PixUsecase) RegisterKey(key string, kind string, accountId string) (*model.PixKey, error)

type TransactionUsecase

type TransactionUsecase struct {
	TransactionRepository model.TransactionRepositoryInterface
	PixRepository         model.PixKeyRepositoryInterface
}

func (*TransactionUsecase) Complete

func (t *TransactionUsecase) Complete(transactionId string) (*model.Transaction, error)

func (*TransactionUsecase) Confirm

func (t *TransactionUsecase) Confirm(transactionId string) (*model.Transaction, error)

func (*TransactionUsecase) Error

func (t *TransactionUsecase) Error(transactionId string, reason string) (*model.Transaction, error)

func (*TransactionUsecase) Register

func (t *TransactionUsecase) Register(accountFromId string, amount float64, pixKeyTo string, pixKeyToKind string, description string) (*model.Transaction, error)

Jump to

Keyboard shortcuts

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