topuprepositoryerrors

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrGetMonthlyTopupAmountsFailed indicates failure in retrieving the monthly top-up amounts.
	ErrGetMonthlyTopupAmountsFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup amounts")

	// ErrGetYearlyTopupAmountsFailed indicates failure in retrieving the yearly top-up amounts.
	ErrGetYearlyTopupAmountsFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup amounts")

	// ErrGetMonthlyTopupAmountsByCardFailed indicates failure in retrieving monthly top-up amount stats by card number.
	ErrGetMonthlyTopupAmountsByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup amounts by card number")

	// ErrGetYearlyTopupAmountsByCardFailed indicates failure in retrieving yearly top-up amount stats by card number.
	ErrGetYearlyTopupAmountsByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup amounts by card number")
)
View Source
var (
	// ErrCreateTopupFailed indicates failure in creating a new top-up record.
	ErrCreateTopupFailed = errors.ErrInternal.WithMessage("Failed to create topup")

	// ErrUpdateTopupFailed indicates failure in updating an existing top-up record.
	ErrUpdateTopupFailed = errors.ErrInternal.WithMessage("Failed to update topup")

	// ErrUpdateTopupAmountFailed indicates failure in updating only the top-up amount.
	ErrUpdateTopupAmountFailed = errors.ErrInternal.WithMessage("Failed to update topup amount")

	// ErrUpdateTopupStatusFailed indicates failure in updating the top-up status (e.g., success/failed).
	ErrUpdateTopupStatusFailed = errors.ErrInternal.WithMessage("Failed to update topup status")

	// ErrTrashedTopupFailed indicates failure in soft-deleting (trashing) a top-up.
	ErrTrashedTopupFailed = errors.ErrInternal.WithMessage("Failed to move topup to trash")

	// ErrRestoreTopupFailed indicates failure in restoring a previously trashed top-up.
	ErrRestoreTopupFailed = errors.ErrInternal.WithMessage("Failed to restore topup from trash")

	// ErrDeleteTopupPermanentFailed indicates failure in permanently deleting a top-up.
	ErrDeleteTopupPermanentFailed = errors.ErrInternal.WithMessage("Failed to permanently delete topup")

	// ErrRestoreAllTopupFailed indicates failure in restoring all trashed top-ups.
	ErrRestoreAllTopupFailed = errors.ErrInternal.WithMessage("Failed to restore all topups")

	// ErrDeleteAllTopupPermanentFailed indicates failure in permanently deleting all trashed top-ups.
	ErrDeleteAllTopupPermanentFailed = errors.ErrInternal.WithMessage("Failed to permanently delete all topups")
)
View Source
var (
	// ErrGetMonthlyTopupMethodsFailed indicates failure in retrieving monthly top-up payment methods statistics.
	ErrGetMonthlyTopupMethodsFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup methods")

	// ErrGetYearlyTopupMethodsFailed indicates failure in retrieving yearly top-up payment methods statistics.
	ErrGetYearlyTopupMethodsFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup methods")

	// ErrGetMonthlyTopupMethodsByCardFailed indicates failure in retrieving monthly payment method stats by card number.
	ErrGetMonthlyTopupMethodsByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup methods by card number")

	// ErrGetYearlyTopupMethodsByCardFailed indicates failure in retrieving yearly payment method stats by card number.
	ErrGetYearlyTopupMethodsByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup methods by card number")
)
View Source
var (
	// ErrFindAllTopupsFailed indicates failure in retrieving all top-up records from the database.
	ErrFindAllTopupsFailed = errors.ErrInternal.WithMessage("Failed to find all topups")

	// ErrFindTopupsByActiveFailed indicates failure in retrieving only the active (non-deleted) top-ups.
	ErrFindTopupsByActiveFailed = errors.ErrInternal.WithMessage("Failed to find active topups")

	// ErrFindTopupsByTrashedFailed indicates failure in retrieving trashed (soft-deleted) top-ups.
	ErrFindTopupsByTrashedFailed = errors.ErrInternal.WithMessage("Failed to find trashed topups")

	// ErrFindTopupsByCardNumberFailed indicates failure in finding top-ups by a specific card number.
	ErrFindTopupsByCardNumberFailed = errors.ErrInternal.WithMessage("Failed to find topups by card number")

	// ErrFindTopupByIdFailed indicates failure in finding a top-up using its unique ID.
	ErrFindTopupByIdFailed = errors.ErrInternal.WithMessage("Failed to find topup by ID")
)
View Source
var (
	// ErrGetMonthTopupStatusSuccessFailed indicates failure in getting the monthly count of successful top-ups.
	ErrGetMonthTopupStatusSuccessFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup status success")

	// ErrGetYearlyTopupStatusSuccessFailed indicates failure in getting the yearly count of successful top-ups.
	ErrGetYearlyTopupStatusSuccessFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup status success")

	// ErrGetMonthTopupStatusSuccessByCardFailed indicates failure in getting monthly successful top-up status by card number.
	ErrGetMonthTopupStatusSuccessByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup status success by card number")

	// ErrGetYearlyTopupStatusSuccessByCardFailed indicates failure in getting yearly successful top-up status by card number.
	ErrGetYearlyTopupStatusSuccessByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup status success by card number")

	// ErrGetMonthTopupStatusFailedFailed indicates failure in getting the monthly count of failed top-ups.
	ErrGetMonthTopupStatusFailedFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup status failed")

	// ErrGetYearlyTopupStatusFailedFailed indicates failure in getting the yearly count of failed top-ups.
	ErrGetYearlyTopupStatusFailedFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup status failed")

	// ErrGetMonthTopupStatusFailedByCardFailed indicates failure in getting monthly failed top-up status by card number.
	ErrGetMonthTopupStatusFailedByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly topup status failed by card number")

	// ErrGetYearlyTopupStatusFailedByCardFailed indicates failure in getting yearly failed top-up status by card number.
	ErrGetYearlyTopupStatusFailedByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly topup status failed by card number")
)

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