Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postPaymentMethodsPaymentMethodDetach
Synopsis
- postPaymentMethodsPaymentMethodDetach :: forall m. MonadHTTP m => Text -> Maybe PostPaymentMethodsPaymentMethodDetachRequestBody -> ClientT m (Response PostPaymentMethodsPaymentMethodDetachResponse)
- data PostPaymentMethodsPaymentMethodDetachRequestBody = PostPaymentMethodsPaymentMethodDetachRequestBody {}
- mkPostPaymentMethodsPaymentMethodDetachRequestBody :: PostPaymentMethodsPaymentMethodDetachRequestBody
- data PostPaymentMethodsPaymentMethodDetachResponse
Documentation
postPaymentMethodsPaymentMethodDetach Source #
:: forall m. MonadHTTP m | |
=> Text | payment_method | Constraints: Maximum length of 5000 |
-> Maybe PostPaymentMethodsPaymentMethodDetachRequestBody | The request body to send |
-> ClientT m (Response PostPaymentMethodsPaymentMethodDetachResponse) | Monadic computation which returns the result of the operation |
POST /v1/payment_methods/{payment_method}/detach
<p>Detaches a PaymentMethod object from a Customer.</p>
data PostPaymentMethodsPaymentMethodDetachRequestBody Source #
Defines the object schema located at paths./v1/payment_methods/{payment_method}/detach.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostPaymentMethodsPaymentMethodDetachRequestBody | |
|
Instances
mkPostPaymentMethodsPaymentMethodDetachRequestBody :: PostPaymentMethodsPaymentMethodDetachRequestBody Source #
Create a new PostPaymentMethodsPaymentMethodDetachRequestBody
with all required fields.
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. |