stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostSetupIntents

Description

Contains the different functions to run the operation postSetupIntents

Synopsis

Documentation

postSetupIntents Source #

Arguments

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

The configuration to use in the request

-> Maybe PostSetupIntentsRequestBody

The request body to send

-> m (Either HttpException (Response PostSetupIntentsResponse))

Monad containing the result of the operation

POST /v1/setup_intents

<p>Creates a SetupIntent object.</p>

<p>After the SetupIntent is created, attach a payment method and <a href="/docs/api/setup_intents/confirm">confirm</a> to collect any required permissions to charge the payment method later.</p>

postSetupIntentsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe PostSetupIntentsRequestBody -> m (Either HttpException (Response ByteString)) Source #

POST /v1/setup_intents

The same as postSetupIntents but returns the raw ByteString

data PostSetupIntentsRequestBody Source #

Defines the data type for the schema postSetupIntentsRequestBody

Constructors

PostSetupIntentsRequestBody 

Fields

data PostSetupIntentsRequestBodyMandateData' Source #

Defines the data type for the schema postSetupIntentsRequestBodyMandate_data'

This hash contains details about the Mandate to create. This parameter can only be used with `confirm=true`.

data PostSetupIntentsRequestBodyMandateData'CustomerAcceptance' Source #

Defines the data type for the schema postSetupIntentsRequestBodyMandate_data'Customer_acceptance'

Instances
Eq PostSetupIntentsRequestBodyMandateData'CustomerAcceptance' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyMandateData'CustomerAcceptance' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Offline' Source #

Defines the data type for the schema postSetupIntentsRequestBodyMandate_data'Customer_acceptance'Offline'

Instances
Eq PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Offline' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Offline' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Offline' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Offline' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Online' Source #

Defines the data type for the schema postSetupIntentsRequestBodyMandate_data'Customer_acceptance'Online'

Instances
Eq PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Online' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Online' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Online' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Online' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type' Source #

Defines the enum schema postSetupIntentsRequestBodyMandate_data'Customer_acceptance'Type'

Instances
Eq PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyMetadata' Source #

Defines the data type for the schema postSetupIntentsRequestBodyMetadata'

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`.

data PostSetupIntentsRequestBodyPaymentMethodOptions' Source #

Defines the data type for the schema postSetupIntentsRequestBodyPayment_method_options'

Payment-method-specific configuration for this SetupIntent.

data PostSetupIntentsRequestBodyPaymentMethodOptions'Card' Source #

Defines the data type for the schema postSetupIntentsRequestBodyPayment_method_options'Card'

Instances
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'Card' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'Card' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'Card' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'Card' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure' Source #

Defines the enum schema postSetupIntentsRequestBodyPayment_method_options'Card'Request_three_d_secure'

Instances
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodySingleUse' Source #

Defines the data type for the schema postSetupIntentsRequestBodySingle_use'

If this hash is populated, this SetupIntent will generate a single_use Mandate on success.

data PostSetupIntentsRequestBodyUsage' Source #

Defines the enum schema postSetupIntentsRequestBodyUsage'

Indicates how the payment method is intended to be used in the future. If not provided, this value defaults to `off_session`.

data PostSetupIntentsResponse Source #

Represents a response of the operation postSetupIntents.

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), PostSetupIntentsResponseError is used.

Constructors

PostSetupIntentsResponseError String

Means either no matching case available or a parse error

PostSetupIntentsResponse200 SetupIntent

Successful response.

PostSetupIntentsResponseDefault Error

Error response.