merchantrepositoryerrors

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 1 Imported by: ? 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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrGetMonthlyAmountMerchantFailed indicates failure fetching monthly amount for a merchant.
	ErrGetMonthlyAmountMerchantFailed = errors.ErrInternal.WithMessage("failed to get monthly amount of merchant")

	// ErrGetYearlyAmountMerchantFailed indicates failure fetching yearly amount for a merchant.
	ErrGetYearlyAmountMerchantFailed = errors.ErrInternal.WithMessage("failed to get yearly amount of merchant")

	// ErrGetMonthlyAmountByMerchantsFailed indicates failure fetching monthly amount for all merchants.
	ErrGetMonthlyAmountByMerchantsFailed = errors.ErrInternal.WithMessage("failed to get monthly amount by merchants")

	// ErrGetYearlyAmountByMerchantsFailed indicates failure fetching yearly amount for all merchants.
	ErrGetYearlyAmountByMerchantsFailed = errors.ErrInternal.WithMessage("failed to get yearly amount by merchants")

	// ErrGetMonthlyAmountByApikeyFailed indicates failure fetching monthly amount by API key.
	ErrGetMonthlyAmountByApikeyFailed = errors.ErrInternal.WithMessage("failed to get monthly amount by API key")

	// ErrGetYearlyAmountByApikeyFailed indicates failure fetching yearly amount by API key.
	ErrGetYearlyAmountByApikeyFailed = errors.ErrInternal.WithMessage("failed to get yearly amount by API key")
)
View Source
var (
	// ErrCreateMerchantFailed indicates failure when creating a merchant.
	ErrCreateMerchantFailed = errors.ErrInternal.WithMessage("Failed to create merchant")

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

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

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

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

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

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

	// ErrDeleteAllMerchantPermanentFailed indicates failure when permanently deleting all merchants.
	ErrDeleteAllMerchantPermanentFailed = errors.ErrInternal.WithMessage("Failed to permanently delete all merchants")
)
View Source
var (
	// ErrGetMonthlyPaymentMethodsMerchantFailed indicates failure fetching monthly payment methods for a merchant.
	ErrGetMonthlyPaymentMethodsMerchantFailed = errors.ErrInternal.WithMessage("failed to get monthly payment methods of merchant")

	// ErrGetYearlyPaymentMethodMerchantFailed indicates failure fetching yearly payment methods for a merchant.
	ErrGetYearlyPaymentMethodMerchantFailed = errors.ErrInternal.WithMessage("failed to get yearly payment method of merchant")

	// ErrGetMonthlyPaymentMethodByMerchantsFailed indicates failure fetching monthly payment methods for all merchants.
	ErrGetMonthlyPaymentMethodByMerchantsFailed = errors.ErrInternal.WithMessage("failed to get monthly payment method by merchants")

	// ErrGetYearlyPaymentMethodByMerchantsFailed indicates failure fetching yearly payment methods for all merchants.
	ErrGetYearlyPaymentMethodByMerchantsFailed = errors.ErrInternal.WithMessage("failed to get yearly payment method by merchants")

	// ErrGetMonthlyPaymentMethodByApikeyFailed indicates failure fetching monthly payment methods by API key.
	ErrGetMonthlyPaymentMethodByApikeyFailed = errors.ErrInternal.WithMessage("failed to get monthly payment method by API key")

	// ErrGetYearlyPaymentMethodByApikeyFailed indicates failure fetching yearly payment methods by API key.
	ErrGetYearlyPaymentMethodByApikeyFailed = errors.ErrInternal.WithMessage("failed to get yearly payment method by API key")
)
View Source
var (
	// ErrFindAllMerchantsFailed is returned when fetching all merchants fails.
	ErrFindAllMerchantsFailed = errors.ErrInternal.WithMessage("Failed to find all merchants")

	// ErrFindActiveMerchantsFailed is returned when fetching active merchants fails.
	ErrFindActiveMerchantsFailed = errors.ErrInternal.WithMessage("Failed to find active merchants")

	// ErrFindTrashedMerchantsFailed is returned when fetching trashed merchants fails.
	ErrFindTrashedMerchantsFailed = errors.ErrInternal.WithMessage("Failed to find trashed merchants")

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

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

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

	// ErrFindMerchantByUserIdFailed is returned when a merchant cannot be found by user ID.
	ErrFindMerchantByUserIdFailed = errors.ErrInternal.WithMessage("Failed to find merchant by user ID")
)
View Source
var (
	// ErrGetMonthlyTotalAmountMerchantFailed indicates failure fetching monthly total amount for a merchant.
	ErrGetMonthlyTotalAmountMerchantFailed = errors.ErrInternal.WithMessage("failed to get monthly total amount of merchant")

	// ErrGetYearlyTotalAmountMerchantFailed indicates failure fetching yearly total amount for a merchant.
	ErrGetYearlyTotalAmountMerchantFailed = errors.ErrInternal.WithMessage("failed to get yearly total amount of merchant")

	// ErrGetMonthlyTotalAmountByMerchantsFailed indicates failure fetching monthly total amount for all merchants.
	ErrGetMonthlyTotalAmountByMerchantsFailed = errors.ErrInternal.WithMessage("failed to get monthly total amount by merchants")

	// ErrGetYearlyTotalAmountByMerchantsFailed indicates failure fetching yearly total amount for all merchants.
	ErrGetYearlyTotalAmountByMerchantsFailed = errors.ErrInternal.WithMessage("failed to get yearly total amount by merchants")

	// ErrGetMonthlyTotalAmountByApikeyFailed indicates failure fetching monthly total amount by API key.
	ErrGetMonthlyTotalAmountByApikeyFailed = errors.ErrInternal.WithMessage("failed to get monthly total amount by API key")

	// ErrGetYearlyTotalAmountByApikeyFailed indicates failure fetching yearly total amount by API key.
	ErrGetYearlyTotalAmountByApikeyFailed = errors.ErrInternal.WithMessage("failed to get yearly total amount by API key")
)
View Source
var (
	// ErrFindAllTransactionsFailed indicates failure fetching all transactions.
	ErrFindAllTransactionsFailed = errors.ErrInternal.WithMessage("failed to find all merchant transactions")

	// ErrFindAllTransactionsByMerchantFailed indicates failure fetching transactions by merchant ID.
	ErrFindAllTransactionsByMerchantFailed = errors.ErrInternal.WithMessage("failed to find merchant transactions by merchant ID")

	// ErrFindAllTransactionsByApiKeyFailed indicates failure fetching transactions by API key.
	ErrFindAllTransactionsByApiKeyFailed = errors.ErrInternal.WithMessage("failed to find merchant transactions by API key")
)

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