stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostTopupsTopupCancel

Description

Contains the different functions to run the operation postTopupsTopupCancel

Synopsis

Documentation

postTopupsTopupCancel Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

topup | Constraints: Maximum length of 5000

-> Maybe PostTopupsTopupCancelRequestBody

The request body to send

-> ClientT m (Response PostTopupsTopupCancelResponse)

Monadic computation which returns the result of the operation

POST /v1/topups/{topup}/cancel

<p>Cancels a top-up. Only pending top-ups can be canceled.</p>

data PostTopupsTopupCancelRequestBody Source #

Defines the object schema located at paths./v1/topups/{topup}/cancel.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

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.