card_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

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")

Documentation

Index

Constants

This section is empty.

Variables

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

ErrApiBindCreateCard represents binding error for create card request.

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

ErrApiBindUpdateCard represents binding error for update card request.

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

ErrApiFailedCreateCard represents error when failing to create a new card.

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

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

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

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

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

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

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

ErrApiFailedDeleteCardPermanent represents error when failing to permanently delete a card.

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

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

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

ErrApiFailedFindByActiveCard represents error when failing to fetch active cards.

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

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

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

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

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

ErrApiFailedFindByTrashedCard represents error when failing to fetch trashed cards.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ErrApiFailedRestoreAllCard represents error when failing to restore all trashed cards.

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

ErrApiFailedRestoreCard represents error when failing to restore a trashed card.

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

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

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

ErrApiFailedUpdateCard represents error when failing to update a card.

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

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

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

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

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

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

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

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

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

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

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

ErrApiValidateCreateCard represents validation error for create card request.

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

ErrApiValidateUpdateCard represents validation error for update card request.

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

ErrCardAlreadyExists is returned when a card already exists.

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

ErrCardNotFound is returned when a card is not found.

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

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

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

ErrCreateCardFailed is returned when creating a new card fails.

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

ErrDeleteAllCardsPermanentFailed is returned when permanently deleting all cards fails.

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

ErrDeleteCardPermanentFailed is returned when permanently deleting a card fails.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ErrFailedFindMonthlyBalance indicates a failure in retrieving the monthly balance.

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

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

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

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

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

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

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

ErrFailedFindMonthlyTransactionAmount indicates a failure in retrieving the monthly transaction amount.

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

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

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

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

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

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

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

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

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

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

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

ErrFailedFindMonthlyWithdrawAmount indicates a failure in retrieving the monthly withdraw amount.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ErrFailedFindYearlyBalance indicates a failure in retrieving the yearly balance.

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

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

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

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

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

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

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

ErrFailedFindYearlyTransactionAmount indicates a failure in retrieving the yearly transaction amount.

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

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

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

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

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

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

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

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

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

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

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

ErrFailedFindYearlyWithdrawAmount indicates a failure in retrieving the yearly withdraw amount.

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

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

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

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

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

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

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

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

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

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

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

ErrFindActiveCardsFailed is returned when fetching active card records fails.

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

ErrFindAllCardsFailed is returned when fetching all card records fails.

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

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

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

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

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

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

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

ErrFindTrashedCardsFailed is returned when fetching trashed card records fails.

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

ErrGetMonthlyBalanceByCardFailed is returned when fetching monthly balances by card fails.

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

ErrGetMonthlyBalanceFailed is returned when fetching monthly balances fails.

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

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

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

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

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

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

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

ErrGetMonthlyTransactionAmountFailed is returned when fetching monthly transaction amounts fails.

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

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

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

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

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

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

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

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

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

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

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

ErrGetMonthlyWithdrawAmountFailed is returned when fetching monthly withdrawal amounts fails.

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

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

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

ErrGetTotalBalancesFailed is returned when fetching total balances fails.

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

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

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

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

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

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

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

ErrGetTotalTransactionAmountFailed is returned when fetching the total transaction amount fails.

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

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

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

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

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

ErrGetTotalTransferAmountFailed is returned when fetching the total transfer amount fails.

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

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

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

ErrGetTotalWithdrawAmountFailed is returned when fetching the total withdrawal amount fails.

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

ErrGetYearlyBalanceByCardFailed is returned when fetching yearly balances by card fails.

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

ErrGetYearlyBalanceFailed is returned when fetching yearly balances fails.

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

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

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

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

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

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

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

ErrGetYearlyTransactionAmountFailed is returned when fetching yearly transaction amounts fails.

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

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

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

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

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

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

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

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

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

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

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

ErrGetYearlyWithdrawAmountFailed is returned when fetching yearly withdrawal amounts fails.

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

ErrInvalidCardId is returned when the card ID is invalid.

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

ErrInvalidCardNumber is returned when the card number is invalid.

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

ErrInvalidCardRequest is returned when the card request data is invalid.

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

ErrInvalidUserId is returned when the user ID is invalid.

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

ErrRestoreAllCardsFailed is returned when restoring all trashed cards fails.

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

ErrRestoreCardFailed is returned when restoring a trashed card fails.

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

ErrTrashCardFailed is returned when trashing a card fails.

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

ErrUpdateCardFailed is returned when updating a card fails.

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