transactonserviceerrors

package
v1.0.27 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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFailedCreateTransaction indicates a failure when creating a new transaction record.
	ErrFailedCreateTransaction = errors.ErrInternal.WithMessage("Failed to create transaction")

	// ErrFailedUpdateTransaction indicates a failure when updating an existing transaction record.
	ErrFailedUpdateTransaction = errors.ErrInternal.WithMessage("Failed to update transaction")

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

	// ErrFailedRestoreTransaction indicates a failure when restoring a previously trashed transaction.
	ErrFailedRestoreTransaction = errors.ErrInternal.WithMessage("Failed to restore transaction")

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

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

	// ErrFailedDeleteAllTransactionsPermanent indicates a failure when permanently deleting all transactions.
	ErrFailedDeleteAllTransactionsPermanent = errors.ErrInternal.WithMessage("Failed to delete all transactions permanently")
)
View Source
var (
	// ErrFailedFindAllTransactions indicates a failure when retrieving all transaction records.
	ErrFailedFindAllTransactions = errors.ErrInternal.WithMessage("Failed to fetch all transactions")

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

	// ErrTransactionNotFound indicates that the requested transaction could not be found.
	ErrTransactionNotFound = errors.ErrNotFound.WithMessage("Transaction not found")

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

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

	// ErrFailedFindByMerchantID indicates a failure when retrieving transactions filtered by merchant ID.
	ErrFailedFindByMerchantID = errors.ErrInternal.WithMessage("Failed to fetch transactions by merchant ID")
)
View Source
var ErrFailedFindMonthTransactionFailed = errors.NewErrorResponse("Failed to fetch monthly failed transactions", http.StatusInternalServerError)

ErrFailedFindMonthTransactionFailed indicates a failure when retrieving monthly failed transactions.

View Source
var ErrFailedFindMonthTransactionFailedByCard = errors.NewErrorResponse("Failed to fetch monthly failed transactions by card", http.StatusInternalServerError)

ErrFailedFindMonthTransactionFailedByCard indicates a failure when retrieving monthly failed transactions filtered by card number.

View Source
var ErrFailedFindMonthTransactionSuccess = errors.NewErrorResponse("Failed to fetch monthly successful transactions", http.StatusInternalServerError)

ErrFailedFindMonthTransactionSuccess indicates a failure when retrieving monthly successful transactions.

View Source
var ErrFailedFindMonthTransactionSuccessByCard = errors.NewErrorResponse("Failed to fetch monthly successful transactions by card", http.StatusInternalServerError)

ErrFailedFindMonthTransactionSuccessByCard indicates a failure when retrieving monthly successful transactions filtered by card number.

View Source
var ErrFailedFindMonthlyAmounts = errors.NewErrorResponse("Failed to fetch monthly amounts", http.StatusInternalServerError)

ErrFailedFindMonthlyAmounts indicates a failure when retrieving the total monthly transaction amounts.

View Source
var ErrFailedFindMonthlyAmountsByCard = errors.NewErrorResponse("Failed to fetch monthly amounts by card", http.StatusInternalServerError)

ErrFailedFindMonthlyAmountsByCard indicates a failure when retrieving monthly transaction amounts filtered by card.

View Source
var ErrFailedFindMonthlyPaymentMethods = errors.NewErrorResponse("Failed to fetch monthly payment methods", http.StatusInternalServerError)

ErrFailedFindMonthlyPaymentMethods indicates a failure when retrieving monthly statistics of payment methods used.

View Source
var ErrFailedFindMonthlyPaymentMethodsByCard = errors.NewErrorResponse("Failed to fetch monthly payment methods by card", http.StatusInternalServerError)

ErrFailedFindMonthlyPaymentMethodsByCard indicates a failure when retrieving monthly payment methods filtered by card.

View Source
var ErrFailedFindYearTransactionFailed = errors.NewErrorResponse("Failed to fetch yearly failed transactions", http.StatusInternalServerError)

ErrFailedFindYearTransactionFailed indicates a failure when retrieving yearly failed transactions.

View Source
var ErrFailedFindYearTransactionFailedByCard = errors.NewErrorResponse("Failed to fetch yearly failed transactions by card", http.StatusInternalServerError)

ErrFailedFindYearTransactionFailedByCard indicates a failure when retrieving yearly failed transactions filtered by card number.

View Source
var ErrFailedFindYearTransactionSuccess = errors.NewErrorResponse("Failed to fetch yearly successful transactions", http.StatusInternalServerError)

ErrFailedFindYearTransactionSuccess indicates a failure when retrieving yearly successful transactions.

View Source
var ErrFailedFindYearTransactionSuccessByCard = errors.NewErrorResponse("Failed to fetch yearly successful transactions by card", http.StatusInternalServerError)

ErrFailedFindYearTransactionSuccessByCard indicates a failure when retrieving yearly successful transactions filtered by card number.

View Source
var ErrFailedFindYearlyAmounts = errors.NewErrorResponse("Failed to fetch yearly amounts", http.StatusInternalServerError)

ErrFailedFindYearlyAmounts indicates a failure when retrieving the total yearly transaction amounts.

View Source
var ErrFailedFindYearlyAmountsByCard = errors.NewErrorResponse("Failed to fetch yearly amounts by card", http.StatusInternalServerError)

ErrFailedFindYearlyAmountsByCard indicates a failure when retrieving yearly transaction amounts filtered by card.

View Source
var ErrFailedFindYearlyPaymentMethods = errors.NewErrorResponse("Failed to fetch yearly payment methods", http.StatusInternalServerError)

ErrFailedFindYearlyPaymentMethods indicates a failure when retrieving yearly statistics of payment methods used.

View Source
var ErrFailedFindYearlyPaymentMethodsByCard = errors.NewErrorResponse("Failed to fetch yearly payment methods by card", http.StatusInternalServerError)

ErrFailedFindYearlyPaymentMethodsByCard indicates a failure when retrieving yearly payment methods filtered 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