transaction_errors

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 4 Imported by: 0 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.

README

📦 Package transaction_errors

Source Path: shared/errors/transaction_errors

🏷️ Variables

Var:

ErrApiBindCreateTransaction returns an API error response when binding the create transaction request body to struct fails.

var ErrApiBindCreateTransaction = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create transaction request", http.StatusBadRequest)
}

Var:

ErrApiBindUpdateTransaction returns an API error response when binding the update 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)
}

Var:

ErrApiFailedCreateTransaction returns an API error response when creating a new transaction fails.

var ErrApiFailedCreateTransaction = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to create transaction", http.StatusInternalServerError)
}

Var:

ErrApiFailedDeleteAllPermanent returns an API error response when permanently deleting all trashed transactions fails.

var ErrApiFailedDeleteAllPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all trashed transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedDeletePermanent returns an API error response when permanently deleting a transaction fails.

var ErrApiFailedDeletePermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete transaction", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindActive returns an API error response when retrieving active (non-deleted) transactions fails.

var ErrApiFailedFindActive = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch active transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindAllTransactions returns an API error response when fetching all transactions from the database fails.

var ErrApiFailedFindAllTransactions = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindAllTransactionsActive returns an API error response when fetching active (non-deleted) transactions fails.

var ErrApiFailedFindAllTransactionsActive = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions active", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindAllTransactionsTrashed returns an API error response when fetching trashed (soft-deleted) transactions fails.

var ErrApiFailedFindAllTransactionsTrashed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions active", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindByCardNumber returns an API error response when fetching transactions filtered by card number fails.

var ErrApiFailedFindByCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindById returns an API error response when fetching a transaction by its ID fails.

var ErrApiFailedFindById = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch transaction by ID", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindByMerchantID returns an API error response when retrieving transactions by merchant ID fails.

var ErrApiFailedFindByMerchantID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by merchant ID", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindTrashed returns an API error response when retrieving trashed (soft-deleted) transactions fails.

var ErrApiFailedFindTrashed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch trashed transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlyAmounts returns an API error response when retrieving total monthly transaction amounts fails.

var ErrApiFailedMonthlyAmounts = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlyAmountsByCard returns an API error response when retrieving total monthly transaction amounts by card number fails.

var ErrApiFailedMonthlyAmountsByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlyFailed returns an API error response when retrieving monthly failed transactions fails.

var ErrApiFailedMonthlyFailed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlyFailedByCard returns an API error response when retrieving monthly failed transactions by card number fails.

var ErrApiFailedMonthlyFailedByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed transactions by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlyMethods returns an API error response when retrieving monthly payment methods fails.

var ErrApiFailedMonthlyMethods = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlyMethodsByCard returns an API error response when retrieving monthly payment methods by card number fails.

var ErrApiFailedMonthlyMethodsByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlySuccess returns an API error response when retrieving monthly successful transactions fails.

var ErrApiFailedMonthlySuccess = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedMonthlySuccessByCard returns an API error response when retrieving monthly successful transactions by card number fails.

var ErrApiFailedMonthlySuccessByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful transactions by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedRestoreAllTransactions returns an API error response when restoring all trashed transactions fails.

var ErrApiFailedRestoreAllTransactions = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore all transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedRestoreTransaction returns an API error response when restoring a soft-deleted transaction fails.

var ErrApiFailedRestoreTransaction = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore transaction", http.StatusInternalServerError)
}

Var:

ErrApiFailedTrashTransaction returns an API error response when moving a transaction to trash (soft-delete) fails.

var ErrApiFailedTrashTransaction = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to move transaction to trash", http.StatusInternalServerError)
}

Var:

ErrApiFailedUpdateTransaction returns an API error response when updating an existing transaction fails.

var ErrApiFailedUpdateTransaction = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update transaction", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlyAmounts returns an API error response when retrieving total yearly transaction amounts fails.

var ErrApiFailedYearlyAmounts = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlyAmountsByCard returns an API error response when retrieving total yearly transaction amounts by card number fails.

var ErrApiFailedYearlyAmountsByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlyFailed returns an API error response when retrieving yearly failed transactions fails.

var ErrApiFailedYearlyFailed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlyFailedByCard returns an API error response when retrieving yearly failed transactions by card number fails.

var ErrApiFailedYearlyFailedByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed transactions by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlyMethods returns an API error response when retrieving yearly payment methods fails.

var ErrApiFailedYearlyMethods = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlyMethodsByCard returns an API error response when retrieving yearly payment methods by card number fails.

var ErrApiFailedYearlyMethodsByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by card number", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlySuccess returns an API error response when retrieving yearly successful transactions fails.

var ErrApiFailedYearlySuccess = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful transactions", http.StatusInternalServerError)
}

Var:

ErrApiFailedYearlySuccessByCard returns an API error response when retrieving yearly successful transactions by card number fails.

var ErrApiFailedYearlySuccessByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful transactions by card number", http.StatusInternalServerError)
}

Var:

ErrApiInvalidMonth returns an API error response when the month value is missing, invalid, or out of range.

var ErrApiInvalidMonth = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid month value", http.StatusBadRequest)
}

Var:

ErrApiInvalidTransactionApiKey returns an API error response when the transaction API key is missing or invalid.

var ErrApiInvalidTransactionApiKey = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid transaction api-key", http.StatusBadRequest)
}

Var:

ErrApiInvalidTransactionCardNumber returns an API error response when the provided transaction card number is invalid.

var ErrApiInvalidTransactionCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid transaction Card Number", http.StatusBadRequest)
}

Var:

ErrApiInvalidTransactionID returns an API error response when the transaction ID is invalid or improperly formatted.

var ErrApiInvalidTransactionID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid transaction ID", http.StatusBadRequest)
}

Var:

ErrApiInvalidTransactionMerchantID returns an API error response when the provided merchant ID for the transaction is invalid.

var ErrApiInvalidTransactionMerchantID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid transaction merchant ID", http.StatusBadRequest)
}

Var:

ErrApiInvalidYear returns an API error response when the year value is missing, invalid, or out of range.

var ErrApiInvalidYear = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid year value", http.StatusBadRequest)
}

Var:

ErrApiValidateCreateTransaction returns an API error response when validation of the create transaction request fails.

var ErrApiValidateCreateTransaction = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid create transaction request", http.StatusBadRequest)
}

Var:

ErrApiValidateUpdateTransaction returns an API error response when validation of the update transaction request fails.

var ErrApiValidateUpdateTransaction = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid update transaction request", http.StatusBadRequest)
}

Var:

ErrCreateTransactionFailed indicates a failure when creating a new transaction.

var ErrCreateTransactionFailed = errors.New("failed to create transaction")

Var:

ErrDeleteAllTransactionsPermanentFailed indicates a failure when permanently deleting all transactions.

var ErrDeleteAllTransactionsPermanentFailed = errors.New("failed to permanently delete all transactions")

Var:

ErrDeleteTransactionPermanentFailed indicates a failure when permanently deleting a transaction.

var ErrDeleteTransactionPermanentFailed = errors.New("failed to permanently delete transaction")

Var:

ErrFailedCreateTransaction indicates a failure when creating a new transaction record.

var ErrFailedCreateTransaction = response.NewErrorResponse("Failed to create transaction", http.StatusInternalServerError)

Var:

ErrFailedDeleteAllTransactionsPermanent indicates a failure when permanently deleting all transactions.

var ErrFailedDeleteAllTransactionsPermanent = response.NewErrorResponse("Failed to permanently delete all transactions", http.StatusInternalServerError)

Var:

ErrFailedDeleteTransactionPermanent indicates a failure when permanently deleting a transaction.

var ErrFailedDeleteTransactionPermanent = response.NewErrorResponse("Failed to permanently delete transaction", http.StatusInternalServerError)

Var:

ErrFailedFindAllByCardNumber indicates a failure when retrieving transactions filtered by card number.

var ErrFailedFindAllByCardNumber = response.NewErrorResponse("Failed to fetch transactions by card number", http.StatusInternalServerError)

Var:

ErrFailedFindAllTransactions indicates a failure when retrieving all transaction records.

var ErrFailedFindAllTransactions = response.NewErrorResponse("Failed to fetch all transactions", http.StatusInternalServerError)

Var:

ErrFailedFindByActiveTransactions indicates a failure when retrieving active (non-deleted) transactions.

var ErrFailedFindByActiveTransactions = response.NewErrorResponse("Failed to fetch active transactions", http.StatusInternalServerError)

Var:

ErrFailedFindByMerchantID indicates a failure when retrieving transactions filtered by merchant ID.

var ErrFailedFindByMerchantID = response.NewErrorResponse("Failed to fetch transactions by merchant ID", http.StatusInternalServerError)

Var:

ErrFailedFindByTrashedTransactions indicates a failure when retrieving trashed (soft-deleted) transactions.

var ErrFailedFindByTrashedTransactions = response.NewErrorResponse("Failed to fetch trashed transactions", http.StatusInternalServerError)

Var:

ErrFailedFindMonthTransactionFailed indicates a failure when retrieving monthly failed transactions.

var ErrFailedFindMonthTransactionFailed = response.NewErrorResponse("Failed to fetch monthly failed transactions", http.StatusInternalServerError)

Var:

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

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

Var:

ErrFailedFindMonthTransactionSuccess indicates a failure when retrieving monthly successful transactions.

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

ErrFailedFindYearTransactionFailed indicates a failure when retrieving yearly failed transactions.

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

Var:

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

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

Var:

ErrFailedFindYearTransactionSuccess indicates a failure when retrieving yearly successful transactions.

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

ErrFailedFindYearlyPaymentMethodsByCard indicates a failure when retrieving yearly payment methods filtered by card.

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

Var:

ErrFailedRestoreAllTransactions indicates a failure when restoring all trashed transactions.

var ErrFailedRestoreAllTransactions = response.NewErrorResponse("Failed to restore all transactions", http.StatusInternalServerError)

Var:

ErrFailedRestoreTransaction indicates a failure when restoring a previously trashed transaction.

var ErrFailedRestoreTransaction = response.NewErrorResponse("Failed to restore transaction", http.StatusInternalServerError)

Var:

ErrFailedTrashedTransaction indicates a failure when soft-deleting (trashing) a transaction.

var ErrFailedTrashedTransaction = response.NewErrorResponse("Failed to trash transaction", http.StatusInternalServerError)

Var:

ErrFailedUpdateTransaction indicates a failure when updating an existing transaction record.

var ErrFailedUpdateTransaction = response.NewErrorResponse("Failed to update transaction", http.StatusInternalServerError)

Var:

ErrFindActiveTransactionsFailed indicates a failure when retrieving active (non-deleted) transactions.

var ErrFindActiveTransactionsFailed = errors.New("failed to find active transactions")

Var:

ErrFindAllTransactionsFailed indicates a failure when attempting to retrieve all transactions.

var ErrFindAllTransactionsFailed = errors.New("failed to find all transactions")

Var:

ErrFindTransactionByIdFailed indicates a failure when retrieving a transaction by its ID.

var ErrFindTransactionByIdFailed = errors.New("failed to find transaction by ID")

Var:

ErrFindTransactionByMerchantIdFailed indicates a failure when retrieving transactions by merchant ID.

var ErrFindTransactionByMerchantIdFailed = errors.New("failed to find transaction by merchant ID")

Var:

ErrFindTransactionsByCardNumberFailed indicates a failure when retrieving transactions by card number.

var ErrFindTransactionsByCardNumberFailed = errors.New("failed to find transactions by card number")

Var:

ErrFindTrashedTransactionsFailed indicates a failure when retrieving soft-deleted (trashed) transactions.

var ErrFindTrashedTransactionsFailed = errors.New("failed to find trashed transactions")

Var:

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

var ErrGetMonthTransactionStatusFailedByCardFailed = errors.New("failed to get monthly transaction status failed by card number")

Var:

ErrGetMonthTransactionStatusFailedFailed indicates a failure when retrieving monthly failed transaction status.

var ErrGetMonthTransactionStatusFailedFailed = errors.New("failed to get monthly transaction status failed")

Var:

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

var ErrGetMonthTransactionStatusSuccessByCardFailed = errors.New("failed to get monthly transaction status success by card number")

Var:

ErrGetMonthTransactionStatusSuccessFailed indicates a failure when retrieving monthly successful transaction status.

var ErrGetMonthTransactionStatusSuccessFailed = errors.New("failed to get monthly transaction status success")

Var:

ErrGetMonthlyAmountsByCardFailed indicates a failure when retrieving monthly amounts by card number.

var ErrGetMonthlyAmountsByCardFailed = errors.New("failed to get monthly amounts by card number")

Var:

ErrGetMonthlyAmountsFailed indicates a failure when retrieving total monthly transaction amounts.

var ErrGetMonthlyAmountsFailed = errors.New("failed to get monthly amounts")

Var:

ErrGetMonthlyPaymentMethodsByCardFailed indicates a failure when retrieving monthly payment methods by card number.

var ErrGetMonthlyPaymentMethodsByCardFailed = errors.New("failed to get monthly payment methods by card number")

Var:

ErrGetMonthlyPaymentMethodsFailed indicates a failure when retrieving monthly payment method statistics.

var ErrGetMonthlyPaymentMethodsFailed = errors.New("failed to get monthly payment methods")

Var:

ErrGetYearlyAmountsByCardFailed indicates a failure when retrieving yearly amounts by card number.

var ErrGetYearlyAmountsByCardFailed = errors.New("failed to get yearly amounts by card number")

Var:

ErrGetYearlyAmountsFailed indicates a failure when retrieving total yearly transaction amounts.

var ErrGetYearlyAmountsFailed = errors.New("failed to get yearly amounts")

Var:

ErrGetYearlyPaymentMethodsByCardFailed indicates a failure when retrieving yearly payment methods by card number.

var ErrGetYearlyPaymentMethodsByCardFailed = errors.New("failed to get yearly payment methods by card number")

Var:

ErrGetYearlyPaymentMethodsFailed indicates a failure when retrieving yearly payment method statistics.

var ErrGetYearlyPaymentMethodsFailed = errors.New("failed to get yearly payment methods")

Var:

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

var ErrGetYearlyTransactionStatusFailedByCardFailed = errors.New("failed to get yearly transaction status failed by card number")

Var:

ErrGetYearlyTransactionStatusFailedFailed indicates a failure when retrieving yearly failed transaction status.

var ErrGetYearlyTransactionStatusFailedFailed = errors.New("failed to get yearly transaction status failed")

Var:

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

var ErrGetYearlyTransactionStatusSuccessByCardFailed = errors.New("failed to get yearly transaction status success by card number")

Var:

ErrGetYearlyTransactionStatusSuccessFailed indicates a failure when retrieving yearly successful transaction status.

var ErrGetYearlyTransactionStatusSuccessFailed = errors.New("failed to get yearly transaction status success")

Var:

ErrRestoreAllTransactionsFailed indicates a failure when restoring all trashed transactions.

var ErrRestoreAllTransactionsFailed = errors.New("failed to restore all transactions")

Var:

ErrRestoreTransactionFailed indicates a failure when restoring a trashed transaction.

var ErrRestoreTransactionFailed = errors.New("failed to restore transaction")

Var:

ErrTransactionNotFound indicates that the requested transaction could not be found.

var ErrTransactionNotFound = response.NewErrorResponse("Transaction not found", http.StatusNotFound)

Var:

ErrTrashedTransactionFailed indicates a failure when soft-deleting (trashing) a transaction.

var ErrTrashedTransactionFailed = errors.New("failed to soft-delete (trash) transaction")

Var:

ErrUpdateTransactionFailed indicates a failure when updating a transaction.

var ErrUpdateTransactionFailed = errors.New("failed to update transaction")

Var:

ErrUpdateTransactionStatusFailed indicates a failure when updating the status of a transaction.

var ErrUpdateTransactionStatusFailed = errors.New("failed to update transaction status")

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var ErrCreateTransactionFailed = errors.New("failed to create transaction")

ErrCreateTransactionFailed indicates a failure when creating a new transaction.

View Source
var ErrDeleteAllTransactionsPermanentFailed = errors.New("failed to permanently delete all transactions")

ErrDeleteAllTransactionsPermanentFailed indicates a failure when permanently deleting all transactions.

View Source
var ErrDeleteTransactionPermanentFailed = errors.New("failed to permanently delete transaction")

ErrDeleteTransactionPermanentFailed indicates a failure when permanently deleting a transaction.

View Source
var ErrFailedCreateTransaction = response.NewErrorResponse("Failed to create transaction", http.StatusInternalServerError)

ErrFailedCreateTransaction indicates a failure when creating a new transaction record.

View Source
var ErrFailedDeleteAllTransactionsPermanent = response.NewErrorResponse("Failed to permanently delete all transactions", http.StatusInternalServerError)

ErrFailedDeleteAllTransactionsPermanent indicates a failure when permanently deleting all transactions.

View Source
var ErrFailedDeleteTransactionPermanent = response.NewErrorResponse("Failed to permanently delete transaction", http.StatusInternalServerError)

ErrFailedDeleteTransactionPermanent indicates a failure when permanently deleting a transaction.

View Source
var ErrFailedFindAllByCardNumber = response.NewErrorResponse("Failed to fetch transactions by card number", http.StatusInternalServerError)

ErrFailedFindAllByCardNumber indicates a failure when retrieving transactions filtered by card number.

View Source
var ErrFailedFindAllTransactions = response.NewErrorResponse("Failed to fetch all transactions", http.StatusInternalServerError)

ErrFailedFindAllTransactions indicates a failure when retrieving all transaction records.

View Source
var ErrFailedFindByActiveTransactions = response.NewErrorResponse("Failed to fetch active transactions", http.StatusInternalServerError)

ErrFailedFindByActiveTransactions indicates a failure when retrieving active (non-deleted) transactions.

View Source
var ErrFailedFindByMerchantID = response.NewErrorResponse("Failed to fetch transactions by merchant ID", http.StatusInternalServerError)

ErrFailedFindByMerchantID indicates a failure when retrieving transactions filtered by merchant ID.

View Source
var ErrFailedFindByTrashedTransactions = response.NewErrorResponse("Failed to fetch trashed transactions", http.StatusInternalServerError)

ErrFailedFindByTrashedTransactions indicates a failure when retrieving trashed (soft-deleted) transactions.

View Source
var ErrFailedFindMonthTransactionFailed = response.NewErrorResponse("Failed to fetch monthly failed transactions", http.StatusInternalServerError)

ErrFailedFindMonthTransactionFailed indicates a failure when retrieving monthly failed transactions.

View Source
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.

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

ErrFailedFindMonthTransactionSuccess indicates a failure when retrieving monthly successful transactions.

View Source
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.

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

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

View Source
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.

View Source
var ErrFailedFindMonthlyPaymentMethods = response.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 = response.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 = response.NewErrorResponse("Failed to fetch yearly failed transactions", http.StatusInternalServerError)

ErrFailedFindYearTransactionFailed indicates a failure when retrieving yearly failed transactions.

View Source
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.

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

ErrFailedFindYearTransactionSuccess indicates a failure when retrieving yearly successful transactions.

View Source
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.

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

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

View Source
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.

View Source
var ErrFailedFindYearlyPaymentMethods = response.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 = response.NewErrorResponse("Failed to fetch yearly payment methods by card", http.StatusInternalServerError)

ErrFailedFindYearlyPaymentMethodsByCard indicates a failure when retrieving yearly payment methods filtered by card.

View Source
var ErrFailedRestoreAllTransactions = response.NewErrorResponse("Failed to restore all transactions", http.StatusInternalServerError)

ErrFailedRestoreAllTransactions indicates a failure when restoring all trashed transactions.

View Source
var ErrFailedRestoreTransaction = response.NewErrorResponse("Failed to restore transaction", http.StatusInternalServerError)

ErrFailedRestoreTransaction indicates a failure when restoring a previously trashed transaction.

View Source
var ErrFailedTrashedTransaction = response.NewErrorResponse("Failed to trash transaction", http.StatusInternalServerError)

ErrFailedTrashedTransaction indicates a failure when soft-deleting (trashing) a transaction.

View Source
var ErrFailedUpdateTransaction = response.NewErrorResponse("Failed to update transaction", http.StatusInternalServerError)

ErrFailedUpdateTransaction indicates a failure when updating an existing transaction record.

View Source
var ErrFindActiveTransactionsFailed = errors.New("failed to find active transactions")

ErrFindActiveTransactionsFailed indicates a failure when retrieving active (non-deleted) transactions.

View Source
var ErrFindAllTransactionsFailed = errors.New("failed to find all transactions")

ErrFindAllTransactionsFailed indicates a failure when attempting to retrieve all transactions.

View Source
var ErrFindTransactionByIdFailed = errors.New("failed to find transaction by ID")

ErrFindTransactionByIdFailed indicates a failure when retrieving a transaction by its ID.

View Source
var ErrFindTransactionByMerchantIdFailed = errors.New("failed to find transaction by merchant ID")

ErrFindTransactionByMerchantIdFailed indicates a failure when retrieving transactions by merchant ID.

View Source
var ErrFindTransactionsByCardNumberFailed = errors.New("failed to find transactions by card number")

ErrFindTransactionsByCardNumberFailed indicates a failure when retrieving transactions by card number.

View Source
var ErrFindTrashedTransactionsFailed = errors.New("failed to find trashed transactions")

ErrFindTrashedTransactionsFailed indicates a failure when retrieving soft-deleted (trashed) transactions.

View Source
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.

View Source
var ErrGetMonthTransactionStatusFailedFailed = errors.New("failed to get monthly transaction status failed")

ErrGetMonthTransactionStatusFailedFailed indicates a failure when retrieving monthly failed transaction status.

View Source
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.

View Source
var ErrGetMonthTransactionStatusSuccessFailed = errors.New("failed to get monthly transaction status success")

ErrGetMonthTransactionStatusSuccessFailed indicates a failure when retrieving monthly successful transaction status.

View Source
var ErrGetMonthlyAmountsByCardFailed = errors.New("failed to get monthly amounts by card number")

ErrGetMonthlyAmountsByCardFailed indicates a failure when retrieving monthly amounts by card number.

View Source
var ErrGetMonthlyAmountsFailed = errors.New("failed to get monthly amounts")

ErrGetMonthlyAmountsFailed indicates a failure when retrieving total monthly transaction amounts.

View Source
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.

View Source
var ErrGetMonthlyPaymentMethodsFailed = errors.New("failed to get monthly payment methods")

ErrGetMonthlyPaymentMethodsFailed indicates a failure when retrieving monthly payment method statistics.

View Source
var ErrGetYearlyAmountsByCardFailed = errors.New("failed to get yearly amounts by card number")

ErrGetYearlyAmountsByCardFailed indicates a failure when retrieving yearly amounts by card number.

View Source
var ErrGetYearlyAmountsFailed = errors.New("failed to get yearly amounts")

ErrGetYearlyAmountsFailed indicates a failure when retrieving total yearly transaction amounts.

View Source
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.

View Source
var ErrGetYearlyPaymentMethodsFailed = errors.New("failed to get yearly payment methods")

ErrGetYearlyPaymentMethodsFailed indicates a failure when retrieving yearly payment method statistics.

View Source
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.

View Source
var ErrGetYearlyTransactionStatusFailedFailed = errors.New("failed to get yearly transaction status failed")

ErrGetYearlyTransactionStatusFailedFailed indicates a failure when retrieving yearly failed transaction status.

View Source
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.

View Source
var ErrGetYearlyTransactionStatusSuccessFailed = errors.New("failed to get yearly transaction status success")

ErrGetYearlyTransactionStatusSuccessFailed indicates a failure when retrieving yearly successful transaction status.

View Source
var ErrRestoreAllTransactionsFailed = errors.New("failed to restore all transactions")

ErrRestoreAllTransactionsFailed indicates a failure when restoring all trashed transactions.

View Source
var ErrRestoreTransactionFailed = errors.New("failed to restore transaction")

ErrRestoreTransactionFailed indicates a failure when restoring a trashed transaction.

View Source
var ErrTransactionNotFound = response.NewErrorResponse("Transaction not found", http.StatusNotFound)

ErrTransactionNotFound indicates that the requested transaction could not be found.

View Source
var ErrTrashedTransactionFailed = errors.New("failed to soft-delete (trash) transaction")

ErrTrashedTransactionFailed indicates a failure when soft-deleting (trashing) a transaction.

View Source
var ErrUpdateTransactionFailed = errors.New("failed to update transaction")

ErrUpdateTransactionFailed indicates a failure when updating a transaction.

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL