transactionrepositoryerrors

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 (
	// ErrGetMonthlyAmountsFailed indicates a failure when retrieving total monthly transaction amounts.
	ErrGetMonthlyAmountsFailed = errors.ErrInternal.WithMessage("Failed to get monthly amounts")

	// ErrGetYearlyAmountsFailed indicates a failure when retrieving total yearly transaction amounts.
	ErrGetYearlyAmountsFailed = errors.ErrInternal.WithMessage("Failed to get yearly amounts")

	// ErrGetMonthlyAmountsByCardFailed indicates a failure when retrieving monthly amounts by card number.
	ErrGetMonthlyAmountsByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly amounts by card number")

	// ErrGetYearlyAmountsByCardFailed indicates a failure when retrieving yearly amounts by card number.
	ErrGetYearlyAmountsByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly amounts by card number")
)
View Source
var (
	// ErrCreateTransactionFailed indicates a failure when creating a new transaction.
	ErrCreateTransactionFailed = errors.ErrInternal.WithMessage("Failed to create transaction")

	// ErrUpdateTransactionFailed indicates a failure when updating a transaction.
	ErrUpdateTransactionFailed = errors.ErrInternal.WithMessage("Failed to update transaction")

	// ErrUpdateTransactionStatusFailed indicates a failure when updating the status of a transaction.
	ErrUpdateTransactionStatusFailed = errors.ErrInternal.WithMessage("Failed to update transaction status")

	// ErrTrashedTransactionFailed indicates a failure when soft-deleting (trashing) a transaction.
	ErrTrashedTransactionFailed = errors.ErrInternal.WithMessage("Failed to move transaction to trash")

	// ErrRestoreTransactionFailed indicates a failure when restoring a trashed transaction.
	ErrRestoreTransactionFailed = errors.ErrInternal.WithMessage("Failed to restore transaction from trash")

	// ErrDeleteTransactionPermanentFailed indicates a failure when permanently deleting a transaction.
	ErrDeleteTransactionPermanentFailed = errors.ErrInternal.WithMessage("Failed to permanently delete transaction")

	// ErrRestoreAllTransactionsFailed indicates a failure when restoring all trashed transactions.
	ErrRestoreAllTransactionsFailed = errors.ErrInternal.WithMessage("Failed to restore all transactions")

	// ErrDeleteAllTransactionsPermanentFailed indicates a failure when permanently deleting all transactions.
	ErrDeleteAllTransactionsPermanentFailed = errors.ErrInternal.WithMessage("Failed to permanently delete all transactions")
)
View Source
var (
	// ErrGetMonthlyPaymentMethodsFailed indicates a failure when retrieving monthly payment method statistics.
	ErrGetMonthlyPaymentMethodsFailed = errors.ErrInternal.WithMessage("Failed to get monthly payment methods")

	// ErrGetYearlyPaymentMethodsFailed indicates a failure when retrieving yearly payment method statistics.
	ErrGetYearlyPaymentMethodsFailed = errors.ErrInternal.WithMessage("Failed to get yearly payment methods")

	// ErrGetMonthlyPaymentMethodsByCardFailed indicates a failure when retrieving monthly payment methods by card number.
	ErrGetMonthlyPaymentMethodsByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly payment methods by card number")

	// ErrGetYearlyPaymentMethodsByCardFailed indicates a failure when retrieving yearly payment methods by card number.
	ErrGetYearlyPaymentMethodsByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly payment methods by card number")
)
View Source
var (
	// ErrFindAllTransactionsFailed indicates a failure when attempting to retrieve all transactions.
	ErrFindAllTransactionsFailed = errors.ErrInternal.WithMessage("Failed to find all transactions")

	// ErrFindActiveTransactionsFailed indicates a failure when retrieving active (non-deleted) transactions.
	ErrFindActiveTransactionsFailed = errors.ErrInternal.WithMessage("Failed to find active transactions")

	// ErrFindTrashedTransactionsFailed indicates a failure when retrieving soft-deleted (trashed) transactions.
	ErrFindTrashedTransactionsFailed = errors.ErrInternal.WithMessage("Failed to find trashed transactions")

	// ErrFindTransactionsByCardNumberFailed indicates a failure when retrieving transactions by card number.
	ErrFindTransactionsByCardNumberFailed = errors.ErrInternal.WithMessage("Failed to find transactions by card number")

	// ErrFindTransactionByIdFailed indicates a failure when retrieving a transaction by its ID.
	ErrFindTransactionByIdFailed = errors.ErrInternal.WithMessage("Failed to find transaction by ID")

	// ErrFindTransactionByMerchantIdFailed indicates a failure when retrieving transactions by merchant ID.
	ErrFindTransactionByMerchantIdFailed = errors.ErrInternal.WithMessage("Failed to find transaction by merchant ID")
)
View Source
var (
	// ErrGetMonthTransactionStatusSuccessFailed indicates a failure when retrieving monthly successful transaction status.
	ErrGetMonthTransactionStatusSuccessFailed = errors.ErrInternal.WithMessage("Failed to get monthly transaction status success")

	// ErrGetYearlyTransactionStatusSuccessFailed indicates a failure when retrieving yearly successful transaction status.
	ErrGetYearlyTransactionStatusSuccessFailed = errors.ErrInternal.WithMessage("Failed to get yearly transaction status success")

	// ErrGetMonthTransactionStatusSuccessByCardFailed indicates a failure when retrieving monthly successful transactions by card number.
	ErrGetMonthTransactionStatusSuccessByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly transaction status success by card number")

	// ErrGetYearlyTransactionStatusSuccessByCardFailed indicates a failure when retrieving yearly successful transactions by card number.
	ErrGetYearlyTransactionStatusSuccessByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly transaction status success by card number")

	// ErrGetMonthTransactionStatusFailedFailed indicates a failure when retrieving monthly failed transaction status.
	ErrGetMonthTransactionStatusFailedFailed = errors.ErrInternal.WithMessage("Failed to get monthly transaction status failed")

	// ErrGetYearlyTransactionStatusFailedFailed indicates a failure when retrieving yearly failed transaction status.
	ErrGetYearlyTransactionStatusFailedFailed = errors.ErrInternal.WithMessage("Failed to get yearly transaction status failed")

	// ErrGetMonthTransactionStatusFailedByCardFailed indicates a failure when retrieving monthly failed transactions by card number.
	ErrGetMonthTransactionStatusFailedByCardFailed = errors.ErrInternal.WithMessage("Failed to get monthly transaction status failed by card number")

	// ErrGetYearlyTransactionStatusFailedByCardFailed indicates a failure when retrieving yearly failed transactions by card number.
	ErrGetYearlyTransactionStatusFailedByCardFailed = errors.ErrInternal.WithMessage("Failed to get yearly transaction 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