usecase

package
v0.0.0-...-39aa8a5 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) FindKey

func (p *PixUseCase) FindKey(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(accountId string, amount float64, pixKeyTo string, pixKeyKindTo string, description string) (*model.Transaction, error)

Jump to

Keyboard shortcuts

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