Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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") )
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") )
var ErrFailedFindMonthTransactionFailed = errors.NewErrorResponse("Failed to fetch monthly failed transactions", http.StatusInternalServerError)
ErrFailedFindMonthTransactionFailed indicates a failure when retrieving monthly failed transactions.
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.
var ErrFailedFindMonthTransactionSuccess = errors.NewErrorResponse("Failed to fetch monthly successful transactions", http.StatusInternalServerError)
ErrFailedFindMonthTransactionSuccess indicates a failure when retrieving monthly successful transactions.
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.
var ErrFailedFindMonthlyAmounts = errors.NewErrorResponse("Failed to fetch monthly amounts", http.StatusInternalServerError)
ErrFailedFindMonthlyAmounts indicates a failure when retrieving the total monthly transaction amounts.
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.
var ErrFailedFindMonthlyPaymentMethods = errors.NewErrorResponse("Failed to fetch monthly payment methods", http.StatusInternalServerError)
ErrFailedFindMonthlyPaymentMethods indicates a failure when retrieving monthly statistics of payment methods used.
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.
var ErrFailedFindYearTransactionFailed = errors.NewErrorResponse("Failed to fetch yearly failed transactions", http.StatusInternalServerError)
ErrFailedFindYearTransactionFailed indicates a failure when retrieving yearly failed transactions.
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.
var ErrFailedFindYearTransactionSuccess = errors.NewErrorResponse("Failed to fetch yearly successful transactions", http.StatusInternalServerError)
ErrFailedFindYearTransactionSuccess indicates a failure when retrieving yearly successful transactions.
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.
var ErrFailedFindYearlyAmounts = errors.NewErrorResponse("Failed to fetch yearly amounts", http.StatusInternalServerError)
ErrFailedFindYearlyAmounts indicates a failure when retrieving the total yearly transaction amounts.
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.
var ErrFailedFindYearlyPaymentMethods = errors.NewErrorResponse("Failed to fetch yearly payment methods", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethods indicates a failure when retrieving yearly statistics of payment methods used.
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.