README
¶
📦 Package withdraw_errors
Source Path: shared/errors/withdraw_errors
🏷️ Variables
Var:
ErrApiBindCreateWithdraw is an error response for bind failed: invalid create withdraw request.
var ErrApiBindCreateWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "bind failed: invalid create withdraw request", http.StatusBadRequest)
}
Var:
ErrApiBindUpdateWithdraw is an error response for bind failed: invalid update withdraw request.
var ErrApiBindUpdateWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "bind failed: invalid update withdraw request", http.StatusBadRequest)
}
Var:
ErrApiFailedCreateWithdraw is an error response for failed to create withdraw.
var ErrApiFailedCreateWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to create withdraw", http.StatusInternalServerError)
}
Var:
ErrApiFailedDeleteAllWithdrawPermanent is an error response for failed to permanently delete all withdraws.
var ErrApiFailedDeleteAllWithdrawPermanent = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedDeleteWithdrawPermanent is an error response for failed to permanently delete withdraw.
var ErrApiFailedDeleteWithdrawPermanent = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to permanently delete withdraw", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindAllWithdraw is an error response for failed to fetch all withdraws.
var ErrApiFailedFindAllWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch all withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindAllWithdrawByCardNumber is an error response for failed to fetch withdraws by card number.
var ErrApiFailedFindAllWithdrawByCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch withdraws by card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindByActiveWithdraw is an error response for failed to fetch active withdraws.
var ErrApiFailedFindByActiveWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch active withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindByCardNumber is an error response for failed to fetch withdraws using card number.
var ErrApiFailedFindByCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch withdraws using card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindByIdWithdraw is an error response for failed to fetch withdraw by ID.
var ErrApiFailedFindByIdWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch withdraw by ID", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindByTrashedWithdraw is an error response for failed to fetch trashed withdraws.
var ErrApiFailedFindByTrashedWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch trashed withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindMonthlyWithdrawStatusFailed is an error response for failed to fetch monthly failed withdraws.
var ErrApiFailedFindMonthlyWithdrawStatusFailed = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindMonthlyWithdrawStatusFailedCardNumber is an error response for failed to fetch monthly failed withdraws by card number.
var ErrApiFailedFindMonthlyWithdrawStatusFailedCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed withdraws by card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindMonthlyWithdrawStatusSuccess is an error response for failed to fetch monthly successful withdraws.
var ErrApiFailedFindMonthlyWithdrawStatusSuccess = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindMonthlyWithdrawStatusSuccessCardNumber is an error response for failed to fetch monthly successful withdraws by card number.
var ErrApiFailedFindMonthlyWithdrawStatusSuccessCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful withdraws by card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindMonthlyWithdraws is an error response for failed to fetch monthly withdraw amounts.
var ErrApiFailedFindMonthlyWithdraws = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly withdraw amounts", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindMonthlyWithdrawsByCardNumber is an error response for failed to fetch monthly withdraw amounts by card number.
var ErrApiFailedFindMonthlyWithdrawsByCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly withdraw amounts by card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindYearlyWithdrawStatusFailed is an error response for failed to fetch yearly failed withdraws.
var ErrApiFailedFindYearlyWithdrawStatusFailed = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindYearlyWithdrawStatusFailedCardNumber is an error response for failed to fetch yearly failed withdraws by card number.
var ErrApiFailedFindYearlyWithdrawStatusFailedCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed withdraws by card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindYearlyWithdrawStatusSuccess is an error response for failed to fetch yearly successful withdraws.
var ErrApiFailedFindYearlyWithdrawStatusSuccess = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindYearlyWithdrawStatusSuccessCardNumber is an error response for failed to fetch yearly successful withdraws by card number.
var ErrApiFailedFindYearlyWithdrawStatusSuccessCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful withdraws by card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindYearlyWithdraws is an error response for failed to fetch yearly withdraw amounts.
var ErrApiFailedFindYearlyWithdraws = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly withdraw amounts", http.StatusInternalServerError)
}
Var:
ErrApiFailedFindYearlyWithdrawsByCardNumber is an error response for failed to fetch yearly withdraw amounts by card number.
var ErrApiFailedFindYearlyWithdrawsByCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly withdraw amounts by card number", http.StatusInternalServerError)
}
Var:
ErrApiFailedRestoreAllWithdraw is an error response for failed to restore all withdraws.
var ErrApiFailedRestoreAllWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to restore all withdraws", http.StatusInternalServerError)
}
Var:
ErrApiFailedRestoreWithdraw is an error response for failed to restore withdraw.
var ErrApiFailedRestoreWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to restore withdraw", http.StatusInternalServerError)
}
Var:
ErrApiFailedTrashedWithdraw is an error response for failed to move withdraw to trash.
var ErrApiFailedTrashedWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to move withdraw to trash", http.StatusInternalServerError)
}
Var:
ErrApiFailedUpdateWithdraw is an error response for failed to update withdraw.
var ErrApiFailedUpdateWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Failed to update withdraw", http.StatusInternalServerError)
}
Var:
ErrApiInvalidCardNumber is an error response for invalid card number.
var ErrApiInvalidCardNumber = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Invalid card number", http.StatusBadRequest)
}
Var:
ErrApiInvalidMonth is an error response for invalid month.
var ErrApiInvalidMonth = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Invalid month", http.StatusBadRequest)
}
Var:
ErrApiInvalidYear is an error response for invalid year.
var ErrApiInvalidYear = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "year", "Invalid year", http.StatusBadRequest)
}
Var:
ErrApiValidateCreateWithdraw is an error response for validation failed: invalid create withdraw request.
var ErrApiValidateCreateWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "validation failed: invalid create withdraw request", http.StatusBadRequest)
}
Var:
ErrApiValidateUpdateWithdraw is an error response for validation failed: invalid update withdraw request.
var ErrApiValidateUpdateWithdraw = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "validation failed: invalid update withdraw request", http.StatusBadRequest)
}
Var:
ErrApiWithdrawInvalidID is an error response for invalid withdraw ID.
var ErrApiWithdrawInvalidID = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Invalid Withdraw ID", http.StatusBadRequest)
}
Var:
ErrApiWithdrawInvalidUserID is an error response for invalid withdraw merchant ID.
var ErrApiWithdrawInvalidUserID = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Invalid Withdraw Merchant ID", http.StatusBadRequest)
}
Var:
ErrApiWithdrawNotFound is an error response for withdraw not found.
var ErrApiWithdrawNotFound = func(c echo.Context) error {
return response.NewApiErrorResponse(c, "error", "Withdraw not found", http.StatusNotFound)
}
Var:
ErrCreateWithdrawFailed indicates a failure when creating a new withdraw record.
var ErrCreateWithdrawFailed = errors.New("failed to create withdraw")
Var:
ErrDeleteAllWithdrawsPermanentFailed indicates a failure when permanently deleting all withdraw records.
var ErrDeleteAllWithdrawsPermanentFailed = errors.New("failed to permanently delete all withdraws")
Var:
ErrDeleteWithdrawPermanentFailed indicates a failure when permanently deleting a withdraw record.
var ErrDeleteWithdrawPermanentFailed = errors.New("failed to permanently delete withdraw")
Var:
ErrFailedCreateWithdraw is used when failed to create withdraw
var ErrFailedCreateWithdraw = response.NewErrorResponse("Failed to create withdraw", http.StatusInternalServerError)
Var:
ErrFailedDeleteAllWithdrawPermanent is used when failed to permanently delete all withdraws
var ErrFailedDeleteAllWithdrawPermanent = response.NewErrorResponse("Failed to permanently delete all withdraws", http.StatusInternalServerError)
Var:
ErrFailedDeleteWithdrawPermanent is used when failed to permanently delete withdraw
var ErrFailedDeleteWithdrawPermanent = response.NewErrorResponse("Failed to permanently delete withdraw", http.StatusInternalServerError)
Var:
ErrFailedFindActiveWithdraws is used when failed to fetch active withdraws
var ErrFailedFindActiveWithdraws = response.NewErrorResponse("Failed to fetch active withdraws", http.StatusInternalServerError)
Var:
ErrFailedFindAllWithdraws is used when failed to fetch all withdraws
var ErrFailedFindAllWithdraws = response.NewErrorResponse("Failed to fetch all withdraws", http.StatusInternalServerError)
Var:
ErrFailedFindAllWithdrawsByCard is used when failed to fetch all withdraws by card number
var ErrFailedFindAllWithdrawsByCard = response.NewErrorResponse("Failed to fetch all withdraws by card number", http.StatusInternalServerError)
Var:
ErrFailedFindMonthWithdrawStatusFailed is used when failed to fetch monthly failed withdraws
var ErrFailedFindMonthWithdrawStatusFailed = response.NewErrorResponse("Failed to fetch monthly failed withdraws", http.StatusInternalServerError)
Var:
ErrFailedFindMonthWithdrawStatusFailedByCard is used when failed to fetch monthly failed withdraws by card
var ErrFailedFindMonthWithdrawStatusFailedByCard = response.NewErrorResponse("Failed to fetch monthly failed withdraws by card", http.StatusInternalServerError)
Var:
ErrFailedFindMonthWithdrawStatusSuccess is used when failed to fetch monthly successful withdraws
var ErrFailedFindMonthWithdrawStatusSuccess = response.NewErrorResponse("Failed to fetch monthly successful withdraws", http.StatusInternalServerError)
Var:
ErrFailedFindMonthWithdrawStatusSuccessByCard is used when failed to fetch monthly successful withdraws by card
var ErrFailedFindMonthWithdrawStatusSuccessByCard = response.NewErrorResponse("Failed to fetch monthly successful withdraws by card", http.StatusInternalServerError)
Var:
ErrFailedFindMonthlyWithdraws is used when failed to fetch monthly withdraw amounts
var ErrFailedFindMonthlyWithdraws = response.NewErrorResponse("Failed to fetch monthly withdraw amounts", http.StatusInternalServerError)
Var:
ErrFailedFindMonthlyWithdrawsByCardNumber is used when failed to fetch monthly withdraw amounts by card
var ErrFailedFindMonthlyWithdrawsByCardNumber = response.NewErrorResponse("Failed to fetch monthly withdraw amounts by card", http.StatusInternalServerError)
Var:
ErrFailedFindTrashedWithdraws is used when failed to fetch trashed withdraws
var ErrFailedFindTrashedWithdraws = response.NewErrorResponse("Failed to fetch trashed withdraws", http.StatusInternalServerError)
Var:
ErrFailedFindYearWithdrawStatusFailed is used when failed to fetch yearly failed withdraws
var ErrFailedFindYearWithdrawStatusFailed = response.NewErrorResponse("Failed to fetch yearly failed withdraws", http.StatusInternalServerError)
Var:
ErrFailedFindYearWithdrawStatusFailedByCard is used when failed to fetch yearly failed withdraws by card
var ErrFailedFindYearWithdrawStatusFailedByCard = response.NewErrorResponse("Failed to fetch yearly failed withdraws by card", http.StatusInternalServerError)
Var:
ErrFailedFindYearWithdrawStatusSuccess is used when failed to fetch yearly successful withdraws
var ErrFailedFindYearWithdrawStatusSuccess = response.NewErrorResponse("Failed to fetch yearly successful withdraws", http.StatusInternalServerError)
Var:
ErrFailedFindYearWithdrawStatusSuccessByCard is used when failed to fetch yearly successful withdraws by card
var ErrFailedFindYearWithdrawStatusSuccessByCard = response.NewErrorResponse("Failed to fetch yearly successful withdraws by card", http.StatusInternalServerError)
Var:
ErrFailedFindYearlyWithdraws is used when failed to fetch yearly withdraw amounts
var ErrFailedFindYearlyWithdraws = response.NewErrorResponse("Failed to fetch yearly withdraw amounts", http.StatusInternalServerError)
Var:
ErrFailedFindYearlyWithdrawsByCardNumber is used when failed to fetch yearly withdraw amounts by card
var ErrFailedFindYearlyWithdrawsByCardNumber = response.NewErrorResponse("Failed to fetch yearly withdraw amounts by card", http.StatusInternalServerError)
Var:
ErrFailedRestoreAllWithdraw is used when failed to restore all withdraws
var ErrFailedRestoreAllWithdraw = response.NewErrorResponse("Failed to restore all withdraws", http.StatusInternalServerError)
Var:
ErrFailedRestoreWithdraw is used when failed to restore withdraw
var ErrFailedRestoreWithdraw = response.NewErrorResponse("Failed to restore withdraw", http.StatusInternalServerError)
Var:
ErrFailedSendEmail is used when failed to send email
var ErrFailedSendEmail = response.NewErrorResponse("Failed to send email", http.StatusInternalServerError)
Var:
ErrFailedTrashedWithdraw is used when failed to trash withdraw
var ErrFailedTrashedWithdraw = response.NewErrorResponse("Failed to trash withdraw", http.StatusInternalServerError)
Var:
ErrFailedUpdateWithdraw is used when failed to update withdraw
var ErrFailedUpdateWithdraw = response.NewErrorResponse("Failed to update withdraw", http.StatusInternalServerError)
Var:
ErrFindActiveWithdrawsFailed is used when the system fails to find active withdraws
var ErrFindActiveWithdrawsFailed = errors.New("failed to find active withdraws")
Var:
ErrFindAllWithdrawsFailed is used when the system fails to find all withdraws
var ErrFindAllWithdrawsFailed = errors.New("failed to find all withdraws")
Var:
ErrFindTrashedWithdrawsFailed is used when the system fails to find trashed withdraws
var ErrFindTrashedWithdrawsFailed = errors.New("failed to find trashed withdraws")
Var:
ErrFindWithdrawByIdFailed is used when the system fails to find a withdraw by ID
var ErrFindWithdrawByIdFailed = errors.New("failed to find withdraw by ID")
Var:
ErrFindWithdrawsByCardNumberFailed is used when the system fails to find withdraws by card number
var ErrFindWithdrawsByCardNumberFailed = errors.New("failed to find withdraws by card number")
Var:
ErrGetMonthWithdrawStatusFailedByCardFailed is used when the system fails to get the monthly withdraw status failed by card number
var ErrGetMonthWithdrawStatusFailedByCardFailed = errors.New("failed to get monthly withdraw status failed by card number")
Var:
ErrGetMonthWithdrawStatusFailedFailed is used when the system fails to get the monthly withdraw status failed
var ErrGetMonthWithdrawStatusFailedFailed = errors.New("failed to get monthly withdraw status failed")
Var:
ErrGetMonthWithdrawStatusSuccessByCardFailed is used when the system fails to get the monthly withdraw status success by card number
var ErrGetMonthWithdrawStatusSuccessByCardFailed = errors.New("failed to get monthly withdraw status success by card number")
Var:
ErrGetMonthWithdrawStatusSuccessFailed is used when the system fails to get the monthly withdraw status success
var ErrGetMonthWithdrawStatusSuccessFailed = errors.New("failed to get monthly withdraw status success")
Var:
ErrGetMonthlyWithdrawsByCardFailed indicates a failure when retrieving monthly withdraw amounts by card number.
var ErrGetMonthlyWithdrawsByCardFailed = errors.New("failed to get monthly withdraw amounts by card number")
Var:
ErrGetMonthlyWithdrawsFailed is used when the system fails to get monthly withdraw amounts
var ErrGetMonthlyWithdrawsFailed = errors.New("failed to get monthly withdraw amounts")
Var:
ErrGetYearlyWithdrawStatusFailedByCardFailed is used when the system fails to get the yearly withdraw status failed by card number
var ErrGetYearlyWithdrawStatusFailedByCardFailed = errors.New("failed to get yearly withdraw status failed by card number")
Var:
ErrGetYearlyWithdrawStatusFailedFailed is used when the system fails to get the yearly withdraw status failed
var ErrGetYearlyWithdrawStatusFailedFailed = errors.New("failed to get yearly withdraw status failed")
Var:
ErrGetYearlyWithdrawStatusSuccessByCardFailed is used when the system fails to get the yearly withdraw status success by card number
var ErrGetYearlyWithdrawStatusSuccessByCardFailed = errors.New("failed to get yearly withdraw status success by card number")
Var:
ErrGetYearlyWithdrawStatusSuccessFailed is used when the system fails to get the yearly withdraw status success
var ErrGetYearlyWithdrawStatusSuccessFailed = errors.New("failed to get yearly withdraw status success")
Var:
ErrGetYearlyWithdrawsByCardFailed indicates a failure when retrieving yearly withdraw amounts by card number.
var ErrGetYearlyWithdrawsByCardFailed = errors.New("failed to get yearly withdraw amounts by card number")
Var:
ErrGetYearlyWithdrawsFailed is used when the system fails to get yearly withdraw amounts
var ErrGetYearlyWithdrawsFailed = errors.New("failed to get yearly withdraw amounts")
Var:
ErrRestoreAllWithdrawsFailed indicates a failure when restoring all trashed withdraw records.
var ErrRestoreAllWithdrawsFailed = errors.New("failed to restore all withdraws")
Var:
ErrRestoreWithdrawFailed indicates a failure when restoring a previously trashed withdraw record.
var ErrRestoreWithdrawFailed = errors.New("failed to restore withdraw")
Var:
ErrTrashedWithdrawFailed indicates a failure when soft-deleting (trashing) a withdraw record.
var ErrTrashedWithdrawFailed = errors.New("failed to soft-delete (trash) withdraw")
Var:
ErrUpdateWithdrawFailed indicates a failure when updating a withdraw record.
var ErrUpdateWithdrawFailed = errors.New("failed to update withdraw")
Var:
ErrUpdateWithdrawStatusFailed indicates a failure when updating the status of a withdraw record.
var ErrUpdateWithdrawStatusFailed = errors.New("failed to update withdraw status")
Var:
ErrWithdrawNotFound is used when withdraw is not found
var ErrWithdrawNotFound = response.NewErrorResponse("Withdraw not found", http.StatusNotFound)