Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
var ErrCardAlreadyExists = errors.New("card already exists")
ErrCardAlreadyExists is returned when a card already exists.
var ErrCardNotFound = errors.New("card not found")
ErrCardNotFound is returned when a card is not found.
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.
var ErrCreateCardFailed = errors.New("failed to create card")
ErrCreateCardFailed is returned when creating a new card fails.
var ErrDeleteAllCardsPermanentFailed = errors.New("failed to delete all cards permanently")
ErrDeleteAllCardsPermanentFailed is returned when permanently deleting all cards fails.
var ErrDeleteCardPermanentFailed = errors.New("failed to delete card permanently")
ErrDeleteCardPermanentFailed is returned when permanently deleting a card fails.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
var ErrFailedFindMonthlyBalance = response.NewErrorResponse("Failed to get monthly balance", http.StatusInternalServerError)
ErrFailedFindMonthlyBalance indicates a failure in retrieving the monthly balance.
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.
var ErrFailedFindMonthlyTopupAmount = response.NewErrorResponse("Failed to get monthly topup amount", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupAmount indicates a failure in retrieving the monthly top-up amount.
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.
var ErrFailedFindMonthlyTransactionAmount = response.NewErrorResponse("Failed to get monthly transaction amount", http.StatusInternalServerError)
ErrFailedFindMonthlyTransactionAmount indicates a failure in retrieving the monthly transaction amount.
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.
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.
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.
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.
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.
var ErrFailedFindMonthlyWithdrawAmount = response.NewErrorResponse("Failed to get monthly withdraw amount", http.StatusInternalServerError)
ErrFailedFindMonthlyWithdrawAmount indicates a failure in retrieving the monthly withdraw amount.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
var ErrFailedFindYearlyBalance = response.NewErrorResponse("Failed to get yearly balance", http.StatusInternalServerError)
ErrFailedFindYearlyBalance indicates a failure in retrieving the yearly balance.
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.
var ErrFailedFindYearlyTopupAmount = response.NewErrorResponse("Failed to get yearly topup amount", http.StatusInternalServerError)
ErrFailedFindYearlyTopupAmount indicates a failure in retrieving the yearly top-up amount.
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.
var ErrFailedFindYearlyTransactionAmount = response.NewErrorResponse("Failed to get yearly transaction amount", http.StatusInternalServerError)
ErrFailedFindYearlyTransactionAmount indicates a failure in retrieving the yearly transaction amount.
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.
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.
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.
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.
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.
var ErrFailedFindYearlyWithdrawAmount = response.NewErrorResponse("Failed to get yearly withdraw amount", http.StatusInternalServerError)
ErrFailedFindYearlyWithdrawAmount indicates a failure in retrieving the yearly withdraw amount.
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.
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.
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.
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.
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.
var ErrFindActiveCardsFailed = errors.New("failed to find active cards")
ErrFindActiveCardsFailed is returned when fetching active card records fails.
var ErrFindAllCardsFailed = errors.New("failed to find all cards")
ErrFindAllCardsFailed is returned when fetching all card records fails.
var ErrFindCardByCardNumberFailed = errors.New("failed to find card by card number")
ErrFindCardByCardNumberFailed is returned when fetching a card by card number fails.
var ErrFindCardByIdFailed = errors.New("failed to find card by ID")
ErrFindCardByIdFailed is returned when fetching a card by its ID fails.
var ErrFindCardByUserIdFailed = errors.New("failed to find card by user ID")
ErrFindCardByUserIdFailed is returned when fetching a card by user ID fails.
var ErrFindTrashedCardsFailed = errors.New("failed to find trashed cards")
ErrFindTrashedCardsFailed is returned when fetching trashed card records fails.
var ErrGetMonthlyBalanceByCardFailed = errors.New("failed to get monthly balance by card")
ErrGetMonthlyBalanceByCardFailed is returned when fetching monthly balances by card fails.
var ErrGetMonthlyBalanceFailed = errors.New("failed to get monthly balance")
ErrGetMonthlyBalanceFailed is returned when fetching monthly balances fails.
var ErrGetMonthlyTopupAmountByCardFailed = errors.New("failed to get monthly topup amount by card")
ErrGetMonthlyTopupAmountByCardFailed is returned when fetching monthly top-up amounts by card fails.
var ErrGetMonthlyTopupAmountFailed = errors.New("failed to get monthly topup amount")
ErrGetMonthlyTopupAmountFailed is returned when fetching monthly top-up amounts fails.
var ErrGetMonthlyTransactionAmountByCardFailed = errors.New("failed to get monthly transaction amount by card")
ErrGetMonthlyTransactionAmountByCardFailed is returned when fetching monthly transaction amounts by card fails.
var ErrGetMonthlyTransactionAmountFailed = errors.New("failed to get monthly transaction amount")
ErrGetMonthlyTransactionAmountFailed is returned when fetching monthly transaction amounts fails.
var ErrGetMonthlyTransferAmountByReceiverFailed = errors.New("failed to get monthly transfer amount by receiver")
ErrGetMonthlyTransferAmountByReceiverFailed is returned when fetching monthly transfer amount by receiver fails.
var ErrGetMonthlyTransferAmountBySenderFailed = errors.New("failed to get monthly transfer amount by sender")
ErrGetMonthlyTransferAmountBySenderFailed is returned when fetching monthly transfer amount by sender fails.
var ErrGetMonthlyTransferAmountReceiverFailed = errors.New("failed to get monthly transfer amount by receiver")
ErrGetMonthlyTransferAmountReceiverFailed is returned when fetching monthly transfer amounts by receiver fails.
var ErrGetMonthlyTransferAmountSenderFailed = errors.New("failed to get monthly transfer amount by sender")
ErrGetMonthlyTransferAmountSenderFailed is returned when fetching monthly transfer amounts by sender fails.
var ErrGetMonthlyWithdrawAmountByCardFailed = errors.New("failed to get monthly withdraw amount by card")
ErrGetMonthlyWithdrawAmountByCardFailed is returned when fetching monthly withdrawal amounts by card fails.
var ErrGetMonthlyWithdrawAmountFailed = errors.New("failed to get monthly withdraw amount")
ErrGetMonthlyWithdrawAmountFailed is returned when fetching monthly withdrawal amounts fails.
var ErrGetTotalBalanceByCardFailed = errors.New("failed to get total balance by card")
ErrGetTotalBalanceByCardFailed is returned when fetching the total balance by card fails.
var ErrGetTotalBalancesFailed = errors.New("failed to get total balances")
ErrGetTotalBalancesFailed is returned when fetching total balances fails.
var ErrGetTotalTopAmountFailed = errors.New("failed to get total topup amount")
ErrGetTotalTopAmountFailed is returned when fetching the total top-up amount fails.
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.
var ErrGetTotalTransactionAmountByCardFailed = errors.New("failed to get total transaction amount by card")
ErrGetTotalTransactionAmountByCardFailed is returned when fetching the total transaction amount by card fails.
var ErrGetTotalTransactionAmountFailed = errors.New("failed to get total transaction amount")
ErrGetTotalTransactionAmountFailed is returned when fetching the total transaction amount fails.
var ErrGetTotalTransferAmountByReceiverFailed = errors.New("failed to get total transfer amount by receiver")
ErrGetTotalTransferAmountByReceiverFailed is returned when fetching the total transfer amount by receiver fails.
var ErrGetTotalTransferAmountBySenderFailed = errors.New("failed to get total transfer amount by sender")
ErrGetTotalTransferAmountBySenderFailed is returned when fetching the total transfer amount by sender fails.
var ErrGetTotalTransferAmountFailed = errors.New("failed to get total transfer amount")
ErrGetTotalTransferAmountFailed is returned when fetching the total transfer amount fails.
var ErrGetTotalWithdrawAmountByCardFailed = errors.New("failed to get total withdraw amount by card")
ErrGetTotalWithdrawAmountByCardFailed is returned when fetching the total withdrawal amount by card fails.
var ErrGetTotalWithdrawAmountFailed = errors.New("failed to get total withdraw amount")
ErrGetTotalWithdrawAmountFailed is returned when fetching the total withdrawal amount fails.
var ErrGetYearlyBalanceByCardFailed = errors.New("failed to get yearly balance by card")
ErrGetYearlyBalanceByCardFailed is returned when fetching yearly balances by card fails.
var ErrGetYearlyBalanceFailed = errors.New("failed to get yearly balance")
ErrGetYearlyBalanceFailed is returned when fetching yearly balances fails.
var ErrGetYearlyTopupAmountByCardFailed = errors.New("failed to get yearly topup amount by card")
ErrGetYearlyTopupAmountByCardFailed is returned when fetching yearly top-up amounts by card fails.
var ErrGetYearlyTopupAmountFailed = errors.New("failed to get yearly topup amount")
ErrGetYearlyTopupAmountFailed is returned when fetching yearly top-up amounts fails.
var ErrGetYearlyTransactionAmountByCardFailed = errors.New("failed to get yearly transaction amount by card")
ErrGetYearlyTransactionAmountByCardFailed is returned when fetching yearly transaction amounts by card fails.
var ErrGetYearlyTransactionAmountFailed = errors.New("failed to get yearly transaction amount")
ErrGetYearlyTransactionAmountFailed is returned when fetching yearly transaction amounts fails.
var ErrGetYearlyTransferAmountByReceiverFailed = errors.New("failed to get yearly transfer amount by receiver")
ErrGetYearlyTransferAmountByReceiverFailed is returned when fetching yearly transfer amount by receiver fails.
var ErrGetYearlyTransferAmountBySenderFailed = errors.New("failed to get yearly transfer amount by sender")
ErrGetYearlyTransferAmountBySenderFailed is returned when fetching yearly transfer amount by sender fails.
var ErrGetYearlyTransferAmountReceiverFailed = errors.New("failed to get yearly transfer amount by receiver")
ErrGetYearlyTransferAmountReceiverFailed is returned when fetching yearly transfer amounts by receiver fails.
var ErrGetYearlyTransferAmountSenderFailed = errors.New("failed to get yearly transfer amount by sender")
ErrGetYearlyTransferAmountSenderFailed is returned when fetching yearly transfer amounts by sender fails.
var ErrGetYearlyWithdrawAmountByCardFailed = errors.New("failed to get yearly withdraw amount by card")
ErrGetYearlyWithdrawAmountByCardFailed is returned when fetching yearly withdrawal amounts by card fails.
var ErrGetYearlyWithdrawAmountFailed = errors.New("failed to get yearly withdraw amount")
ErrGetYearlyWithdrawAmountFailed is returned when fetching yearly withdrawal amounts fails.
var ErrInvalidCardId = errors.New("invalid card ID")
ErrInvalidCardId is returned when the card ID is invalid.
var ErrInvalidCardNumber = errors.New("invalid card number")
ErrInvalidCardNumber is returned when the card number is invalid.
var ErrInvalidCardRequest = errors.New("invalid card request data")
ErrInvalidCardRequest is returned when the card request data is invalid.
var ErrInvalidUserId = errors.New("invalid user ID")
ErrInvalidUserId is returned when the user ID is invalid.
var ErrRestoreAllCardsFailed = errors.New("failed to restore all cards")
ErrRestoreAllCardsFailed is returned when restoring all trashed cards fails.
var ErrRestoreCardFailed = errors.New("failed to restore card")
ErrRestoreCardFailed is returned when restoring a trashed card fails.
var ErrTrashCardFailed = errors.New("failed to trash card")
ErrTrashCardFailed is returned when trashing a card fails.
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.