Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFailedCreateSaldo returns a 500 error when creating a saldo record fails. ErrFailedCreateSaldo = errors.ErrInternal.WithMessage("Failed to create saldo") // ErrFailedUpdateSaldo returns a 500 error when updating a saldo record fails. ErrFailedUpdateSaldo = errors.ErrInternal.WithMessage("Failed to update saldo") // ErrFailedTrashSaldo returns a 500 error when moving a saldo record to trash fails. ErrFailedTrashSaldo = errors.ErrInternal.WithMessage("Failed to move saldo to trash") // ErrFailedRestoreSaldo returns a 500 error when restoring a trashed saldo record fails. ErrFailedRestoreSaldo = errors.ErrInternal.WithMessage("Failed to restore saldo") // ErrFailedDeleteSaldoPermanent returns a 500 error when permanently deleting a saldo record fails. ErrFailedDeleteSaldoPermanent = errors.ErrInternal.WithMessage("Failed to delete saldo permanently") // ErrFailedRestoreAllSaldo returns a 500 error when restoring all trashed saldo records fails. ErrFailedRestoreAllSaldo = errors.ErrInternal.WithMessage("Failed to restore all saldos") // ErrFailedDeleteAllSaldoPermanent returns a 500 error when permanently deleting all trashed saldo records fails. ErrFailedDeleteAllSaldoPermanent = errors.ErrInternal.WithMessage("Failed to delete all saldos permanently") )
View Source
var ( // ErrFailedFindAllSaldos returns a 500 error when fetching all saldo records fails. ErrFailedFindAllSaldos = errors.ErrInternal.WithMessage("Failed to fetch saldos") // ErrFailedSaldoNotFound returns a 404 error when a requested saldo record is not found. ErrFailedSaldoNotFound = errors.ErrNotFound.WithMessage("Saldo not found") // ErrFailedFindSaldoByCardNumber returns a 500 error when fetching saldo by card number fails. ErrFailedFindSaldoByCardNumber = errors.ErrInternal.WithMessage("Failed to find saldo by card number") // ErrFailedFindActiveSaldos returns a 500 error when fetching active saldo records fails. ErrFailedFindActiveSaldos = errors.ErrInternal.WithMessage("Failed to fetch active saldos") // ErrFailedFindTrashedSaldos returns a 500 error when fetching trashed saldo records fails. ErrFailedFindTrashedSaldos = errors.ErrInternal.WithMessage("Failed to fetch trashed saldos") )
View Source
var ErrFailedFindMonthlySaldoBalances = errors.NewErrorResponse("Failed to fetch monthly saldo balances", http.StatusInternalServerError)
ErrFailedFindMonthlySaldoBalances returns a 500 error when fetching monthly saldo balances fails.
View Source
var ErrFailedFindMonthlyTotalSaldoBalance = errors.NewErrorResponse("Failed to fetch monthly total saldo balance", http.StatusInternalServerError)
ErrFailedFindMonthlyTotalSaldoBalance returns a 500 error when fetching monthly total saldo balance fails.
View Source
var ErrFailedFindYearTotalSaldoBalance = errors.NewErrorResponse("Failed to fetch yearly total saldo balance", http.StatusInternalServerError)
ErrFailedFindYearTotalSaldoBalance returns a 500 error when fetching yearly total saldo balance fails.
View Source
var ErrFailedFindYearlySaldoBalances = errors.NewErrorResponse("Failed to fetch yearly saldo balances", http.StatusInternalServerError)
ErrFailedFindYearlySaldoBalances returns a 500 error when fetching yearly saldo balances fails.
View Source
var ErrFailedInsuffientBalance = errors.NewErrorResponse("Insufficient balance", http.StatusBadRequest)
ErrFailedInsuffientBalance returns a 400 error when a transaction is attempted with insufficient balance.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.