Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClientNotFound = errors.New("client not found") ErrClientCannotAfford = errors.New("client cannot afford this transaction") )
View Source
var Module = fx.Provide( NewCreateTransaction, NewGetClientExtract, )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddTransaction ¶
type CreateTransaction ¶
type CreateTransaction struct {
Repository Repository
}
func NewCreateTransaction ¶
func NewCreateTransaction(repository Repository) *CreateTransaction
func (*CreateTransaction) Execute ¶
func (c *CreateTransaction) Execute(clientID string, value int, kind string, description string) (*models.ClientTransactionResponse, error)
type GetClientExtract ¶
type GetClientExtract struct {
Repository Repository
}
func NewGetClientExtract ¶
func NewGetClientExtract(repository Repository) *GetClientExtract
func (*GetClientExtract) Execute ¶
func (c *GetClientExtract) Execute(clientID string) (*models.GetClientExtractResponse, error)
type Repository ¶
Click to show internal directories.
Click to hide internal directories.