topupserviceerrors

package
v1.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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")
)
View Source
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")
)
View Source
var ErrFailedFindMonthTopupStatusFailed = errors.NewErrorResponse("Failed to get monthly topup failed status", http.StatusInternalServerError)

ErrFailedFindMonthTopupStatusFailed indicates failure in retrieving monthly failed top-up status.

View Source
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.

View Source
var ErrFailedFindMonthTopupStatusSuccess = errors.NewErrorResponse("Failed to get monthly topup success status", http.StatusInternalServerError)

ErrFailedFindMonthTopupStatusSuccess indicates failure in retrieving monthly successful top-up status.

View Source
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.

View Source
var ErrFailedFindMonthlyTopupAmounts = errors.NewErrorResponse("Failed to get monthly topup amounts", http.StatusInternalServerError)

ErrFailedFindMonthlyTopupAmounts indicates failure in retrieving monthly top-up amounts.

View Source
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.

View Source
var ErrFailedFindMonthlyTopupMethods = errors.NewErrorResponse("Failed to get monthly topup methods", http.StatusInternalServerError)

ErrFailedFindMonthlyTopupMethods indicates failure in retrieving monthly top-up methods.

View Source
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.

View Source
var ErrFailedFindYearlyTopupAmounts = errors.NewErrorResponse("Failed to get yearly topup amounts", http.StatusInternalServerError)

ErrFailedFindYearlyTopupAmounts indicates failure in retrieving yearly top-up amounts.

View Source
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.

View Source
var ErrFailedFindYearlyTopupMethods = errors.NewErrorResponse("Failed to get yearly topup methods", http.StatusInternalServerError)

ErrFailedFindYearlyTopupMethods indicates failure in retrieving yearly top-up methods.

View Source
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.

View Source
var ErrFailedFindYearlyTopupStatusFailed = errors.NewErrorResponse("Failed to get yearly topup failed status", http.StatusInternalServerError)

ErrFailedFindYearlyTopupStatusFailed indicates failure in retrieving yearly failed top-up status.

View Source
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.

View Source
var ErrFailedFindYearlyTopupStatusSuccess = errors.NewErrorResponse("Failed to get yearly topup success status", http.StatusInternalServerError)

ErrFailedFindYearlyTopupStatusSuccess indicates failure in retrieving yearly successful top-up status.

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL