card_errors/

directory
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT

README

📦 Package card_errors

Source Path: shared/errors/card_errors

🏷️ Variables

Var:

ErrApiBindCreateCard represents binding error for create card request.

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

Var:

ErrApiBindUpdateCard represents binding error for update card request.

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

Var:

ErrApiFailedCreateCard represents error when failing to create a new card.

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

Var:

ErrApiFailedDashboardCard returns a 500 Internal Server Error when fetching the card dashboard fails.

var ErrApiFailedDashboardCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch card dashboard", http.StatusInternalServerError)
}

Var:

ErrApiFailedDashboardCardByCardNumber returns a 500 Internal Server Error when fetching the dashboard by card number fails.

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

Var:

ErrApiFailedDeleteAllCardPermanent represents error when failing to permanently delete all trashed cards.

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

Var:

ErrApiFailedDeleteCardPermanent represents error when failing to permanently delete a card.

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

Var:

ErrApiFailedFindAllCards returns a 500 Internal Server Error when fetching all cards fails.

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

Var:

ErrApiFailedFindByActiveCard represents error when failing to fetch active cards.

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

Var:

ErrApiFailedFindByCardNumber represents error when failing to fetch card by card number.

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

Var:

ErrApiFailedFindByIdCard returns a 500 Internal Server Error when fetching a card by ID fails.

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

Var:

ErrApiFailedFindByTrashedCard represents error when failing to fetch trashed cards.

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

Var:

ErrApiFailedFindByUserIdCard represents error when failing to fetch cards by user ID.

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

Var:

ErrApiFailedFindMonthlyBalance returns an API error response when fetching the monthly balance fails.

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

Var:

ErrApiFailedFindMonthlyBalanceByCard returns an API error response when fetching the monthly balance by card fails.

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

Var:

ErrApiFailedFindMonthlyTopupAmount returns an API error response when fetching the monthly top-up amount fails.

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

Var:

ErrApiFailedFindMonthlyTopupAmountByCard returns an API error response when fetching the monthly top-up amount by card fails.

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

Var:

ErrApiFailedFindMonthlyTransactionAmount returns an API error response when fetching the monthly transaction amount fails.

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

Var:

ErrApiFailedFindMonthlyTransactionAmountByCard returns an API error response when fetching the monthly transaction amount by card fails.

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

Var:

ErrApiFailedFindMonthlyTransferReceiverAmount returns an API error response when fetching the monthly transfer receiver amount fails.

var ErrApiFailedFindMonthlyTransferReceiverAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer receiver amount", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindMonthlyTransferReceiverAmountByCard represents error when failing to fetch monthly transfer amount by receiver card.

var ErrApiFailedFindMonthlyTransferReceiverAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer receiver amount by card", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindMonthlyTransferSenderAmount returns an API error response when fetching the monthly transfer sender amount fails.

var ErrApiFailedFindMonthlyTransferSenderAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer sender amount", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindMonthlyTransferSenderAmountByCard represents error when failing to fetch monthly transfer amount by sender card.

var ErrApiFailedFindMonthlyTransferSenderAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer sender amount by card", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindMonthlyWithdrawAmount returns an API error response when fetching the monthly withdrawal amount fails.

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

Var:

ErrApiFailedFindMonthlyWithdrawAmountByCard returns an API error response when fetching the monthly withdrawal amount by card fails.

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

Var:

ErrApiFailedFindYearlyBalance returns an API error response when fetching the yearly balance fails.

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

Var:

ErrApiFailedFindYearlyBalanceByCard returns an API error response when fetching the yearly balance by card fails.

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

Var:

ErrApiFailedFindYearlyTopupAmount returns an API error response when fetching the yearly top-up amount fails.

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

Var:

ErrApiFailedFindYearlyTopupAmountByCard returns an API error response when fetching the yearly top-up amount by card fails.

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

Var:

ErrApiFailedFindYearlyTransactionAmount returns an API error response when fetching the yearly transaction amount fails.

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

Var:

ErrApiFailedFindYearlyTransactionAmountByCard returns an API error response when fetching the yearly transaction amount by card fails.

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

Var:

ErrApiFailedFindYearlyTransferReceiverAmount returns an API error response when fetching the yearly transfer receiver amount fails.

var ErrApiFailedFindYearlyTransferReceiverAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer receiver amount", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindYearlyTransferReceiverAmountByCard represents error when failing to fetch yearly transfer amount by receiver card.

var ErrApiFailedFindYearlyTransferReceiverAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer receiver amount by card", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindYearlyTransferSenderAmount returns an API error response when fetching the yearly transfer sender amount fails.

var ErrApiFailedFindYearlyTransferSenderAmount = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer sender amount", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindYearlyTransferSenderAmountByCard represents error when failing to fetch yearly transfer amount by sender card.

var ErrApiFailedFindYearlyTransferSenderAmountByCard = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer sender amount by card", http.StatusInternalServerError)
}

Var:

ErrApiFailedFindYearlyWithdrawAmount returns an API error response when fetching the yearly withdrawal amount fails.

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

Var:

ErrApiFailedFindYearlyWithdrawAmountByCard returns an API error response when fetching the yearly withdrawal amount by card fails.

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

Var:

ErrApiFailedRestoreAllCard represents error when failing to restore all trashed cards.

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

Var:

ErrApiFailedRestoreCard represents error when failing to restore a trashed card.

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

Var:

ErrApiFailedTrashCard represents error when failing to move a card to trash.

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

Var:

ErrApiFailedUpdateCard represents error when failing to update a card.

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

Var:

ErrApiInvalidCardID returns a 400 Bad Request error when the card ID is invalid.

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

Var:

ErrApiInvalidCardNumber returns a 400 Bad Request error when the card number is invalid.

var ErrApiInvalidCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid card number", http.StatusBadRequest)
}

Var:

ErrApiInvalidMonth returns a 400 Bad Request error when the month value is invalid.

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

Var:

ErrApiInvalidUserID returns a 400 Bad Request error when the user ID is invalid.

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

Var:

ErrApiInvalidYear returns a 400 Bad Request error when the year value is invalid.

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

Var:

ErrApiValidateCreateCard represents validation error for create card request.

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

Var:

ErrApiValidateUpdateCard represents validation error for update card request.

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

Var:

ErrCardAlreadyExists is returned when a card already exists.

var ErrCardAlreadyExists = errors.New("card already exists")

Var:

ErrCardNotFound is returned when a card is not found.

var ErrCardNotFound = errors.New("card not found")

Var:

ErrCardNotFoundRes is an error response when a requested card was not found. Its HTTP status code is 404.

var ErrCardNotFoundRes = response.NewErrorResponse("Card not found", http.StatusNotFound)

Var:

ErrCreateCardFailed is returned when creating a new card fails.

var ErrCreateCardFailed = errors.New("failed to create card")

Var:

ErrDeleteAllCardsPermanentFailed is returned when permanently deleting all cards fails.

var ErrDeleteAllCardsPermanentFailed = errors.New("failed to delete all cards permanently")

Var:

ErrDeleteCardPermanentFailed is returned when permanently deleting a card fails.

var ErrDeleteCardPermanentFailed = errors.New("failed to delete card permanently")

Var:

ErrFailedCreateCard is returned when creating a new Card record fails. Its HTTP status code is 500.

var ErrFailedCreateCard = response.NewErrorResponse("Failed to create Card", http.StatusInternalServerError)

Var:

ErrFailedDashboardCard is an error response when retrieving card dashboard fails. Its HTTP status code is 500.

var ErrFailedDashboardCard = response.NewErrorResponse("Failed to get Card dashboard", http.StatusInternalServerError)

Var:

ErrFailedDashboardCardNumber is an error response when retrieving card dashboard by card number fails. Its HTTP status code is 500.

var ErrFailedDashboardCardNumber = response.NewErrorResponse("Failed to get Card dashboard by card number", http.StatusInternalServerError)

Var:

ErrFailedDeleteAllCards is returned when permanently deleting all Cards fails. Its HTTP status code is 500.

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

Var:

ErrFailedDeleteCard is returned when permanently deleting a Card fails. Its HTTP status code is 500.

var ErrFailedDeleteCard = response.NewErrorResponse("Failed to delete Card permanently", http.StatusInternalServerError)

Var:

ErrFailedFindActiveCards is an error response when retrieving active card records fails. Its HTTP status code is 500.

var ErrFailedFindActiveCards = response.NewErrorResponse("Failed to fetch active Cards", http.StatusInternalServerError)

Var:

ErrFailedFindAllCards is an error response when retrieving all card records fails. Its HTTP status code is 500.

var ErrFailedFindAllCards = response.NewErrorResponse("Failed to fetch Cards", http.StatusInternalServerError)

Var:

ErrFailedFindByCardNumber is an error response when finding a card by its card number fails. Its HTTP status code is 500.

var ErrFailedFindByCardNumber = response.NewErrorResponse("Failed to find Card by Card Number", http.StatusInternalServerError)

Var:

ErrFailedFindById is an error response when finding a card by its ID fails. Its HTTP status code is 500.

var ErrFailedFindById = response.NewErrorResponse("Failed to find Card by ID", http.StatusInternalServerError)

Var:

ErrFailedFindByUserID is an error response when finding a card by its user ID fails. Its HTTP status code is 500.

var ErrFailedFindByUserID = response.NewErrorResponse("Failed to find Card by User ID", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyBalance indicates a failure in retrieving the monthly balance.

var ErrFailedFindMonthlyBalance = response.NewErrorResponse("Failed to get monthly balance", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyBalanceByCard returns an error response when retrieving monthly balance by card number fails. Its HTTP status code is 500.

var ErrFailedFindMonthlyBalanceByCard = response.NewErrorResponse("Failed to get monthly balance by card", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTopupAmount indicates a failure in retrieving the monthly top-up amount.

var ErrFailedFindMonthlyTopupAmount = response.NewErrorResponse("Failed to get monthly topup amount", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTopupAmountByCard returns an error response when retrieving monthly top-up amount by card number fails. Its HTTP status code is 500.

var ErrFailedFindMonthlyTopupAmountByCard = response.NewErrorResponse("Failed to get monthly topup amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTransactionAmount indicates a failure in retrieving the monthly transaction amount.

var ErrFailedFindMonthlyTransactionAmount = response.NewErrorResponse("Failed to get monthly transaction amount", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTransactionAmountByCard returns an error response when retrieving monthly transaction amount by card number fails. Its HTTP status code is 500.

var ErrFailedFindMonthlyTransactionAmountByCard = response.NewErrorResponse("Failed to get monthly transaction amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTransferAmountByReceiver returns an error response when retrieving monthly transfer amount by receiver card number fails. Its HTTP status code is 500.

var ErrFailedFindMonthlyTransferAmountByReceiver = response.NewErrorResponse("Failed to get monthly transfer amount by receiver", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTransferAmountBySender returns an error response when retrieving monthly transfer amount by sender card number fails. Its HTTP status code is 500.

var ErrFailedFindMonthlyTransferAmountBySender = response.NewErrorResponse("Failed to get monthly transfer amount by sender", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTransferAmountReceiver indicates a failure in retrieving the monthly transfer amount by receiver.

var ErrFailedFindMonthlyTransferAmountReceiver = response.NewErrorResponse("Failed to get monthly transfer amount by receiver", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTransferAmountSender indicates a failure in retrieving the monthly transfer amount by sender.

var ErrFailedFindMonthlyTransferAmountSender = response.NewErrorResponse("Failed to get monthly transfer amount by sender", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyWithdrawAmount indicates a failure in retrieving the monthly withdraw amount.

var ErrFailedFindMonthlyWithdrawAmount = response.NewErrorResponse("Failed to get monthly withdraw amount", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyWithdrawAmountByCard returns an error response when retrieving monthly withdraw amount by card number fails. Its HTTP status code is 500.

var ErrFailedFindMonthlyWithdrawAmountByCard = response.NewErrorResponse("Failed to get monthly withdraw amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindTotalBalanceByCard is an error response when retrieving total balance by card fails. Its HTTP status code is 500.

var ErrFailedFindTotalBalanceByCard = response.NewErrorResponse("Failed to Find total balance by card", http.StatusInternalServerError)

Var:

ErrFailedFindTotalBalances is an error response when retrieving total balances fails. Its HTTP status code is 500.

var ErrFailedFindTotalBalances = response.NewErrorResponse("Failed to Find total balances", http.StatusInternalServerError)

Var:

ErrFailedFindTotalTopAmount is an error response when retrieving total topup amount fails. Its HTTP status code is 500.

var ErrFailedFindTotalTopAmount = response.NewErrorResponse("Failed to Find total topup amount", http.StatusInternalServerError)

Var:

ErrFailedFindTotalTopupAmountByCard is an error response when retrieving total topup amount by card fails. Its HTTP status code is 500.

var ErrFailedFindTotalTopupAmountByCard = response.NewErrorResponse("Failed to Find total topup amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindTotalTransactionAmount is an error response when retrieving total transaction amount fails. Its HTTP status code is 500.

var ErrFailedFindTotalTransactionAmount = response.NewErrorResponse("Failed to Find total transaction amount", http.StatusInternalServerError)

Var:

ErrFailedFindTotalTransactionAmountByCard is an error response when retrieving total transaction amount by card fails. Its HTTP status code is 500.

var ErrFailedFindTotalTransactionAmountByCard = response.NewErrorResponse("Failed to Find total transaction amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindTotalTransferAmount is an error response when retrieving total transfer amount fails. Its HTTP status code is 500.

var ErrFailedFindTotalTransferAmount = response.NewErrorResponse("Failed to Find total transfer amount", http.StatusInternalServerError)

Var:

ErrFailedFindTotalTransferAmountByReceiver is an error response when retrieving total transfer amount by receiver fails. Its HTTP status code is 500.

var ErrFailedFindTotalTransferAmountByReceiver = response.NewErrorResponse("Failed to Find total transfer amount by receiver", http.StatusInternalServerError)

Var:

ErrFailedFindTotalTransferAmountBySender is an error response when retrieving total transfer amount by sender fails. Its HTTP status code is 500.

var ErrFailedFindTotalTransferAmountBySender = response.NewErrorResponse("Failed to Find total transfer amount by sender", http.StatusInternalServerError)

Var:

ErrFailedFindTotalWithdrawAmount is an error response when retrieving total withdraw amount fails. Its HTTP status code is 500.

var ErrFailedFindTotalWithdrawAmount = response.NewErrorResponse("Failed to Find total withdraw amount", http.StatusInternalServerError)

Var:

ErrFailedFindTotalWithdrawAmountByCard is an error response when retrieving total withdraw amount by card fails. Its HTTP status code is 500.

var ErrFailedFindTotalWithdrawAmountByCard = response.NewErrorResponse("Failed to Find total withdraw amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindTrashedCards is an error response when retrieving trashed card records fails. Its HTTP status code is 500.

var ErrFailedFindTrashedCards = response.NewErrorResponse("Failed to fetch trashed Cards", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyBalance indicates a failure in retrieving the yearly balance.

var ErrFailedFindYearlyBalance = response.NewErrorResponse("Failed to get yearly balance", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyBalanceByCard returns an error response when retrieving yearly balance by card number fails. Its HTTP status code is 500.

var ErrFailedFindYearlyBalanceByCard = response.NewErrorResponse("Failed to get yearly balance by card", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTopupAmount indicates a failure in retrieving the yearly top-up amount.

var ErrFailedFindYearlyTopupAmount = response.NewErrorResponse("Failed to get yearly topup amount", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTopupAmountByCard returns an error response when retrieving yearly top-up amount by card number fails. Its HTTP status code is 500.

var ErrFailedFindYearlyTopupAmountByCard = response.NewErrorResponse("Failed to get yearly topup amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTransactionAmount indicates a failure in retrieving the yearly transaction amount.

var ErrFailedFindYearlyTransactionAmount = response.NewErrorResponse("Failed to get yearly transaction amount", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTransactionAmountByCard returns an error response when retrieving yearly transaction amount by card number fails. Its HTTP status code is 500.

var ErrFailedFindYearlyTransactionAmountByCard = response.NewErrorResponse("Failed to get yearly transaction amount by card", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTransferAmountByReceiver returns an error response when retrieving yearly transfer amount by receiver card number fails. Its HTTP status code is 500.

var ErrFailedFindYearlyTransferAmountByReceiver = response.NewErrorResponse("Failed to get yearly transfer amount by receiver", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTransferAmountBySender returns an error response when retrieving yearly transfer amount by sender card number fails. Its HTTP status code is 500.

var ErrFailedFindYearlyTransferAmountBySender = response.NewErrorResponse("Failed to get yearly transfer amount by sender", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTransferAmountReceiver indicates a failure in retrieving the yearly transfer amount by receiver.

var ErrFailedFindYearlyTransferAmountReceiver = response.NewErrorResponse("Failed to get yearly transfer amount by receiver", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTransferAmountSender indicates a failure in retrieving the yearly transfer amount by sender.

var ErrFailedFindYearlyTransferAmountSender = response.NewErrorResponse("Failed to get yearly transfer amount by sender", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyWithdrawAmount indicates a failure in retrieving the yearly withdraw amount.

var ErrFailedFindYearlyWithdrawAmount = response.NewErrorResponse("Failed to get yearly withdraw amount", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyWithdrawAmountByCard returns an error response when retrieving yearly withdraw amount by card number fails. Its HTTP status code is 500.

var ErrFailedFindYearlyWithdrawAmountByCard = response.NewErrorResponse("Failed to get yearly withdraw amount by card", http.StatusInternalServerError)

Var:

ErrFailedRestoreAllCards is returned when restoring all trashed Cards fails. Its HTTP status code is 500.

var ErrFailedRestoreAllCards = response.NewErrorResponse("Failed to restore all Cards", http.StatusInternalServerError)

Var:

ErrFailedRestoreCard is returned when restoring a trashed Card fails. Its HTTP status code is 500.

var ErrFailedRestoreCard = response.NewErrorResponse("Failed to restore Card", http.StatusInternalServerError)

Var:

ErrFailedTrashCard is returned when moving a Card to trash fails. Its HTTP status code is 500.

var ErrFailedTrashCard = response.NewErrorResponse("Failed to trash Card", http.StatusInternalServerError)

Var:

ErrFailedUpdateCard is returned when updating an existing Card record fails. Its HTTP status code is 500.

var ErrFailedUpdateCard = response.NewErrorResponse("Failed to update Card", http.StatusInternalServerError)

Var:

ErrFindActiveCardsFailed is returned when fetching active card records fails.

var ErrFindActiveCardsFailed = errors.New("failed to find active cards")

Var:

ErrFindAllCardsFailed is returned when fetching all card records fails.

var ErrFindAllCardsFailed = errors.New("failed to find all cards")

Var:

ErrFindCardByCardNumberFailed is returned when fetching a card by card number fails.

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

Var:

ErrFindCardByIdFailed is returned when fetching a card by its ID fails.

var ErrFindCardByIdFailed = errors.New("failed to find card by ID")

Var:

ErrFindCardByUserIdFailed is returned when fetching a card by user ID fails.

var ErrFindCardByUserIdFailed = errors.New("failed to find card by user ID")

Var:

ErrFindTrashedCardsFailed is returned when fetching trashed card records fails.

var ErrFindTrashedCardsFailed = errors.New("failed to find trashed cards")

Var:

ErrGetMonthlyBalanceByCardFailed is returned when fetching monthly balances by card fails.

var ErrGetMonthlyBalanceByCardFailed = errors.New("failed to get monthly balance by card")

Var:

ErrGetMonthlyBalanceFailed is returned when fetching monthly balances fails.

var ErrGetMonthlyBalanceFailed = errors.New("failed to get monthly balance")

Var:

ErrGetMonthlyTopupAmountByCardFailed is returned when fetching monthly top-up amounts by card fails.

var ErrGetMonthlyTopupAmountByCardFailed = errors.New("failed to get monthly topup amount by card")

Var:

ErrGetMonthlyTopupAmountFailed is returned when fetching monthly top-up amounts fails.

var ErrGetMonthlyTopupAmountFailed = errors.New("failed to get monthly topup amount")

Var:

ErrGetMonthlyTransactionAmountByCardFailed is returned when fetching monthly transaction amounts by card fails.

var ErrGetMonthlyTransactionAmountByCardFailed = errors.New("failed to get monthly transaction amount by card")

Var:

ErrGetMonthlyTransactionAmountFailed is returned when fetching monthly transaction amounts fails.

var ErrGetMonthlyTransactionAmountFailed = errors.New("failed to get monthly transaction amount")

Var:

ErrGetMonthlyTransferAmountByReceiverFailed is returned when fetching monthly transfer amount by receiver fails.

var ErrGetMonthlyTransferAmountByReceiverFailed = errors.New("failed to get monthly transfer amount by receiver")

Var:

ErrGetMonthlyTransferAmountBySenderFailed is returned when fetching monthly transfer amount by sender fails.

var ErrGetMonthlyTransferAmountBySenderFailed = errors.New("failed to get monthly transfer amount by sender")

Var:

ErrGetMonthlyTransferAmountReceiverFailed is returned when fetching monthly transfer amounts by receiver fails.

var ErrGetMonthlyTransferAmountReceiverFailed = errors.New("failed to get monthly transfer amount by receiver")

Var:

ErrGetMonthlyTransferAmountSenderFailed is returned when fetching monthly transfer amounts by sender fails.

var ErrGetMonthlyTransferAmountSenderFailed = errors.New("failed to get monthly transfer amount by sender")

Var:

ErrGetMonthlyWithdrawAmountByCardFailed is returned when fetching monthly withdrawal amounts by card fails.

var ErrGetMonthlyWithdrawAmountByCardFailed = errors.New("failed to get monthly withdraw amount by card")

Var:

ErrGetMonthlyWithdrawAmountFailed is returned when fetching monthly withdrawal amounts fails.

var ErrGetMonthlyWithdrawAmountFailed = errors.New("failed to get monthly withdraw amount")

Var:

ErrGetTotalBalanceByCardFailed is returned when fetching the total balance by card fails.

var ErrGetTotalBalanceByCardFailed = errors.New("failed to get total balance by card")

Var:

ErrGetTotalBalancesFailed is returned when fetching total balances fails.

var ErrGetTotalBalancesFailed = errors.New("failed to get total balances")

Var:

ErrGetTotalTopAmountFailed is returned when fetching the total top-up amount fails.

var ErrGetTotalTopAmountFailed = errors.New("failed to get total topup amount")

Var:

ErrGetTotalTopupAmountByCardFailed is returned when fetching the total top-up amount by card fails.

var ErrGetTotalTopupAmountByCardFailed = errors.New("failed to get total topup amount by card")

Var:

ErrGetTotalTransactionAmountByCardFailed is returned when fetching the total transaction amount by card fails.

var ErrGetTotalTransactionAmountByCardFailed = errors.New("failed to get total transaction amount by card")

Var:

ErrGetTotalTransactionAmountFailed is returned when fetching the total transaction amount fails.

var ErrGetTotalTransactionAmountFailed = errors.New("failed to get total transaction amount")

Var:

ErrGetTotalTransferAmountByReceiverFailed is returned when fetching the total transfer amount by receiver fails.

var ErrGetTotalTransferAmountByReceiverFailed = errors.New("failed to get total transfer amount by receiver")

Var:

ErrGetTotalTransferAmountBySenderFailed is returned when fetching the total transfer amount by sender fails.

var ErrGetTotalTransferAmountBySenderFailed = errors.New("failed to get total transfer amount by sender")

Var:

ErrGetTotalTransferAmountFailed is returned when fetching the total transfer amount fails.

var ErrGetTotalTransferAmountFailed = errors.New("failed to get total transfer amount")

Var:

ErrGetTotalWithdrawAmountByCardFailed is returned when fetching the total withdrawal amount by card fails.

var ErrGetTotalWithdrawAmountByCardFailed = errors.New("failed to get total withdraw amount by card")

Var:

ErrGetTotalWithdrawAmountFailed is returned when fetching the total withdrawal amount fails.

var ErrGetTotalWithdrawAmountFailed = errors.New("failed to get total withdraw amount")

Var:

ErrGetYearlyBalanceByCardFailed is returned when fetching yearly balances by card fails.

var ErrGetYearlyBalanceByCardFailed = errors.New("failed to get yearly balance by card")

Var:

ErrGetYearlyBalanceFailed is returned when fetching yearly balances fails.

var ErrGetYearlyBalanceFailed = errors.New("failed to get yearly balance")

Var:

ErrGetYearlyTopupAmountByCardFailed is returned when fetching yearly top-up amounts by card fails.

var ErrGetYearlyTopupAmountByCardFailed = errors.New("failed to get yearly topup amount by card")

Var:

ErrGetYearlyTopupAmountFailed is returned when fetching yearly top-up amounts fails.

var ErrGetYearlyTopupAmountFailed = errors.New("failed to get yearly topup amount")

Var:

ErrGetYearlyTransactionAmountByCardFailed is returned when fetching yearly transaction amounts by card fails.

var ErrGetYearlyTransactionAmountByCardFailed = errors.New("failed to get yearly transaction amount by card")

Var:

ErrGetYearlyTransactionAmountFailed is returned when fetching yearly transaction amounts fails.

var ErrGetYearlyTransactionAmountFailed = errors.New("failed to get yearly transaction amount")

Var:

ErrGetYearlyTransferAmountByReceiverFailed is returned when fetching yearly transfer amount by receiver fails.

var ErrGetYearlyTransferAmountByReceiverFailed = errors.New("failed to get yearly transfer amount by receiver")

Var:

ErrGetYearlyTransferAmountBySenderFailed is returned when fetching yearly transfer amount by sender fails.

var ErrGetYearlyTransferAmountBySenderFailed = errors.New("failed to get yearly transfer amount by sender")

Var:

ErrGetYearlyTransferAmountReceiverFailed is returned when fetching yearly transfer amounts by receiver fails.

var ErrGetYearlyTransferAmountReceiverFailed = errors.New("failed to get yearly transfer amount by receiver")

Var:

ErrGetYearlyTransferAmountSenderFailed is returned when fetching yearly transfer amounts by sender fails.

var ErrGetYearlyTransferAmountSenderFailed = errors.New("failed to get yearly transfer amount by sender")

Var:

ErrGetYearlyWithdrawAmountByCardFailed is returned when fetching yearly withdrawal amounts by card fails.

var ErrGetYearlyWithdrawAmountByCardFailed = errors.New("failed to get yearly withdraw amount by card")

Var:

ErrGetYearlyWithdrawAmountFailed is returned when fetching yearly withdrawal amounts fails.

var ErrGetYearlyWithdrawAmountFailed = errors.New("failed to get yearly withdraw amount")

Var:

ErrInvalidCardId is returned when the card ID is invalid.

var ErrInvalidCardId = errors.New("invalid card ID")

Var:

ErrInvalidCardNumber is returned when the card number is invalid.

var ErrInvalidCardNumber = errors.New("invalid card number")

Var:

ErrInvalidCardRequest is returned when the card request data is invalid.

var ErrInvalidCardRequest = errors.New("invalid card request data")

Var:

ErrInvalidUserId is returned when the user ID is invalid.

var ErrInvalidUserId = errors.New("invalid user ID")

Var:

ErrRestoreAllCardsFailed is returned when restoring all trashed cards fails.

var ErrRestoreAllCardsFailed = errors.New("failed to restore all cards")

Var:

ErrRestoreCardFailed is returned when restoring a trashed card fails.

var ErrRestoreCardFailed = errors.New("failed to restore card")

Var:

ErrTrashCardFailed is returned when trashing a card fails.

var ErrTrashCardFailed = errors.New("failed to trash card")

Var:

ErrUpdateCardFailed is returned when updating a card fails.

var ErrUpdateCardFailed = errors.New("failed to update card")

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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