stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostSetupIntents

Description

Contains the different functions to run the operation postSetupIntents

Synopsis

Documentation

postSetupIntents Source #

Arguments

:: forall m. MonadHTTP m 
=> Maybe PostSetupIntentsRequestBody

The request body to send

-> StripeT m (Response PostSetupIntentsResponse)

Monadic computation which returns 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>

data PostSetupIntentsRequestBody Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostSetupIntentsRequestBody 

Fields

data PostSetupIntentsRequestBodyMandateData' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.mandate_data in the specification.

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

data PostSetupIntentsRequestBodyMandateData'CustomerAcceptance' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.mandate_data.properties.customer_acceptance in the specification.

Instances

Instances details
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'Online' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.mandate_data.properties.customer_acceptance.properties.online in the specification.

Instances

Instances details
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 located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.mandate_data.properties.customer_acceptance.properties.type in the specification.

Constructors

PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type'EnumOffline

Represents the JSON value "offline"

PostSetupIntentsRequestBodyMandateData'CustomerAcceptance'Type'EnumOnline

Represents the JSON value "online"

Instances

Instances details
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 PostSetupIntentsRequestBodyPaymentMethodOptions' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options in the specification.

Payment-method-specific configuration for this SetupIntent.

data PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit in the specification.

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency' Source #

Defines the enum schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.currency in the specification.

Constructors

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumCad

Represents the JSON value "cad"

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumUsd

Represents the JSON value "usd"

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'Currency' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options in the specification.

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants Source #

Defines the oneOf schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options.properties.custom_mandate_url.anyOf in the specification.

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule' Source #

Defines the enum schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options.properties.payment_schedule in the specification.

Constructors

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumCombined

Represents the JSON value "combined"

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumInterval

Represents the JSON value "interval"

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumSporadic

Represents the JSON value "sporadic"

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType' Source #

Defines the enum schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options.properties.transaction_type in the specification.

Constructors

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumBusiness

Represents the JSON value "business"

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumPersonal

Represents the JSON value "personal"

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod' Source #

Defines the enum schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.verification_method in the specification.

Constructors

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumAutomatic

Represents the JSON value "automatic"

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumInstant

Represents the JSON value "instant"

PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumMicrodeposits

Represents the JSON value "microdeposits"

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodyPaymentMethodOptions'Card' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.card in the specification.

Instances

Instances details
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 located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.card.properties.request_three_d_secure in the specification.

Constructors

PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAny

Represents the JSON value "any"

PostSetupIntentsRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAutomatic

Represents the JSON value "automatic"

Instances

Instances details
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 PostSetupIntentsRequestBodyPaymentMethodOptions'SepaDebit' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_method_options.properties.sepa_debit in the specification.

Instances

Instances details
Eq PostSetupIntentsRequestBodyPaymentMethodOptions'SepaDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

Show PostSetupIntentsRequestBodyPaymentMethodOptions'SepaDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

ToJSON PostSetupIntentsRequestBodyPaymentMethodOptions'SepaDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

FromJSON PostSetupIntentsRequestBodyPaymentMethodOptions'SepaDebit' Source # 
Instance details

Defined in StripeAPI.Operations.PostSetupIntents

data PostSetupIntentsRequestBodySingleUse' Source #

Defines the object schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.single_use in the specification.

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

data PostSetupIntentsRequestBodyUsage' Source #

Defines the enum schema located at paths./v1/setup_intents.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.usage in the specification.

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

Constructors

PostSetupIntentsRequestBodyUsage'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostSetupIntentsRequestBodyUsage'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostSetupIntentsRequestBodyUsage'EnumOffSession

Represents the JSON value "off_session"

PostSetupIntentsRequestBodyUsage'EnumOnSession

Represents the JSON value "on_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.