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
SourcesourceAchCreditTransfer :: Maybe SourceTypeAchCreditTransferach_credit_transfer
sourceAchDebit :: Maybe SourceTypeAchDebitach_debit
sourceAcssDebit :: Maybe SourceTypeAcssDebitacss_debit
sourceAlipay :: Maybe SourceTypeAlipayalipay
sourceAmount :: Maybe (Nullable Int)amount: A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources.
sourceAuBecsDebit :: Maybe SourceTypeAuBecsDebitau_becs_debit
sourceBancontact :: Maybe SourceTypeBancontactbancontact
sourceCard :: Maybe SourceTypeCardcard
sourceCardPresent :: Maybe SourceTypeCardPresentcard_present
sourceClientSecret :: Textclient_secret: The client secret of the source. Used for client-side retrieval using a publishable key.
Constraints:
Maximum length of 5000
sourceCodeVerification :: Maybe SourceCodeVerificationFlowcode_verification:
sourceCreated :: Intcreated: Time at which the object was created. Measured in seconds since the Unix epoch.
sourceCurrency :: Maybe (Nullable Text)currency: Three-letter ISO code for the currency associated with the source. This is the currency for which the source will be chargeable once ready. Required for `single_use` sources.
sourceCustomer :: Maybe Textcustomer: The ID of the customer to which this source is attached. This will not be present when the source has not been attached to a customer.
Constraints:
Maximum length of 5000
sourceEps :: Maybe SourceTypeEpseps
sourceFlow :: Textflow: The authentication `flow` of the source. `flow` is one of `redirect`, `receiver`, `code_verification`, `none`.
Constraints:
Maximum length of 5000
sourceGiropay :: Maybe SourceTypeGiropaygiropay
sourceId :: Textid: Unique identifier for the object.
Constraints:
Maximum length of 5000
sourceIdeal :: Maybe SourceTypeIdealideal
sourceKlarna :: Maybe SourceTypeKlarnaklarna
sourceLivemode :: Boollivemode: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
sourceMetadata :: Maybe (Nullable Object)metadata: 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.
sourceMultibanco :: Maybe SourceTypeMultibancomultibanco
sourceOwner :: Maybe (Nullable SourceOwner'NonNullable)owner: Information about the owner of the payment instrument that may be used or required by particular source types.
sourceP24 :: Maybe SourceTypeP24p24
sourceReceiver :: Maybe SourceReceiverFlowreceiver:
sourceRedirect :: Maybe SourceRedirectFlowredirect:
sourceSepaDebit :: Maybe SourceTypeSepaDebitsepa_debit
sourceSofort :: Maybe SourceTypeSofortsofort
sourceSourceOrder :: Maybe SourceOrdersource_order:
sourceStatementDescriptor :: Maybe (Nullable Text)statement_descriptor: Extra information about a source. This will appear on your customer's statement every time you charge the source.
Constraints:
Maximum length of 5000
sourceStatus :: Textstatus: The status of the source, one of `canceled`, `chargeable`, `consumed`, `failed`, or `pending`. Only `chargeable` sources can be used to create a charge.
Constraints:
Maximum length of 5000
sourceThreeDSecure :: Maybe SourceTypeThreeDSecurethree_d_secure
sourceType :: SourceType'type: 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.
sourceUsage :: Maybe (Nullable Text)usage: Either `reusable` or `single_use`. Whether this source should be reusable or not. Some source types may or may not be reusable by construction, while others may leave the option at creation. If an incompatible value is passed, an error will be returned.
Constraints:
Maximum length of 5000
sourceWechat :: Maybe SourceTypeWechatwechat