{"modulePath":"github.com/MamangRust/monolith-payment-gateway-shared","version":"v1.0.15","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cardapierrors\n\n## Variables\n\n```go\nvar ErrApiBindCreateCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid create Card request\", http.StatusBadRequest)\n}\n```\nErrApiBindCreateCard represents binding error for create card request.\n\n```go\nvar ErrApiBindUpdateCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid update Card request\", http.StatusBadRequest)\n}\n```\nErrApiBindUpdateCard represents binding error for update card request.\n\n```go\nvar ErrApiFailedCreateCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to create card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedCreateCard represents error when failing to create a new card.\n\n```go\nvar ErrApiFailedDashboardCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch card dashboard\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDashboardCard returns a 500 Internal Server Error when fetching the card dashboard fails.\n\n```go\nvar ErrApiFailedDashboardCardByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch dashboard by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDashboardCardByCardNumber returns a 500 Internal Server Error when fetching the dashboard by card number fails.\n\n```go\nvar ErrApiFailedDeleteAllCardPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete all cards\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDeleteAllCardPermanent represents error when failing to permanently delete all trashed cards.\n\n```go\nvar ErrApiFailedDeleteCardPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDeleteCardPermanent represents error when failing to permanently delete a card.\n\n```go\nvar ErrApiFailedFindAllCards = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch all cards\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindAllCards returns a 500 Internal Server Error when fetching all cards fails.\n\n```go\nvar ErrApiFailedFindByActiveCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch active cards\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByActiveCard represents error when failing to fetch active cards.\n\n```go\nvar ErrApiFailedFindByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch card by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByCardNumber represents error when failing to fetch card by card number.\n\n```go\nvar ErrApiFailedFindByIdCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch card by ID\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByIdCard returns a 500 Internal Server Error when fetching a card by ID fails.\n\n```go\nvar ErrApiFailedFindByTrashedCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch trashed cards\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByTrashedCard represents error when failing to fetch trashed cards.\n\n```go\nvar ErrApiFailedFindByUserIdCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch card by user ID\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByUserIdCard represents error when failing to fetch cards by user ID.\n\n```go\nvar ErrApiFailedFindMonthlyBalance = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly balance\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyBalance returns an API error response when fetching the monthly balance fails.\n\n```go\nvar ErrApiFailedFindMonthlyBalanceByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly balance by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyBalanceByCard returns an API error response when fetching the monthly balance by card fails.\n\n```go\nvar ErrApiFailedFindMonthlyTopupAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly topup amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTopupAmount returns an API error response when fetching the monthly top-up amount fails.\n\n```go\nvar ErrApiFailedFindMonthlyTopupAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly topup amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTopupAmountByCard returns an API error response when fetching the monthly top-up amount by card fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransactionAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transaction amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransactionAmount returns an API error response when fetching the monthly transaction amount fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransactionAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transaction amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransactionAmountByCard returns an API error response when fetching the monthly transaction amount by card fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferReceiverAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transfer receiver amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferReceiverAmount returns an API error response when fetching the monthly transfer receiver amount fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferReceiverAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transfer receiver amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferReceiverAmountByCard represents error when failing to fetch monthly transfer amount by receiver card.\n\n```go\nvar ErrApiFailedFindMonthlyTransferSenderAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transfer sender amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferSenderAmount returns an API error response when fetching the monthly transfer sender amount fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferSenderAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transfer sender amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferSenderAmountByCard represents error when failing to fetch monthly transfer amount by sender card.\n\n```go\nvar ErrApiFailedFindMonthlyWithdrawAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly withdraw amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdrawAmount returns an API error response when fetching the monthly withdrawal amount fails.\n\n```go\nvar ErrApiFailedFindMonthlyWithdrawAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly withdraw amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdrawAmountByCard returns an API error response when fetching the monthly withdrawal amount by card fails.\n\n```go\nvar ErrApiFailedFindYearlyBalance = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly balance\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyBalance returns an API error response when fetching the yearly balance fails.\n\n```go\nvar ErrApiFailedFindYearlyBalanceByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly balance by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyBalanceByCard returns an API error response when fetching the yearly balance by card fails.\n\n```go\nvar ErrApiFailedFindYearlyTopupAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly topup amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTopupAmount returns an API error response when fetching the yearly top-up amount fails.\n\n```go\nvar ErrApiFailedFindYearlyTopupAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly topup amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTopupAmountByCard returns an API error response when fetching the yearly top-up amount by card fails.\n\n```go\nvar ErrApiFailedFindYearlyTransactionAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transaction amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransactionAmount returns an API error response when fetching the yearly transaction amount fails.\n\n```go\nvar ErrApiFailedFindYearlyTransactionAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transaction amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransactionAmountByCard returns an API error response when fetching the yearly transaction amount by card fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferReceiverAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transfer receiver amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferReceiverAmount returns an API error response when fetching the yearly transfer receiver amount fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferReceiverAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transfer receiver amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferReceiverAmountByCard represents error when failing to fetch yearly transfer amount by receiver card.\n\n```go\nvar ErrApiFailedFindYearlyTransferSenderAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transfer sender amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferSenderAmount returns an API error response when fetching the yearly transfer sender amount fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferSenderAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transfer sender amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferSenderAmountByCard represents error when failing to fetch yearly transfer amount by sender card.\n\n```go\nvar ErrApiFailedFindYearlyWithdrawAmount = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly withdraw amount\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdrawAmount returns an API error response when fetching the yearly withdrawal amount fails.\n\n```go\nvar ErrApiFailedFindYearlyWithdrawAmountByCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly withdraw amount by card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdrawAmountByCard returns an API error response when fetching the yearly withdrawal amount by card fails.\n\n```go\nvar ErrApiFailedRestoreAllCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore all cards\", http.StatusInternalServerError)\n}\n```\nErrApiFailedRestoreAllCard represents error when failing to restore all trashed cards.\n\n```go\nvar ErrApiFailedRestoreCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedRestoreCard represents error when failing to restore a trashed card.\n\n```go\nvar ErrApiFailedTrashCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to trash card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedTrashCard represents error when failing to move a card to trash.\n\n```go\nvar ErrApiFailedUpdateCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to update card\", http.StatusInternalServerError)\n}\n```\nErrApiFailedUpdateCard represents error when failing to update a card.\n\n```go\nvar ErrApiInvalidCardID = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid card ID\", http.StatusBadRequest)\n}\n```\nErrApiInvalidCardID returns a 400 Bad Request error when the card ID is invalid.\n\n```go\nvar ErrApiInvalidCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid card number\", http.StatusBadRequest)\n}\n```\nErrApiInvalidCardNumber returns a 400 Bad Request error when the card number is invalid.\n\n```go\nvar ErrApiInvalidMonth = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid month value\", http.StatusBadRequest)\n}\n```\nErrApiInvalidMonth returns a 400 Bad Request error when the month value is invalid.\n\n```go\nvar ErrApiInvalidUserID = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid user ID\", http.StatusBadRequest)\n}\n```\nErrApiInvalidUserID returns a 400 Bad Request error when the user ID is invalid.\n\n```go\nvar ErrApiInvalidYear = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid year value\", http.StatusBadRequest)\n}\n```\nErrApiInvalidYear returns a 400 Bad Request error when the year value is invalid.\n\n```go\nvar ErrApiValidateCreateCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid create Card request\", http.StatusBadRequest)\n}\n```\nErrApiValidateCreateCard represents validation error for create card request.\n\n```go\nvar ErrApiValidateUpdateCard = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid update Card request\", http.StatusBadRequest)\n}\n```\nErrApiValidateUpdateCard represents validation error for update card request.\n\n","path":"github.com/MamangRust/monolith-payment-gateway-shared/errors/card_errors/api","name":"cardapierrors","synopsis":"","isRedistributable":true}
