Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postSetupIntentsIntentCancel
Synopsis
- postSetupIntentsIntentCancel :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSetupIntentsIntentCancelRequestBody -> m (Either HttpException (Response PostSetupIntentsIntentCancelResponse))
- postSetupIntentsIntentCancelRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSetupIntentsIntentCancelRequestBody -> m (Either HttpException (Response ByteString))
- postSetupIntentsIntentCancelM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSetupIntentsIntentCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSetupIntentsIntentCancelResponse))
- postSetupIntentsIntentCancelRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSetupIntentsIntentCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostSetupIntentsIntentCancelRequestBody = PostSetupIntentsIntentCancelRequestBody {}
- data PostSetupIntentsIntentCancelRequestBodyCancellationReason'
- = PostSetupIntentsIntentCancelRequestBodyCancellationReason'EnumOther Value
- | PostSetupIntentsIntentCancelRequestBodyCancellationReason'EnumTyped String
- | PostSetupIntentsIntentCancelRequestBodyCancellationReason'EnumStringAbandoned
- | PostSetupIntentsIntentCancelRequestBodyCancellationReason'EnumStringDuplicate
- | PostSetupIntentsIntentCancelRequestBodyCancellationReason'EnumStringRequestedByCustomer
- data PostSetupIntentsIntentCancelResponse
Documentation
postSetupIntentsIntentCancel Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | intent | Constraints: Maximum length of 5000 |
-> PostSetupIntentsIntentCancelRequestBody | The request body to send |
-> m (Either HttpException (Response PostSetupIntentsIntentCancelResponse)) | Monad containing the result of the operation |
POST /v1/setup_intents/{intent}/cancel
<p>A SetupIntent object can be canceled when it is in one of these statuses: <code>requires_payment_method</code>, <code>requires_capture</code>, <code>requires_confirmation</code>, <code>requires_action</code>. </p>
<p>Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.</p>
postSetupIntentsIntentCancelRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSetupIntentsIntentCancelRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/setup_intents/{intent}/cancel
The same as postSetupIntentsIntentCancel
but returns the raw ByteString
postSetupIntentsIntentCancelM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSetupIntentsIntentCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSetupIntentsIntentCancelResponse)) Source #
POST /v1/setup_intents/{intent}/cancel
Monadic version of postSetupIntentsIntentCancel
(use with runWithConfiguration
)
postSetupIntentsIntentCancelRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSetupIntentsIntentCancelRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/setup_intents/{intent}/cancel
Monadic version of postSetupIntentsIntentCancelRaw
(use with runWithConfiguration
)
data PostSetupIntentsIntentCancelRequestBody Source #
Defines the data type for the schema postSetupIntentsIntentCancelRequestBody
PostSetupIntentsIntentCancelRequestBody | |
|
data PostSetupIntentsIntentCancelRequestBodyCancellationReason' Source #
Defines the enum schema postSetupIntentsIntentCancelRequestBodyCancellation_reason'
Reason for canceling this SetupIntent. Possible values are `abandoned`, `requested_by_customer`, or `duplicate`
Instances
data PostSetupIntentsIntentCancelResponse Source #
Represents a response of the operation postSetupIntentsIntentCancel
.
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), PostSetupIntentsIntentCancelResponseError
is used.
PostSetupIntentsIntentCancelResponseError String | Means either no matching case available or a parse error |
PostSetupIntentsIntentCancelResponse200 SetupIntent | Successful response. |
PostSetupIntentsIntentCancelResponseDefault Error | Error response. |