merchantserviceerrors

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFailedCreateMerchant indicates failure when creating a new merchant.
	ErrFailedCreateMerchant = errors.ErrInternal.WithMessage("Failed to create merchant")

	// ErrFailedUpdateMerchant indicates failure when updating a merchant.
	ErrFailedUpdateMerchant = errors.ErrInternal.WithMessage("Failed to update merchant")

	// ErrFailedTrashMerchant indicates failure when soft-deleting (trashing) a merchant.
	ErrFailedTrashMerchant = errors.ErrInternal.WithMessage("Failed to move merchant to trash")

	// ErrFailedRestoreMerchant indicates failure when restoring a trashed merchant.
	ErrFailedRestoreMerchant = errors.ErrInternal.WithMessage("Failed to restore merchant")

	// ErrFailedDeleteMerchant indicates failure when permanently deleting a merchant.
	ErrFailedDeleteMerchant = errors.ErrInternal.WithMessage("Failed to delete merchant permanently")

	// ErrFailedRestoreAllMerchants indicates failure when restoring all trashed merchants.
	ErrFailedRestoreAllMerchants = errors.ErrInternal.WithMessage("Failed to restore all merchants")

	// ErrFailedDeleteAllMerchants indicates failure when permanently deleting all trashed merchants.
	ErrFailedDeleteAllMerchants = errors.ErrInternal.WithMessage("Failed to delete all merchants permanently")
)
View Source
var (
	// ErrMerchantNotFoundRes is returned when the merchant is not found.
	ErrMerchantNotFoundRes = errors.ErrNotFound.WithMessage("Merchant not found")

	// ErrFailedFindAllMerchants indicates failure in fetching all merchants.
	ErrFailedFindAllMerchants = errors.ErrInternal.WithMessage("Failed to fetch merchants")

	// ErrFailedFindActiveMerchants indicates failure in fetching active merchants.
	ErrFailedFindActiveMerchants = errors.ErrInternal.WithMessage("Failed to fetch active merchants")

	// ErrFailedFindTrashedMerchants indicates failure in fetching trashed merchants.
	ErrFailedFindTrashedMerchants = errors.ErrInternal.WithMessage("Failed to fetch trashed merchants")

	// ErrFailedFindMerchantById is returned when a merchant cannot be found by ID.
	ErrFailedFindMerchantById = errors.ErrInternal.WithMessage("Failed to find merchant by ID")

	// ErrFailedFindByApiKey is returned when a merchant cannot be found by API key.
	ErrFailedFindByApiKey = errors.ErrInternal.WithMessage("Failed to find merchant by API key")

	// ErrFailedFindByMerchantUserId is returned when a merchant cannot be found by user ID.
	ErrFailedFindByMerchantUserId = errors.ErrInternal.WithMessage("Failed to find merchant by user ID")
)
View Source
var ErrFailedFindAllTransactions = errors.NewErrorResponse("Failed to fetch Merchant transactions", http.StatusInternalServerError)

ErrFailedFindAllTransactions is returned when fetching all transactions fails.

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

ErrFailedFindAllTransactionsByApikey is returned when fetching transactions by API key fails.

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

ErrFailedFindAllTransactionsByMerchant is returned when fetching transactions by merchant fails.

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

ErrFailedFindMonthlyAmountByApikeys indicates failure fetching monthly amounts by API key.

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

ErrFailedFindMonthlyAmountByMerchants indicates failure fetching monthly amounts by merchant.

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

ErrFailedFindMonthlyAmountMerchant indicates failure fetching monthly amounts.

View Source
var ErrFailedFindMonthlyPaymentMethodByApikeys = errors.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 = errors.NewErrorResponse("Failed to get monthly payment methods by Merchant", http.StatusInternalServerError)

ErrFailedFindMonthlyPaymentMethodByMerchants indicates failure fetching monthly payment methods by merchant.

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

ErrFailedFindMonthlyPaymentMethodsMerchant indicates failure fetching monthly payment methods.

View Source
var ErrFailedFindMonthlyTotalAmountByApikeys = errors.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 = errors.NewErrorResponse("Failed to get monthly total amount by Merchant", http.StatusInternalServerError)

ErrFailedFindMonthlyTotalAmountByMerchants indicates failure fetching monthly total amounts by merchant.

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

ErrFailedFindMonthlyTotalAmountMerchant indicates failure fetching monthly total amounts.

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

ErrFailedFindYearlyAmountByApikeys indicates failure fetching yearly amounts by API key.

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

ErrFailedFindYearlyAmountByMerchants indicates failure fetching yearly amounts by merchant.

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

ErrFailedFindYearlyAmountMerchant indicates failure fetching yearly amounts.

View Source
var ErrFailedFindYearlyPaymentMethodByApikeys = errors.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 = errors.NewErrorResponse("Failed to get yearly payment method by Merchant", http.StatusInternalServerError)

ErrFailedFindYearlyPaymentMethodByMerchants indicates failure fetching yearly payment methods by merchant.

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

ErrFailedFindYearlyPaymentMethodMerchant indicates failure fetching yearly payment methods.

View Source
var ErrFailedFindYearlyTotalAmountByApikeys = errors.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 = errors.NewErrorResponse("Failed to get yearly total amount by Merchant", http.StatusInternalServerError)

ErrFailedFindYearlyTotalAmountByMerchants indicates failure fetching yearly total amounts by merchant.

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

ErrFailedFindYearlyTotalAmountMerchant indicates failure fetching yearly total amounts.

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

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

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