Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
var ErrApiFailedCreateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to create merchant document", http.StatusInternalServerError) }
var ErrApiFailedDeleteAllMerchantDocumentsPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all merchant documents", http.StatusInternalServerError) }
var ErrApiFailedDeleteMerchantDocumentPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete merchant document", http.StatusInternalServerError) }
var ErrApiFailedFindAllActiveMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all active merchant documents", http.StatusInternalServerError) }
var ErrApiFailedFindAllMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchant documents", http.StatusInternalServerError) }
var ErrApiFailedFindAllTrashedMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all trashed merchant documents", http.StatusInternalServerError) }
var ErrApiFailedFindByIdMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant document by ID", http.StatusInternalServerError) }
var ErrApiFailedRestoreAllMerchantDocuments = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore all merchant documents", http.StatusInternalServerError) }
var ErrApiFailedRestoreMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore merchant document", http.StatusInternalServerError) }
var ErrApiFailedTrashMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to trash merchant document", http.StatusInternalServerError) }
var ErrApiFailedUpdateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update merchant document", http.StatusInternalServerError) }
var ErrApiFailedUpdateMerchantDocumentStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update merchant document status", http.StatusInternalServerError) }
var ErrApiInvalidMerchantDocumentID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid merchant document ID", http.StatusBadRequest) }
var ErrApiValidateCreateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid create merchant document request", http.StatusBadRequest) }
var ErrApiValidateUpdateMerchantDocument = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant document request", http.StatusBadRequest) }
var ErrApiValidateUpdateMerchantDocumentStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant document status request", http.StatusBadRequest) }
var ErrCreateMerchantDocumentFailed = errors.New("failed to create merchant document")
ErrCreateMerchantDocumentFailed is returned when failing to create a new merchant document.
var ErrDeleteAllMerchantDocumentsPermanentFailed = errors.New("failed to permanently delete all merchant documents")
ErrDeleteAllMerchantDocumentsPermanentFailed is returned when failing to permanently delete all merchant documents.
var ErrDeleteMerchantDocumentPermanentFailed = errors.New("failed to permanently delete merchant document")
ErrDeleteMerchantDocumentPermanentFailed is returned when failing to permanently delete a merchant document.
var ErrFailedCreateMerchantDocument = response.NewErrorResponse("Failed to create Merchant Document", http.StatusInternalServerError)
ErrFailedCreateMerchantDocument is returned when failing to create a new merchant document.
var ErrFailedDeleteAllMerchantDocuments = response.NewErrorResponse("Failed to delete all Merchant Documents permanently", http.StatusInternalServerError)
ErrFailedDeleteAllMerchantDocuments is returned when failing to permanently delete all merchant documents.
var ErrFailedDeleteMerchantDocument = response.NewErrorResponse("Failed to delete Merchant Document permanently", http.StatusInternalServerError)
ErrFailedDeleteMerchantDocument is returned when failing to permanently delete a merchant document.
var ErrFailedFindActiveMerchantDocuments = response.NewErrorResponse("Failed to fetch active Merchant Documents", http.StatusInternalServerError)
ErrFailedFindActiveMerchantDocuments is returned when failing to fetch active merchant documents.
var ErrFailedFindAllMerchantDocuments = response.NewErrorResponse("Failed to fetch Merchant Documents", http.StatusInternalServerError)
ErrFailedFindAllMerchantDocuments is returned when failing to fetch all merchant documents.
var ErrFailedFindMerchantDocumentById = response.NewErrorResponse("Failed to find Merchant Document by ID", http.StatusInternalServerError)
ErrFailedFindMerchantDocumentById is returned when failing to find a merchant document by ID.
var ErrFailedFindTrashedMerchantDocuments = response.NewErrorResponse("Failed to fetch trashed Merchant Documents", http.StatusInternalServerError)
ErrFailedFindTrashedMerchantDocuments is returned when failing to fetch trashed merchant documents.
var ErrFailedRestoreAllMerchantDocuments = response.NewErrorResponse("Failed to restore all Merchant Documents", http.StatusInternalServerError)
ErrFailedRestoreAllMerchantDocuments is returned when failing to restore all trashed merchant documents.
var ErrFailedRestoreMerchantDocument = response.NewErrorResponse("Failed to restore Merchant Document", http.StatusInternalServerError)
ErrFailedRestoreMerchantDocument is returned when failing to restore a trashed merchant document.
var ErrFailedTrashMerchantDocument = response.NewErrorResponse("Failed to trash Merchant Document", http.StatusInternalServerError)
ErrFailedTrashMerchantDocument is returned when failing to move a merchant document to trash.
var ErrFailedUpdateMerchantDocument = response.NewErrorResponse("Failed to update Merchant Document", http.StatusInternalServerError)
ErrFailedUpdateMerchantDocument is returned when failing to update an existing merchant document.
var ErrFindActiveMerchantDocumentsFailed = errors.New("failed to find active merchant documents")
ErrFindActiveMerchantDocumentsFailed is returned when failing to retrieve active merchant documents.
var ErrFindAllMerchantDocumentsFailed = errors.New("failed to find all merchant documents")
ErrFindAllMerchantDocumentsFailed is returned when failing to retrieve all merchant documents.
var ErrFindMerchantDocumentByIdFailed = errors.New("failed to find merchant document by ID")
ErrFindMerchantDocumentByIdFailed is returned when failing to retrieve a merchant document by ID.
var ErrFindTrashedMerchantDocumentsFailed = errors.New("failed to find trashed merchant documents")
ErrFindTrashedMerchantDocumentsFailed is returned when failing to retrieve trashed merchant documents.
var ErrMerchantDocumentNotFoundRes = response.NewErrorResponse("Merchant Document not found", http.StatusNotFound)
ErrMerchantDocumentNotFoundRes is returned when the requested merchant document cannot be found.
var ErrRestoreAllMerchantDocumentsFailed = errors.New("failed to restore all merchant documents")
ErrRestoreAllMerchantDocumentsFailed is returned when failing to restore all trashed merchant documents.
var ErrRestoreMerchantDocumentFailed = errors.New("failed to restore merchant document")
ErrRestoreMerchantDocumentFailed is returned when failing to restore a trashed merchant document.
var ErrTrashedMerchantDocumentFailed = errors.New("failed to soft-delete (trash) merchant document")
ErrTrashedMerchantDocumentFailed is returned when failing to move a merchant document to trash.
var ErrUpdateMerchantDocumentFailed = errors.New("failed to update merchant document")
ErrUpdateMerchantDocumentFailed is returned when failing to update an existing merchant document.
var ErrUpdateMerchantDocumentStatusFailed = errors.New("failed to update merchant document status")
ErrUpdateMerchantDocumentStatusFailed is returned when failing to update the status of a merchant document.
Functions ¶
This section is empty.
Types ¶
This section is empty.