transactionapierrors

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

ErrApiBindCreateTransfer returns an API error response when binding the request for creating a transfer fails due to invalid input.

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

ErrApiBindUpdateTransfer returns an API error response when binding the request for updating a transfer fails due to invalid input.

View Source
var ErrApiFailedCreateTransfer = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to create transfer", http.StatusInternalServerError)
}

ErrApiFailedCreateTransfer returns an API error response when creating a new transfer fails.

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

ErrApiFailedDeleteAllTransferPermanent returns an API error response when attempting to permanently delete all transfers fails.

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

ErrApiFailedDeleteTransferPermanent returns an API error response when attempting to permanently delete a transfer fails.

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

ErrApiFailedFindAllTransfers is an error response for failed to fetch all transfers.

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

ErrApiFailedFindByActiveTransfer is an error response for failed to fetch active transfers.

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

ErrApiFailedFindByIdTransfer is an error response for failed to fetch transfer by ID.

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

ErrApiFailedFindByTransferFrom is an error response for failed to fetch transfers by transfer_from.

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

ErrApiFailedFindByTransferTo is an error response for failed to fetch transfers by transfer_to.

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

ErrApiFailedFindByTrashedTransfer returns an API error response when fetching trashed (soft-deleted) transfers fails.

View Source
var ErrApiFailedFindMonthlyTransferAmounts = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer amounts", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferAmounts returns an API error response when fetching monthly total transfer amounts fails.

View Source
var ErrApiFailedFindMonthlyTransferAmountsByReceiverCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer amounts by receiver card number", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferAmountsByReceiverCardNumber returns an API error response when fetching monthly transfer amounts by receiver card number fails.

View Source
var ErrApiFailedFindMonthlyTransferAmountsBySenderCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly transfer amounts by sender card number", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferAmountsBySenderCardNumber returns an API error response when fetching monthly transfer amounts by sender card number fails.

View Source
var ErrApiFailedFindMonthlyTransferStatusFailed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed transfers", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferStatusFailed returns an API error response when fetching monthly failed transfer data fails.

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

ErrApiFailedFindMonthlyTransferStatusFailedByCardNumber returns an API error response when fetching monthly failed transfers by card number fails.

View Source
var ErrApiFailedFindMonthlyTransferStatusSuccess = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful transfers", http.StatusInternalServerError)
}

ErrApiFailedFindMonthlyTransferStatusSuccess returns an API error response when fetching monthly successful transfer data fails.

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

ErrApiFailedFindMonthlyTransferStatusSuccessByCardNumber returns an API error response when fetching monthly successful transfers by card number fails.

View Source
var ErrApiFailedFindYearlyTransferAmounts = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer amounts", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferAmounts returns an API error response when fetching yearly total transfer amounts fails.

View Source
var ErrApiFailedFindYearlyTransferAmountsByReceiverCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer amounts by receiver card number", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferAmountsByReceiverCardNumber returns an API error response when fetching yearly transfer amounts by receiver card number fails.

View Source
var ErrApiFailedFindYearlyTransferAmountsBySenderCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly transfer amounts by sender card number", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferAmountsBySenderCardNumber returns an API error response when fetching yearly transfer amounts by sender card number fails.

View Source
var ErrApiFailedFindYearlyTransferStatusFailed = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed transfers", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferStatusFailed returns an API error response when fetching yearly failed transfer data fails.

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

ErrApiFailedFindYearlyTransferStatusFailedByCardNumber returns an API error response when fetching yearly failed transfers by card number fails.

View Source
var ErrApiFailedFindYearlyTransferStatusSuccess = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful transfers", http.StatusInternalServerError)
}

ErrApiFailedFindYearlyTransferStatusSuccess returns an API error response when fetching yearly successful transfer data fails.

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

ErrApiFailedFindYearlyTransferStatusSuccessByCardNumber returns an API error response when fetching yearly successful transfers by card number fails.

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

ErrApiFailedRestoreAllTransfer returns an API error response when attempting to restore all trashed transfers fails.

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

ErrApiFailedRestoreTransfer returns an API error response when attempting to restore a trashed transfer fails.

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

ErrApiFailedTrashedTransfer returns an API error response when attempting to trash (soft-delete) a transfer fails.

View Source
var ErrApiFailedUpdateTransfer = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Failed to update transfer", http.StatusInternalServerError)
}

ErrApiFailedUpdateTransfer returns an API error response when updating a transfer fails.

View Source
var ErrApiInvalidCardNumber = func(c echo.Context) error {
	return response.NewApiErrorResponse(c, "error", "Invalid card number", http.StatusBadRequest)
}

ErrApiInvalidCardNumber is an error response for invalid card number.

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

ErrApiInvalidMonth is an error response for invalid month.

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

ErrApiInvalidYear is an error response for invalid year.

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

ErrApiTransferInvalidID is an error response for invalid transfer ID.

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

ErrApiTransferInvalidMerchantID is an error response for invalid transfer merchant ID.

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

ErrApiValidateCreateTransfer returns an API error response when validation fails on the create transfer request payload.

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

ErrApiValidateUpdateTransfer returns an API error response when validation fails on the update transfer request payload.

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