Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountSvc ¶
type ApplicableAccountSvc ¶
type ApplicableAccountSvc interface {
GetApplicableAccounts(
_ context.Context,
accounts []*database.Account,
) map[v1.TransactionType]*applicable_accounts.PossibleAccount
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewValidationService ¶
func NewValidationService(cfg *ServiceConfig) *Service
func (*Service) ValidateTransactionAccounts ¶
func (s *Service) ValidateTransactionAccounts( _ context.Context, possible map[gomoneypbv1.TransactionType]*applicable_accounts.PossibleAccount, tx *database.Transaction, ) error
func (*Service) ValidateTransactionData ¶
type ServiceConfig ¶
type ServiceConfig struct {
ApplicableAccountSvc ApplicableAccountSvc
}
Click to show internal directories.
Click to hide internal directories.