stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostTopupsTopupCancel

Description

Contains the different functions to run the operation postTopupsTopupCancel

Synopsis

Documentation

postTopupsTopupCancel Source #

Arguments

:: (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

data PostTopupsTopupCancelRequestBody Source #

Defines the data type for the schema postTopupsTopupCancelRequestBody

Constructors

PostTopupsTopupCancelRequestBody 

Fields

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.

Constructors

PostTopupsTopupCancelResponseError String

Means either no matching case available or a parse error

PostTopupsTopupCancelResponse200 Topup

Successful response.

PostTopupsTopupCancelResponseDefault Error

Error response.