Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrApiBindCreateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid create merchant document request", http.StatusBadRequest) }
ErrApiBindCreateMerchantDocument is returned when binding the create request payload fails.
View Source
var ErrApiBindUpdateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update merchant document request", http.StatusBadRequest) }
ErrApiBindUpdateMerchantDocument is returned when binding the update request payload fails.
View Source
var ErrApiBindUpdateMerchantDocumentStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update merchant document status request", http.StatusBadRequest) }
ErrApiBindUpdateMerchantDocumentStatus is returned when binding the update status request payload fails.
View Source
var ErrApiDocumentFileRequired = func(c echo.Context) error { return response.NewApiErrorResponse(c, "validation_error", "Document file is required", http.StatusBadRequest) }
View Source
var ErrApiDocumentTypeRequired = func(c echo.Context) error { return response.NewApiErrorResponse(c, "validation_error", "Document type is required", http.StatusBadRequest) }
View Source
var ErrApiFailedCreateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to create merchant document", http.StatusInternalServerError) }
View Source
var ErrApiFailedDeleteAllMerchantDocumentsPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all merchant documents", http.StatusInternalServerError) }
View Source
var ErrApiFailedDeleteMerchantDocumentPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete merchant document", http.StatusInternalServerError) }
View Source
var ErrApiFailedFindAllActiveMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all active merchant documents", http.StatusInternalServerError) }
View Source
var ErrApiFailedFindAllMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchant documents", http.StatusInternalServerError) }
View Source
var ErrApiFailedFindAllTrashedMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all trashed merchant documents", http.StatusInternalServerError) }
View Source
var ErrApiFailedFindByIdMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant document by ID", http.StatusInternalServerError) }
View Source
var ErrApiFailedRestoreAllMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore all merchant documents", http.StatusInternalServerError) }
View Source
var ErrApiFailedRestoreMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore merchant document", http.StatusInternalServerError) }
View Source
var ErrApiFailedTrashMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to trash merchant document", http.StatusInternalServerError) }
View Source
var ErrApiFailedUpdateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update merchant document", http.StatusInternalServerError) }
View Source
var ErrApiFailedUpdateMerchantDocumentStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update merchant document status", http.StatusInternalServerError) }
View Source
var ErrApiInvalidMerchantDocumentID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid merchant document ID", http.StatusBadRequest) }
View Source
var ErrApiInvalidMerchantId = func(c echo.Context) error { return response.NewApiErrorResponse(c, "validation_error", "Invalid merchant ID", http.StatusBadRequest) }
View Source
var ErrApiNoteRequired = func(c echo.Context) error { return response.NewApiErrorResponse(c, "validation_error", "Note is required", http.StatusBadRequest) }
View Source
var ErrApiStatusRequired = func(c echo.Context) error { return response.NewApiErrorResponse(c, "validation_error", "Status is required", http.StatusBadRequest) }
View Source
var ErrApiValidateCreateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid create merchant document request", http.StatusBadRequest) }
View Source
var ErrApiValidateUpdateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant document request", http.StatusBadRequest) }
View Source
var ErrApiValidateUpdateMerchantDocumentStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant document status request", http.StatusBadRequest) }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.