Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorDebitInvalidPinForAccount if the given pin is not equals with the stored hashed pin ErrorDebitInvalidPinForAccount = errors.New("invalid pin for checking account") // ErrorDebitInvalidAmount if the given debit operation amount is a negative number ErrorDebitInvalidAmount = errors.New("invalid debit amount. Amount has to be positive") // ErrorDebitExceedsOverdraftLimit if the given debit operation would exceed the overall checkingAccount balance ErrorDebitExceedsOverdraftLimit = errors.New("debit amount exceeds the overdraft limit") )
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
UseCase manages all debit operations
func NewUseCase ¶
func NewUseCase(cm checking_account.Manager) *UseCase
NewUseCase inits a new debit UseCase
Click to show internal directories.
Click to hide internal directories.