Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postPaymentMethodsPaymentMethod
Synopsis
- postPaymentMethodsPaymentMethod :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodRequestBody -> m (Either HttpException (Response PostPaymentMethodsPaymentMethodResponse))
- postPaymentMethodsPaymentMethodRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodRequestBody -> m (Either HttpException (Response ByteString))
- postPaymentMethodsPaymentMethodM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsPaymentMethodResponse))
- postPaymentMethodsPaymentMethodRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostPaymentMethodsPaymentMethodRequestBody = PostPaymentMethodsPaymentMethodRequestBody {
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails :: Maybe PostPaymentMethodsPaymentMethodRequestBodyBillingDetails'
- postPaymentMethodsPaymentMethodRequestBodyCard :: Maybe PostPaymentMethodsPaymentMethodRequestBodyCard'
- postPaymentMethodsPaymentMethodRequestBodyExpand :: Maybe ([] String)
- postPaymentMethodsPaymentMethodRequestBodyMetadata :: Maybe PostPaymentMethodsPaymentMethodRequestBodyMetadata'
- postPaymentMethodsPaymentMethodRequestBodySepaDebit :: Maybe PostPaymentMethodsPaymentMethodRequestBodySepaDebit'
- data PostPaymentMethodsPaymentMethodRequestBodyBillingDetails' = PostPaymentMethodsPaymentMethodRequestBodyBillingDetails' {
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address :: Maybe PostPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address'
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Email :: Maybe String
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Name :: Maybe String
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Phone :: Maybe String
- data PostPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address' = PostPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address' {
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address'City :: Maybe String
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address'Country :: Maybe String
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address'Line1 :: Maybe String
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address'Line2 :: Maybe String
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address'PostalCode :: Maybe String
- postPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address'State :: Maybe String
- data PostPaymentMethodsPaymentMethodRequestBodyCard' = PostPaymentMethodsPaymentMethodRequestBodyCard' {}
- data PostPaymentMethodsPaymentMethodRequestBodyMetadata' = PostPaymentMethodsPaymentMethodRequestBodyMetadata' {
- data PostPaymentMethodsPaymentMethodRequestBodySepaDebit' = PostPaymentMethodsPaymentMethodRequestBodySepaDebit' {
- data PostPaymentMethodsPaymentMethodResponse
Documentation
postPaymentMethodsPaymentMethod Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | payment_method | Constraints: Maximum length of 5000 |
-> PostPaymentMethodsPaymentMethodRequestBody | The request body to send |
-> m (Either HttpException (Response PostPaymentMethodsPaymentMethodResponse)) | Monad containing the result of the operation |
POST /v1/payment_methods/{payment_method}
<p>Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.</p>
postPaymentMethodsPaymentMethodRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostPaymentMethodsPaymentMethodRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods/{payment_method}
The same as postPaymentMethodsPaymentMethod
but returns the raw ByteString
postPaymentMethodsPaymentMethodM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsPaymentMethodResponse)) Source #
POST /v1/payment_methods/{payment_method}
Monadic version of postPaymentMethodsPaymentMethod
(use with runWithConfiguration
)
postPaymentMethodsPaymentMethodRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostPaymentMethodsPaymentMethodRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods/{payment_method}
Monadic version of postPaymentMethodsPaymentMethodRaw
(use with runWithConfiguration
)
data PostPaymentMethodsPaymentMethodRequestBody Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodRequestBody
PostPaymentMethodsPaymentMethodRequestBody | |
|
Instances
data PostPaymentMethodsPaymentMethodRequestBodyBillingDetails' Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodRequestBodyBilling_details'
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
PostPaymentMethodsPaymentMethodRequestBodyBillingDetails' | |
|
Instances
data PostPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address' Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodRequestBodyBilling_details'Address'
PostPaymentMethodsPaymentMethodRequestBodyBillingDetails'Address' | |
|
Instances
data PostPaymentMethodsPaymentMethodRequestBodyCard' Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodRequestBodyCard'
If this is a `card` PaymentMethod, this hash contains the user's card details.
Instances
data PostPaymentMethodsPaymentMethodRequestBodyMetadata' Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Instances
data PostPaymentMethodsPaymentMethodRequestBodySepaDebit' Source #
Defines the data type for the schema postPaymentMethodsPaymentMethodRequestBodySepa_debit'
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
Instances
data PostPaymentMethodsPaymentMethodResponse Source #
Represents a response of the operation postPaymentMethodsPaymentMethod
.
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), PostPaymentMethodsPaymentMethodResponseError
is used.
PostPaymentMethodsPaymentMethodResponseError String | Means either no matching case available or a parse error |
PostPaymentMethodsPaymentMethodResponse200 PaymentMethod | Successful response. |
PostPaymentMethodsPaymentMethodResponseDefault Error | Error response. |