stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.Source

Description

Contains the types generated from the schema Source

Synopsis

Documentation

data Source Source #

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

`Source` objects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like a `Card` object: once chargeable, they can be charged, or can be attached to customers.

Related guides: Sources API and Sources & Customers.

Constructors

Source 

Fields

Instances

Instances details
Eq Source Source # 
Instance details

Defined in StripeAPI.Types.Source

Methods

(==) :: Source -> Source -> Bool #

(/=) :: Source -> Source -> Bool #

Show Source Source # 
Instance details

Defined in StripeAPI.Types.Source

ToJSON Source Source # 
Instance details

Defined in StripeAPI.Types.Source

FromJSON Source Source # 
Instance details

Defined in StripeAPI.Types.Source

data SourceOwner' Source #

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

SourceOwner' 

Fields

  • sourceOwner'Address :: Maybe SourceOwner'Address'

    address: Owner's address.

  • sourceOwner'Email :: Maybe Text

    email: Owner's email address.

    Constraints:

    • Maximum length of 5000
  • sourceOwner'Name :: Maybe Text

    name: Owner's full name.

    Constraints:

    • Maximum length of 5000
  • sourceOwner'Phone :: Maybe Text

    phone: Owner's phone number (including extension).

    Constraints:

    • Maximum length of 5000
  • sourceOwner'VerifiedAddress :: Maybe SourceOwner'VerifiedAddress'

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

  • sourceOwner'VerifiedEmail :: Maybe Text

    verified_email: Verified owner's email 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.

    Constraints:

    • Maximum length of 5000
  • sourceOwner'VerifiedName :: Maybe Text

    verified_name: Verified owner's full name. 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.

    Constraints:

    • Maximum length of 5000
  • sourceOwner'VerifiedPhone :: Maybe Text

    verified_phone: Verified owner's phone number (including extension). 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.

    Constraints:

    • Maximum length of 5000

mkSourceOwner' :: SourceOwner' Source #

Create a new SourceOwner' with all required fields.

data SourceOwner'Address' Source #

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

Owner\'s address.

Constructors

SourceOwner'Address' 

Fields

data SourceOwner'VerifiedAddress' Source #

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

SourceOwner'VerifiedAddress' 

Fields

data SourceType' Source #

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

SourceType'Other Value

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

SourceType'Typed Text

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

SourceType'EnumAchCreditTransfer

Represents the JSON value "ach_credit_transfer"

SourceType'EnumAchDebit

Represents the JSON value "ach_debit"

SourceType'EnumAcssDebit

Represents the JSON value "acss_debit"

SourceType'EnumAlipay

Represents the JSON value "alipay"

SourceType'EnumAuBecsDebit

Represents the JSON value "au_becs_debit"

SourceType'EnumBancontact

Represents the JSON value "bancontact"

SourceType'EnumCard

Represents the JSON value "card"

SourceType'EnumCardPresent

Represents the JSON value "card_present"

SourceType'EnumEps

Represents the JSON value "eps"

SourceType'EnumGiropay

Represents the JSON value "giropay"

SourceType'EnumIdeal

Represents the JSON value "ideal"

SourceType'EnumKlarna

Represents the JSON value "klarna"

SourceType'EnumMultibanco

Represents the JSON value "multibanco"

SourceType'EnumP24

Represents the JSON value "p24"

SourceType'EnumSepaDebit

Represents the JSON value "sepa_debit"

SourceType'EnumSofort

Represents the JSON value "sofort"

SourceType'EnumThreeDSecure

Represents the JSON value "three_d_secure"

SourceType'EnumWechat

Represents the JSON value "wechat"