stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.PaymentIntent

Description

Contains the types generated from the schema PaymentIntent

Synopsis

Documentation

data PaymentIntent Source #

Defines the object schema located at components.schemas.payment_intent in the specification.

A PaymentIntent guides you through the process of collecting a payment from your customer. We recommend that you create exactly one PaymentIntent for each order or customer session in your system. You can reference the PaymentIntent later to see the history of payment attempts for a particular session.

A PaymentIntent transitions through multiple statuses throughout its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates at most one successful charge.

Related guide: Payment Intents API.

Constructors

PaymentIntent 

Fields

data PaymentIntentApplication'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.application.anyOf in the specification.

ID of the Connect application that created the PaymentIntent.

data PaymentIntentCancellationReason' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.cancellation_reason in the specification.

Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, or `automatic`).

Constructors

PaymentIntentCancellationReason'Other Value

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

PaymentIntentCancellationReason'Typed Text

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

PaymentIntentCancellationReason'EnumAbandoned

Represents the JSON value "abandoned"

PaymentIntentCancellationReason'EnumAutomatic

Represents the JSON value "automatic"

PaymentIntentCancellationReason'EnumDuplicate

Represents the JSON value "duplicate"

PaymentIntentCancellationReason'EnumFailedInvoice

Represents the JSON value "failed_invoice"

PaymentIntentCancellationReason'EnumFraudulent

Represents the JSON value "fraudulent"

PaymentIntentCancellationReason'EnumRequestedByCustomer

Represents the JSON value "requested_by_customer"

PaymentIntentCancellationReason'EnumVoidInvoice

Represents the JSON value "void_invoice"

data PaymentIntentCaptureMethod' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.capture_method in the specification.

Controls when the funds will be captured from the customer's account.

Constructors

PaymentIntentCaptureMethod'Other Value

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

PaymentIntentCaptureMethod'Typed Text

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

PaymentIntentCaptureMethod'EnumAutomatic

Represents the JSON value "automatic"

PaymentIntentCaptureMethod'EnumManual

Represents the JSON value "manual"

data PaymentIntentCharges' Source #

Defines the object schema located at components.schemas.payment_intent.properties.charges in the specification.

Charges that were created by this PaymentIntent, if any.

Constructors

PaymentIntentCharges' 

Fields

  • paymentIntentCharges'Data :: [Charge]

    data: This list only contains the latest charge, even if there were previously multiple unsuccessful charges. To view all previous charges for a PaymentIntent, you can filter the charges list using the `payment_intent` parameter.

  • paymentIntentCharges'HasMore :: Bool

    has_more: True if this list has another page of items after this one that can be fetched.

  • paymentIntentCharges'Url :: Text

    url: The URL where this list can be accessed.

    Constraints:

    • Maximum length of 5000

data PaymentIntentConfirmationMethod' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.confirmation_method in the specification.

Constructors

PaymentIntentConfirmationMethod'Other Value

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

PaymentIntentConfirmationMethod'Typed Text

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

PaymentIntentConfirmationMethod'EnumAutomatic

Represents the JSON value "automatic"

PaymentIntentConfirmationMethod'EnumManual

Represents the JSON value "manual"

data PaymentIntentCustomer'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.customer.anyOf in the specification.

ID of the Customer this PaymentIntent belongs to, if one exists.

Payment methods attached to other Customers cannot be used with this PaymentIntent.

If present in combination with setup_future_usage, this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete.

data PaymentIntentLastPaymentError' Source #

Defines the object schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf in the specification.

The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.

Constructors

PaymentIntentLastPaymentError' 

Fields

data PaymentIntentLastPaymentError'Source' Source #

Defines the object schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf in the specification.

The source object for errors returned on a request involving a source.

Constructors

PaymentIntentLastPaymentError'Source' 

Fields

data PaymentIntentLastPaymentError'Source'Account'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.account.anyOf in the specification.

The ID of the account that the bank account is associated with.

Instances

Instances details
Eq PaymentIntentLastPaymentError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

Show PaymentIntentLastPaymentError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

ToJSON PaymentIntentLastPaymentError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

FromJSON PaymentIntentLastPaymentError'Source'Account'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

data PaymentIntentLastPaymentError'Source'AvailablePayoutMethods' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.available_payout_methods.items in the specification.

Constructors

PaymentIntentLastPaymentError'Source'AvailablePayoutMethods'Other Value

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

PaymentIntentLastPaymentError'Source'AvailablePayoutMethods'Typed Text

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

PaymentIntentLastPaymentError'Source'AvailablePayoutMethods'EnumInstant

Represents the JSON value "instant"

PaymentIntentLastPaymentError'Source'AvailablePayoutMethods'EnumStandard

Represents the JSON value "standard"

Instances

Instances details
Eq PaymentIntentLastPaymentError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

Show PaymentIntentLastPaymentError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

ToJSON PaymentIntentLastPaymentError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

FromJSON PaymentIntentLastPaymentError'Source'AvailablePayoutMethods' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

data PaymentIntentLastPaymentError'Source'Customer'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.customer.anyOf in the specification.

The ID of the customer that the bank account is associated with.

Instances

Instances details
Eq PaymentIntentLastPaymentError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

Show PaymentIntentLastPaymentError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

ToJSON PaymentIntentLastPaymentError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

FromJSON PaymentIntentLastPaymentError'Source'Customer'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

data PaymentIntentLastPaymentError'Source'Owner' Source #

Defines the object schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.owner.anyOf in the specification.

Information about the owner of the payment instrument that may be used or required by particular source types.

Constructors

PaymentIntentLastPaymentError'Source'Owner' 

Fields

data PaymentIntentLastPaymentError'Source'Owner'Address' Source #

Defines the object schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.owner.anyOf.properties.address.anyOf in the specification.

Owner\'s address.

Constructors

PaymentIntentLastPaymentError'Source'Owner'Address' 

Fields

Instances

Instances details
Eq PaymentIntentLastPaymentError'Source'Owner'Address' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

Show PaymentIntentLastPaymentError'Source'Owner'Address' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

ToJSON PaymentIntentLastPaymentError'Source'Owner'Address' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

FromJSON PaymentIntentLastPaymentError'Source'Owner'Address' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

data PaymentIntentLastPaymentError'Source'Owner'VerifiedAddress' Source #

Defines the object schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.owner.anyOf.properties.verified_address.anyOf in the specification.

Verified owner\'s address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.

Constructors

PaymentIntentLastPaymentError'Source'Owner'VerifiedAddress' 

Fields

Instances

Instances details
Eq PaymentIntentLastPaymentError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

Show PaymentIntentLastPaymentError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

ToJSON PaymentIntentLastPaymentError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

FromJSON PaymentIntentLastPaymentError'Source'Owner'VerifiedAddress' Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

data PaymentIntentLastPaymentError'Source'Recipient'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.recipient.anyOf in the specification.

The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead.

Instances

Instances details
Eq PaymentIntentLastPaymentError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

Show PaymentIntentLastPaymentError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

ToJSON PaymentIntentLastPaymentError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

FromJSON PaymentIntentLastPaymentError'Source'Recipient'Variants Source # 
Instance details

Defined in StripeAPI.Types.PaymentIntent

data PaymentIntentLastPaymentError'Source'Type' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.source.anyOf.properties.type in the specification.

The `type` of the source. The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used.

Constructors

PaymentIntentLastPaymentError'Source'Type'Other Value

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

PaymentIntentLastPaymentError'Source'Type'Typed Text

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

PaymentIntentLastPaymentError'Source'Type'EnumAchCreditTransfer

Represents the JSON value "ach_credit_transfer"

PaymentIntentLastPaymentError'Source'Type'EnumAchDebit

Represents the JSON value "ach_debit"

PaymentIntentLastPaymentError'Source'Type'EnumAcssDebit

Represents the JSON value "acss_debit"

PaymentIntentLastPaymentError'Source'Type'EnumAlipay

Represents the JSON value "alipay"

PaymentIntentLastPaymentError'Source'Type'EnumAuBecsDebit

Represents the JSON value "au_becs_debit"

PaymentIntentLastPaymentError'Source'Type'EnumBancontact

Represents the JSON value "bancontact"

PaymentIntentLastPaymentError'Source'Type'EnumCard

Represents the JSON value "card"

PaymentIntentLastPaymentError'Source'Type'EnumCardPresent

Represents the JSON value "card_present"

PaymentIntentLastPaymentError'Source'Type'EnumEps

Represents the JSON value "eps"

PaymentIntentLastPaymentError'Source'Type'EnumGiropay

Represents the JSON value "giropay"

PaymentIntentLastPaymentError'Source'Type'EnumIdeal

Represents the JSON value "ideal"

PaymentIntentLastPaymentError'Source'Type'EnumKlarna

Represents the JSON value "klarna"

PaymentIntentLastPaymentError'Source'Type'EnumMultibanco

Represents the JSON value "multibanco"

PaymentIntentLastPaymentError'Source'Type'EnumP24

Represents the JSON value "p24"

PaymentIntentLastPaymentError'Source'Type'EnumSepaDebit

Represents the JSON value "sepa_debit"

PaymentIntentLastPaymentError'Source'Type'EnumSofort

Represents the JSON value "sofort"

PaymentIntentLastPaymentError'Source'Type'EnumThreeDSecure

Represents the JSON value "three_d_secure"

PaymentIntentLastPaymentError'Source'Type'EnumWechat

Represents the JSON value "wechat"

data PaymentIntentLastPaymentError'Type' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.last_payment_error.anyOf.properties.type in the specification.

The type of error returned. One of `api_connection_error`, `api_error`, `authentication_error`, `card_error`, `idempotency_error`, `invalid_request_error`, or `rate_limit_error`

Constructors

PaymentIntentLastPaymentError'Type'Other Value

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

PaymentIntentLastPaymentError'Type'Typed Text

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

PaymentIntentLastPaymentError'Type'EnumApiConnectionError

Represents the JSON value "api_connection_error"

PaymentIntentLastPaymentError'Type'EnumApiError

Represents the JSON value "api_error"

PaymentIntentLastPaymentError'Type'EnumAuthenticationError

Represents the JSON value "authentication_error"

PaymentIntentLastPaymentError'Type'EnumCardError

Represents the JSON value "card_error"

PaymentIntentLastPaymentError'Type'EnumIdempotencyError

Represents the JSON value "idempotency_error"

PaymentIntentLastPaymentError'Type'EnumInvalidRequestError

Represents the JSON value "invalid_request_error"

PaymentIntentLastPaymentError'Type'EnumRateLimitError

Represents the JSON value "rate_limit_error"

data PaymentIntentNextAction' Source #

Defines the object schema located at components.schemas.payment_intent.properties.next_action.anyOf in the specification.

If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.

Constructors

PaymentIntentNextAction' 

Fields

data PaymentIntentOnBehalfOf'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.on_behalf_of.anyOf in the specification.

The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents use case for connected accounts for details.

data PaymentIntentPaymentMethod'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.payment_method.anyOf in the specification.

ID of the payment method used in this PaymentIntent.

data PaymentIntentPaymentMethodOptions' Source #

Defines the object schema located at components.schemas.payment_intent.properties.payment_method_options.anyOf in the specification.

Payment-method-specific configuration for this PaymentIntent.

data PaymentIntentSetupFutureUsage' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.setup_future_usage in the specification.

Indicates that you intend to make future payments with this PaymentIntent's payment method.

Providing this parameter will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.

When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.

Constructors

PaymentIntentSetupFutureUsage'Other Value

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

PaymentIntentSetupFutureUsage'Typed Text

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

PaymentIntentSetupFutureUsage'EnumOffSession

Represents the JSON value "off_session"

PaymentIntentSetupFutureUsage'EnumOnSession

Represents the JSON value "on_session"

data PaymentIntentShipping' Source #

Defines the object schema located at components.schemas.payment_intent.properties.shipping.anyOf in the specification.

Shipping information for this PaymentIntent.

Constructors

PaymentIntentShipping' 

Fields

data PaymentIntentStatus' Source #

Defines the enum schema located at components.schemas.payment_intent.properties.status in the specification.

Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent status.

Constructors

PaymentIntentStatus'Other Value

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

PaymentIntentStatus'Typed Text

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

PaymentIntentStatus'EnumCanceled

Represents the JSON value "canceled"

PaymentIntentStatus'EnumProcessing

Represents the JSON value "processing"

PaymentIntentStatus'EnumRequiresAction

Represents the JSON value "requires_action"

PaymentIntentStatus'EnumRequiresCapture

Represents the JSON value "requires_capture"

PaymentIntentStatus'EnumRequiresConfirmation

Represents the JSON value "requires_confirmation"

PaymentIntentStatus'EnumRequiresPaymentMethod

Represents the JSON value "requires_payment_method"

PaymentIntentStatus'EnumSucceeded

Represents the JSON value "succeeded"

data PaymentIntentTransferData' Source #

Defines the object schema located at components.schemas.payment_intent.properties.transfer_data.anyOf in the specification.

The data with which to automatically create a Transfer when the payment is finalized. See the PaymentIntents use case for connected accounts for details.

Constructors

PaymentIntentTransferData' 

Fields

data PaymentIntentTransferData'Destination'Variants Source #

Defines the oneOf schema located at components.schemas.payment_intent.properties.transfer_data.anyOf.properties.destination.anyOf in the specification.

The account (if any) the payment will be attributed to for tax reporting, and where funds from the payment will be transferred to upon payment success.