Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrGrpcWithdrawNotFound = response.NewGrpcError("withdraw", "Withdraw not found", int(codes.NotFound)) ErrGrpcWithdrawInvalidID = response.NewGrpcError("withdraw", "Invalid Withdraw ID", int(codes.InvalidArgument)) ErrGrpcInvalidUserID = response.NewGrpcError("card_id", "Invalid user ID", int(codes.InvalidArgument)) ErrGrpcInvalidCardNumber = response.NewGrpcError("card_id", "Invalid card number", int(codes.InvalidArgument)) ErrGrpcInvalidMonth = response.NewGrpcError("month", "Invalid month", int(codes.InvalidArgument)) ErrGrpcInvalidYear = response.NewGrpcError("year", "Invalid year", int(codes.InvalidArgument)) ErrGrpcFailedFindAllWithdraw = response.NewGrpcError("withdraw", "Failed to fetch all withdraws", int(codes.Internal)) ErrGrpcFailedFindAllWithdrawByCardNumber = response.NewGrpcError("withdraw", "Failed to fetch withdraws by card number", int(codes.Internal)) ErrGrpcFailedFindByIdWithdraw = response.NewGrpcError("withdraw", "Failed to fetch withdraw by ID", int(codes.Internal)) ErrGrpcFailedFindByCardNumber = response.NewGrpcError("withdraw", "Failed to fetch withdraws using card number", int(codes.Internal)) ErrGrpcFailedFindByActiveWithdraw = response.NewGrpcError("withdraw", "Failed to fetch active withdraws", int(codes.Internal)) ErrGrpcFailedFindByTrashedWithdraw = response.NewGrpcError("withdraw", "Failed to fetch trashed withdraws", int(codes.Internal)) ErrGrpcFailedFindMonthlyWithdrawStatusSuccess = response.NewGrpcError("withdraw", "Failed to fetch monthly successful withdraws", int(codes.Internal)) ErrGrpcFailedFindYearlyWithdrawStatusSuccess = response.NewGrpcError("withdraw", "Failed to fetch yearly successful withdraws", int(codes.Internal)) ErrGrpcFailedFindMonthlyWithdrawStatusFailed = response.NewGrpcError("withdraw", "Failed to fetch monthly failed withdraws", int(codes.Internal)) ErrGrpcFailedFindYearlyWithdrawStatusFailed = response.NewGrpcError("withdraw", "Failed to fetch yearly failed withdraws", int(codes.Internal)) ErrGrpcFailedFindMonthlyWithdrawStatusSuccessCardNumber = response.NewGrpcError("withdraw", "Failed to fetch monthly successful withdraws by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyWithdrawStatusSuccessCardNumber = response.NewGrpcError("withdraw", "Failed to fetch yearly successful withdraws by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyWithdrawStatusFailedCardNumber = response.NewGrpcError("withdraw", "Failed to fetch monthly failed withdraws by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyWithdrawStatusFailedCardNumber = response.NewGrpcError("withdraw", "Failed to fetch yearly failed withdraws by card number", int(codes.Internal)) ErrGrpcFailedFindMonthlyWithdraws = response.NewGrpcError("withdraw", "Failed to fetch monthly withdraw amounts", int(codes.Internal)) ErrGrpcFailedFindYearlyWithdraws = response.NewGrpcError("withdraw", "Failed to fetch yearly withdraw amounts", int(codes.Internal)) ErrGrpcFailedFindMonthlyWithdrawsByCardNumber = response.NewGrpcError("withdraw", "Failed to fetch monthly withdraw amounts by card number", int(codes.Internal)) ErrGrpcFailedFindYearlyWithdrawsByCardNumber = response.NewGrpcError("withdraw", "Failed to fetch yearly withdraw amounts by card number", int(codes.Internal)) ErrGrpcFailedCreateWithdraw = response.NewGrpcError("withdraw", "Failed to create withdraw", int(codes.Internal)) ErrGrpcFailedUpdateWithdraw = response.NewGrpcError("withdraw", "Failed to update withdraw", int(codes.Internal)) ErrGrpcValidateCreateWithdrawRequest = response.NewGrpcError("withdraw", "Invalid input for create withdraw", int(codes.InvalidArgument)) ErrGrpcValidateUpdateWithdrawRequest = response.NewGrpcError("withdraw", "Invalid input for update withdraw", int(codes.InvalidArgument)) ErrGrpcFailedTrashedWithdraw = response.NewGrpcError("withdraw", "Failed to move withdraw to trash", int(codes.Internal)) ErrGrpcFailedRestoreWithdraw = response.NewGrpcError("withdraw", "Failed to restore withdraw", int(codes.Internal)) ErrGrpcFailedDeleteWithdrawPermanent = response.NewGrpcError("withdraw", "Failed to permanently delete withdraw", int(codes.Internal)) ErrGrpcFailedRestoreAllWithdraw = response.NewGrpcError("withdraw", "Failed to restore all withdraws", int(codes.Internal)) ErrGrpcFailedDeleteAllWithdrawPermanent = response.NewGrpcError("withdraw", "Failed to permanently delete all withdraws", int(codes.Internal)) )
var ErrApiBindCreateWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid create withdraw request", http.StatusBadRequest) }
ErrApiBindCreateWithdraw is an error response for bind failed: invalid create withdraw request.
var ErrApiBindUpdateWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "bind failed: invalid update withdraw request", http.StatusBadRequest) }
ErrApiBindUpdateWithdraw is an error response for bind failed: invalid update withdraw request.
var ErrApiFailedCreateWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to create withdraw", http.StatusInternalServerError) }
ErrApiFailedCreateWithdraw is an error response for failed to create withdraw.
var ErrApiFailedDeleteAllWithdrawPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete all withdraws", http.StatusInternalServerError) }
ErrApiFailedDeleteAllWithdrawPermanent is an error response for failed to permanently delete all withdraws.
var ErrApiFailedDeleteWithdrawPermanent = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to permanently delete withdraw", http.StatusInternalServerError) }
ErrApiFailedDeleteWithdrawPermanent is an error response for failed to permanently delete withdraw.
var ErrApiFailedFindAllWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch all withdraws", http.StatusInternalServerError) }
ErrApiFailedFindAllWithdraw is an error response for failed to fetch all withdraws.
var ErrApiFailedFindAllWithdrawByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch withdraws by card number", http.StatusInternalServerError) }
ErrApiFailedFindAllWithdrawByCardNumber is an error response for failed to fetch withdraws by card number.
var ErrApiFailedFindByActiveWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch active withdraws", http.StatusInternalServerError) }
ErrApiFailedFindByActiveWithdraw is an error response for failed to fetch active withdraws.
var ErrApiFailedFindByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch withdraws using card number", http.StatusInternalServerError) }
ErrApiFailedFindByCardNumber is an error response for failed to fetch withdraws using card number.
var ErrApiFailedFindByIdWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch withdraw by ID", http.StatusInternalServerError) }
ErrApiFailedFindByIdWithdraw is an error response for failed to fetch withdraw by ID.
var ErrApiFailedFindByTrashedWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch trashed withdraws", http.StatusInternalServerError) }
ErrApiFailedFindByTrashedWithdraw is an error response for failed to fetch trashed withdraws.
var ErrApiFailedFindMonthlyWithdrawStatusFailed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed withdraws", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyWithdrawStatusFailed is an error response for failed to fetch monthly failed withdraws.
var ErrApiFailedFindMonthlyWithdrawStatusFailedCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly failed withdraws by card number", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyWithdrawStatusFailedCardNumber is an error response for failed to fetch monthly failed withdraws by card number.
var ErrApiFailedFindMonthlyWithdrawStatusSuccess = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful withdraws", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyWithdrawStatusSuccess is an error response for failed to fetch monthly successful withdraws.
var ErrApiFailedFindMonthlyWithdrawStatusSuccessCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly successful withdraws by card number", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyWithdrawStatusSuccessCardNumber is an error response for failed to fetch monthly successful withdraws by card number.
var ErrApiFailedFindMonthlyWithdraws = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly withdraw amounts", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyWithdraws is an error response for failed to fetch monthly withdraw amounts.
var ErrApiFailedFindMonthlyWithdrawsByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch monthly withdraw amounts by card number", http.StatusInternalServerError) }
ErrApiFailedFindMonthlyWithdrawsByCardNumber is an error response for failed to fetch monthly withdraw amounts by card number.
var ErrApiFailedFindYearlyWithdrawStatusFailed = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed withdraws", http.StatusInternalServerError) }
ErrApiFailedFindYearlyWithdrawStatusFailed is an error response for failed to fetch yearly failed withdraws.
var ErrApiFailedFindYearlyWithdrawStatusFailedCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly failed withdraws by card number", http.StatusInternalServerError) }
ErrApiFailedFindYearlyWithdrawStatusFailedCardNumber is an error response for failed to fetch yearly failed withdraws by card number.
var ErrApiFailedFindYearlyWithdrawStatusSuccess = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful withdraws", http.StatusInternalServerError) }
ErrApiFailedFindYearlyWithdrawStatusSuccess is an error response for failed to fetch yearly successful withdraws.
var ErrApiFailedFindYearlyWithdrawStatusSuccessCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly successful withdraws by card number", http.StatusInternalServerError) }
ErrApiFailedFindYearlyWithdrawStatusSuccessCardNumber is an error response for failed to fetch yearly successful withdraws by card number.
var ErrApiFailedFindYearlyWithdraws = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly withdraw amounts", http.StatusInternalServerError) }
ErrApiFailedFindYearlyWithdraws is an error response for failed to fetch yearly withdraw amounts.
var ErrApiFailedFindYearlyWithdrawsByCardNumber = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to fetch yearly withdraw amounts by card number", http.StatusInternalServerError) }
ErrApiFailedFindYearlyWithdrawsByCardNumber is an error response for failed to fetch yearly withdraw amounts by card number.
var ErrApiFailedRestoreAllWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore all withdraws", http.StatusInternalServerError) }
ErrApiFailedRestoreAllWithdraw is an error response for failed to restore all withdraws.
var ErrApiFailedRestoreWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to restore withdraw", http.StatusInternalServerError) }
ErrApiFailedRestoreWithdraw is an error response for failed to restore withdraw.
var ErrApiFailedTrashedWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to move withdraw to trash", http.StatusInternalServerError) }
ErrApiFailedTrashedWithdraw is an error response for failed to move withdraw to trash.
var ErrApiFailedUpdateWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Failed to update withdraw", http.StatusInternalServerError) }
ErrApiFailedUpdateWithdraw is an error response for failed to update withdraw.
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.
var ErrApiInvalidMonth = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid month", http.StatusBadRequest) }
ErrApiInvalidMonth is an error response for invalid month.
var ErrApiInvalidYear = func(c echo.Context) error { return response.NewApiErrorResponse(c, "year", "Invalid year", http.StatusBadRequest) }
ErrApiInvalidYear is an error response for invalid year.
var ErrApiValidateCreateWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid create withdraw request", http.StatusBadRequest) }
ErrApiValidateCreateWithdraw is an error response for validation failed: invalid create withdraw request.
var ErrApiValidateUpdateWithdraw = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "validation failed: invalid update withdraw request", http.StatusBadRequest) }
ErrApiValidateUpdateWithdraw is an error response for validation failed: invalid update withdraw request.
var ErrApiWithdrawInvalidID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid Withdraw ID", http.StatusBadRequest) }
ErrApiWithdrawInvalidID is an error response for invalid withdraw ID.
var ErrApiWithdrawInvalidUserID = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Invalid Withdraw Merchant ID", http.StatusBadRequest) }
ErrApiWithdrawInvalidUserID is an error response for invalid withdraw merchant ID.
var ErrApiWithdrawNotFound = func(c echo.Context) error { return response.NewApiErrorResponse(c, "error", "Withdraw not found", http.StatusNotFound) }
ErrApiWithdrawNotFound is an error response for withdraw not found.
var ErrCreateWithdrawFailed = errors.New("failed to create withdraw")
ErrCreateWithdrawFailed indicates a failure when creating a new withdraw record.
var ErrDeleteAllWithdrawsPermanentFailed = errors.New("failed to permanently delete all withdraws")
ErrDeleteAllWithdrawsPermanentFailed indicates a failure when permanently deleting all withdraw records.
var ErrDeleteWithdrawPermanentFailed = errors.New("failed to permanently delete withdraw")
ErrDeleteWithdrawPermanentFailed indicates a failure when permanently deleting a withdraw record.
var ErrFailedCreateWithdraw = response.NewErrorResponse("Failed to create withdraw", http.StatusInternalServerError)
ErrFailedCreateWithdraw is used when failed to create withdraw
var ErrFailedDeleteAllWithdrawPermanent = response.NewErrorResponse("Failed to permanently delete all withdraws", http.StatusInternalServerError)
ErrFailedDeleteAllWithdrawPermanent is used when failed to permanently delete all withdraws
var ErrFailedDeleteWithdrawPermanent = response.NewErrorResponse("Failed to permanently delete withdraw", http.StatusInternalServerError)
ErrFailedDeleteWithdrawPermanent is used when failed to permanently delete withdraw
var ErrFailedFindActiveWithdraws = response.NewErrorResponse("Failed to fetch active withdraws", http.StatusInternalServerError)
ErrFailedFindActiveWithdraws is used when failed to fetch active withdraws
var ErrFailedFindAllWithdraws = response.NewErrorResponse("Failed to fetch all withdraws", http.StatusInternalServerError)
ErrFailedFindAllWithdraws is used when failed to fetch all withdraws
var ErrFailedFindAllWithdrawsByCard = response.NewErrorResponse("Failed to fetch all withdraws by card number", http.StatusInternalServerError)
ErrFailedFindAllWithdrawsByCard is used when failed to fetch all withdraws by card number
var ErrFailedFindMonthWithdrawStatusFailed = response.NewErrorResponse("Failed to fetch monthly failed withdraws", http.StatusInternalServerError)
ErrFailedFindMonthWithdrawStatusFailed is used when failed to fetch monthly failed withdraws
var ErrFailedFindMonthWithdrawStatusFailedByCard = response.NewErrorResponse("Failed to fetch monthly failed withdraws by card", http.StatusInternalServerError)
ErrFailedFindMonthWithdrawStatusFailedByCard is used when failed to fetch monthly failed withdraws by card
var ErrFailedFindMonthWithdrawStatusSuccess = response.NewErrorResponse("Failed to fetch monthly successful withdraws", http.StatusInternalServerError)
ErrFailedFindMonthWithdrawStatusSuccess is used when failed to fetch monthly successful withdraws
var ErrFailedFindMonthWithdrawStatusSuccessByCard = response.NewErrorResponse("Failed to fetch monthly successful withdraws by card", http.StatusInternalServerError)
ErrFailedFindMonthWithdrawStatusSuccessByCard is used when failed to fetch monthly successful withdraws by card
var ErrFailedFindMonthlyWithdraws = response.NewErrorResponse("Failed to fetch monthly withdraw amounts", http.StatusInternalServerError)
ErrFailedFindMonthlyWithdraws is used when failed to fetch monthly withdraw amounts
var ErrFailedFindMonthlyWithdrawsByCardNumber = response.NewErrorResponse("Failed to fetch monthly withdraw amounts by card", http.StatusInternalServerError)
ErrFailedFindMonthlyWithdrawsByCardNumber is used when failed to fetch monthly withdraw amounts by card
var ErrFailedFindTrashedWithdraws = response.NewErrorResponse("Failed to fetch trashed withdraws", http.StatusInternalServerError)
ErrFailedFindTrashedWithdraws is used when failed to fetch trashed withdraws
var ErrFailedFindYearWithdrawStatusFailed = response.NewErrorResponse("Failed to fetch yearly failed withdraws", http.StatusInternalServerError)
ErrFailedFindYearWithdrawStatusFailed is used when failed to fetch yearly failed withdraws
var ErrFailedFindYearWithdrawStatusFailedByCard = response.NewErrorResponse("Failed to fetch yearly failed withdraws by card", http.StatusInternalServerError)
ErrFailedFindYearWithdrawStatusFailedByCard is used when failed to fetch yearly failed withdraws by card
var ErrFailedFindYearWithdrawStatusSuccess = response.NewErrorResponse("Failed to fetch yearly successful withdraws", http.StatusInternalServerError)
ErrFailedFindYearWithdrawStatusSuccess is used when failed to fetch yearly successful withdraws
var ErrFailedFindYearWithdrawStatusSuccessByCard = response.NewErrorResponse("Failed to fetch yearly successful withdraws by card", http.StatusInternalServerError)
ErrFailedFindYearWithdrawStatusSuccessByCard is used when failed to fetch yearly successful withdraws by card
var ErrFailedFindYearlyWithdraws = response.NewErrorResponse("Failed to fetch yearly withdraw amounts", http.StatusInternalServerError)
ErrFailedFindYearlyWithdraws is used when failed to fetch yearly withdraw amounts
var ErrFailedFindYearlyWithdrawsByCardNumber = response.NewErrorResponse("Failed to fetch yearly withdraw amounts by card", http.StatusInternalServerError)
ErrFailedFindYearlyWithdrawsByCardNumber is used when failed to fetch yearly withdraw amounts by card
var ErrFailedRestoreAllWithdraw = response.NewErrorResponse("Failed to restore all withdraws", http.StatusInternalServerError)
ErrFailedRestoreAllWithdraw is used when failed to restore all withdraws
var ErrFailedRestoreWithdraw = response.NewErrorResponse("Failed to restore withdraw", http.StatusInternalServerError)
ErrFailedRestoreWithdraw is used when failed to restore withdraw
var ErrFailedSendEmail = response.NewErrorResponse("Failed to send email", http.StatusInternalServerError)
ErrFailedSendEmail is used when failed to send email
var ErrFailedTrashedWithdraw = response.NewErrorResponse("Failed to trash withdraw", http.StatusInternalServerError)
ErrFailedTrashedWithdraw is used when failed to trash withdraw
var ErrFailedUpdateWithdraw = response.NewErrorResponse("Failed to update withdraw", http.StatusInternalServerError)
ErrFailedUpdateWithdraw is used when failed to update withdraw
var ErrFindActiveWithdrawsFailed = errors.New("failed to find active withdraws")
ErrFindActiveWithdrawsFailed is used when the system fails to find active withdraws
var ErrFindAllWithdrawsFailed = errors.New("failed to find all withdraws")
ErrFindAllWithdrawsFailed is used when the system fails to find all withdraws
var ErrFindTrashedWithdrawsFailed = errors.New("failed to find trashed withdraws")
ErrFindTrashedWithdrawsFailed is used when the system fails to find trashed withdraws
var ErrFindWithdrawByIdFailed = errors.New("failed to find withdraw by ID")
ErrFindWithdrawByIdFailed is used when the system fails to find a withdraw by ID
var ErrFindWithdrawsByCardNumberFailed = errors.New("failed to find withdraws by card number")
ErrFindWithdrawsByCardNumberFailed is used when the system fails to find withdraws by card number
var ErrGetMonthWithdrawStatusFailedByCardFailed = errors.New("failed to get monthly withdraw status failed by card number")
ErrGetMonthWithdrawStatusFailedByCardFailed is used when the system fails to get the monthly withdraw status failed by card number
var ErrGetMonthWithdrawStatusFailedFailed = errors.New("failed to get monthly withdraw status failed")
ErrGetMonthWithdrawStatusFailedFailed is used when the system fails to get the monthly withdraw status failed
var ErrGetMonthWithdrawStatusSuccessByCardFailed = errors.New("failed to get monthly withdraw status success by card number")
ErrGetMonthWithdrawStatusSuccessByCardFailed is used when the system fails to get the monthly withdraw status success by card number
var ErrGetMonthWithdrawStatusSuccessFailed = errors.New("failed to get monthly withdraw status success")
ErrGetMonthWithdrawStatusSuccessFailed is used when the system fails to get the monthly withdraw status success
var ErrGetMonthlyWithdrawsByCardFailed = errors.New("failed to get monthly withdraw amounts by card number")
ErrGetMonthlyWithdrawsByCardFailed indicates a failure when retrieving monthly withdraw amounts by card number.
var ErrGetMonthlyWithdrawsFailed = errors.New("failed to get monthly withdraw amounts")
ErrGetMonthlyWithdrawsFailed is used when the system fails to get monthly withdraw amounts
var ErrGetYearlyWithdrawStatusFailedByCardFailed = errors.New("failed to get yearly withdraw status failed by card number")
ErrGetYearlyWithdrawStatusFailedByCardFailed is used when the system fails to get the yearly withdraw status failed by card number
var ErrGetYearlyWithdrawStatusFailedFailed = errors.New("failed to get yearly withdraw status failed")
ErrGetYearlyWithdrawStatusFailedFailed is used when the system fails to get the yearly withdraw status failed
var ErrGetYearlyWithdrawStatusSuccessByCardFailed = errors.New("failed to get yearly withdraw status success by card number")
ErrGetYearlyWithdrawStatusSuccessByCardFailed is used when the system fails to get the yearly withdraw status success by card number
var ErrGetYearlyWithdrawStatusSuccessFailed = errors.New("failed to get yearly withdraw status success")
ErrGetYearlyWithdrawStatusSuccessFailed is used when the system fails to get the yearly withdraw status success
var ErrGetYearlyWithdrawsByCardFailed = errors.New("failed to get yearly withdraw amounts by card number")
ErrGetYearlyWithdrawsByCardFailed indicates a failure when retrieving yearly withdraw amounts by card number.
var ErrGetYearlyWithdrawsFailed = errors.New("failed to get yearly withdraw amounts")
ErrGetYearlyWithdrawsFailed is used when the system fails to get yearly withdraw amounts
var ErrRestoreAllWithdrawsFailed = errors.New("failed to restore all withdraws")
ErrRestoreAllWithdrawsFailed indicates a failure when restoring all trashed withdraw records.
var ErrRestoreWithdrawFailed = errors.New("failed to restore withdraw")
ErrRestoreWithdrawFailed indicates a failure when restoring a previously trashed withdraw record.
var ErrTrashedWithdrawFailed = errors.New("failed to soft-delete (trash) withdraw")
ErrTrashedWithdrawFailed indicates a failure when soft-deleting (trashing) a withdraw record.
var ErrUpdateWithdrawFailed = errors.New("failed to update withdraw")
ErrUpdateWithdrawFailed indicates a failure when updating a withdraw record.
var ErrUpdateWithdrawStatusFailed = errors.New("failed to update withdraw status")
ErrUpdateWithdrawStatusFailed indicates a failure when updating the status of a withdraw record.
var ErrWithdrawNotFound = response.NewErrorResponse("Withdraw not found", http.StatusNotFound)
ErrWithdrawNotFound is used when withdraw is not found
Functions ¶
This section is empty.
Types ¶
This section is empty.