merchantapierrors

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrApiBindCreateMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create merchant request", http.StatusBadRequest)
}
View Source
var ErrApiBindUpdateMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid update merchant request", http.StatusBadRequest)
}
View Source
var ErrApiBindUpdateMerchantStatus = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid update merchant status request", http.StatusBadRequest)
}
View Source
var ErrApiFailedCreateMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to create merchant", http.StatusInternalServerError)
}
View Source
var ErrApiFailedDeleteAllMerchantPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all merchants", http.StatusInternalServerError)
}
View Source
var ErrApiFailedDeleteMerchantPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete merchant", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindAllMerchants = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchants", http.StatusInternalServerError)
}

ErrApiFailedFindAllMerchants is returned when failing to retrieve all merchants.

View Source
var ErrApiFailedFindAllMerchantsActive = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchants active", http.StatusInternalServerError)
}

ErrApiFailedFindAllMerchantsActive is returned when failing to retrieve all active merchants.

View Source
var ErrApiFailedFindAllMerchantsTrashed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchants trashed", http.StatusInternalServerError)
}

ErrApiFailedFindAllMerchantsTrashed is returned when failing to retrieve all trashed merchants.

View Source
var ErrApiFailedFindAllTransactionByApikey = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by API key", http.StatusInternalServerError)
}

ErrApiFailedFindAllTransactionByApikey is returned when failing to retrieve transactions by API key.

View Source
var ErrApiFailedFindAllTransactionByMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindAllTransactionByMerchant is returned when failing to retrieve transactions by merchant.

View Source
var ErrApiFailedFindAllTransactions = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions", http.StatusInternalServerError)
}

ErrApiFailedFindAllTransactions is returned when failing to retrieve all merchant transactions.

View Source
var ErrApiFailedFindByApiKeyMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant by api key", http.StatusInternalServerError)
}

ErrApiFailedFindByApiKeyMerchant is returned when failing to retrieve a merchant by API key.

View Source
var ErrApiFailedFindByIdMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant by ID", http.StatusInternalServerError)
}

ErrApiFailedFindByIdMerchant is returned when failing to retrieve a merchant by ID.

View Source
var ErrApiFailedFindByUserId = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant by user ID", http.StatusInternalServerError)
}

ErrApiFailedFindByUserId is returned when failing to retrieve a merchant by user ID.

View Source
var ErrApiFailedFindMonthlyAmountByApikeys = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts by API key", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyAmountByApikeys is returned when failing to fetch monthly amounts by API key.

View Source
var ErrApiFailedFindMonthlyAmountByMerchants = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyAmountByMerchants is returned when failing to fetch monthly amounts for all merchants.

View Source
var ErrApiFailedFindMonthlyAmountMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amount by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyAmountMerchant is returned when failing to retrieve monthly transaction amount for a merchant.

View Source
var ErrApiFailedFindMonthlyPaymentMethodByApikeys = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by API key", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyPaymentMethodByApikeys is returned when failing to fetch monthly payment methods by API key.

View Source
var ErrApiFailedFindMonthlyPaymentMethodByMerchants = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyPaymentMethodByMerchants is returned when failing to fetch monthly payment methods for all merchants.

View Source
var ErrApiFailedFindMonthlyPaymentMethodsMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyPaymentMethodsMerchant is returned when failing to retrieve monthly payment methods for a merchant.

View Source
var ErrApiFailedFindMonthlyTotalAmountMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly total amount by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTotalAmountMerchant is returned when failing to retrieve total monthly transaction amount for a merchant.

View Source
var ErrApiFailedFindYearlyAmountByApikeys = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts by API key", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindYearlyAmountByMerchants = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyAmountByMerchants is returned when failing to fetch yearly amounts for all merchants.

View Source
var ErrApiFailedFindYearlyAmountMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amount by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyAmountMerchant is returned when failing to retrieve yearly transaction amount for a merchant.

View Source
var ErrApiFailedFindYearlyPaymentMethodByApikeys = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by API key", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyPaymentMethodByApikeys is returned when failing to fetch yearly payment methods by API key.

View Source
var ErrApiFailedFindYearlyPaymentMethodByMerchants = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyPaymentMethodByMerchants is returned when failing to fetch yearly payment methods for all merchants.

View Source
var ErrApiFailedFindYearlyPaymentMethodMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyPaymentMethodMerchant is returned when failing to retrieve yearly payment methods for a merchant.

View Source
var ErrApiFailedFindYearlyTotalAmountMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly total amount by merchant", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTotalAmountMerchant is returned when failing to retrieve total yearly transaction amount for a merchant.

View Source
var ErrApiFailedRestoreAllMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore all merchants", http.StatusInternalServerError)
}
View Source
var ErrApiFailedRestoreMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore merchant", http.StatusInternalServerError)
}
View Source
var ErrApiFailedTrashMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to trash merchant", http.StatusInternalServerError)
}
View Source
var ErrApiFailedUpdateMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update merchant", http.StatusInternalServerError)
}
View Source
var ErrApiFailedUpdateMerchantStatus = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update merchant status", http.StatusInternalServerError)
}
View Source
var ErrApiInvalidApiKey = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid API key", http.StatusUnauthorized)
}

ErrApiInvalidApiKey is returned when the API key provided is invalid or unauthorized.

View Source
var ErrApiInvalidCardID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid card ID", http.StatusBadRequest)
}

ErrApiInvalidCardID is returned when the card ID provided is invalid.

View Source
var ErrApiInvalidMerchantID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid merchant ID", http.StatusBadRequest)
}

ErrApiInvalidMerchantID is returned when the merchant ID provided is invalid.

View Source
var ErrApiInvalidMonth = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid month value", http.StatusBadRequest)
}

ErrApiInvalidMonth is returned when the month parameter is invalid or malformed.

View Source
var ErrApiInvalidUserID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid user ID", http.StatusBadRequest)
}

ErrApiInvalidUserID is returned when the user ID provided is invalid.

View Source
var ErrApiInvalidYear = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid year value", http.StatusBadRequest)
}

ErrApiInvalidYear is returned when the year parameter is invalid or malformed.

View Source
var ErrApiValidateCreateMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid create merchant request", http.StatusBadRequest)
}
View Source
var ErrApiValidateUpdateMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant request", http.StatusBadRequest)
}
View Source
var ErrApiValidateUpdateMerchantStatus = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant status request", http.StatusBadRequest)
}

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