merchantdocument_errors

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

📦 Package merchantdocument_errors

Source Path: shared/errors/merchant_document_errors

🏷️ Variables

Var:

ErrApiBindCreateMerchantDocument is returned when binding the create request payload fails.

var ErrApiBindCreateMerchantDocument = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create merchant document request", http.StatusBadRequest)
}

Var:

ErrApiBindUpdateMerchantDocument is returned when binding the update request payload fails.

var ErrApiBindUpdateMerchantDocument = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid update merchant document request", http.StatusBadRequest)
}

Var:

ErrApiBindUpdateMerchantDocumentStatus is returned when binding the update status 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)
}
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 is returned when failing to create a new merchant document.

var ErrCreateMerchantDocumentFailed = errors.New("failed to create merchant document")

Var:

ErrDeleteAllMerchantDocumentsPermanentFailed is returned when failing to permanently delete all merchant documents.

var ErrDeleteAllMerchantDocumentsPermanentFailed = errors.New("failed to permanently delete all merchant documents")

Var:

ErrDeleteMerchantDocumentPermanentFailed is returned when failing to permanently delete a merchant document.

var ErrDeleteMerchantDocumentPermanentFailed = errors.New("failed to permanently delete merchant document")

Var:

ErrFailedCreateMerchantDocument is returned when failing to create a new merchant document.

var ErrFailedCreateMerchantDocument = response.NewErrorResponse("Failed to create Merchant Document", http.StatusInternalServerError)

Var:

ErrFailedDeleteAllMerchantDocuments is returned when failing to permanently delete all merchant documents.

var ErrFailedDeleteAllMerchantDocuments = response.NewErrorResponse("Failed to delete all Merchant Documents permanently", http.StatusInternalServerError)

Var:

ErrFailedDeleteMerchantDocument is returned when failing to permanently delete a merchant document.

var ErrFailedDeleteMerchantDocument = response.NewErrorResponse("Failed to delete Merchant Document permanently", http.StatusInternalServerError)

Var:

ErrFailedFindActiveMerchantDocuments is returned when failing to fetch active merchant documents.

var ErrFailedFindActiveMerchantDocuments = response.NewErrorResponse("Failed to fetch active Merchant Documents", http.StatusInternalServerError)

Var:

ErrFailedFindAllMerchantDocuments is returned when failing to fetch all merchant documents.

var ErrFailedFindAllMerchantDocuments = response.NewErrorResponse("Failed to fetch Merchant Documents", http.StatusInternalServerError)

Var:

ErrFailedFindMerchantDocumentById is returned when failing to find a merchant document by ID.

var ErrFailedFindMerchantDocumentById = response.NewErrorResponse("Failed to find Merchant Document by ID", http.StatusInternalServerError)

Var:

ErrFailedFindTrashedMerchantDocuments is returned when failing to fetch trashed merchant documents.

var ErrFailedFindTrashedMerchantDocuments = response.NewErrorResponse("Failed to fetch trashed Merchant Documents", http.StatusInternalServerError)

Var:

ErrFailedRestoreAllMerchantDocuments is returned when failing to restore all trashed merchant documents.

var ErrFailedRestoreAllMerchantDocuments = response.NewErrorResponse("Failed to restore all Merchant Documents", http.StatusInternalServerError)

Var:

ErrFailedRestoreMerchantDocument is returned when failing to restore a trashed merchant document.

var ErrFailedRestoreMerchantDocument = response.NewErrorResponse("Failed to restore Merchant Document", http.StatusInternalServerError)

Var:

ErrFailedTrashMerchantDocument is returned when failing to move a merchant document to trash.

var ErrFailedTrashMerchantDocument = response.NewErrorResponse("Failed to trash Merchant Document", http.StatusInternalServerError)

Var:

ErrFailedUpdateMerchantDocument is returned when failing to update an existing merchant document.

var ErrFailedUpdateMerchantDocument = response.NewErrorResponse("Failed to update Merchant Document", http.StatusInternalServerError)

Var:

ErrFindActiveMerchantDocumentsFailed is returned when failing to retrieve active merchant documents.

var ErrFindActiveMerchantDocumentsFailed = errors.New("failed to find active merchant documents")

Var:

ErrFindAllMerchantDocumentsFailed is returned when failing to retrieve all merchant documents.

var ErrFindAllMerchantDocumentsFailed = errors.New("failed to find all merchant documents")

Var:

ErrFindMerchantDocumentByIdFailed is returned when failing to retrieve a merchant document by ID.

var ErrFindMerchantDocumentByIdFailed = errors.New("failed to find merchant document by ID")

Var:

ErrFindTrashedMerchantDocumentsFailed is returned when failing to retrieve trashed merchant documents.

var ErrFindTrashedMerchantDocumentsFailed = errors.New("failed to find trashed merchant documents")

Var:

ErrMerchantDocumentNotFoundRes is returned when the requested merchant document cannot be found.

var ErrMerchantDocumentNotFoundRes = response.NewErrorResponse("Merchant Document not found", http.StatusNotFound)

Var:

ErrRestoreAllMerchantDocumentsFailed is returned when failing to restore all trashed merchant documents.

var ErrRestoreAllMerchantDocumentsFailed = errors.New("failed to restore all merchant documents")

Var:

ErrRestoreMerchantDocumentFailed is returned when failing to restore a trashed merchant document.

var ErrRestoreMerchantDocumentFailed = errors.New("failed to restore merchant document")

Var:

ErrTrashedMerchantDocumentFailed is returned when failing to move a merchant document to trash.

var ErrTrashedMerchantDocumentFailed = errors.New("failed to soft-delete (trash) merchant document")

Var:

ErrUpdateMerchantDocumentFailed is returned when failing to update an existing merchant document.

var ErrUpdateMerchantDocumentFailed = errors.New("failed to update merchant document")

Var:

ErrUpdateMerchantDocumentStatusFailed is returned when failing to update the status of a merchant document.

var ErrUpdateMerchantDocumentStatusFailed = errors.New("failed to update merchant document status")

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 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 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)
}
View Source
var ErrCreateMerchantDocumentFailed = errors.New("failed to create merchant document")

ErrCreateMerchantDocumentFailed is returned when failing to create a new merchant document.

View Source
var ErrDeleteAllMerchantDocumentsPermanentFailed = errors.New("failed to permanently delete all merchant documents")

ErrDeleteAllMerchantDocumentsPermanentFailed is returned when failing to permanently delete all merchant documents.

View Source
var ErrDeleteMerchantDocumentPermanentFailed = errors.New("failed to permanently delete merchant document")

ErrDeleteMerchantDocumentPermanentFailed is returned when failing to permanently delete a merchant document.

View Source
var ErrFailedCreateMerchantDocument = response.NewErrorResponse("Failed to create Merchant Document", http.StatusInternalServerError)

ErrFailedCreateMerchantDocument is returned when failing to create a new merchant document.

View Source
var ErrFailedDeleteAllMerchantDocuments = response.NewErrorResponse("Failed to delete all Merchant Documents permanently", http.StatusInternalServerError)

ErrFailedDeleteAllMerchantDocuments is returned when failing to permanently delete all merchant documents.

View Source
var ErrFailedDeleteMerchantDocument = response.NewErrorResponse("Failed to delete Merchant Document permanently", http.StatusInternalServerError)

ErrFailedDeleteMerchantDocument is returned when failing to permanently delete a merchant document.

View Source
var ErrFailedFindActiveMerchantDocuments = response.NewErrorResponse("Failed to fetch active Merchant Documents", http.StatusInternalServerError)

ErrFailedFindActiveMerchantDocuments is returned when failing to fetch active merchant documents.

View Source
var ErrFailedFindAllMerchantDocuments = response.NewErrorResponse("Failed to fetch Merchant Documents", http.StatusInternalServerError)

ErrFailedFindAllMerchantDocuments is returned when failing to fetch all merchant documents.

View Source
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.

View Source
var ErrFailedFindTrashedMerchantDocuments = response.NewErrorResponse("Failed to fetch trashed Merchant Documents", http.StatusInternalServerError)

ErrFailedFindTrashedMerchantDocuments is returned when failing to fetch trashed merchant documents.

View Source
var ErrFailedRestoreAllMerchantDocuments = response.NewErrorResponse("Failed to restore all Merchant Documents", http.StatusInternalServerError)

ErrFailedRestoreAllMerchantDocuments is returned when failing to restore all trashed merchant documents.

View Source
var ErrFailedRestoreMerchantDocument = response.NewErrorResponse("Failed to restore Merchant Document", http.StatusInternalServerError)

ErrFailedRestoreMerchantDocument is returned when failing to restore a trashed merchant document.

View Source
var ErrFailedTrashMerchantDocument = response.NewErrorResponse("Failed to trash Merchant Document", http.StatusInternalServerError)

ErrFailedTrashMerchantDocument is returned when failing to move a merchant document to trash.

View Source
var ErrFailedUpdateMerchantDocument = response.NewErrorResponse("Failed to update Merchant Document", http.StatusInternalServerError)

ErrFailedUpdateMerchantDocument is returned when failing to update an existing merchant document.

View Source
var ErrFindActiveMerchantDocumentsFailed = errors.New("failed to find active merchant documents")

ErrFindActiveMerchantDocumentsFailed is returned when failing to retrieve active merchant documents.

View Source
var ErrFindAllMerchantDocumentsFailed = errors.New("failed to find all merchant documents")

ErrFindAllMerchantDocumentsFailed is returned when failing to retrieve all merchant documents.

View Source
var ErrFindMerchantDocumentByIdFailed = errors.New("failed to find merchant document by ID")

ErrFindMerchantDocumentByIdFailed is returned when failing to retrieve a merchant document by ID.

View Source
var ErrFindTrashedMerchantDocumentsFailed = errors.New("failed to find trashed merchant documents")

ErrFindTrashedMerchantDocumentsFailed is returned when failing to retrieve trashed merchant documents.

View Source
var ErrMerchantDocumentNotFoundRes = response.NewErrorResponse("Merchant Document not found", http.StatusNotFound)

ErrMerchantDocumentNotFoundRes is returned when the requested merchant document cannot be found.

View Source
var ErrRestoreAllMerchantDocumentsFailed = errors.New("failed to restore all merchant documents")

ErrRestoreAllMerchantDocumentsFailed is returned when failing to restore all trashed merchant documents.

View Source
var ErrRestoreMerchantDocumentFailed = errors.New("failed to restore merchant document")

ErrRestoreMerchantDocumentFailed is returned when failing to restore a trashed merchant document.

View Source
var ErrTrashedMerchantDocumentFailed = errors.New("failed to soft-delete (trash) merchant document")

ErrTrashedMerchantDocumentFailed is returned when failing to move a merchant document to trash.

View Source
var ErrUpdateMerchantDocumentFailed = errors.New("failed to update merchant document")

ErrUpdateMerchantDocumentFailed is returned when failing to update an existing merchant document.

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL