Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postPaymentMethodsPaymentMethodDetach
Synopsis
- postPaymentMethodsPaymentMethodDetach :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodDetachRequestBody -> m (Either HttpException (Response PostPaymentMethodsPaymentMethodDetachResponse))
- postPaymentMethodsPaymentMethodDetachRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodDetachRequestBody -> m (Either HttpException (Response ByteString))
- postPaymentMethodsPaymentMethodDetachM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodDetachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsPaymentMethodDetachResponse))
- postPaymentMethodsPaymentMethodDetachRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodDetachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostPaymentMethodsPaymentMethodDetachRequestBody = PostPaymentMethodsPaymentMethodDetachRequestBody {}
- data PostPaymentMethodsPaymentMethodDetachResponse
Documentation
postPaymentMethodsPaymentMethodDetach Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | payment_method | Constraints: Maximum length of 5000 |
-> PostPaymentMethodsPaymentMethodDetachRequestBody | The request body to send |
-> m (Either HttpException (Response PostPaymentMethodsPaymentMethodDetachResponse)) | Monad containing the result of the operation |
POST /v1/payment_methods/{payment_method}/detach
<p>Detaches a PaymentMethod object from a Customer.</p>
postPaymentMethodsPaymentMethodDetachRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodDetachRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods/{payment_method}/detach
The same as postPaymentMethodsPaymentMethodDetach
but returns the raw ByteString
postPaymentMethodsPaymentMethodDetachM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodDetachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsPaymentMethodDetachResponse)) Source #
POST /v1/payment_methods/{payment_method}/detach
Monadic version of postPaymentMethodsPaymentMethodDetach
(use with runWithConfiguration
)
postPaymentMethodsPaymentMethodDetachRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodDetachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods/{payment_method}/detach
Monadic version of postPaymentMethodsPaymentMethodDetachRaw
(use with runWithConfiguration
)
data PostPaymentMethodsPaymentMethodDetachRequestBody Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodDetachRequestBody
PostPaymentMethodsPaymentMethodDetachRequestBody | |
|
Instances
data PostPaymentMethodsPaymentMethodDetachResponse Source #
Represents a response of the operation postPaymentMethodsPaymentMethodDetach
.
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), PostPaymentMethodsPaymentMethodDetachResponseError
is used.
PostPaymentMethodsPaymentMethodDetachResponseError String | Means either no matching case available or a parse error |
PostPaymentMethodsPaymentMethodDetachResponse200 PaymentMethod | Successful response. |
PostPaymentMethodsPaymentMethodDetachResponseDefault Error | Error response. |