Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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") )
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") )
var ErrFailedFindAllTransactions = errors.NewErrorResponse("Failed to fetch Merchant transactions", http.StatusInternalServerError)
ErrFailedFindAllTransactions is returned when fetching all transactions fails.
var ErrFailedFindAllTransactionsByApikey = errors.NewErrorResponse("Failed to fetch transactions by API key", http.StatusInternalServerError)
ErrFailedFindAllTransactionsByApikey is returned when fetching transactions by API key fails.
var ErrFailedFindAllTransactionsByMerchant = errors.NewErrorResponse("Failed to fetch transactions by Merchant", http.StatusInternalServerError)
ErrFailedFindAllTransactionsByMerchant is returned when fetching transactions by merchant fails.
var ErrFailedFindMonthlyAmountByApikeys = errors.NewErrorResponse("Failed to get monthly amount by API key", http.StatusInternalServerError)
ErrFailedFindMonthlyAmountByApikeys indicates failure fetching monthly amounts by API key.
var ErrFailedFindMonthlyAmountByMerchants = errors.NewErrorResponse("Failed to get monthly amount by Merchant", http.StatusInternalServerError)
ErrFailedFindMonthlyAmountByMerchants indicates failure fetching monthly amounts by merchant.
var ErrFailedFindMonthlyAmountMerchant = errors.NewErrorResponse("Failed to get monthly amount", http.StatusInternalServerError)
ErrFailedFindMonthlyAmountMerchant indicates failure fetching monthly amounts.
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.
var ErrFailedFindMonthlyPaymentMethodByMerchants = errors.NewErrorResponse("Failed to get monthly payment methods by Merchant", http.StatusInternalServerError)
ErrFailedFindMonthlyPaymentMethodByMerchants indicates failure fetching monthly payment methods by merchant.
var ErrFailedFindMonthlyPaymentMethodsMerchant = errors.NewErrorResponse("Failed to get monthly payment methods", http.StatusInternalServerError)
ErrFailedFindMonthlyPaymentMethodsMerchant indicates failure fetching monthly payment methods.
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.
var ErrFailedFindMonthlyTotalAmountByMerchants = errors.NewErrorResponse("Failed to get monthly total amount by Merchant", http.StatusInternalServerError)
ErrFailedFindMonthlyTotalAmountByMerchants indicates failure fetching monthly total amounts by merchant.
var ErrFailedFindMonthlyTotalAmountMerchant = errors.NewErrorResponse("Failed to get monthly total amount", http.StatusInternalServerError)
ErrFailedFindMonthlyTotalAmountMerchant indicates failure fetching monthly total amounts.
var ErrFailedFindYearlyAmountByApikeys = errors.NewErrorResponse("Failed to get yearly amount by API key", http.StatusInternalServerError)
ErrFailedFindYearlyAmountByApikeys indicates failure fetching yearly amounts by API key.
var ErrFailedFindYearlyAmountByMerchants = errors.NewErrorResponse("Failed to get yearly amount by Merchant", http.StatusInternalServerError)
ErrFailedFindYearlyAmountByMerchants indicates failure fetching yearly amounts by merchant.
var ErrFailedFindYearlyAmountMerchant = errors.NewErrorResponse("Failed to get yearly amount", http.StatusInternalServerError)
ErrFailedFindYearlyAmountMerchant indicates failure fetching yearly amounts.
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.
var ErrFailedFindYearlyPaymentMethodByMerchants = errors.NewErrorResponse("Failed to get yearly payment method by Merchant", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethodByMerchants indicates failure fetching yearly payment methods by merchant.
var ErrFailedFindYearlyPaymentMethodMerchant = errors.NewErrorResponse("Failed to get yearly payment method", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethodMerchant indicates failure fetching yearly payment methods.
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.
var ErrFailedFindYearlyTotalAmountByMerchants = errors.NewErrorResponse("Failed to get yearly total amount by Merchant", http.StatusInternalServerError)
ErrFailedFindYearlyTotalAmountByMerchants indicates failure fetching yearly total amounts by merchant.
var ErrFailedFindYearlyTotalAmountMerchant = errors.NewErrorResponse("Failed to get yearly total amount", http.StatusInternalServerError)
ErrFailedFindYearlyTotalAmountMerchant indicates failure fetching yearly total amounts.
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.