stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.ApiErrors

Description

Contains the types generated from the schema ApiErrors

Synopsis

Documentation

data ApiErrors Source #

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

Constructors

ApiErrors 

Fields

  • apiErrorsCharge :: Maybe Text

    charge: For card errors, the ID of the failed charge.

    Constraints:

    • Maximum length of 5000
  • apiErrorsCode :: Maybe Text

    code: For some errors that could be handled programmatically, a short string indicating the error code reported.

    Constraints:

    • Maximum length of 5000
  • apiErrorsDeclineCode :: Maybe Text

    decline_code: For card errors resulting from a card issuer decline, a short string indicating the card issuer's reason for the decline if they provide one.

    Constraints:

    • Maximum length of 5000
  • apiErrorsDocUrl :: Maybe Text

    doc_url: A URL to more information about the error code reported.

    Constraints:

    • Maximum length of 5000
  • apiErrorsMessage :: Maybe Text

    message: A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.

    Constraints:

    • Maximum length of 40000
  • apiErrorsParam :: Maybe Text

    param: If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.

    Constraints:

    • Maximum length of 5000
  • apiErrorsPaymentIntent :: Maybe PaymentIntent

    payment_intent: 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.

  • apiErrorsPaymentMethod :: Maybe PaymentMethod

    payment_method: PaymentMethod objects represent your customer's payment instruments. They can be used with PaymentIntents to collect payments or saved to Customer objects to store instrument details for future payments.

    Related guides: Payment Methods and More Payment Scenarios.

  • apiErrorsPaymentMethodType :: Maybe Text

    payment_method_type: If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.

    Constraints:

    • Maximum length of 5000
  • apiErrorsSetupIntent :: Maybe SetupIntent

    setup_intent: A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. Later, you can use PaymentIntents to drive the payment flow.

    Create a SetupIntent as soon as you're ready to collect your customer's payment credentials. Do not maintain long-lived, unconfirmed SetupIntents as they may no longer be valid. The SetupIntent then transitions through multiple statuses as it guides you through the setup process.

    Successful SetupIntents result in payment credentials that are optimized for future payments. For example, cardholders in certain regions may need to be run through Strong Customer Authentication at the time of payment method collection in order to streamline later off-session payments. If the SetupIntent is used with a Customer, upon success, it will automatically attach the resulting payment method to that Customer. We recommend using SetupIntents or setup_future_usage on PaymentIntents to save payment methods in order to prevent saving invalid or unoptimized payment methods.

    By using SetupIntents, you ensure that your customers experience the minimum set of required friction, even as regulations change over time.

    Related guide: Setup Intents API.

  • apiErrorsSource :: Maybe ApiErrorsSource'

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

  • apiErrorsType :: ApiErrorsType'

    type: 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`

mkApiErrors Source #

Create a new ApiErrors with all required fields.

data ApiErrorsSource' Source #

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

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

Constructors

ApiErrorsSource' 

Fields

mkApiErrorsSource' :: ApiErrorsSource' Source #

Create a new ApiErrorsSource' with all required fields.

data ApiErrorsSource'Account'Variants Source #

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

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

data ApiErrorsSource'AvailablePayoutMethods' Source #

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

Constructors

ApiErrorsSource'AvailablePayoutMethods'Other Value

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

ApiErrorsSource'AvailablePayoutMethods'Typed Text

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

ApiErrorsSource'AvailablePayoutMethods'EnumInstant

Represents the JSON value "instant"

ApiErrorsSource'AvailablePayoutMethods'EnumStandard

Represents the JSON value "standard"

data ApiErrorsSource'Customer'Variants Source #

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

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

data ApiErrorsSource'Owner' Source #

Defines the object schema located at components.schemas.api_errors.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

ApiErrorsSource'Owner' 

Fields

data ApiErrorsSource'Owner'Address' Source #

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

Owner\'s address.

Constructors

ApiErrorsSource'Owner'Address' 

Fields

data ApiErrorsSource'Owner'VerifiedAddress' Source #

Defines the object schema located at components.schemas.api_errors.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

ApiErrorsSource'Owner'VerifiedAddress' 

Fields

data ApiErrorsSource'Recipient'Variants Source #

Defines the oneOf schema located at components.schemas.api_errors.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.

data ApiErrorsSource'Type' Source #

Defines the enum schema located at components.schemas.api_errors.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

ApiErrorsSource'Type'Other Value

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

ApiErrorsSource'Type'Typed Text

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

ApiErrorsSource'Type'EnumAchCreditTransfer

Represents the JSON value "ach_credit_transfer"

ApiErrorsSource'Type'EnumAchDebit

Represents the JSON value "ach_debit"

ApiErrorsSource'Type'EnumAcssDebit

Represents the JSON value "acss_debit"

ApiErrorsSource'Type'EnumAlipay

Represents the JSON value "alipay"

ApiErrorsSource'Type'EnumAuBecsDebit

Represents the JSON value "au_becs_debit"

ApiErrorsSource'Type'EnumBancontact

Represents the JSON value "bancontact"

ApiErrorsSource'Type'EnumCard

Represents the JSON value "card"

ApiErrorsSource'Type'EnumCardPresent

Represents the JSON value "card_present"

ApiErrorsSource'Type'EnumEps

Represents the JSON value "eps"

ApiErrorsSource'Type'EnumGiropay

Represents the JSON value "giropay"

ApiErrorsSource'Type'EnumIdeal

Represents the JSON value "ideal"

ApiErrorsSource'Type'EnumKlarna

Represents the JSON value "klarna"

ApiErrorsSource'Type'EnumMultibanco

Represents the JSON value "multibanco"

ApiErrorsSource'Type'EnumP24

Represents the JSON value "p24"

ApiErrorsSource'Type'EnumSepaDebit

Represents the JSON value "sepa_debit"

ApiErrorsSource'Type'EnumSofort

Represents the JSON value "sofort"

ApiErrorsSource'Type'EnumThreeDSecure

Represents the JSON value "three_d_secure"

ApiErrorsSource'Type'EnumWechat

Represents the JSON value "wechat"

data ApiErrorsType' Source #

Defines the enum schema located at components.schemas.api_errors.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

ApiErrorsType'Other Value

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

ApiErrorsType'Typed Text

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

ApiErrorsType'EnumApiConnectionError

Represents the JSON value "api_connection_error"

ApiErrorsType'EnumApiError

Represents the JSON value "api_error"

ApiErrorsType'EnumAuthenticationError

Represents the JSON value "authentication_error"

ApiErrorsType'EnumCardError

Represents the JSON value "card_error"

ApiErrorsType'EnumIdempotencyError

Represents the JSON value "idempotency_error"

ApiErrorsType'EnumInvalidRequestError

Represents the JSON value "invalid_request_error"

ApiErrorsType'EnumRateLimitError

Represents the JSON value "rate_limit_error"