Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrGrpcTopupNotFound = response.NewGrpcError("topup", "Topup not found", int(codes.NotFound)) ErrGrpcTopupInvalidID = response.NewGrpcError("topup", "Invalid Topup ID", int(codes.InvalidArgument)) ErrGrpcTopupInvalidMonth = response.NewGrpcError("month", "Invalid Topup Month", int(codes.InvalidArgument)) ErrGrpcInvalidCardNumber = response.NewGrpcError("card_id", "Invalid card number", int(codes.InvalidArgument)) ErrGrpcTopupInvalidYear = response.NewGrpcError("year", "Invalid Topup Year", int(codes.InvalidArgument)) ErrGrpcFailedFindAllTopup = response.NewGrpcError("topup", "Failed to fetch all topups", int(codes.Internal)) ErrGrpcFailedFindAllTopupByCardNumber = response.NewGrpcError("topup", "Failed to fetch topups by card number", int(codes.Internal)) ErrGrpcFailedFindByIdTopup = response.NewGrpcError("topup", "Failed to fetch topup by ID", int(codes.Internal)) ErrGrpcFailedFindByCardNumberTopup = response.NewGrpcError("topup", "Failed to fetch topup by card number", int(codes.Internal)) ErrGrpcFailedFindByActiveTopup = response.NewGrpcError("topup", "Failed to fetch active topups", int(codes.Internal)) ErrGrpcFailedFindByTrashedTopup = response.NewGrpcError("topup", "Failed to fetch trashed topups", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupStatusSuccess = response.NewGrpcError("topup", "Failed to fetch monthly successful topups", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupStatusSuccess = response.NewGrpcError("topup", "Failed to fetch yearly successful topups", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupStatusFailed = response.NewGrpcError("topup", "Failed to fetch monthly failed topups", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupStatusFailed = response.NewGrpcError("topup", "Failed to fetch yearly failed topups", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupStatusSuccessByCardNumber = response.NewGrpcError("topup", "Failed to fetch monthly successful topups by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupStatusSuccessByCardNumber = response.NewGrpcError("topup", "Failed to fetch yearly successful topups by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupStatusFailedByCardNumber = response.NewGrpcError("topup", "Failed to fetch monthly failed topups by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupStatusFailedByCardNumber = response.NewGrpcError("topup", "Failed to fetch yearly failed topups by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupMethods = response.NewGrpcError("topup", "Failed to fetch monthly topup methods", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupMethods = response.NewGrpcError("topup", "Failed to fetch yearly topup methods", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupAmounts = response.NewGrpcError("topup", "Failed to fetch monthly topup amounts", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupAmounts = response.NewGrpcError("topup", "Failed to fetch yearly topup amounts", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupMethodsByCardNumber = response.NewGrpcError("topup", "Failed to fetch monthly topup methods by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupMethodsByCardNumber = response.NewGrpcError("topup", "Failed to fetch yearly topup methods by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyTopupAmountsByCardNumber = response.NewGrpcError("topup", "Failed to fetch monthly topup amounts by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyTopupAmountsByCardNumber = response.NewGrpcError("topup", "Failed to fetch yearly topup amounts by card number", int(codes.Internal)) ErrGrpcFailedCreateTopup = response.NewGrpcError("topup", "Failed to create topup", int(codes.Internal)) ErrGrpcFailedUpdateTopup = response.NewGrpcError("topup", "Failed to update topup", int(codes.Internal)) ErrGrpcValidateCreateTopup = response.NewGrpcError("topup", "Invalid input for create topup", int(codes.InvalidArgument)) ErrGrpcValidateUpdateTopup = response.NewGrpcError("topup", "Invalid input for update topup", int(codes.InvalidArgument)) ErrGrpcFailedTrashedTopup = response.NewGrpcError("topup", "Failed to move topup to trash", int(codes.Internal)) ErrGrpcFailedRestoreTopup = response.NewGrpcError("topup", "Failed to restore topup", int(codes.Internal)) ErrGrpcFailedDeleteTopupPermanent = response.NewGrpcError("topup", "Failed to permanently delete topup", int(codes.Internal)) ErrGrpcFailedRestoreAllTopup = response.NewGrpcError("topup", "Failed to restore all topups", int(codes.Internal)) ErrGrpcFailedDeleteAllTopupPermanent = response.NewGrpcError("topup", "Failed to permanently delete all topups", int(codes.Internal)) )
var ErrApiBindCreateTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid create topup request", http.StatusBadRequest) }
ErrApiBindCreateTopup returns a 400 error when binding the create topup request fails.
var ErrApiBindUpdateTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update topup request", http.StatusBadRequest) }
ErrApiBindUpdateTopup returns a 400 error when binding the update topup request fails.
var ErrApiFailedCreateTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to create topup", http.StatusInternalServerError) }
ErrApiFailedCreateTopup returns a 500 error when creating a new topup fails.
var ErrApiFailedDeleteAllTopupPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all topups", http.StatusInternalServerError) }
ErrApiFailedDeleteAllTopupPermanent returns a 500 error when permanently deleting all topups fails.
var ErrApiFailedDeletePermanentTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete topup", http.StatusInternalServerError) }
ErrApiFailedDeletePermanentTopup returns a 500 error when permanently deleting a topup fails.
var ErrApiFailedFindAllByCardNumberTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch topups by card number", http.StatusInternalServerError) }
ErrApiFailedFindAllByCardNumberTopup returns a 500 error when retrieving top-ups by card number fails.
var ErrApiFailedFindAllTopups = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all topups", http.StatusInternalServerError) }
ErrApiFailedFindAllTopups returns a 500 Internal Server Error when fetching all top-up records fails.
var ErrApiFailedFindAllTopupsActive = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all topups active", http.StatusInternalServerError) }
ErrApiFailedFindAllTopupsActive returns a 500 error when retrieving all active (non-deleted) top-ups fails.
var ErrApiFailedFindAllTopupsTrashed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all topups trashed", http.StatusInternalServerError) }
ErrApiFailedFindAllTopupsTrashed returns a 500 error when retrieving all trashed (soft-deleted) top-ups fails.
var ErrApiFailedFindByIdTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch topup by ID", http.StatusInternalServerError) }
ErrApiFailedFindByIdTopup returns a 500 error when retrieving a specific top-up by ID fails.
var ErrApiFailedFindMonthlyTopupAmounts = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly topup amounts", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupAmounts returns a 500 error when fetching monthly topup amounts fails.
var ErrApiFailedFindMonthlyTopupAmountsByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly topup amounts by card number", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupAmountsByCardNumber returns a 500 error when fetching monthly topup amounts by card number fails.
var ErrApiFailedFindMonthlyTopupMethods = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly topup methods", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupMethods returns a 500 error when fetching monthly topup methods fails.
var ErrApiFailedFindMonthlyTopupMethodsByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly topup methods by card number", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupMethodsByCardNumber returns a 500 error when fetching monthly topup methods by card number fails.
var ErrApiFailedFindMonthlyTopupStatusFailed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed topups", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupStatusFailed returns a 500 error when fetching monthly failed top-up stats fails.
var ErrApiFailedFindMonthlyTopupStatusFailedByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed topups by card number", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupStatusFailedByCardNumber returns a 500 error when fetching monthly failed topups by card number fails.
var ErrApiFailedFindMonthlyTopupStatusSuccess = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful topups", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupStatusSuccess returns a 500 error when fetching monthly successful top-up stats fails.
var ErrApiFailedFindMonthlyTopupStatusSuccessByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful topups by card number", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyTopupStatusSuccessByCardNumber returns a 500 error when fetching monthly successful top-ups by card number fails.
var ErrApiFailedFindYearlyTopupAmounts = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly topup amounts", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupAmounts returns a 500 error when fetching yearly topup amounts fails.
var ErrApiFailedFindYearlyTopupAmountsByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly topup amounts by card number", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupAmountsByCardNumber returns a 500 error when fetching yearly topup amounts by card number fails.
var ErrApiFailedFindYearlyTopupMethods = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly topup methods", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupMethods returns a 500 error when fetching yearly topup methods fails.
var ErrApiFailedFindYearlyTopupMethodsByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly topup methods by card number", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupMethodsByCardNumber returns a 500 error when fetching yearly topup methods by card number fails.
var ErrApiFailedFindYearlyTopupStatusFailed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed topups", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupStatusFailed returns a 500 error when fetching yearly failed top-up stats fails.
var ErrApiFailedFindYearlyTopupStatusFailedByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed topups by card number", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupStatusFailedByCardNumber returns a 500 error when fetching yearly failed topups by card number fails.
var ErrApiFailedFindYearlyTopupStatusSuccess = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful topups", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupStatusSuccess returns a 500 error when fetching yearly successful top-up stats fails.
var ErrApiFailedFindYearlyTopupStatusSuccessByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful topups by card number", http.StatusInternalServerError) }
ErrApiFailedFindYearlyTopupStatusSuccessByCardNumber returns a 500 error when fetching yearly successful top-ups by card number fails.
var ErrApiFailedRestoreAllTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore all topups", http.StatusInternalServerError) }
ErrApiFailedRestoreAllTopup returns a 500 error when restoring all trashed topups fails.
var ErrApiFailedRestoreTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore topup", http.StatusInternalServerError) }
ErrApiFailedRestoreTopup returns a 500 error when restoring a trashed topup fails.
var ErrApiFailedTrashTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to trash topup", http.StatusInternalServerError) }
ErrApiFailedTrashTopup returns a 500 error when moving a topup to trash fails.
var ErrApiFailedUpdateTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update topup", http.StatusInternalServerError) }
ErrApiFailedUpdateTopup returns a 500 error when updating a topup fails.
var ErrApiInvalidCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid card number", http.StatusBadRequest) }
ErrApiInvalidCardNumber returns a 400 Bad Request error when the provided card number is invalid.
var ErrApiInvalidMonth = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid month value", http.StatusBadRequest) }
ErrApiInvalidMonth returns a 400 Bad Request error when the provided month value is invalid or missing.
var ErrApiInvalidTopupID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid topup ID", http.StatusBadRequest) }
ErrApiInvalidTopupID returns a 400 Bad Request error when the provided top-up ID is invalid.
var ErrApiInvalidYear = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid year value", http.StatusBadRequest) }
ErrApiInvalidYear returns a 400 Bad Request error when the provided year value is invalid or missing.
var ErrApiValidateCreateTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid create topup request", http.StatusBadRequest) }
ErrApiValidateCreateTopup returns a 400 error when the create topup request fails validation.
var ErrApiValidateUpdateTopup = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update topup request", http.StatusBadRequest) }
ErrApiValidateUpdateTopup returns a 400 error when the update topup request fails validation.
var ErrCreateTopupFailed = errors.New("failed to create topup")
ErrCreateTopupFailed indicates failure in creating a new top-up record.
var ErrDeleteAllTopupPermanentFailed = errors.New("failed to permanently delete all topups")
ErrDeleteAllTopupPermanentFailed indicates failure in permanently deleting all trashed top-ups.
var ErrDeleteTopupPermanentFailed = errors.New("failed to permanently delete topup")
ErrDeleteTopupPermanentFailed indicates failure in permanently deleting a top-up.
var ErrFailedCreateTopup = response.NewErrorResponse("Failed to create Topup", http.StatusInternalServerError)
ErrFailedCreateTopup indicates failure in creating a new top-up record.
var ErrFailedDeleteAllTopups = response.NewErrorResponse("Failed to delete all Topups permanently", http.StatusInternalServerError)
ErrFailedDeleteAllTopups indicates failure in permanently deleting all trashed top-up records.
var ErrFailedDeleteTopup = response.NewErrorResponse("Failed to delete Topup permanently", http.StatusInternalServerError)
ErrFailedDeleteTopup indicates failure in permanently deleting a top-up.
var ErrFailedFindActiveTopups = response.NewErrorResponse("Failed to fetch active Topups", http.StatusInternalServerError)
ErrFailedFindActiveTopups indicates failure in retrieving active (non-trashed) top-up records.
var ErrFailedFindAllTopups = response.NewErrorResponse("Failed to fetch Topups", http.StatusInternalServerError)
ErrFailedFindAllTopups indicates failure in retrieving all top-up records.
var ErrFailedFindAllTopupsByCardNumber = response.NewErrorResponse("Failed to fetch Topups by card number", http.StatusInternalServerError)
ErrFailedFindAllTopupsByCardNumber indicates failure in retrieving top-ups by card number.
var ErrFailedFindMonthTopupStatusFailed = response.NewErrorResponse("Failed to get monthly topup failed status", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusFailed indicates failure in retrieving monthly failed top-up status.
var ErrFailedFindMonthTopupStatusFailedByCard = response.NewErrorResponse("Failed to get monthly topup failed status by card", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusFailedByCard indicates failure in retrieving monthly failed top-up status by card.
var ErrFailedFindMonthTopupStatusSuccess = response.NewErrorResponse("Failed to get monthly topup success status", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusSuccess indicates failure in retrieving monthly successful top-up status.
var ErrFailedFindMonthTopupStatusSuccessByCard = response.NewErrorResponse("Failed to get monthly topup success status by card", http.StatusInternalServerError)
ErrFailedFindMonthTopupStatusSuccessByCard indicates failure in retrieving monthly successful top-up status by card.
var ErrFailedFindMonthlyTopupAmounts = response.NewErrorResponse("Failed to get monthly topup amounts", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupAmounts indicates failure in retrieving monthly top-up amounts.
var ErrFailedFindMonthlyTopupAmountsByCard = response.NewErrorResponse("Failed to get monthly topup amounts by card", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupAmountsByCard indicates failure in retrieving monthly top-up amounts by card.
var ErrFailedFindMonthlyTopupMethods = response.NewErrorResponse("Failed to get monthly topup methods", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupMethods indicates failure in retrieving monthly top-up methods.
var ErrFailedFindMonthlyTopupMethodsByCard = response.NewErrorResponse("Failed to get monthly topup methods by card", http.StatusInternalServerError)
ErrFailedFindMonthlyTopupMethodsByCard indicates failure in retrieving monthly top-up methods by card.
var ErrFailedFindTopupById = response.NewErrorResponse("Failed to find Topup by ID", http.StatusInternalServerError)
ErrFailedFindTopupById indicates failure in finding a top-up by its ID.
var ErrFailedFindTrashedTopups = response.NewErrorResponse("Failed to fetch trashed Topups", http.StatusInternalServerError)
ErrFailedFindTrashedTopups indicates failure in retrieving trashed (soft-deleted) top-up records.
var ErrFailedFindYearlyTopupAmounts = response.NewErrorResponse("Failed to get yearly topup amounts", http.StatusInternalServerError)
ErrFailedFindYearlyTopupAmounts indicates failure in retrieving yearly top-up amounts.
var ErrFailedFindYearlyTopupAmountsByCard = response.NewErrorResponse("Failed to get yearly topup amounts by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupAmountsByCard indicates failure in retrieving yearly top-up amounts by card.
var ErrFailedFindYearlyTopupMethods = response.NewErrorResponse("Failed to get yearly topup methods", http.StatusInternalServerError)
ErrFailedFindYearlyTopupMethods indicates failure in retrieving yearly top-up methods.
var ErrFailedFindYearlyTopupMethodsByCard = response.NewErrorResponse("Failed to get yearly topup methods by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupMethodsByCard indicates failure in retrieving yearly top-up methods by card.
var ErrFailedFindYearlyTopupStatusFailed = response.NewErrorResponse("Failed to get yearly topup failed status", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusFailed indicates failure in retrieving yearly failed top-up status.
var ErrFailedFindYearlyTopupStatusFailedByCard = response.NewErrorResponse("Failed to get yearly topup failed status by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusFailedByCard indicates failure in retrieving yearly failed top-up status by card.
var ErrFailedFindYearlyTopupStatusSuccess = response.NewErrorResponse("Failed to get yearly topup success status", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusSuccess indicates failure in retrieving yearly successful top-up status.
var ErrFailedFindYearlyTopupStatusSuccessByCard = response.NewErrorResponse("Failed to get yearly topup success status by card", http.StatusInternalServerError)
ErrFailedFindYearlyTopupStatusSuccessByCard indicates failure in retrieving yearly successful top-up status by card.
var ErrFailedRestoreAllTopups = response.NewErrorResponse("Failed to restore all Topups", http.StatusInternalServerError)
ErrFailedRestoreAllTopups indicates failure in restoring all trashed top-up records.
var ErrFailedRestoreTopup = response.NewErrorResponse("Failed to restore Topup", http.StatusInternalServerError)
ErrFailedRestoreTopup indicates failure in restoring a previously trashed top-up.
var ErrFailedTrashTopup = response.NewErrorResponse("Failed to trash Topup", http.StatusInternalServerError)
ErrFailedTrashTopup indicates failure in soft-deleting (trashing) a top-up.
var ErrFailedUpdateTopup = response.NewErrorResponse("Failed to update Topup", http.StatusInternalServerError)
ErrFailedUpdateTopup indicates failure in updating an existing top-up record.
var ErrFindAllTopupsFailed = errors.New("failed to find all topups")
ErrFindAllTopupsFailed indicates failure in retrieving all top-up records from the database.
var ErrFindTopupByIdFailed = errors.New("failed to find topup by ID")
ErrFindTopupByIdFailed indicates failure in finding a top-up using its unique ID.
var ErrFindTopupsByActiveFailed = errors.New("failed to find active topups")
ErrFindTopupsByActiveFailed indicates failure in retrieving only the active (non-deleted) top-ups.
var ErrFindTopupsByCardNumberFailed = errors.New("failed to find topups by card number")
ErrFindTopupsByCardNumberFailed indicates failure in finding top-ups by a specific card number.
var ErrFindTopupsByTrashedFailed = errors.New("failed to find trashed topups")
ErrFindTopupsByTrashedFailed indicates failure in retrieving trashed (soft-deleted) top-ups.
var ErrGetMonthTopupStatusFailedByCardFailed = errors.New("failed to get monthly topup status failed by card number")
ErrGetMonthTopupStatusFailedByCardFailed indicates failure in getting monthly failed top-up status by card number.
var ErrGetMonthTopupStatusFailedFailed = errors.New("failed to get monthly topup status failed")
ErrGetMonthTopupStatusFailedFailed indicates failure in getting the monthly count of failed top-ups.
var ErrGetMonthTopupStatusSuccessByCardFailed = errors.New("failed to get monthly topup status success by card number")
ErrGetMonthTopupStatusSuccessByCardFailed indicates failure in getting monthly successful top-up status by card number.
var ErrGetMonthTopupStatusSuccessFailed = errors.New("failed to get monthly topup status success")
ErrGetMonthTopupStatusSuccessFailed indicates failure in getting the monthly count of successful top-ups.
var ErrGetMonthlyTopupAmountsByCardFailed = errors.New("failed to get monthly topup amounts by card number")
ErrGetMonthlyTopupAmountsByCardFailed indicates failure in retrieving monthly top-up amount stats by card number.
var ErrGetMonthlyTopupAmountsFailed = errors.New("failed to get monthly topup amounts")
ErrGetMonthlyTopupAmountsFailed indicates failure in retrieving the monthly top-up amounts.
var ErrGetMonthlyTopupMethodsByCardFailed = errors.New("failed to get monthly topup methods by card number")
ErrGetMonthlyTopupMethodsByCardFailed indicates failure in retrieving monthly payment method stats by card number.
var ErrGetMonthlyTopupMethodsFailed = errors.New("failed to get monthly topup methods")
ErrGetMonthlyTopupMethodsFailed indicates failure in retrieving monthly top-up payment methods statistics.
var ErrGetYearlyTopupAmountsByCardFailed = errors.New("failed to get yearly topup amounts by card number")
ErrGetYearlyTopupAmountsByCardFailed indicates failure in retrieving yearly top-up amount stats by card number.
var ErrGetYearlyTopupAmountsFailed = errors.New("failed to get yearly topup amounts")
ErrGetYearlyTopupAmountsFailed indicates failure in retrieving the yearly top-up amounts.
var ErrGetYearlyTopupMethodsByCardFailed = errors.New("failed to get yearly topup methods by card number")
ErrGetYearlyTopupMethodsByCardFailed indicates failure in retrieving yearly payment method stats by card number.
var ErrGetYearlyTopupMethodsFailed = errors.New("failed to get yearly topup methods")
ErrGetYearlyTopupMethodsFailed indicates failure in retrieving yearly top-up payment methods statistics.
var ErrGetYearlyTopupStatusFailedByCardFailed = errors.New("failed to get yearly topup status failed by card number")
ErrGetYearlyTopupStatusFailedByCardFailed indicates failure in getting yearly failed top-up status by card number.
var ErrGetYearlyTopupStatusFailedFailed = errors.New("failed to get yearly topup status failed")
ErrGetYearlyTopupStatusFailedFailed indicates failure in getting the yearly count of failed top-ups.
var ErrGetYearlyTopupStatusSuccessByCardFailed = errors.New("failed to get yearly topup status success by card number")
ErrGetYearlyTopupStatusSuccessByCardFailed indicates failure in getting yearly successful top-up status by card number.
var ErrGetYearlyTopupStatusSuccessFailed = errors.New("failed to get yearly topup status success")
ErrGetYearlyTopupStatusSuccessFailed indicates failure in getting the yearly count of successful top-ups.
var ErrRestoreAllTopupFailed = errors.New("failed to restore all topups")
ErrRestoreAllTopupFailed indicates failure in restoring all trashed top-ups.
var ErrRestoreTopupFailed = errors.New("failed to restore topup")
ErrRestoreTopupFailed indicates failure in restoring a previously trashed top-up.
var ErrTopupNotFoundRes = response.NewErrorResponse("Topup not found", http.StatusNotFound)
ErrTopupNotFoundRes indicates that a requested top-up was not found.
var ErrTrashedTopupFailed = errors.New("failed to soft-delete (trash) topup")
ErrTrashedTopupFailed indicates failure in soft-deleting (trashing) a top-up.
var ErrUpdateTopupAmountFailed = errors.New("failed to update topup amount")
ErrUpdateTopupAmountFailed indicates failure in updating only the top-up amount.
var ErrUpdateTopupFailed = errors.New("failed to update topup")
ErrUpdateTopupFailed indicates failure in updating an existing top-up record.
var ErrUpdateTopupStatusFailed = errors.New("failed to update topup status")
ErrUpdateTopupStatusFailed indicates failure in updating the top-up status (e.g., success/failed).
Functions ¶
This section is empty.
Types ¶
This section is empty.