Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postPaymentMethodsPaymentMethodAttach
Synopsis
- postPaymentMethodsPaymentMethodAttach :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodAttachRequestBody -> m (Either HttpException (Response PostPaymentMethodsPaymentMethodAttachResponse))
- postPaymentMethodsPaymentMethodAttachRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodAttachRequestBody -> m (Either HttpException (Response ByteString))
- postPaymentMethodsPaymentMethodAttachM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodAttachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsPaymentMethodAttachResponse))
- postPaymentMethodsPaymentMethodAttachRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodAttachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostPaymentMethodsPaymentMethodAttachRequestBody = PostPaymentMethodsPaymentMethodAttachRequestBody {}
- data PostPaymentMethodsPaymentMethodAttachResponse
Documentation
postPaymentMethodsPaymentMethodAttach Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | payment_method | Constraints: Maximum length of 5000 |
-> PostPaymentMethodsPaymentMethodAttachRequestBody | The request body to send |
-> m (Either HttpException (Response PostPaymentMethodsPaymentMethodAttachResponse)) | Monad containing the result of the operation |
POST /v1/payment_methods/{payment_method}/attach
<p>Attaches a PaymentMethod object to a Customer.</p>
<p>To use this PaymentMethod as the default for invoice or subscription payments, set <a href="/docs/api/customers/update#update_customer-invoice_settings-default_payment_method"><code>invoice_settings.default_payment_method</code></a>, on the Customer to the PaymentMethod’s ID.</p>
postPaymentMethodsPaymentMethodAttachRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodAttachRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods/{payment_method}/attach
The same as postPaymentMethodsPaymentMethodAttach
but returns the raw ByteString
postPaymentMethodsPaymentMethodAttachM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodAttachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsPaymentMethodAttachResponse)) Source #
POST /v1/payment_methods/{payment_method}/attach
Monadic version of postPaymentMethodsPaymentMethodAttach
(use with runWithConfiguration
)
postPaymentMethodsPaymentMethodAttachRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodAttachRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods/{payment_method}/attach
Monadic version of postPaymentMethodsPaymentMethodAttachRaw
(use with runWithConfiguration
)
data PostPaymentMethodsPaymentMethodAttachRequestBody Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodAttachRequestBody
PostPaymentMethodsPaymentMethodAttachRequestBody | |
|
Instances
data PostPaymentMethodsPaymentMethodAttachResponse Source #
Represents a response of the operation postPaymentMethodsPaymentMethodAttach
.
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), PostPaymentMethodsPaymentMethodAttachResponseError
is used.
PostPaymentMethodsPaymentMethodAttachResponseError String | Means either no matching case available or a parse error |
PostPaymentMethodsPaymentMethodAttachResponse200 PaymentMethod | Successful response. |
PostPaymentMethodsPaymentMethodAttachResponseDefault Error | Error response. |