merchant_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 merchant_errors

Source Path: shared/errors/merchant_errors

🏷️ Variables

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

Var:

ErrApiFailedFindAllMerchants is returned when failing to retrieve all merchants.

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

Var:

ErrApiFailedFindAllMerchantsActive is returned when failing to retrieve all active merchants.

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

Var:

ErrApiFailedFindAllMerchantsTrashed is returned when failing to retrieve all trashed merchants.

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

Var:

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

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

Var:

ErrApiFailedFindAllTransactionByMerchant is returned when failing to retrieve transactions by merchant.

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

Var:

ErrApiFailedFindAllTransactions is returned when failing to retrieve all merchant transactions.

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

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

Var:

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

var ErrApiFailedFindYearlyTotalAmountMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly total amount by merchant", http.StatusInternalServerError)
}
var ErrApiFailedRestoreAllMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore all merchants", http.StatusInternalServerError)
}
var ErrApiFailedRestoreMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore merchant", http.StatusInternalServerError)
}
var ErrApiFailedTrashMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to trash merchant", http.StatusInternalServerError)
}
var ErrApiFailedUpdateMerchant = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update merchant", http.StatusInternalServerError)
}
var ErrApiFailedUpdateMerchantStatus = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update merchant status", http.StatusInternalServerError)
}

Var:

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

var ErrApiInvalidApiKey = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid API key", http.StatusUnauthorized)
}

Var:

ErrApiInvalidCardID is returned when the card ID provided is invalid.

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

Var:

ErrApiInvalidMerchantID is returned when the merchant ID provided is invalid.

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

Var:

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

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

Var:

ErrApiInvalidUserID is returned when the user ID provided is invalid.

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

Var:

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

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

Var:

ErrCreateMerchantFailed indicates failure when creating a merchant.

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

Var:

ErrDeleteAllMerchantPermanentFailed indicates failure when permanently deleting all merchants.

var ErrDeleteAllMerchantPermanentFailed = errors.New("failed to permanently delete all merchants")

Var:

ErrDeleteMerchantPermanentFailed indicates failure when permanently deleting a merchant.

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

Var:

ErrFailedCreateMerchant indicates failure when creating a new merchant.

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

Var:

ErrFailedDeleteAllMerchants indicates failure when permanently deleting all trashed merchants.

var ErrFailedDeleteAllMerchants = response.NewErrorResponse("Failed to delete all Merchants permanently", http.StatusInternalServerError)

Var:

ErrFailedDeleteMerchant indicates failure when permanently deleting a merchant.

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

Var:

ErrFailedFindActiveMerchants indicates failure in fetching active merchants.

var ErrFailedFindActiveMerchants = response.NewErrorResponse("Failed to fetch active Merchants", http.StatusInternalServerError)

Var:

ErrFailedFindAllMerchants indicates failure in fetching all merchants.

var ErrFailedFindAllMerchants = response.NewErrorResponse("Failed to fetch Merchants", http.StatusInternalServerError)

Var:

ErrFailedFindAllTransactions is returned when fetching all transactions fails.

var ErrFailedFindAllTransactions = response.NewErrorResponse("Failed to fetch Merchant transactions", http.StatusInternalServerError)

Var:

ErrFailedFindAllTransactionsByApikey is returned when fetching transactions by API key fails.

var ErrFailedFindAllTransactionsByApikey = response.NewErrorResponse("Failed to fetch transactions by API key", http.StatusInternalServerError)

Var:

ErrFailedFindAllTransactionsByMerchant is returned when fetching transactions by merchant fails.

var ErrFailedFindAllTransactionsByMerchant = response.NewErrorResponse("Failed to fetch transactions by Merchant", http.StatusInternalServerError)

Var:

ErrFailedFindByApiKey is returned when a merchant cannot be found by API key.

var ErrFailedFindByApiKey = response.NewErrorResponse("Failed to find Merchant by API key", http.StatusInternalServerError)

Var:

ErrFailedFindByMerchantUserId is returned when a merchant cannot be found by user ID.

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

Var:

ErrFailedFindMerchantById is returned when a merchant cannot be found by ID.

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

Var:

ErrFailedFindMonthlyAmountByApikeys indicates failure fetching monthly amounts by API key.

var ErrFailedFindMonthlyAmountByApikeys = response.NewErrorResponse("Failed to get monthly amount by API key", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyAmountByMerchants indicates failure fetching monthly amounts by merchant.

var ErrFailedFindMonthlyAmountByMerchants = response.NewErrorResponse("Failed to get monthly amount by Merchant", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyAmountMerchant indicates failure fetching monthly amounts.

var ErrFailedFindMonthlyAmountMerchant = response.NewErrorResponse("Failed to get monthly amount", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyPaymentMethodByApikeys indicates failure fetching monthly payment methods by API key.

var ErrFailedFindMonthlyPaymentMethodByApikeys = response.NewErrorResponse("Failed to get monthly payment methods by API key", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyPaymentMethodByMerchants indicates failure fetching monthly payment methods by merchant.

var ErrFailedFindMonthlyPaymentMethodByMerchants = response.NewErrorResponse("Failed to get monthly payment methods by Merchant", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyPaymentMethodsMerchant indicates failure fetching monthly payment methods.

var ErrFailedFindMonthlyPaymentMethodsMerchant = response.NewErrorResponse("Failed to get monthly payment methods", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTotalAmountByApikeys indicates failure fetching monthly total amounts by API key.

var ErrFailedFindMonthlyTotalAmountByApikeys = response.NewErrorResponse("Failed to get monthly total amount by API key", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTotalAmountByMerchants indicates failure fetching monthly total amounts by merchant.

var ErrFailedFindMonthlyTotalAmountByMerchants = response.NewErrorResponse("Failed to get monthly total amount by Merchant", http.StatusInternalServerError)

Var:

ErrFailedFindMonthlyTotalAmountMerchant indicates failure fetching monthly total amounts.

var ErrFailedFindMonthlyTotalAmountMerchant = response.NewErrorResponse("Failed to get monthly total amount", http.StatusInternalServerError)

Var:

ErrFailedFindTrashedMerchants indicates failure in fetching trashed merchants.

var ErrFailedFindTrashedMerchants = response.NewErrorResponse("Failed to fetch trashed Merchants", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyAmountByApikeys indicates failure fetching yearly amounts by API key.

var ErrFailedFindYearlyAmountByApikeys = response.NewErrorResponse("Failed to get yearly amount by API key", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyAmountByMerchants indicates failure fetching yearly amounts by merchant.

var ErrFailedFindYearlyAmountByMerchants = response.NewErrorResponse("Failed to get yearly amount by Merchant", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyAmountMerchant indicates failure fetching yearly amounts.

var ErrFailedFindYearlyAmountMerchant = response.NewErrorResponse("Failed to get yearly amount", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyPaymentMethodByApikeys indicates failure fetching yearly payment methods by API key.

var ErrFailedFindYearlyPaymentMethodByApikeys = response.NewErrorResponse("Failed to get yearly payment method by API key", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyPaymentMethodByMerchants indicates failure fetching yearly payment methods by merchant.

var ErrFailedFindYearlyPaymentMethodByMerchants = response.NewErrorResponse("Failed to get yearly payment method by Merchant", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyPaymentMethodMerchant indicates failure fetching yearly payment methods.

var ErrFailedFindYearlyPaymentMethodMerchant = response.NewErrorResponse("Failed to get yearly payment method", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTotalAmountByApikeys indicates failure fetching yearly total amounts by API key.

var ErrFailedFindYearlyTotalAmountByApikeys = response.NewErrorResponse("Failed to get yearly total amount by API key", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTotalAmountByMerchants indicates failure fetching yearly total amounts by merchant.

var ErrFailedFindYearlyTotalAmountByMerchants = response.NewErrorResponse("Failed to get yearly total amount by Merchant", http.StatusInternalServerError)

Var:

ErrFailedFindYearlyTotalAmountMerchant indicates failure fetching yearly total amounts.

var ErrFailedFindYearlyTotalAmountMerchant = response.NewErrorResponse("Failed to get yearly total amount", http.StatusInternalServerError)

Var:

ErrFailedRestoreAllMerchants indicates failure when restoring all trashed merchants.

var ErrFailedRestoreAllMerchants = response.NewErrorResponse("Failed to restore all Merchants", http.StatusInternalServerError)

Var:

ErrFailedRestoreMerchant indicates failure when restoring a trashed merchant.

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

Var:

ErrFailedSendEmail indicates a failure when sending an email related to merchant operations.

var ErrFailedSendEmail = response.NewErrorResponse("Failed to send email", http.StatusInternalServerError)

Var:

ErrFailedTrashMerchant indicates failure when soft-deleting (trashing) a merchant.

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

Var:

ErrFailedUpdateMerchant indicates failure when updating a merchant.

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

Var:

ErrFindActiveMerchantsFailed is returned when fetching active merchants fails.

var ErrFindActiveMerchantsFailed = errors.New("failed to find active merchants")

Var:

ErrFindAllMerchantsFailed is returned when fetching all merchants fails.

var ErrFindAllMerchantsFailed = errors.New("failed to find all merchants")

Var:

ErrFindAllTransactionsByApiKeyFailed indicates failure fetching transactions by API key.

var ErrFindAllTransactionsByApiKeyFailed = errors.New("failed to find merchant transactions by API key")

Var:

ErrFindAllTransactionsByMerchantFailed indicates failure fetching transactions by merchant ID.

var ErrFindAllTransactionsByMerchantFailed = errors.New("failed to find merchant transactions by merchant ID")

Var:

ErrFindAllTransactionsFailed indicates failure fetching all transactions.

var ErrFindAllTransactionsFailed = errors.New("failed to find all merchant transactions")

Var:

ErrFindMerchantByApiKeyFailed is returned when a merchant cannot be found by API key.

var ErrFindMerchantByApiKeyFailed = errors.New("failed to find merchant by API key")

Var:

ErrFindMerchantByIdFailed is returned when a merchant cannot be found by ID.

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

Var:

ErrFindMerchantByNameFailed is returned when a merchant cannot be found by name.

var ErrFindMerchantByNameFailed = errors.New("failed to find merchant by name")

Var:

ErrFindMerchantByUserIdFailed is returned when a merchant cannot be found by user ID.

var ErrFindMerchantByUserIdFailed = errors.New("failed to find merchant by user ID")

Var:

ErrFindTrashedMerchantsFailed is returned when fetching trashed merchants fails.

var ErrFindTrashedMerchantsFailed = errors.New("failed to find trashed merchants")

Var:

ErrGetMonthlyAmountByApikeyFailed indicates failure fetching monthly amount by API key.

var ErrGetMonthlyAmountByApikeyFailed = errors.New("failed to get monthly amount by API key")

Var:

ErrGetMonthlyAmountByMerchantsFailed indicates failure fetching monthly amount for all merchants.

var ErrGetMonthlyAmountByMerchantsFailed = errors.New("failed to get monthly amount by merchants")

Var:

ErrGetMonthlyAmountMerchantFailed indicates failure fetching monthly amount for a merchant.

var ErrGetMonthlyAmountMerchantFailed = errors.New("failed to get monthly amount of merchant")

Var:

ErrGetMonthlyPaymentMethodByApikeyFailed indicates failure fetching monthly payment methods by API key.

var ErrGetMonthlyPaymentMethodByApikeyFailed = errors.New("failed to get monthly payment method by API key")

Var:

ErrGetMonthlyPaymentMethodByMerchantsFailed indicates failure fetching monthly payment methods for all merchants.

var ErrGetMonthlyPaymentMethodByMerchantsFailed = errors.New("failed to get monthly payment method by merchants")

Var:

ErrGetMonthlyPaymentMethodsMerchantFailed indicates failure fetching monthly payment methods for a merchant.

var ErrGetMonthlyPaymentMethodsMerchantFailed = errors.New("failed to get monthly payment methods of merchant")

Var:

ErrGetMonthlyTotalAmountByApikeyFailed indicates failure fetching monthly total amount by API key.

var ErrGetMonthlyTotalAmountByApikeyFailed = errors.New("failed to get monthly total amount by API key")

Var:

ErrGetMonthlyTotalAmountByMerchantsFailed indicates failure fetching monthly total amount for all merchants.

var ErrGetMonthlyTotalAmountByMerchantsFailed = errors.New("failed to get monthly total amount by merchants")

Var:

ErrGetMonthlyTotalAmountMerchantFailed indicates failure fetching monthly total amount for a merchant.

var ErrGetMonthlyTotalAmountMerchantFailed = errors.New("failed to get monthly total amount of merchant")

Var:

ErrGetYearlyAmountByApikeyFailed indicates failure fetching yearly amount by API key.

var ErrGetYearlyAmountByApikeyFailed = errors.New("failed to get yearly amount by API key")

Var:

ErrGetYearlyAmountByMerchantsFailed indicates failure fetching yearly amount for all merchants.

var ErrGetYearlyAmountByMerchantsFailed = errors.New("failed to get yearly amount by merchants")

Var:

ErrGetYearlyAmountMerchantFailed indicates failure fetching yearly amount for a merchant.

var ErrGetYearlyAmountMerchantFailed = errors.New("failed to get yearly amount of merchant")

Var:

ErrGetYearlyPaymentMethodByApikeyFailed indicates failure fetching yearly payment methods by API key.

var ErrGetYearlyPaymentMethodByApikeyFailed = errors.New("failed to get yearly payment method by API key")

Var:

ErrGetYearlyPaymentMethodByMerchantsFailed indicates failure fetching yearly payment methods for all merchants.

var ErrGetYearlyPaymentMethodByMerchantsFailed = errors.New("failed to get yearly payment method by merchants")

Var:

ErrGetYearlyPaymentMethodMerchantFailed indicates failure fetching yearly payment methods for a merchant.

var ErrGetYearlyPaymentMethodMerchantFailed = errors.New("failed to get yearly payment method of merchant")

Var:

ErrGetYearlyTotalAmountByApikeyFailed indicates failure fetching yearly total amount by API key.

var ErrGetYearlyTotalAmountByApikeyFailed = errors.New("failed to get yearly total amount by API key")

Var:

ErrGetYearlyTotalAmountByMerchantsFailed indicates failure fetching yearly total amount for all merchants.

var ErrGetYearlyTotalAmountByMerchantsFailed = errors.New("failed to get yearly total amount by merchants")

Var:

ErrGetYearlyTotalAmountMerchantFailed indicates failure fetching yearly total amount for a merchant.

var ErrGetYearlyTotalAmountMerchantFailed = errors.New("failed to get yearly total amount of merchant")

Var:

ErrMerchantNotFoundRes is returned when the merchant is not found.

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

Var:

ErrRestoreAllMerchantFailed indicates failure when restoring all trashed merchants.

var ErrRestoreAllMerchantFailed = errors.New("failed to restore all merchants")

Var:

ErrRestoreMerchantFailed indicates failure when restoring a trashed merchant.

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

Var:

ErrTrashedMerchantFailed indicates failure when soft-deleting a merchant.

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

Var:

ErrUpdateMerchantFailed indicates failure when updating a merchant.

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

Var:

ErrUpdateMerchantStatusFailed indicates failure when updating merchant status.

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

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

ErrCreateMerchantFailed indicates failure when creating a merchant.

View Source
var ErrDeleteAllMerchantPermanentFailed = errors.New("failed to permanently delete all merchants")

ErrDeleteAllMerchantPermanentFailed indicates failure when permanently deleting all merchants.

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

ErrDeleteMerchantPermanentFailed indicates failure when permanently deleting a merchant.

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

ErrFailedCreateMerchant indicates failure when creating a new merchant.

View Source
var ErrFailedDeleteAllMerchants = response.NewErrorResponse("Failed to delete all Merchants permanently", http.StatusInternalServerError)

ErrFailedDeleteAllMerchants indicates failure when permanently deleting all trashed merchants.

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

ErrFailedDeleteMerchant indicates failure when permanently deleting a merchant.

View Source
var ErrFailedFindActiveMerchants = response.NewErrorResponse("Failed to fetch active Merchants", http.StatusInternalServerError)

ErrFailedFindActiveMerchants indicates failure in fetching active merchants.

View Source
var ErrFailedFindAllMerchants = response.NewErrorResponse("Failed to fetch Merchants", http.StatusInternalServerError)

ErrFailedFindAllMerchants indicates failure in fetching all merchants.

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

ErrFailedFindAllTransactions is returned when fetching all transactions fails.

View Source
var ErrFailedFindAllTransactionsByApikey = response.NewErrorResponse("Failed to fetch transactions by API key", http.StatusInternalServerError)

ErrFailedFindAllTransactionsByApikey is returned when fetching transactions by API key fails.

View Source
var ErrFailedFindAllTransactionsByMerchant = response.NewErrorResponse("Failed to fetch transactions by Merchant", http.StatusInternalServerError)

ErrFailedFindAllTransactionsByMerchant is returned when fetching transactions by merchant fails.

View Source
var ErrFailedFindByApiKey = response.NewErrorResponse("Failed to find Merchant by API key", http.StatusInternalServerError)

ErrFailedFindByApiKey is returned when a merchant cannot be found by API key.

View Source
var ErrFailedFindByMerchantUserId = response.NewErrorResponse("Failed to find Merchant by User ID", http.StatusInternalServerError)

ErrFailedFindByMerchantUserId is returned when a merchant cannot be found by user ID.

View Source
var ErrFailedFindMerchantById = response.NewErrorResponse("Failed to find Merchant by ID", http.StatusInternalServerError)

ErrFailedFindMerchantById is returned when a merchant cannot be found by ID.

View Source
var ErrFailedFindMonthlyAmountByApikeys = response.NewErrorResponse("Failed to get monthly amount by API key", http.StatusInternalServerError)

ErrFailedFindMonthlyAmountByApikeys indicates failure fetching monthly amounts by API key.

View Source
var ErrFailedFindMonthlyAmountByMerchants = response.NewErrorResponse("Failed to get monthly amount by Merchant", http.StatusInternalServerError)

ErrFailedFindMonthlyAmountByMerchants indicates failure fetching monthly amounts by merchant.

View Source
var ErrFailedFindMonthlyAmountMerchant = response.NewErrorResponse("Failed to get monthly amount", http.StatusInternalServerError)

ErrFailedFindMonthlyAmountMerchant indicates failure fetching monthly amounts.

View Source
var ErrFailedFindMonthlyPaymentMethodByApikeys = response.NewErrorResponse("Failed to get monthly payment methods by API key", http.StatusInternalServerError)

ErrFailedFindMonthlyPaymentMethodByApikeys indicates failure fetching monthly payment methods by API key.

View Source
var ErrFailedFindMonthlyPaymentMethodByMerchants = response.NewErrorResponse("Failed to get monthly payment methods by Merchant", http.StatusInternalServerError)

ErrFailedFindMonthlyPaymentMethodByMerchants indicates failure fetching monthly payment methods by merchant.

View Source
var ErrFailedFindMonthlyPaymentMethodsMerchant = response.NewErrorResponse("Failed to get monthly payment methods", http.StatusInternalServerError)

ErrFailedFindMonthlyPaymentMethodsMerchant indicates failure fetching monthly payment methods.

View Source
var ErrFailedFindMonthlyTotalAmountByApikeys = response.NewErrorResponse("Failed to get monthly total amount by API key", http.StatusInternalServerError)

ErrFailedFindMonthlyTotalAmountByApikeys indicates failure fetching monthly total amounts by API key.

View Source
var ErrFailedFindMonthlyTotalAmountByMerchants = response.NewErrorResponse("Failed to get monthly total amount by Merchant", http.StatusInternalServerError)

ErrFailedFindMonthlyTotalAmountByMerchants indicates failure fetching monthly total amounts by merchant.

View Source
var ErrFailedFindMonthlyTotalAmountMerchant = response.NewErrorResponse("Failed to get monthly total amount", http.StatusInternalServerError)

ErrFailedFindMonthlyTotalAmountMerchant indicates failure fetching monthly total amounts.

View Source
var ErrFailedFindTrashedMerchants = response.NewErrorResponse("Failed to fetch trashed Merchants", http.StatusInternalServerError)

ErrFailedFindTrashedMerchants indicates failure in fetching trashed merchants.

View Source
var ErrFailedFindYearlyAmountByApikeys = response.NewErrorResponse("Failed to get yearly amount by API key", http.StatusInternalServerError)

ErrFailedFindYearlyAmountByApikeys indicates failure fetching yearly amounts by API key.

View Source
var ErrFailedFindYearlyAmountByMerchants = response.NewErrorResponse("Failed to get yearly amount by Merchant", http.StatusInternalServerError)

ErrFailedFindYearlyAmountByMerchants indicates failure fetching yearly amounts by merchant.

View Source
var ErrFailedFindYearlyAmountMerchant = response.NewErrorResponse("Failed to get yearly amount", http.StatusInternalServerError)

ErrFailedFindYearlyAmountMerchant indicates failure fetching yearly amounts.

View Source
var ErrFailedFindYearlyPaymentMethodByApikeys = response.NewErrorResponse("Failed to get yearly payment method by API key", http.StatusInternalServerError)

ErrFailedFindYearlyPaymentMethodByApikeys indicates failure fetching yearly payment methods by API key.

View Source
var ErrFailedFindYearlyPaymentMethodByMerchants = response.NewErrorResponse("Failed to get yearly payment method by Merchant", http.StatusInternalServerError)

ErrFailedFindYearlyPaymentMethodByMerchants indicates failure fetching yearly payment methods by merchant.

View Source
var ErrFailedFindYearlyPaymentMethodMerchant = response.NewErrorResponse("Failed to get yearly payment method", http.StatusInternalServerError)

ErrFailedFindYearlyPaymentMethodMerchant indicates failure fetching yearly payment methods.

View Source
var ErrFailedFindYearlyTotalAmountByApikeys = response.NewErrorResponse("Failed to get yearly total amount by API key", http.StatusInternalServerError)

ErrFailedFindYearlyTotalAmountByApikeys indicates failure fetching yearly total amounts by API key.

View Source
var ErrFailedFindYearlyTotalAmountByMerchants = response.NewErrorResponse("Failed to get yearly total amount by Merchant", http.StatusInternalServerError)

ErrFailedFindYearlyTotalAmountByMerchants indicates failure fetching yearly total amounts by merchant.

View Source
var ErrFailedFindYearlyTotalAmountMerchant = response.NewErrorResponse("Failed to get yearly total amount", http.StatusInternalServerError)

ErrFailedFindYearlyTotalAmountMerchant indicates failure fetching yearly total amounts.

View Source
var ErrFailedRestoreAllMerchants = response.NewErrorResponse("Failed to restore all Merchants", http.StatusInternalServerError)

ErrFailedRestoreAllMerchants indicates failure when restoring all trashed merchants.

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

ErrFailedRestoreMerchant indicates failure when restoring a trashed merchant.

View Source
var ErrFailedSendEmail = response.NewErrorResponse("Failed to send email", http.StatusInternalServerError)

ErrFailedSendEmail indicates a failure when sending an email related to merchant operations.

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

ErrFailedTrashMerchant indicates failure when soft-deleting (trashing) a merchant.

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

ErrFailedUpdateMerchant indicates failure when updating a merchant.

View Source
var ErrFindActiveMerchantsFailed = errors.New("failed to find active merchants")

ErrFindActiveMerchantsFailed is returned when fetching active merchants fails.

View Source
var ErrFindAllMerchantsFailed = errors.New("failed to find all merchants")

ErrFindAllMerchantsFailed is returned when fetching all merchants fails.

View Source
var ErrFindAllTransactionsByApiKeyFailed = errors.New("failed to find merchant transactions by API key")

ErrFindAllTransactionsByApiKeyFailed indicates failure fetching transactions by API key.

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

ErrFindAllTransactionsByMerchantFailed indicates failure fetching transactions by merchant ID.

View Source
var ErrFindAllTransactionsFailed = errors.New("failed to find all merchant transactions")

ErrFindAllTransactionsFailed indicates failure fetching all transactions.

View Source
var ErrFindMerchantByApiKeyFailed = errors.New("failed to find merchant by API key")

ErrFindMerchantByApiKeyFailed is returned when a merchant cannot be found by API key.

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

ErrFindMerchantByIdFailed is returned when a merchant cannot be found by ID.

View Source
var ErrFindMerchantByNameFailed = errors.New("failed to find merchant by name")

ErrFindMerchantByNameFailed is returned when a merchant cannot be found by name.

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

ErrFindMerchantByUserIdFailed is returned when a merchant cannot be found by user ID.

View Source
var ErrFindTrashedMerchantsFailed = errors.New("failed to find trashed merchants")

ErrFindTrashedMerchantsFailed is returned when fetching trashed merchants fails.

View Source
var ErrGetMonthlyAmountByApikeyFailed = errors.New("failed to get monthly amount by API key")

ErrGetMonthlyAmountByApikeyFailed indicates failure fetching monthly amount by API key.

View Source
var ErrGetMonthlyAmountByMerchantsFailed = errors.New("failed to get monthly amount by merchants")

ErrGetMonthlyAmountByMerchantsFailed indicates failure fetching monthly amount for all merchants.

View Source
var ErrGetMonthlyAmountMerchantFailed = errors.New("failed to get monthly amount of merchant")

ErrGetMonthlyAmountMerchantFailed indicates failure fetching monthly amount for a merchant.

View Source
var ErrGetMonthlyPaymentMethodByApikeyFailed = errors.New("failed to get monthly payment method by API key")

ErrGetMonthlyPaymentMethodByApikeyFailed indicates failure fetching monthly payment methods by API key.

View Source
var ErrGetMonthlyPaymentMethodByMerchantsFailed = errors.New("failed to get monthly payment method by merchants")

ErrGetMonthlyPaymentMethodByMerchantsFailed indicates failure fetching monthly payment methods for all merchants.

View Source
var ErrGetMonthlyPaymentMethodsMerchantFailed = errors.New("failed to get monthly payment methods of merchant")

ErrGetMonthlyPaymentMethodsMerchantFailed indicates failure fetching monthly payment methods for a merchant.

View Source
var ErrGetMonthlyTotalAmountByApikeyFailed = errors.New("failed to get monthly total amount by API key")

ErrGetMonthlyTotalAmountByApikeyFailed indicates failure fetching monthly total amount by API key.

View Source
var ErrGetMonthlyTotalAmountByMerchantsFailed = errors.New("failed to get monthly total amount by merchants")

ErrGetMonthlyTotalAmountByMerchantsFailed indicates failure fetching monthly total amount for all merchants.

View Source
var ErrGetMonthlyTotalAmountMerchantFailed = errors.New("failed to get monthly total amount of merchant")

ErrGetMonthlyTotalAmountMerchantFailed indicates failure fetching monthly total amount for a merchant.

View Source
var ErrGetYearlyAmountByApikeyFailed = errors.New("failed to get yearly amount by API key")

ErrGetYearlyAmountByApikeyFailed indicates failure fetching yearly amount by API key.

View Source
var ErrGetYearlyAmountByMerchantsFailed = errors.New("failed to get yearly amount by merchants")

ErrGetYearlyAmountByMerchantsFailed indicates failure fetching yearly amount for all merchants.

View Source
var ErrGetYearlyAmountMerchantFailed = errors.New("failed to get yearly amount of merchant")

ErrGetYearlyAmountMerchantFailed indicates failure fetching yearly amount for a merchant.

View Source
var ErrGetYearlyPaymentMethodByApikeyFailed = errors.New("failed to get yearly payment method by API key")

ErrGetYearlyPaymentMethodByApikeyFailed indicates failure fetching yearly payment methods by API key.

View Source
var ErrGetYearlyPaymentMethodByMerchantsFailed = errors.New("failed to get yearly payment method by merchants")

ErrGetYearlyPaymentMethodByMerchantsFailed indicates failure fetching yearly payment methods for all merchants.

View Source
var ErrGetYearlyPaymentMethodMerchantFailed = errors.New("failed to get yearly payment method of merchant")

ErrGetYearlyPaymentMethodMerchantFailed indicates failure fetching yearly payment methods for a merchant.

View Source
var ErrGetYearlyTotalAmountByApikeyFailed = errors.New("failed to get yearly total amount by API key")

ErrGetYearlyTotalAmountByApikeyFailed indicates failure fetching yearly total amount by API key.

View Source
var ErrGetYearlyTotalAmountByMerchantsFailed = errors.New("failed to get yearly total amount by merchants")

ErrGetYearlyTotalAmountByMerchantsFailed indicates failure fetching yearly total amount for all merchants.

View Source
var ErrGetYearlyTotalAmountMerchantFailed = errors.New("failed to get yearly total amount of merchant")

ErrGetYearlyTotalAmountMerchantFailed indicates failure fetching yearly total amount for a merchant.

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

ErrMerchantNotFoundRes is returned when the merchant is not found.

View Source
var ErrRestoreAllMerchantFailed = errors.New("failed to restore all merchants")

ErrRestoreAllMerchantFailed indicates failure when restoring all trashed merchants.

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

ErrRestoreMerchantFailed indicates failure when restoring a trashed merchant.

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

ErrTrashedMerchantFailed indicates failure when soft-deleting a merchant.

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

ErrUpdateMerchantFailed indicates failure when updating a merchant.

View Source
var ErrUpdateMerchantStatusFailed = errors.New("failed to update merchant status")

ErrUpdateMerchantStatusFailed indicates failure when updating merchant status.

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