Documentation ¶
Index ¶
- type PixUsecase
- type TransactionUsecase
- func (t *TransactionUsecase) Complete(transactionId string) (*model.Transaction, error)
- func (t *TransactionUsecase) Confirm(transactionId string) (*model.Transaction, error)
- func (t *TransactionUsecase) Error(transactionId string, reason string) (*model.Transaction, error)
- func (t *TransactionUsecase) Register(accountFromId string, amount float64, pixKeyTo string, pixKeyToKind string, ...) (*model.Transaction, error)
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 (*PixUsecase) RegisterKey ¶
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)
Click to show internal directories.
Click to hide internal directories.