merchantrepositoryerrors

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: ? 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 (
	// 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 (
	// 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 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 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.TotalAmount

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.

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