Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrGrpcTransactionNotFound = response.NewGrpcError("transaction", "Transaction not found", int(codes.NotFound)) ErrGrpcTransactionInvalidID = response.NewGrpcError("transaction", "Invalid Transaction ID", int(codes.InvalidArgument)) ErrGrpcTransactionInvalidMerchantID = response.NewGrpcError("transaction", "Invalid Transaction Merchant ID", int(codes.InvalidArgument)) ErrGrpcInvalidCardNumber = response.NewGrpcError("card_id", "Invalid card number", int(codes.InvalidArgument)) ErrGrpcInvalidMonth = response.NewGrpcError("month", "Invalid month", int(codes.InvalidArgument)) ErrGrpcInvalidYear = response.NewGrpcError("year", "Invalid year", int(codes.InvalidArgument)) ErrGrpcFailedFindAllTransaction = response.NewGrpcError("transaction", "Failed to fetch all transactions", int(codes.Internal)) ErrGrpcFailedFindAllTransactionByCardNumber = response.NewGrpcError("transaction", "Failed to fetch transactions by card number", int(codes.Internal)) ErrGrpcFailedFindByIdTransaction = response.NewGrpcError("transaction", "Failed to fetch transaction by ID", int(codes.Internal)) ErrGrpcFailedFindTransactionByMerchantId = response.NewGrpcError("transaction", "Failed to fetch transactions by merchant ID", int(codes.Internal)) ErrGrpcFailedFindByActiveTransaction = response.NewGrpcError("transaction", "Failed to fetch active transactions", int(codes.Internal)) ErrGrpcFailedFindByTrashedTransaction = response.NewGrpcError("transaction", "Failed to fetch trashed transactions", int(codes.Internal)) ErrGrpcFailedFindMonthlyTransactionStatusSuccess = response.NewGrpcError("transaction", "Failed to fetch monthly successful transactions", int(codes.Internal)) ErrGrpcFailedFindYearlyTransactionStatusSuccess = response.NewGrpcError("transaction", "Failed to fetch yearly successful transactions", int(codes.Internal)) ErrGrpcFailedFindMonthlyTransactionStatusFailed = response.NewGrpcError("transaction", "Failed to fetch monthly failed transactions", int(codes.Internal)) ErrGrpcFailedFindYearlyTransactionStatusFailed = response.NewGrpcError("transaction", "Failed to fetch yearly failed transactions", int(codes.Internal)) ErrGrpcFailedFindMonthlyTransactionStatusSuccessByCardNumber = response.NewGrpcError("transaction", "Failed to fetch monthly successful transactions by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyTransactionStatusSuccessByCardNumber = response.NewGrpcError("transaction", "Failed to fetch yearly successful transactions by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyTransactionStatusFailedByCardNumber = response.NewGrpcError("transaction", "Failed to fetch monthly failed transactions by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyTransactionStatusFailedByCardNumber = response.NewGrpcError("transaction", "Failed to fetch yearly failed transactions by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyPaymentMethods = response.NewGrpcError("transaction", "Failed to fetch monthly payment methods", int(codes.Internal)) ErrGrpcFailedFindYearlyPaymentMethods = response.NewGrpcError("transaction", "Failed to fetch yearly payment methods", int(codes.Internal)) ErrGrpcFailedFindMonthlyAmounts = response.NewGrpcError("transaction", "Failed to fetch monthly transaction amounts", int(codes.Internal)) ErrGrpcFailedFindYearlyAmounts = response.NewGrpcError("transaction", "Failed to fetch yearly transaction amounts", int(codes.Internal)) ErrGrpcFailedFindMonthlyPaymentMethodsByCardNumber = response.NewGrpcError("transaction", "Failed to fetch monthly payment methods by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyPaymentMethodsByCardNumber = response.NewGrpcError("transaction", "Failed to fetch yearly payment methods by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyAmountsByCardNumber = response.NewGrpcError("transaction", "Failed to fetch monthly amounts by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyAmountsByCardNumber = response.NewGrpcError("transaction", "Failed to fetch yearly amounts by card number", int(codes.Internal)) ErrGrpcFailedCreateTransaction = response.NewGrpcError("transaction", "Failed to create transaction", int(codes.Internal)) ErrGrpcFailedUpdateTransaction = response.NewGrpcError("transaction", "Failed to update transaction", int(codes.Internal)) ErrGrpcValidateCreateTransactionRequest = response.NewGrpcError("transaction", "Invalid input for create card", int(codes.InvalidArgument)) ErrGrpcValidateUpdateTransactionRequest = response.NewGrpcError("transaction", "Invalid input for update card", int(codes.InvalidArgument)) ErrGrpcFailedTrashedTransaction = response.NewGrpcError("transaction", "Failed to move transaction to trash", int(codes.Internal)) ErrGrpcFailedRestoreTransaction = response.NewGrpcError("transaction", "Failed to restore transaction", int(codes.Internal)) ErrGrpcFailedDeleteTransactionPermanent = response.NewGrpcError("transaction", "Failed to permanently delete transaction", int(codes.Internal)) ErrGrpcFailedRestoreAllTransaction = response.NewGrpcError("transaction", "Failed to restore all transactions", int(codes.Internal)) ErrGrpcFailedDeleteAllTransactionPermanent = response.NewGrpcError("transaction", "Failed to permanently delete all transactions", int(codes.Internal)) )
var ErrApiBindCreateTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid create transaction request", http.StatusBadRequest) }
ErrApiBindCreateTransaction returns an API error response when binding the create transaction request body to struct fails.
var ErrApiBindUpdateTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update transaction request", http.StatusBadRequest) }
ErrApiBindUpdateTransaction returns an API error response when binding the update transaction request body to struct fails.
var ErrApiFailedCreateTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to create transaction", http.StatusInternalServerError) }
ErrApiFailedCreateTransaction returns an API error response when creating a new transaction fails.
var ErrApiFailedDeleteAllPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all trashed transactions", http.StatusInternalServerError) }
ErrApiFailedDeleteAllPermanent returns an API error response when permanently deleting all trashed transactions fails.
var ErrApiFailedDeletePermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete transaction", http.StatusInternalServerError) }
ErrApiFailedDeletePermanent returns an API error response when permanently deleting a transaction fails.
var ErrApiFailedFindActive = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch active transactions", http.StatusInternalServerError) }
ErrApiFailedFindActive returns an API error response when retrieving active (non-deleted) transactions fails.
var ErrApiFailedFindAllTransactions = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions", http.StatusInternalServerError) }
ErrApiFailedFindAllTransactions returns an API error response when fetching all transactions from the database fails.
var ErrApiFailedFindAllTransactionsActive = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions active", http.StatusInternalServerError) }
ErrApiFailedFindAllTransactionsActive returns an API error response when fetching active (non-deleted) transactions fails.
var ErrApiFailedFindAllTransactionsTrashed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions active", http.StatusInternalServerError) }
ErrApiFailedFindAllTransactionsTrashed returns an API error response when fetching trashed (soft-deleted) transactions fails.
var ErrApiFailedFindByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by card number", http.StatusInternalServerError) }
ErrApiFailedFindByCardNumber returns an API error response when fetching transactions filtered by card number fails.
var ErrApiFailedFindById = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch transaction by ID", http.StatusInternalServerError) }
ErrApiFailedFindById returns an API error response when fetching a transaction by its ID fails.
var ErrApiFailedFindByMerchantID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by merchant ID", http.StatusInternalServerError) }
ErrApiFailedFindByMerchantID returns an API error response when retrieving transactions by merchant ID fails.
var ErrApiFailedFindTrashed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch trashed transactions", http.StatusInternalServerError) }
ErrApiFailedFindTrashed returns an API error response when retrieving trashed (soft-deleted) transactions fails.
var ErrApiFailedMonthlyAmounts = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts", http.StatusInternalServerError) }
ErrApiFailedMonthlyAmounts returns an API error response when retrieving total monthly transaction amounts fails.
var ErrApiFailedMonthlyAmountsByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts by card number", http.StatusInternalServerError) }
ErrApiFailedMonthlyAmountsByCard returns an API error response when retrieving total monthly transaction amounts by card number fails.
var ErrApiFailedMonthlyFailed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed transactions", http.StatusInternalServerError) }
ErrApiFailedMonthlyFailed returns an API error response when retrieving monthly failed transactions fails.
var ErrApiFailedMonthlyFailedByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed transactions by card number", http.StatusInternalServerError) }
ErrApiFailedMonthlyFailedByCard returns an API error response when retrieving monthly failed transactions by card number fails.
var ErrApiFailedMonthlyMethods = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods", http.StatusInternalServerError) }
ErrApiFailedMonthlyMethods returns an API error response when retrieving monthly payment methods fails.
var ErrApiFailedMonthlyMethodsByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by card number", http.StatusInternalServerError) }
ErrApiFailedMonthlyMethodsByCard returns an API error response when retrieving monthly payment methods by card number fails.
var ErrApiFailedMonthlySuccess = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful transactions", http.StatusInternalServerError) }
ErrApiFailedMonthlySuccess returns an API error response when retrieving monthly successful transactions fails.
var ErrApiFailedMonthlySuccessByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful transactions by card number", http.StatusInternalServerError) }
ErrApiFailedMonthlySuccessByCard returns an API error response when retrieving monthly successful transactions by card number fails.
var ErrApiFailedRestoreAllTransactions = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore all transactions", http.StatusInternalServerError) }
ErrApiFailedRestoreAllTransactions returns an API error response when restoring all trashed transactions fails.
var ErrApiFailedRestoreTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore transaction", http.StatusInternalServerError) }
ErrApiFailedRestoreTransaction returns an API error response when restoring a soft-deleted transaction fails.
var ErrApiFailedTrashTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to move transaction to trash", http.StatusInternalServerError) }
ErrApiFailedTrashTransaction returns an API error response when moving a transaction to trash (soft-delete) fails.
var ErrApiFailedUpdateTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update transaction", http.StatusInternalServerError) }
ErrApiFailedUpdateTransaction returns an API error response when updating an existing transaction fails.
var ErrApiFailedYearlyAmounts = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts", http.StatusInternalServerError) }
ErrApiFailedYearlyAmounts returns an API error response when retrieving total yearly transaction amounts fails.
var ErrApiFailedYearlyAmountsByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts by card number", http.StatusInternalServerError) }
ErrApiFailedYearlyAmountsByCard returns an API error response when retrieving total yearly transaction amounts by card number fails.
var ErrApiFailedYearlyFailed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed transactions", http.StatusInternalServerError) }
ErrApiFailedYearlyFailed returns an API error response when retrieving yearly failed transactions fails.
var ErrApiFailedYearlyFailedByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed transactions by card number", http.StatusInternalServerError) }
ErrApiFailedYearlyFailedByCard returns an API error response when retrieving yearly failed transactions by card number fails.
var ErrApiFailedYearlyMethods = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods", http.StatusInternalServerError) }
ErrApiFailedYearlyMethods returns an API error response when retrieving yearly payment methods fails.
var ErrApiFailedYearlyMethodsByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by card number", http.StatusInternalServerError) }
ErrApiFailedYearlyMethodsByCard returns an API error response when retrieving yearly payment methods by card number fails.
var ErrApiFailedYearlySuccess = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful transactions", http.StatusInternalServerError) }
ErrApiFailedYearlySuccess returns an API error response when retrieving yearly successful transactions fails.
var ErrApiFailedYearlySuccessByCard = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful transactions by card number", http.StatusInternalServerError) }
ErrApiFailedYearlySuccessByCard returns an API error response when retrieving yearly successful transactions by card number fails.
var ErrApiInvalidMonth = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid month value", http.StatusBadRequest) }
ErrApiInvalidMonth returns an API error response when the month value is missing, invalid, or out of range.
var ErrApiInvalidTransactionApiKey = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid transaction api-key", http.StatusBadRequest) }
ErrApiInvalidTransactionApiKey returns an API error response when the transaction API key is missing or invalid.
var ErrApiInvalidTransactionCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid transaction Card Number", http.StatusBadRequest) }
ErrApiInvalidTransactionCardNumber returns an API error response when the provided transaction card number is invalid.
var ErrApiInvalidTransactionID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid transaction ID", http.StatusBadRequest) }
ErrApiInvalidTransactionID returns an API error response when the transaction ID is invalid or improperly formatted.
var ErrApiInvalidTransactionMerchantID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid transaction merchant ID", http.StatusBadRequest) }
ErrApiInvalidTransactionMerchantID returns an API error response when the provided merchant ID for the transaction is invalid.
var ErrApiInvalidYear = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid year value", http.StatusBadRequest) }
ErrApiInvalidYear returns an API error response when the year value is missing, invalid, or out of range.
var ErrApiValidateCreateTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid create transaction request", http.StatusBadRequest) }
ErrApiValidateCreateTransaction returns an API error response when validation of the create transaction request fails.
var ErrApiValidateUpdateTransaction = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update transaction request", http.StatusBadRequest) }
ErrApiValidateUpdateTransaction returns an API error response when validation of the update transaction request fails.
var ErrCreateTransactionFailed = errors.New("failed to create transaction")
ErrCreateTransactionFailed indicates a failure when creating a new transaction.
var ErrDeleteAllTransactionsPermanentFailed = errors.New("failed to permanently delete all transactions")
ErrDeleteAllTransactionsPermanentFailed indicates a failure when permanently deleting all transactions.
var ErrDeleteTransactionPermanentFailed = errors.New("failed to permanently delete transaction")
ErrDeleteTransactionPermanentFailed indicates a failure when permanently deleting a transaction.
var ErrFailedCreateTransaction = response.NewErrorResponse("Failed to create transaction", http.StatusInternalServerError)
ErrFailedCreateTransaction indicates a failure when creating a new transaction record.
var ErrFailedDeleteAllTransactionsPermanent = response.NewErrorResponse("Failed to permanently delete all transactions", http.StatusInternalServerError)
ErrFailedDeleteAllTransactionsPermanent indicates a failure when permanently deleting all transactions.
var ErrFailedDeleteTransactionPermanent = response.NewErrorResponse("Failed to permanently delete transaction", http.StatusInternalServerError)
ErrFailedDeleteTransactionPermanent indicates a failure when permanently deleting a transaction.
var ErrFailedFindAllByCardNumber = response.NewErrorResponse("Failed to fetch transactions by card number", http.StatusInternalServerError)
ErrFailedFindAllByCardNumber indicates a failure when retrieving transactions filtered by card number.
var ErrFailedFindAllTransactions = response.NewErrorResponse("Failed to fetch all transactions", http.StatusInternalServerError)
ErrFailedFindAllTransactions indicates a failure when retrieving all transaction records.
var ErrFailedFindByActiveTransactions = response.NewErrorResponse("Failed to fetch active transactions", http.StatusInternalServerError)
ErrFailedFindByActiveTransactions indicates a failure when retrieving active (non-deleted) transactions.
var ErrFailedFindByMerchantID = response.NewErrorResponse("Failed to fetch transactions by merchant ID", http.StatusInternalServerError)
ErrFailedFindByMerchantID indicates a failure when retrieving transactions filtered by merchant ID.
var ErrFailedFindByTrashedTransactions = response.NewErrorResponse("Failed to fetch trashed transactions", http.StatusInternalServerError)
ErrFailedFindByTrashedTransactions indicates a failure when retrieving trashed (soft-deleted) transactions.
var ErrFailedFindMonthTransactionFailed = response.NewErrorResponse("Failed to fetch monthly failed transactions", http.StatusInternalServerError)
ErrFailedFindMonthTransactionFailed indicates a failure when retrieving monthly failed transactions.
var ErrFailedFindMonthTransactionFailedByCard = response.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 = response.NewErrorResponse("Failed to fetch monthly successful transactions", http.StatusInternalServerError)
ErrFailedFindMonthTransactionSuccess indicates a failure when retrieving monthly successful transactions.
var ErrFailedFindMonthTransactionSuccessByCard = response.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 = response.NewErrorResponse("Failed to fetch monthly amounts", http.StatusInternalServerError)
ErrFailedFindMonthlyAmounts indicates a failure when retrieving the total monthly transaction amounts.
var ErrFailedFindMonthlyAmountsByCard = response.NewErrorResponse("Failed to fetch monthly amounts by card", http.StatusInternalServerError)
ErrFailedFindMonthlyAmountsByCard indicates a failure when retrieving monthly transaction amounts filtered by card.
var ErrFailedFindMonthlyPaymentMethods = response.NewErrorResponse("Failed to fetch monthly payment methods", http.StatusInternalServerError)
ErrFailedFindMonthlyPaymentMethods indicates a failure when retrieving monthly statistics of payment methods used.
var ErrFailedFindMonthlyPaymentMethodsByCard = response.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 = response.NewErrorResponse("Failed to fetch yearly failed transactions", http.StatusInternalServerError)
ErrFailedFindYearTransactionFailed indicates a failure when retrieving yearly failed transactions.
var ErrFailedFindYearTransactionFailedByCard = response.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 = response.NewErrorResponse("Failed to fetch yearly successful transactions", http.StatusInternalServerError)
ErrFailedFindYearTransactionSuccess indicates a failure when retrieving yearly successful transactions.
var ErrFailedFindYearTransactionSuccessByCard = response.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 = response.NewErrorResponse("Failed to fetch yearly amounts", http.StatusInternalServerError)
ErrFailedFindYearlyAmounts indicates a failure when retrieving the total yearly transaction amounts.
var ErrFailedFindYearlyAmountsByCard = response.NewErrorResponse("Failed to fetch yearly amounts by card", http.StatusInternalServerError)
ErrFailedFindYearlyAmountsByCard indicates a failure when retrieving yearly transaction amounts filtered by card.
var ErrFailedFindYearlyPaymentMethods = response.NewErrorResponse("Failed to fetch yearly payment methods", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethods indicates a failure when retrieving yearly statistics of payment methods used.
var ErrFailedFindYearlyPaymentMethodsByCard = response.NewErrorResponse("Failed to fetch yearly payment methods by card", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethodsByCard indicates a failure when retrieving yearly payment methods filtered by card.
var ErrFailedRestoreAllTransactions = response.NewErrorResponse("Failed to restore all transactions", http.StatusInternalServerError)
ErrFailedRestoreAllTransactions indicates a failure when restoring all trashed transactions.
var ErrFailedRestoreTransaction = response.NewErrorResponse("Failed to restore transaction", http.StatusInternalServerError)
ErrFailedRestoreTransaction indicates a failure when restoring a previously trashed transaction.
var ErrFailedTrashedTransaction = response.NewErrorResponse("Failed to trash transaction", http.StatusInternalServerError)
ErrFailedTrashedTransaction indicates a failure when soft-deleting (trashing) a transaction.
var ErrFailedUpdateTransaction = response.NewErrorResponse("Failed to update transaction", http.StatusInternalServerError)
ErrFailedUpdateTransaction indicates a failure when updating an existing transaction record.
var ErrFindActiveTransactionsFailed = errors.New("failed to find active transactions")
ErrFindActiveTransactionsFailed indicates a failure when retrieving active (non-deleted) transactions.
var ErrFindAllTransactionsFailed = errors.New("failed to find all transactions")
ErrFindAllTransactionsFailed indicates a failure when attempting to retrieve all transactions.
var ErrFindTransactionByIdFailed = errors.New("failed to find transaction by ID")
ErrFindTransactionByIdFailed indicates a failure when retrieving a transaction by its ID.
var ErrFindTransactionByMerchantIdFailed = errors.New("failed to find transaction by merchant ID")
ErrFindTransactionByMerchantIdFailed indicates a failure when retrieving transactions by merchant ID.
var ErrFindTransactionsByCardNumberFailed = errors.New("failed to find transactions by card number")
ErrFindTransactionsByCardNumberFailed indicates a failure when retrieving transactions by card number.
var ErrFindTrashedTransactionsFailed = errors.New("failed to find trashed transactions")
ErrFindTrashedTransactionsFailed indicates a failure when retrieving soft-deleted (trashed) transactions.
var ErrGetMonthTransactionStatusFailedByCardFailed = errors.New("failed to get monthly transaction status failed by card number")
ErrGetMonthTransactionStatusFailedByCardFailed indicates a failure when retrieving monthly failed transactions by card number.
var ErrGetMonthTransactionStatusFailedFailed = errors.New("failed to get monthly transaction status failed")
ErrGetMonthTransactionStatusFailedFailed indicates a failure when retrieving monthly failed transaction status.
var ErrGetMonthTransactionStatusSuccessByCardFailed = errors.New("failed to get monthly transaction status success by card number")
ErrGetMonthTransactionStatusSuccessByCardFailed indicates a failure when retrieving monthly successful transactions by card number.
var ErrGetMonthTransactionStatusSuccessFailed = errors.New("failed to get monthly transaction status success")
ErrGetMonthTransactionStatusSuccessFailed indicates a failure when retrieving monthly successful transaction status.
var ErrGetMonthlyAmountsByCardFailed = errors.New("failed to get monthly amounts by card number")
ErrGetMonthlyAmountsByCardFailed indicates a failure when retrieving monthly amounts by card number.
var ErrGetMonthlyAmountsFailed = errors.New("failed to get monthly amounts")
ErrGetMonthlyAmountsFailed indicates a failure when retrieving total monthly transaction amounts.
var ErrGetMonthlyPaymentMethodsByCardFailed = errors.New("failed to get monthly payment methods by card number")
ErrGetMonthlyPaymentMethodsByCardFailed indicates a failure when retrieving monthly payment methods by card number.
var ErrGetMonthlyPaymentMethodsFailed = errors.New("failed to get monthly payment methods")
ErrGetMonthlyPaymentMethodsFailed indicates a failure when retrieving monthly payment method statistics.
var ErrGetYearlyAmountsByCardFailed = errors.New("failed to get yearly amounts by card number")
ErrGetYearlyAmountsByCardFailed indicates a failure when retrieving yearly amounts by card number.
var ErrGetYearlyAmountsFailed = errors.New("failed to get yearly amounts")
ErrGetYearlyAmountsFailed indicates a failure when retrieving total yearly transaction amounts.
var ErrGetYearlyPaymentMethodsByCardFailed = errors.New("failed to get yearly payment methods by card number")
ErrGetYearlyPaymentMethodsByCardFailed indicates a failure when retrieving yearly payment methods by card number.
var ErrGetYearlyPaymentMethodsFailed = errors.New("failed to get yearly payment methods")
ErrGetYearlyPaymentMethodsFailed indicates a failure when retrieving yearly payment method statistics.
var ErrGetYearlyTransactionStatusFailedByCardFailed = errors.New("failed to get yearly transaction status failed by card number")
ErrGetYearlyTransactionStatusFailedByCardFailed indicates a failure when retrieving yearly failed transactions by card number.
var ErrGetYearlyTransactionStatusFailedFailed = errors.New("failed to get yearly transaction status failed")
ErrGetYearlyTransactionStatusFailedFailed indicates a failure when retrieving yearly failed transaction status.
var ErrGetYearlyTransactionStatusSuccessByCardFailed = errors.New("failed to get yearly transaction status success by card number")
ErrGetYearlyTransactionStatusSuccessByCardFailed indicates a failure when retrieving yearly successful transactions by card number.
var ErrGetYearlyTransactionStatusSuccessFailed = errors.New("failed to get yearly transaction status success")
ErrGetYearlyTransactionStatusSuccessFailed indicates a failure when retrieving yearly successful transaction status.
var ErrRestoreAllTransactionsFailed = errors.New("failed to restore all transactions")
ErrRestoreAllTransactionsFailed indicates a failure when restoring all trashed transactions.
var ErrRestoreTransactionFailed = errors.New("failed to restore transaction")
ErrRestoreTransactionFailed indicates a failure when restoring a trashed transaction.
var ErrTransactionNotFound = response.NewErrorResponse("Transaction not found", http.StatusNotFound)
ErrTransactionNotFound indicates that the requested transaction could not be found.
var ErrTrashedTransactionFailed = errors.New("failed to soft-delete (trash) transaction")
ErrTrashedTransactionFailed indicates a failure when soft-deleting (trashing) a transaction.
var ErrUpdateTransactionFailed = errors.New("failed to update transaction")
ErrUpdateTransactionFailed indicates a failure when updating a transaction.
var ErrUpdateTransactionStatusFailed = errors.New("failed to update transaction status")
ErrUpdateTransactionStatusFailed indicates a failure when updating the status of a transaction.
Functions ¶
This section is empty.
Types ¶
This section is empty.