topupapierrors

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

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