{"modulePath":"github.com/MamangRust/monolith-payment-gateway-shared","version":"v1.0.15","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package transactionapierrors\n\n## Variables\n\n```go\nvar ErrApiBindCreateTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid create transfer request\", http.StatusBadRequest)\n}\n```\nErrApiBindCreateTransfer returns an API error response when binding the request for creating a transfer fails due to invalid input.\n\n```go\nvar ErrApiBindUpdateTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"bind failed: invalid update transfer request\", http.StatusBadRequest)\n}\n```\nErrApiBindUpdateTransfer returns an API error response when binding the request for updating a transfer fails due to invalid input.\n\n```go\nvar ErrApiFailedCreateTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to create transfer\", http.StatusInternalServerError)\n}\n```\nErrApiFailedCreateTransfer returns an API error response when creating a new transfer fails.\n\n```go\nvar ErrApiFailedDeleteAllTransferPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete all transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDeleteAllTransferPermanent returns an API error response when attempting to permanently delete all transfers fails.\n\n```go\nvar ErrApiFailedDeleteTransferPermanent = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to permanently delete transfer\", http.StatusInternalServerError)\n}\n```\nErrApiFailedDeleteTransferPermanent returns an API error response when attempting to permanently delete a transfer fails.\n\n```go\nvar ErrApiFailedFindAllTransfers = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch all transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindAllTransfers is an error response for failed to fetch all transfers.\n\n```go\nvar ErrApiFailedFindByActiveTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch active transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByActiveTransfer is an error response for failed to fetch active transfers.\n\n```go\nvar ErrApiFailedFindByIdTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch transfer by ID\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByIdTransfer is an error response for failed to fetch transfer by ID.\n\n```go\nvar ErrApiFailedFindByTransferFrom = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch transfers by transfer_from\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByTransferFrom is an error response for failed to fetch transfers by transfer\\_from.\n\n```go\nvar ErrApiFailedFindByTransferTo = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch transfers by transfer_to\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByTransferTo is an error response for failed to fetch transfers by transfer\\_to.\n\n```go\nvar ErrApiFailedFindByTrashedTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch trashed transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindByTrashedTransfer returns an API error response when fetching trashed (soft-deleted) transfers fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferAmounts = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transfer amounts\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferAmounts returns an API error response when fetching monthly total transfer amounts fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferAmountsByReceiverCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transfer amounts by receiver card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferAmountsByReceiverCardNumber returns an API error response when fetching monthly transfer amounts by receiver card number fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferAmountsBySenderCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly transfer amounts by sender card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferAmountsBySenderCardNumber returns an API error response when fetching monthly transfer amounts by sender card number fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferStatusFailed = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly failed transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferStatusFailed returns an API error response when fetching monthly failed transfer data fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferStatusFailedByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly failed transfers by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferStatusFailedByCardNumber returns an API error response when fetching monthly failed transfers by card number fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferStatusSuccess = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly successful transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferStatusSuccess returns an API error response when fetching monthly successful transfer data fails.\n\n```go\nvar ErrApiFailedFindMonthlyTransferStatusSuccessByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch monthly successful transfers by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindMonthlyTransferStatusSuccessByCardNumber returns an API error response when fetching monthly successful transfers by card number fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferAmounts = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transfer amounts\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferAmounts returns an API error response when fetching yearly total transfer amounts fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferAmountsByReceiverCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transfer amounts by receiver card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferAmountsByReceiverCardNumber returns an API error response when fetching yearly transfer amounts by receiver card number fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferAmountsBySenderCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly transfer amounts by sender card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferAmountsBySenderCardNumber returns an API error response when fetching yearly transfer amounts by sender card number fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferStatusFailed = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly failed transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferStatusFailed returns an API error response when fetching yearly failed transfer data fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferStatusFailedByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly failed transfers by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferStatusFailedByCardNumber returns an API error response when fetching yearly failed transfers by card number fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferStatusSuccess = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly successful transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferStatusSuccess returns an API error response when fetching yearly successful transfer data fails.\n\n```go\nvar ErrApiFailedFindYearlyTransferStatusSuccessByCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to fetch yearly successful transfers by card number\", http.StatusInternalServerError)\n}\n```\nErrApiFailedFindYearlyTransferStatusSuccessByCardNumber returns an API error response when fetching yearly successful transfers by card number fails.\n\n```go\nvar ErrApiFailedRestoreAllTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore all transfers\", http.StatusInternalServerError)\n}\n```\nErrApiFailedRestoreAllTransfer returns an API error response when attempting to restore all trashed transfers fails.\n\n```go\nvar ErrApiFailedRestoreTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to restore transfer\", http.StatusInternalServerError)\n}\n```\nErrApiFailedRestoreTransfer returns an API error response when attempting to restore a trashed transfer fails.\n\n```go\nvar ErrApiFailedTrashedTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to trash transfer\", http.StatusInternalServerError)\n}\n```\nErrApiFailedTrashedTransfer returns an API error response when attempting to trash (soft-delete) a transfer fails.\n\n```go\nvar ErrApiFailedUpdateTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Failed to update transfer\", http.StatusInternalServerError)\n}\n```\nErrApiFailedUpdateTransfer returns an API error response when updating a transfer fails.\n\n```go\nvar ErrApiInvalidCardNumber = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid card number\", http.StatusBadRequest)\n}\n```\nErrApiInvalidCardNumber is an error response for invalid card number.\n\n```go\nvar ErrApiInvalidMonth = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid month\", http.StatusBadRequest)\n}\n```\nErrApiInvalidMonth is an error response for invalid month.\n\n```go\nvar ErrApiInvalidYear = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid year\", http.StatusBadRequest)\n}\n```\nErrApiInvalidYear is an error response for invalid year.\n\n```go\nvar ErrApiTransferInvalidID = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid Transfer ID\", http.StatusBadRequest)\n}\n```\nErrApiTransferInvalidID is an error response for invalid transfer ID.\n\n```go\nvar ErrApiTransferInvalidMerchantID = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"Invalid Transfer Merchant ID\", http.StatusBadRequest)\n}\n```\nErrApiTransferInvalidMerchantID is an error response for invalid transfer merchant ID.\n\n```go\nvar ErrApiValidateCreateTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid create transfer request\", http.StatusBadRequest)\n}\n```\nErrApiValidateCreateTransfer returns an API error response when validation fails on the create transfer request payload.\n\n```go\nvar ErrApiValidateUpdateTransfer = func(c echo.Context) error {\n\treturn response.NewApiErrorResponse(c, \"error\", \"validation failed: invalid update transfer request\", http.StatusBadRequest)\n}\n```\nErrApiValidateUpdateTransfer returns an API error response when validation fails on the update transfer request payload.\n\n","path":"github.com/MamangRust/monolith-payment-gateway-shared/errors/transfer_errors/api","name":"transactionapierrors","synopsis":"","isRedistributable":true}
