Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrGrpcMerchantNotFound = response.NewGrpcError("merchant", "Merchant not found", int(codes.NotFound)) ErrGrpcMerchantInvalidID = response.NewGrpcError("merchant", "Invalid Merchant ID", int(codes.InvalidArgument)) ErrGrpcMerchantInvalidUserID = response.NewGrpcError("merchant", "Invalid Merchant User ID", int(codes.InvalidArgument)) ErrGrpcMerchantInvalidApiKey = response.NewGrpcError("merchant", "Invalid Merchant Api Key", int(codes.InvalidArgument)) ErrGrpcMerchantInvalidMonth = response.NewGrpcError("month", "Invalid Merchant Month", int(codes.InvalidArgument)) ErrGrpcMerchantInvalidYear = response.NewGrpcError("year", "Invalid Merchant Year", int(codes.InvalidArgument)) ErrGrpcFailedCreateMerchant = response.NewGrpcError("merchant", "Failed to create merchant", int(codes.Internal)) ErrGrpcFailedUpdateMerchant = response.NewGrpcError("merchant", "Failed to update merchant", int(codes.Internal)) ErrGrpcValidateCreateMerchant = response.NewGrpcError("merchant", "Invalid input for create merchant", int(codes.InvalidArgument)) ErrGrpcValidateUpdateMerchant = response.NewGrpcError("merchant", "Invalid input for update merchant", int(codes.InvalidArgument)) ErrGrpcValidateUpdateMerchantStatus = response.NewGrpcError("merchant", "Invalid input for update merchant status", int(codes.InvalidArgument)) )
var ErrApiBindCreateMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid create merchant request", http.StatusBadRequest) }
var ErrApiBindUpdateMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update merchant request", http.StatusBadRequest) }
var ErrApiBindUpdateMerchantStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update merchant status request", http.StatusBadRequest) }
var ErrApiFailedCreateMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to create merchant", http.StatusInternalServerError) }
var ErrApiFailedDeleteAllMerchantPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all merchants", http.StatusInternalServerError) }
var ErrApiFailedDeleteMerchantPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete merchant", http.StatusInternalServerError) }
var ErrApiFailedFindAllMerchants = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchants", http.StatusInternalServerError) }
ErrApiFailedFindAllMerchants is returned when failing to retrieve all merchants.
var ErrApiFailedFindAllMerchantsActive = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchants active", http.StatusInternalServerError) }
ErrApiFailedFindAllMerchantsActive is returned when failing to retrieve all active merchants.
var ErrApiFailedFindAllMerchantsTrashed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all merchants trashed", http.StatusInternalServerError) }
ErrApiFailedFindAllMerchantsTrashed is returned when failing to retrieve all trashed merchants.
var ErrApiFailedFindAllTransactionByApikey = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by API key", http.StatusInternalServerError) }
ErrApiFailedFindAllTransactionByApikey is returned when failing to retrieve transactions by API key.
var ErrApiFailedFindAllTransactionByMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch transactions by merchant", http.StatusInternalServerError) }
ErrApiFailedFindAllTransactionByMerchant is returned when failing to retrieve transactions by merchant.
var ErrApiFailedFindAllTransactions = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all transactions", http.StatusInternalServerError) }
ErrApiFailedFindAllTransactions is returned when failing to retrieve all merchant transactions.
var ErrApiFailedFindByApiKeyMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant by api key", http.StatusInternalServerError) }
ErrApiFailedFindByApiKeyMerchant is returned when failing to retrieve a merchant by API key.
var ErrApiFailedFindByIdMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant by ID", http.StatusInternalServerError) }
ErrApiFailedFindByIdMerchant is returned when failing to retrieve a merchant by ID.
var ErrApiFailedFindByUserId = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch merchant by user ID", http.StatusInternalServerError) }
ErrApiFailedFindByUserId is returned when failing to retrieve a merchant by user ID.
var ErrApiFailedFindMonthlyAmountByApikeys = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts by API key", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyAmountByApikeys is returned when failing to fetch monthly amounts by API key.
var ErrApiFailedFindMonthlyAmountByMerchants = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amounts by merchant", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyAmountByMerchants is returned when failing to fetch monthly amounts for all merchants.
var ErrApiFailedFindMonthlyAmountMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly amount by merchant", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyAmountMerchant is returned when failing to retrieve monthly transaction amount for a merchant.
var ErrApiFailedFindMonthlyPaymentMethodByApikeys = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by API key", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyPaymentMethodByApikeys is returned when failing to fetch monthly payment methods by API key.
var ErrApiFailedFindMonthlyPaymentMethodByMerchants = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by merchant", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyPaymentMethodByMerchants is returned when failing to fetch monthly payment methods for all merchants.
var ErrApiFailedFindMonthlyPaymentMethodsMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly payment methods by merchant", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyPaymentMethodsMerchant is returned when failing to retrieve monthly payment methods for a merchant.
var ErrApiFailedFindMonthlyTotalAmountMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly total amount by merchant", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTotalAmountMerchant is returned when failing to retrieve total monthly transaction amount for a merchant.
var ErrApiFailedFindYearlyAmountByApikeys = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts by API key", http.StatusInternalServerError) }
var ErrApiFailedFindYearlyAmountByMerchants = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amounts by merchant", http.StatusInternalServerError) }
ErrApiFailedFindYearlyAmountByMerchants is returned when failing to fetch yearly amounts for all merchants.
var ErrApiFailedFindYearlyAmountMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly amount by merchant", http.StatusInternalServerError) }
ErrApiFailedFindYearlyAmountMerchant is returned when failing to retrieve yearly transaction amount for a merchant.
var ErrApiFailedFindYearlyPaymentMethodByApikeys = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by API key", http.StatusInternalServerError) }
ErrApiFailedFindYearlyPaymentMethodByApikeys is returned when failing to fetch yearly payment methods by API key.
var ErrApiFailedFindYearlyPaymentMethodByMerchants = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by merchant", http.StatusInternalServerError) }
ErrApiFailedFindYearlyPaymentMethodByMerchants is returned when failing to fetch yearly payment methods for all merchants.
var ErrApiFailedFindYearlyPaymentMethodMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly payment methods by merchant", http.StatusInternalServerError) }
ErrApiFailedFindYearlyPaymentMethodMerchant is returned when failing to retrieve yearly payment methods for a merchant.
var ErrApiFailedFindYearlyTotalAmountMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly total amount by merchant", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTotalAmountMerchant is returned when failing to retrieve total yearly transaction amount for a merchant.
var ErrApiFailedRestoreAllMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore all merchants", http.StatusInternalServerError) }
var ErrApiFailedRestoreMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore merchant", http.StatusInternalServerError) }
var ErrApiFailedTrashMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to trash merchant", http.StatusInternalServerError) }
var ErrApiFailedUpdateMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update merchant", http.StatusInternalServerError) }
var ErrApiFailedUpdateMerchantStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update merchant status", http.StatusInternalServerError) }
var ErrApiInvalidApiKey = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid API key", http.StatusUnauthorized) }
ErrApiInvalidApiKey is returned when the API key provided is invalid or unauthorized.
var ErrApiInvalidCardID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid card ID", http.StatusBadRequest) }
ErrApiInvalidCardID is returned when the card ID provided is invalid.
var ErrApiInvalidMerchantID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid merchant ID", http.StatusBadRequest) }
ErrApiInvalidMerchantID is returned when the merchant ID provided is invalid.
var ErrApiInvalidMonth = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid month value", http.StatusBadRequest) }
ErrApiInvalidMonth is returned when the month parameter is invalid or malformed.
var ErrApiInvalidUserID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid user ID", http.StatusBadRequest) }
ErrApiInvalidUserID is returned when the user ID provided is invalid.
var ErrApiInvalidYear = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid year value", http.StatusBadRequest) }
ErrApiInvalidYear is returned when the year parameter is invalid or malformed.
var ErrApiValidateCreateMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid create merchant request", http.StatusBadRequest) }
var ErrApiValidateUpdateMerchant = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant request", http.StatusBadRequest) }
var ErrApiValidateUpdateMerchantStatus = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update merchant status request", http.StatusBadRequest) }
var ErrCreateMerchantFailed = errors.New("failed to create merchant")
ErrCreateMerchantFailed indicates failure when creating a merchant.
var ErrDeleteAllMerchantPermanentFailed = errors.New("failed to permanently delete all merchants")
ErrDeleteAllMerchantPermanentFailed indicates failure when permanently deleting all merchants.
var ErrDeleteMerchantPermanentFailed = errors.New("failed to permanently delete merchant")
ErrDeleteMerchantPermanentFailed indicates failure when permanently deleting a merchant.
var ErrFailedCreateMerchant = response.NewErrorResponse("Failed to create Merchant", http.StatusInternalServerError)
ErrFailedCreateMerchant indicates failure when creating a new merchant.
var ErrFailedDeleteAllMerchants = response.NewErrorResponse("Failed to delete all Merchants permanently", http.StatusInternalServerError)
ErrFailedDeleteAllMerchants indicates failure when permanently deleting all trashed merchants.
var ErrFailedDeleteMerchant = response.NewErrorResponse("Failed to delete Merchant permanently", http.StatusInternalServerError)
ErrFailedDeleteMerchant indicates failure when permanently deleting a merchant.
var ErrFailedFindActiveMerchants = response.NewErrorResponse("Failed to fetch active Merchants", http.StatusInternalServerError)
ErrFailedFindActiveMerchants indicates failure in fetching active merchants.
var ErrFailedFindAllMerchants = response.NewErrorResponse("Failed to fetch Merchants", http.StatusInternalServerError)
ErrFailedFindAllMerchants indicates failure in fetching all merchants.
var ErrFailedFindAllTransactions = response.NewErrorResponse("Failed to fetch Merchant transactions", http.StatusInternalServerError)
ErrFailedFindAllTransactions is returned when fetching all transactions fails.
var ErrFailedFindAllTransactionsByApikey = response.NewErrorResponse("Failed to fetch transactions by API key", http.StatusInternalServerError)
ErrFailedFindAllTransactionsByApikey is returned when fetching transactions by API key fails.
var ErrFailedFindAllTransactionsByMerchant = response.NewErrorResponse("Failed to fetch transactions by Merchant", http.StatusInternalServerError)
ErrFailedFindAllTransactionsByMerchant is returned when fetching transactions by merchant fails.
var ErrFailedFindByApiKey = response.NewErrorResponse("Failed to find Merchant by API key", http.StatusInternalServerError)
ErrFailedFindByApiKey is returned when a merchant cannot be found by API key.
var ErrFailedFindByMerchantUserId = response.NewErrorResponse("Failed to find Merchant by User ID", http.StatusInternalServerError)
ErrFailedFindByMerchantUserId is returned when a merchant cannot be found by user ID.
var ErrFailedFindMerchantById = response.NewErrorResponse("Failed to find Merchant by ID", http.StatusInternalServerError)
ErrFailedFindMerchantById is returned when a merchant cannot be found by ID.
var ErrFailedFindMonthlyAmountByApikeys = response.NewErrorResponse("Failed to get monthly amount by API key", http.StatusInternalServerError)
ErrFailedFindMonthlyAmountByApikeys indicates failure fetching monthly amounts by API key.
var ErrFailedFindMonthlyAmountByMerchants = response.NewErrorResponse("Failed to get monthly amount by Merchant", http.StatusInternalServerError)
ErrFailedFindMonthlyAmountByMerchants indicates failure fetching monthly amounts by merchant.
var ErrFailedFindMonthlyAmountMerchant = response.NewErrorResponse("Failed to get monthly amount", http.StatusInternalServerError)
ErrFailedFindMonthlyAmountMerchant indicates failure fetching monthly amounts.
var ErrFailedFindMonthlyPaymentMethodByApikeys = response.NewErrorResponse("Failed to get monthly payment methods by API key", http.StatusInternalServerError)
ErrFailedFindMonthlyPaymentMethodByApikeys indicates failure fetching monthly payment methods by API key.
var ErrFailedFindMonthlyPaymentMethodByMerchants = response.NewErrorResponse("Failed to get monthly payment methods by Merchant", http.StatusInternalServerError)
ErrFailedFindMonthlyPaymentMethodByMerchants indicates failure fetching monthly payment methods by merchant.
var ErrFailedFindMonthlyPaymentMethodsMerchant = response.NewErrorResponse("Failed to get monthly payment methods", http.StatusInternalServerError)
ErrFailedFindMonthlyPaymentMethodsMerchant indicates failure fetching monthly payment methods.
var ErrFailedFindMonthlyTotalAmountByApikeys = response.NewErrorResponse("Failed to get monthly total amount by API key", http.StatusInternalServerError)
ErrFailedFindMonthlyTotalAmountByApikeys indicates failure fetching monthly total amounts by API key.
var ErrFailedFindMonthlyTotalAmountByMerchants = response.NewErrorResponse("Failed to get monthly total amount by Merchant", http.StatusInternalServerError)
ErrFailedFindMonthlyTotalAmountByMerchants indicates failure fetching monthly total amounts by merchant.
var ErrFailedFindMonthlyTotalAmountMerchant = response.NewErrorResponse("Failed to get monthly total amount", http.StatusInternalServerError)
ErrFailedFindMonthlyTotalAmountMerchant indicates failure fetching monthly total amounts.
var ErrFailedFindTrashedMerchants = response.NewErrorResponse("Failed to fetch trashed Merchants", http.StatusInternalServerError)
ErrFailedFindTrashedMerchants indicates failure in fetching trashed merchants.
var ErrFailedFindYearlyAmountByApikeys = response.NewErrorResponse("Failed to get yearly amount by API key", http.StatusInternalServerError)
ErrFailedFindYearlyAmountByApikeys indicates failure fetching yearly amounts by API key.
var ErrFailedFindYearlyAmountByMerchants = response.NewErrorResponse("Failed to get yearly amount by Merchant", http.StatusInternalServerError)
ErrFailedFindYearlyAmountByMerchants indicates failure fetching yearly amounts by merchant.
var ErrFailedFindYearlyAmountMerchant = response.NewErrorResponse("Failed to get yearly amount", http.StatusInternalServerError)
ErrFailedFindYearlyAmountMerchant indicates failure fetching yearly amounts.
var ErrFailedFindYearlyPaymentMethodByApikeys = response.NewErrorResponse("Failed to get yearly payment method by API key", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethodByApikeys indicates failure fetching yearly payment methods by API key.
var ErrFailedFindYearlyPaymentMethodByMerchants = response.NewErrorResponse("Failed to get yearly payment method by Merchant", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethodByMerchants indicates failure fetching yearly payment methods by merchant.
var ErrFailedFindYearlyPaymentMethodMerchant = response.NewErrorResponse("Failed to get yearly payment method", http.StatusInternalServerError)
ErrFailedFindYearlyPaymentMethodMerchant indicates failure fetching yearly payment methods.
var ErrFailedFindYearlyTotalAmountByApikeys = response.NewErrorResponse("Failed to get yearly total amount by API key", http.StatusInternalServerError)
ErrFailedFindYearlyTotalAmountByApikeys indicates failure fetching yearly total amounts by API key.
var ErrFailedFindYearlyTotalAmountByMerchants = response.NewErrorResponse("Failed to get yearly total amount by Merchant", http.StatusInternalServerError)
ErrFailedFindYearlyTotalAmountByMerchants indicates failure fetching yearly total amounts by merchant.
var ErrFailedFindYearlyTotalAmountMerchant = response.NewErrorResponse("Failed to get yearly total amount", http.StatusInternalServerError)
ErrFailedFindYearlyTotalAmountMerchant indicates failure fetching yearly total amounts.
var ErrFailedRestoreAllMerchants = response.NewErrorResponse("Failed to restore all Merchants", http.StatusInternalServerError)
ErrFailedRestoreAllMerchants indicates failure when restoring all trashed merchants.
var ErrFailedRestoreMerchant = response.NewErrorResponse("Failed to restore Merchant", http.StatusInternalServerError)
ErrFailedRestoreMerchant indicates failure when restoring a trashed merchant.
var ErrFailedSendEmail = response.NewErrorResponse("Failed to send email", http.StatusInternalServerError)
ErrFailedSendEmail indicates a failure when sending an email related to merchant operations.
var ErrFailedTrashMerchant = response.NewErrorResponse("Failed to trash Merchant", http.StatusInternalServerError)
ErrFailedTrashMerchant indicates failure when soft-deleting (trashing) a merchant.
var ErrFailedUpdateMerchant = response.NewErrorResponse("Failed to update Merchant", http.StatusInternalServerError)
ErrFailedUpdateMerchant indicates failure when updating a merchant.
var ErrFindActiveMerchantsFailed = errors.New("failed to find active merchants")
ErrFindActiveMerchantsFailed is returned when fetching active merchants fails.
var ErrFindAllMerchantsFailed = errors.New("failed to find all merchants")
ErrFindAllMerchantsFailed is returned when fetching all merchants fails.
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 ErrFindMerchantByApiKeyFailed = errors.New("failed to find merchant by API key")
ErrFindMerchantByApiKeyFailed is returned when a merchant cannot be found by API key.
var ErrFindMerchantByIdFailed = errors.New("failed to find merchant by ID")
ErrFindMerchantByIdFailed is returned when a merchant cannot be found by ID.
var ErrFindMerchantByNameFailed = errors.New("failed to find merchant by name")
ErrFindMerchantByNameFailed is returned when a merchant cannot be found by name.
var ErrFindMerchantByUserIdFailed = errors.New("failed to find merchant by user ID")
ErrFindMerchantByUserIdFailed is returned when a merchant cannot be found by user ID.
var ErrFindTrashedMerchantsFailed = errors.New("failed to find trashed merchants")
ErrFindTrashedMerchantsFailed is returned when fetching trashed merchants fails.
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.
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.
var ErrMerchantNotFoundRes = response.NewErrorResponse("Merchant not found", http.StatusNotFound)
ErrMerchantNotFoundRes is returned when the merchant is not found.
var ErrRestoreAllMerchantFailed = errors.New("failed to restore all merchants")
ErrRestoreAllMerchantFailed indicates failure when restoring all trashed merchants.
var ErrRestoreMerchantFailed = errors.New("failed to restore merchant")
ErrRestoreMerchantFailed indicates failure when restoring a trashed merchant.
var ErrTrashedMerchantFailed = errors.New("failed to soft-delete (trash) merchant")
ErrTrashedMerchantFailed indicates failure when soft-deleting a merchant.
var ErrUpdateMerchantFailed = errors.New("failed to update merchant")
ErrUpdateMerchantFailed indicates failure when updating a merchant.
var ErrUpdateMerchantStatusFailed = errors.New("failed to update merchant status")
ErrUpdateMerchantStatusFailed indicates failure when updating merchant status.
Functions ¶
This section is empty.
Types ¶
This section is empty.