Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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") )
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") )
var ErrFindAllTransactionsByApiKeyFailed = errors.New("failed to find merchant transactions by API key")
ErrFindAllTransactionsByApiKeyFailed indicates failure fetching transactions by API key.
var ErrFindAllTransactionsByMerchantFailed = errors.New("failed to find merchant transactions by merchant ID")
ErrFindAllTransactionsByMerchantFailed indicates failure fetching transactions by merchant ID.
var ErrFindAllTransactionsFailed = errors.New("failed to find all merchant transactions")
ErrFindAllTransactionsFailed indicates failure fetching all transactions.
var ErrGetMonthlyAmountByApikeyFailed = errors.New("failed to get monthly amount by API key")
ErrGetMonthlyAmountByApikeyFailed indicates failure fetching monthly amount by API key.
var ErrGetMonthlyAmountByMerchantsFailed = errors.New("failed to get monthly amount by merchants")
ErrGetMonthlyAmountByMerchantsFailed indicates failure fetching monthly amount for all merchants.
var ErrGetMonthlyAmountMerchantFailed = errors.New("failed to get monthly amount of merchant")
ErrGetMonthlyAmountMerchantFailed indicates failure fetching monthly amount for a merchant.
var ErrGetMonthlyPaymentMethodByApikeyFailed = errors.New("failed to get monthly payment method by API key")
ErrGetMonthlyPaymentMethodByApikeyFailed indicates failure fetching monthly payment methods by API key.
var ErrGetMonthlyPaymentMethodByMerchantsFailed = errors.New("failed to get monthly payment method by merchants")
ErrGetMonthlyPaymentMethodByMerchantsFailed indicates failure fetching monthly payment methods for all merchants.
var ErrGetMonthlyPaymentMethodsMerchantFailed = errors.New("failed to get monthly payment methods of merchant")
ErrGetMonthlyPaymentMethodsMerchantFailed indicates failure fetching monthly payment methods for a merchant.
var ErrGetMonthlyTotalAmountByApikeyFailed = errors.New("failed to get monthly total amount by API key")
ErrGetMonthlyTotalAmountByApikeyFailed indicates failure fetching monthly total amount by API key.
var ErrGetMonthlyTotalAmountByMerchantsFailed = errors.New("failed to get monthly total amount by merchants")
ErrGetMonthlyTotalAmountByMerchantsFailed indicates failure fetching monthly total amount for all merchants.
var ErrGetMonthlyTotalAmountMerchantFailed = errors.New("failed to get monthly total amount of merchant")
ErrGetMonthlyTotalAmountMerchantFailed indicates failure fetching monthly total amount for a merchant.
var ErrGetYearlyAmountByApikeyFailed = errors.New("failed to get yearly amount by API key")
ErrGetYearlyAmountByApikeyFailed indicates failure fetching yearly amount by API key.TotalAmount
var ErrGetYearlyAmountByMerchantsFailed = errors.New("failed to get yearly amount by merchants")
ErrGetYearlyAmountByMerchantsFailed indicates failure fetching yearly amount for all merchants.
var ErrGetYearlyAmountMerchantFailed = errors.New("failed to get yearly amount of merchant")
ErrGetYearlyAmountMerchantFailed indicates failure fetching yearly amount for a merchant.
var ErrGetYearlyPaymentMethodByApikeyFailed = errors.New("failed to get yearly payment method by API key")
ErrGetYearlyPaymentMethodByApikeyFailed indicates failure fetching yearly payment methods by API key.
var ErrGetYearlyPaymentMethodByMerchantsFailed = errors.New("failed to get yearly payment method by merchants")
ErrGetYearlyPaymentMethodByMerchantsFailed indicates failure fetching yearly payment methods for all merchants.
var ErrGetYearlyPaymentMethodMerchantFailed = errors.New("failed to get yearly payment method of merchant")
ErrGetYearlyPaymentMethodMerchantFailed indicates failure fetching yearly payment methods for a merchant.
var ErrGetYearlyTotalAmountByApikeyFailed = errors.New("failed to get yearly total amount by API key")
ErrGetYearlyTotalAmountByApikeyFailed indicates failure fetching yearly total amount by API key.
var ErrGetYearlyTotalAmountByMerchantsFailed = errors.New("failed to get yearly total amount by merchants")
ErrGetYearlyTotalAmountByMerchantsFailed indicates failure fetching yearly total amount for all merchants.
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.