{"modulePath":"github.com/MamangRust/monolith-payment-gateway-shared","version":"v1.0.15","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package merchantdocumentapierrors\n\n## Variables\n\n```go\nvar ErrApiBindCreateMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid create merchant document request\", http.StatusBadRequest)\n}\n```\nErrApiBindCreateMerchantDocument is returned when binding the create request payload fails.\n\n```go\nvar ErrApiBindUpdateMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid update merchant document request\", http.StatusBadRequest)\n}\n```\nErrApiBindUpdateMerchantDocument is returned when binding the update request payload fails.\n\n```go\nvar ErrApiBindUpdateMerchantDocumentStatus = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid update merchant document status request\", http.StatusBadRequest)\n}\n```\nErrApiBindUpdateMerchantDocumentStatus is returned when binding the update status request payload fails.\n\n```go\nvar ErrApiFailedCreateMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to create merchant document\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedDeleteAllMerchantDocumentsPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete all merchant documents\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedDeleteMerchantDocumentPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete merchant document\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedFindAllActiveMerchantDocuments = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch all active merchant documents\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedFindAllMerchantDocuments = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch all merchant documents\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedFindAllTrashedMerchantDocuments = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch all trashed merchant documents\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedFindByIdMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch merchant document by ID\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedRestoreAllMerchantDocuments = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore all merchant documents\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedRestoreMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore merchant document\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedTrashMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to trash merchant document\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedUpdateMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to update merchant document\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiFailedUpdateMerchantDocumentStatus = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to update merchant document status\", http.StatusInternalServerError)\n}\n```\n\n```go\nvar ErrApiInvalidMerchantDocumentID = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid merchant document ID\", http.StatusBadRequest)\n}\n```\n\n```go\nvar ErrApiValidateCreateMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid create merchant document request\", http.StatusBadRequest)\n}\n```\n\n```go\nvar ErrApiValidateUpdateMerchantDocument = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid update merchant document request\", http.StatusBadRequest)\n}\n```\n\n```go\nvar ErrApiValidateUpdateMerchantDocumentStatus = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid update merchant document status request\", http.StatusBadRequest)\n}\n```\n\n","path":"github.com/MamangRust/monolith-payment-gateway-shared/errors/merchant_document_errors/api","name":"merchantdocumentapierrors","synopsis":"","isRedistributable":true}
