Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTopupsTopupCancel
Synopsis
- postTopupsTopupCancel :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostTopupsTopupCancelRequestBody -> m (Either HttpException (Response PostTopupsTopupCancelResponse))
- postTopupsTopupCancelRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostTopupsTopupCancelRequestBody -> m (Either HttpException (Response ByteString))
- postTopupsTopupCancelM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTopupsTopupCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTopupsTopupCancelResponse))
- postTopupsTopupCancelRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTopupsTopupCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostTopupsTopupCancelRequestBody = PostTopupsTopupCancelRequestBody {}
- data PostTopupsTopupCancelResponse
Documentation
postTopupsTopupCancel Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | topup | Constraints: Maximum length of 5000 |
-> PostTopupsTopupCancelRequestBody | The request body to send |
-> m (Either HttpException (Response PostTopupsTopupCancelResponse)) | Monad containing the result of the operation |
POST /v1/topups/{topup}/cancel
<p>Cancels a top-up. Only pending top-ups can be canceled.</p>
postTopupsTopupCancelRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostTopupsTopupCancelRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/topups/{topup}/cancel
The same as postTopupsTopupCancel
but returns the raw ByteString
postTopupsTopupCancelM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTopupsTopupCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTopupsTopupCancelResponse)) Source #
POST /v1/topups/{topup}/cancel
Monadic version of postTopupsTopupCancel
(use with runWithConfiguration
)
postTopupsTopupCancelRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTopupsTopupCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/topups/{topup}/cancel
Monadic version of postTopupsTopupCancelRaw
(use with runWithConfiguration
)
data PostTopupsTopupCancelRequestBody Source #
Defines the data type for the schema postTopupsTopupCancelRequestBody
PostTopupsTopupCancelRequestBody | |
|
data PostTopupsTopupCancelResponse Source #
Represents a response of the operation postTopupsTopupCancel
.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostTopupsTopupCancelResponseError
is used.
PostTopupsTopupCancelResponseError String | Means either no matching case available or a parse error |
PostTopupsTopupCancelResponse200 Topup | Successful response. |
PostTopupsTopupCancelResponseDefault Error | Error response. |