Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrFailedCreateTopup indicates failure in creating a new top-up record. ErrFailedCreateTopup = errors.ErrInternal.WithMessage("Failed to create topup") // ErrFailedUpdateTopup indicates failure in updating an existing top-up record. ErrFailedUpdateTopup = errors.ErrInternal.WithMessage("Failed to update topup") // ErrFailedTrashTopup indicates failure in soft-deleting (trashing) a top-up. ErrFailedTrashTopup = errors.ErrInternal.WithMessage("Failed to move topup to trash") // ErrFailedRestoreTopup indicates failure in restoring a previously trashed top-up. ErrFailedRestoreTopup = errors.ErrInternal.WithMessage("Failed to restore topup") // ErrFailedDeleteTopup indicates failure in permanently deleting a top-up. ErrFailedDeleteTopup = errors.ErrInternal.WithMessage("Failed to delete topup permanently") // ErrFailedRestoreAllTopups indicates failure in restoring all trashed top-up records. ErrFailedRestoreAllTopups = errors.ErrInternal.WithMessage("Failed to restore all topups") // ErrFailedDeleteAllTopups indicates failure in permanently deleting all trashed top-up records. ErrFailedDeleteAllTopups = errors.ErrInternal.WithMessage("Failed to delete all topups permanently") )
var ( // ErrTopupNotFoundRes indicates that a requested top-up was not found. ErrTopupNotFoundRes = errors.ErrNotFound.WithMessage("Topup not found") // ErrFailedFindAllTopups indicates failure in retrieving all top-up records. ErrFailedFindAllTopups = errors.ErrInternal.WithMessage("Failed to fetch topups") // ErrFailedFindAllTopupsByCardNumber indicates failure in retrieving top-ups by card number. ErrFailedFindAllTopupsByCardNumber = errors.ErrInternal.WithMessage("Failed to fetch topups by card number") // ErrFailedFindTopupById indicates failure in finding a top-up by its ID. ErrFailedFindTopupById = errors.ErrInternal.WithMessage("Failed to find topup by ID") // ErrFailedFindActiveTopups indicates failure in retrieving active (non-trashed) top-up records. ErrFailedFindActiveTopups = errors.ErrInternal.WithMessage("Failed to fetch active topups") // ErrFailedFindTrashedTopups indicates failure in retrieving trashed (soft-deleted) top-up records. ErrFailedFindTrashedTopups = errors.ErrInternal.WithMessage("Failed to fetch trashed topups") )
var ErrFailedFindMonthTopupStatusFailed = errors.NewErrorResponse("Failed to get monthly topup failed status", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusFailed indicates failure in retrieving monthly failed top-up status.
var ErrFailedFindMonthTopupStatusFailedByCard = errors.NewErrorResponse("Failed to get monthly topup failed status by card", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusFailedByCard indicates failure in retrieving monthly failed top-up status by card.
var ErrFailedFindMonthTopupStatusSuccess = errors.NewErrorResponse("Failed to get monthly topup success status", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusSuccess indicates failure in retrieving monthly successful top-up status.
var ErrFailedFindMonthTopupStatusSuccessByCard = errors.NewErrorResponse("Failed to get monthly topup success status by card", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusSuccessByCard indicates failure in retrieving monthly successful top-up status by card.
var ErrFailedFindMonthlyTopupAmounts = errors.NewErrorResponse("Failed to get monthly topup amounts", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupAmounts indicates failure in retrieving monthly top-up amounts.
var ErrFailedFindMonthlyTopupAmountsByCard = errors.NewErrorResponse("Failed to get monthly topup amounts by card", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupAmountsByCard indicates failure in retrieving monthly top-up amounts by card.
var ErrFailedFindMonthlyTopupMethods = errors.NewErrorResponse("Failed to get monthly topup methods", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupMethods indicates failure in retrieving monthly top-up methods.
var ErrFailedFindMonthlyTopupMethodsByCard = errors.NewErrorResponse("Failed to get monthly topup methods by card", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupMethodsByCard indicates failure in retrieving monthly top-up methods by card.
var ErrFailedFindYearlyTopupAmounts = errors.NewErrorResponse("Failed to get yearly topup amounts", http.StatusInternalServerError)
ErrFailedFindYearlyTopupAmounts indicates failure in retrieving yearly top-up amounts.
var ErrFailedFindYearlyTopupAmountsByCard = errors.NewErrorResponse("Failed to get yearly topup amounts by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupAmountsByCard indicates failure in retrieving yearly top-up amounts by card.
var ErrFailedFindYearlyTopupMethods = errors.NewErrorResponse("Failed to get yearly topup methods", http.StatusInternalServerError)
ErrFailedFindYearlyTopupMethods indicates failure in retrieving yearly top-up methods.
var ErrFailedFindYearlyTopupMethodsByCard = errors.NewErrorResponse("Failed to get yearly topup methods by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupMethodsByCard indicates failure in retrieving yearly top-up methods by card.
var ErrFailedFindYearlyTopupStatusFailed = errors.NewErrorResponse("Failed to get yearly topup failed status", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusFailed indicates failure in retrieving yearly failed top-up status.
var ErrFailedFindYearlyTopupStatusFailedByCard = errors.NewErrorResponse("Failed to get yearly topup failed status by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusFailedByCard indicates failure in retrieving yearly failed top-up status by card.
var ErrFailedFindYearlyTopupStatusSuccess = errors.NewErrorResponse("Failed to get yearly topup success status", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusSuccess indicates failure in retrieving yearly successful top-up status.
var ErrFailedFindYearlyTopupStatusSuccessByCard = errors.NewErrorResponse("Failed to get yearly topup success status by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusSuccessByCard indicates failure in retrieving yearly successful top-up status by card.
Functions ¶
This section is empty.
Types ¶
This section is empty.