stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostPaymentMethodsPaymentMethodAttach

Description

Contains the different functions to run the operation postPaymentMethodsPaymentMethodAttach

Synopsis

Documentation

postPaymentMethodsPaymentMethodAttach Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> Text

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>

data PostPaymentMethodsPaymentMethodAttachRequestBody Source #

Defines the data type for the schema postPaymentMethodsPaymentMethodAttachRequestBody

Constructors

PostPaymentMethodsPaymentMethodAttachRequestBody 

Fields

Instances
Eq PostPaymentMethodsPaymentMethodAttachRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethodsPaymentMethodAttach

Show PostPaymentMethodsPaymentMethodAttachRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethodsPaymentMethodAttach

ToJSON PostPaymentMethodsPaymentMethodAttachRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethodsPaymentMethodAttach

FromJSON PostPaymentMethodsPaymentMethodAttachRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethodsPaymentMethodAttach