saldoapierrors

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 ErrApiBindCreateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid create Saldo request", http.StatusBadRequest)
}

ErrApiBindCreateSaldo is returned when binding fails for saldo creation.

View Source
var ErrApiBindUpdateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "bind failed: invalid update Saldo request", http.StatusBadRequest)
}

ErrApiBindUpdateSaldo is returned when binding fails for saldo update.

View Source
var ErrApiFailedCreateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to create saldo", http.StatusInternalServerError)
}
View Source
var ErrApiFailedDeleteAllSaldoPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all saldos", http.StatusInternalServerError)
}

ErrApiFailedDeleteAllSaldoPermanent is returned when permanently deleting all saldos fails.

View Source
var ErrApiFailedDeleteSaldoPermanent = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to permanently delete saldo", http.StatusInternalServerError)
}

ErrApiFailedDeleteSaldoPermanent is returned when permanently deleting saldo fails.

View Source
var ErrApiFailedFindAllSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all saldos", http.StatusInternalServerError)
}

ErrApiFailedFindAllSaldo is returned when fetching all saldo records fails.

View Source
var ErrApiFailedFindAllSaldoActive = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all saldos active", http.StatusInternalServerError)
}

ErrApiFailedFindAllSaldoActive is returned when fetching active saldo records fails.

View Source
var ErrApiFailedFindAllSaldoTrashed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch all saldos trashed", http.StatusInternalServerError)
}

ErrApiFailedFindAllSaldoTrashed is returned when fetching trashed saldo records fails.

View Source
var ErrApiFailedFindByCardNumberSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch saldo by card number", http.StatusInternalServerError)
}

ErrApiFailedFindByCardNumberSaldo is returned when fetching saldo by card number fails.

View Source
var ErrApiFailedFindByIdSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch saldo by ID", http.StatusInternalServerError)
}

ErrApiFailedFindByIdSaldo is returned when fetching saldo by ID fails.

View Source
var ErrApiFailedFindMonthlySaldoBalances = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly saldo balances", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindMonthlyTotalSaldoBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly total saldo balance", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindYearTotalSaldoBalance = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly total saldo balance", http.StatusInternalServerError)
}
View Source
var ErrApiFailedFindYearlySaldoBalances = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly saldo balances", http.StatusInternalServerError)
}
View Source
var ErrApiFailedRestoreAllSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore all saldos", http.StatusInternalServerError)
}

ErrApiFailedRestoreAllSaldo is returned when restoring all saldos fails.

View Source
var ErrApiFailedRestoreSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to restore saldo", http.StatusInternalServerError)
}

ErrApiFailedRestoreSaldo is returned when restoring saldo fails.

View Source
var ErrApiFailedTrashSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to trash saldo", http.StatusInternalServerError)
}

ErrApiFailedTrashSaldo is returned when soft-deleting saldo fails.

View Source
var ErrApiFailedUpdateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update saldo", http.StatusInternalServerError)
}
View Source
var ErrApiInvalidCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid card-number value", http.StatusBadRequest)
}

ErrApiInvalidCardNumber indicates an invalid card number value in the request.

View Source
var ErrApiInvalidMonth = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid month value", http.StatusBadRequest)
}

ErrApiInvalidMonth indicates an invalid month value in the request.

View Source
var ErrApiInvalidSaldoID = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid saldo ID", http.StatusBadRequest)
}

ErrApiInvalidSaldoID indicates an invalid saldo ID in the request.

View Source
var ErrApiInvalidYear = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid year value", http.StatusBadRequest)
}

ErrApiInvalidYear indicates an invalid year value in the request.

View Source
var ErrApiValidateCreateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid create Saldo request", http.StatusBadRequest)
}

ErrApiValidateCreateSaldo is returned when validation fails for saldo creation.

View Source
var ErrApiValidateUpdateSaldo = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "validation failed: invalid update Saldo request", http.StatusBadRequest)
}

ErrApiValidateUpdateSaldo is returned when validation fails for saldo update.

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