{"modulePath":"github.com/MamangRust/monolith-payment-gateway-shared","version":"v1.0.15","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package withdrawapierrors\n\n## Variables\n\n```go\nvar ErrApiBindCreateWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid create withdraw request\", http.StatusBadRequest)\n}\n```\nErrApiBindCreateWithdraw is an error response for bind failed: invalid create withdraw request.\n\n```go\nvar ErrApiBindUpdateWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid update withdraw request\", http.StatusBadRequest)\n}\n```\nErrApiBindUpdateWithdraw is an error response for bind failed: invalid update withdraw request.\n\n```go\nvar ErrApiFailedCreateWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to create withdraw\", http.StatusInternalServerError)\n}\n```\nErrApiFailedCreateWithdraw is an error response for failed to create withdraw.\n\n```go\nvar ErrApiFailedDeleteAllWithdrawPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete all withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDeleteAllWithdrawPermanent is an error response for failed to permanently delete all withdraws.\n\n```go\nvar ErrApiFailedDeleteWithdrawPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete withdraw\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDeleteWithdrawPermanent is an error response for failed to permanently delete withdraw.\n\n```go\nvar ErrApiFailedFindAllWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch all withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindAllWithdraw is an error response for failed to fetch all withdraws.\n\n```go\nvar ErrApiFailedFindAllWithdrawByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch withdraws by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindAllWithdrawByCardNumber is an error response for failed to fetch withdraws by card number.\n\n```go\nvar ErrApiFailedFindByActiveWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch active withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByActiveWithdraw is an error response for failed to fetch active withdraws.\n\n```go\nvar ErrApiFailedFindByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch withdraws using card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByCardNumber is an error response for failed to fetch withdraws using card number.\n\n```go\nvar ErrApiFailedFindByIdWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch withdraw by ID\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByIdWithdraw is an error response for failed to fetch withdraw by ID.\n\n```go\nvar ErrApiFailedFindByTrashedWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch trashed withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByTrashedWithdraw is an error response for failed to fetch trashed withdraws.\n\n```go\nvar ErrApiFailedFindMonthlyWithdrawStatusFailed = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly failed withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdrawStatusFailed is an error response for failed to fetch monthly failed withdraws.\n\n```go\nvar ErrApiFailedFindMonthlyWithdrawStatusFailedCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly failed withdraws by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdrawStatusFailedCardNumber is an error response for failed to fetch monthly failed withdraws by card number.\n\n```go\nvar ErrApiFailedFindMonthlyWithdrawStatusSuccess = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly successful withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdrawStatusSuccess is an error response for failed to fetch monthly successful withdraws.\n\n```go\nvar ErrApiFailedFindMonthlyWithdrawStatusSuccessCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly successful withdraws by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdrawStatusSuccessCardNumber is an error response for failed to fetch monthly successful withdraws by card number.\n\n```go\nvar ErrApiFailedFindMonthlyWithdraws = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly withdraw amounts\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdraws is an error response for failed to fetch monthly withdraw amounts.\n\n```go\nvar ErrApiFailedFindMonthlyWithdrawsByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly withdraw amounts by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyWithdrawsByCardNumber is an error response for failed to fetch monthly withdraw amounts by card number.\n\n```go\nvar ErrApiFailedFindYearlyWithdrawStatusFailed = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly failed withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdrawStatusFailed is an error response for failed to fetch yearly failed withdraws.\n\n```go\nvar ErrApiFailedFindYearlyWithdrawStatusFailedCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly failed withdraws by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdrawStatusFailedCardNumber is an error response for failed to fetch yearly failed withdraws by card number.\n\n```go\nvar ErrApiFailedFindYearlyWithdrawStatusSuccess = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly successful withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdrawStatusSuccess is an error response for failed to fetch yearly successful withdraws.\n\n```go\nvar ErrApiFailedFindYearlyWithdrawStatusSuccessCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly successful withdraws by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdrawStatusSuccessCardNumber is an error response for failed to fetch yearly successful withdraws by card number.\n\n```go\nvar ErrApiFailedFindYearlyWithdraws = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly withdraw amounts\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdraws is an error response for failed to fetch yearly withdraw amounts.\n\n```go\nvar ErrApiFailedFindYearlyWithdrawsByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly withdraw amounts by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyWithdrawsByCardNumber is an error response for failed to fetch yearly withdraw amounts by card number.\n\n```go\nvar ErrApiFailedRestoreAllWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore all withdraws\", http.StatusInternalServerError)\n}\n```\nErrApiFailedRestoreAllWithdraw is an error response for failed to restore all withdraws.\n\n```go\nvar ErrApiFailedRestoreWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore withdraw\", http.StatusInternalServerError)\n}\n```\nErrApiFailedRestoreWithdraw is an error response for failed to restore withdraw.\n\n```go\nvar ErrApiFailedTrashedWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to move withdraw to trash\", http.StatusInternalServerError)\n}\n```\nErrApiFailedTrashedWithdraw is an error response for failed to move withdraw to trash.\n\n```go\nvar ErrApiFailedUpdateWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to update withdraw\", http.StatusInternalServerError)\n}\n```\nErrApiFailedUpdateWithdraw is an error response for failed to update withdraw.\n\n```go\nvar ErrApiInvalidCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid card number\", http.StatusBadRequest)\n}\n```\nErrApiInvalidCardNumber is an error response for invalid card number.\n\n```go\nvar ErrApiInvalidMonth = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid month\", http.StatusBadRequest)\n}\n```\nErrApiInvalidMonth is an error response for invalid month.\n\n```go\nvar ErrApiInvalidYear = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"year\", \"Invalid year\", http.StatusBadRequest)\n}\n```\nErrApiInvalidYear is an error response for invalid year.\n\n```go\nvar ErrApiValidateCreateWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid create withdraw request\", http.StatusBadRequest)\n}\n```\nErrApiValidateCreateWithdraw is an error response for validation failed: invalid create withdraw request.\n\n```go\nvar ErrApiValidateUpdateWithdraw = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid update withdraw request\", http.StatusBadRequest)\n}\n```\nErrApiValidateUpdateWithdraw is an error response for validation failed: invalid update withdraw request.\n\n```go\nvar ErrApiWithdrawInvalidID = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid Withdraw ID\", http.StatusBadRequest)\n}\n```\nErrApiWithdrawInvalidID is an error response for invalid withdraw ID.\n\n```go\nvar ErrApiWithdrawInvalidUserID = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid Withdraw Merchant ID\", http.StatusBadRequest)\n}\n```\nErrApiWithdrawInvalidUserID is an error response for invalid withdraw merchant ID.\n\n```go\nvar ErrApiWithdrawNotFound = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Withdraw not found\", http.StatusNotFound)\n}\n```\nErrApiWithdrawNotFound is an error response for withdraw not found.\n\n","path":"github.com/MamangRust/monolith-payment-gateway-shared/errors/withdraw_errors/api","name":"withdrawapierrors","synopsis":"","isRedistributable":true}
