Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Source
Synopsis
- data Source = Source {
- sourceAchCreditTransfer :: Maybe SourceTypeAchCreditTransfer
- sourceAchDebit :: Maybe SourceTypeAchDebit
- sourceAcssDebit :: Maybe SourceTypeAcssDebit
- sourceAlipay :: Maybe SourceTypeAlipay
- sourceAmount :: Maybe Int
- sourceAuBecsDebit :: Maybe SourceTypeAuBecsDebit
- sourceBancontact :: Maybe SourceTypeBancontact
- sourceCard :: Maybe SourceTypeCard
- sourceCardPresent :: Maybe SourceTypeCardPresent
- sourceClientSecret :: Text
- sourceCodeVerification :: Maybe SourceCodeVerificationFlow
- sourceCreated :: Int
- sourceCurrency :: Maybe Text
- sourceCustomer :: Maybe Text
- sourceEps :: Maybe SourceTypeEps
- sourceFlow :: Text
- sourceGiropay :: Maybe SourceTypeGiropay
- sourceId :: Text
- sourceIdeal :: Maybe SourceTypeIdeal
- sourceKlarna :: Maybe SourceTypeKlarna
- sourceLivemode :: Bool
- sourceMetadata :: Maybe Object
- sourceMultibanco :: Maybe SourceTypeMultibanco
- sourceOwner :: Maybe SourceOwner'
- sourceP24 :: Maybe SourceTypeP24
- sourceReceiver :: Maybe SourceReceiverFlow
- sourceRedirect :: Maybe SourceRedirectFlow
- sourceSepaDebit :: Maybe SourceTypeSepaDebit
- sourceSofort :: Maybe SourceTypeSofort
- sourceSourceOrder :: Maybe SourceOrder
- sourceStatementDescriptor :: Maybe Text
- sourceStatus :: Text
- sourceThreeDSecure :: Maybe SourceTypeThreeDSecure
- sourceType :: SourceType'
- sourceUsage :: Maybe Text
- sourceWechat :: Maybe SourceTypeWechat
- mkSource :: Text -> Int -> Text -> Text -> Bool -> Text -> SourceType' -> Source
- data SourceOwner' = SourceOwner' {
- sourceOwner'Address :: Maybe SourceOwner'Address'
- sourceOwner'Email :: Maybe Text
- sourceOwner'Name :: Maybe Text
- sourceOwner'Phone :: Maybe Text
- sourceOwner'VerifiedAddress :: Maybe SourceOwner'VerifiedAddress'
- sourceOwner'VerifiedEmail :: Maybe Text
- sourceOwner'VerifiedName :: Maybe Text
- sourceOwner'VerifiedPhone :: Maybe Text
- mkSourceOwner' :: SourceOwner'
- data SourceOwner'Address' = SourceOwner'Address' {}
- mkSourceOwner'Address' :: SourceOwner'Address'
- data SourceOwner'VerifiedAddress' = SourceOwner'VerifiedAddress' {}
- mkSourceOwner'VerifiedAddress' :: SourceOwner'VerifiedAddress'
- data SourceType'
- = SourceType'Other Value
- | SourceType'Typed Text
- | SourceType'EnumAchCreditTransfer
- | SourceType'EnumAchDebit
- | SourceType'EnumAcssDebit
- | SourceType'EnumAlipay
- | SourceType'EnumAuBecsDebit
- | SourceType'EnumBancontact
- | SourceType'EnumCard
- | SourceType'EnumCardPresent
- | SourceType'EnumEps
- | SourceType'EnumGiropay
- | SourceType'EnumIdeal
- | SourceType'EnumKlarna
- | SourceType'EnumMultibanco
- | SourceType'EnumP24
- | SourceType'EnumSepaDebit
- | SourceType'EnumSofort
- | SourceType'EnumThreeDSecure
- | SourceType'EnumWechat
Documentation
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.
Source | |
|
Create a new Source
with all required fields.
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.
SourceOwner' | |
|
Instances
Eq SourceOwner' Source # | |
Defined in StripeAPI.Types.Source (==) :: SourceOwner' -> SourceOwner' -> Bool # (/=) :: SourceOwner' -> SourceOwner' -> Bool # | |
Show SourceOwner' Source # | |
Defined in StripeAPI.Types.Source showsPrec :: Int -> SourceOwner' -> ShowS # show :: SourceOwner' -> String # showList :: [SourceOwner'] -> ShowS # | |
ToJSON SourceOwner' Source # | |
Defined in StripeAPI.Types.Source toJSON :: SourceOwner' -> Value # toEncoding :: SourceOwner' -> Encoding # toJSONList :: [SourceOwner'] -> Value # toEncodingList :: [SourceOwner'] -> Encoding # | |
FromJSON SourceOwner' Source # | |
Defined in StripeAPI.Types.Source parseJSON :: Value -> Parser SourceOwner' # parseJSONList :: Value -> Parser [SourceOwner'] # |
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.
SourceOwner'Address' | |
|
Instances
Eq SourceOwner'Address' Source # | |
Defined in StripeAPI.Types.Source (==) :: SourceOwner'Address' -> SourceOwner'Address' -> Bool # (/=) :: SourceOwner'Address' -> SourceOwner'Address' -> Bool # | |
Show SourceOwner'Address' Source # | |
Defined in StripeAPI.Types.Source showsPrec :: Int -> SourceOwner'Address' -> ShowS # show :: SourceOwner'Address' -> String # showList :: [SourceOwner'Address'] -> ShowS # | |
ToJSON SourceOwner'Address' Source # | |
Defined in StripeAPI.Types.Source toJSON :: SourceOwner'Address' -> Value # toEncoding :: SourceOwner'Address' -> Encoding # toJSONList :: [SourceOwner'Address'] -> Value # toEncodingList :: [SourceOwner'Address'] -> Encoding # | |
FromJSON SourceOwner'Address' Source # | |
Defined in StripeAPI.Types.Source parseJSON :: Value -> Parser SourceOwner'Address' # parseJSONList :: Value -> Parser [SourceOwner'Address'] # |
mkSourceOwner'Address' :: SourceOwner'Address' Source #
Create a new SourceOwner'Address'
with all required 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.
SourceOwner'VerifiedAddress' | |
|
Instances
Eq SourceOwner'VerifiedAddress' Source # | |
Defined in StripeAPI.Types.Source | |
Show SourceOwner'VerifiedAddress' Source # | |
Defined in StripeAPI.Types.Source showsPrec :: Int -> SourceOwner'VerifiedAddress' -> ShowS # show :: SourceOwner'VerifiedAddress' -> String # showList :: [SourceOwner'VerifiedAddress'] -> ShowS # | |
ToJSON SourceOwner'VerifiedAddress' Source # | |
Defined in StripeAPI.Types.Source | |
FromJSON SourceOwner'VerifiedAddress' Source # | |
Defined in StripeAPI.Types.Source |
mkSourceOwner'VerifiedAddress' :: SourceOwner'VerifiedAddress' Source #
Create a new SourceOwner'VerifiedAddress'
with all required 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.
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 |
SourceType'EnumAchDebit | Represents the JSON value |
SourceType'EnumAcssDebit | Represents the JSON value |
SourceType'EnumAlipay | Represents the JSON value |
SourceType'EnumAuBecsDebit | Represents the JSON value |
SourceType'EnumBancontact | Represents the JSON value |
SourceType'EnumCard | Represents the JSON value |
SourceType'EnumCardPresent | Represents the JSON value |
SourceType'EnumEps | Represents the JSON value |
SourceType'EnumGiropay | Represents the JSON value |
SourceType'EnumIdeal | Represents the JSON value |
SourceType'EnumKlarna | Represents the JSON value |
SourceType'EnumMultibanco | Represents the JSON value |
SourceType'EnumP24 | Represents the JSON value |
SourceType'EnumSepaDebit | Represents the JSON value |
SourceType'EnumSofort | Represents the JSON value |
SourceType'EnumThreeDSecure | Represents the JSON value |
SourceType'EnumWechat | Represents the JSON value |
Instances
Eq SourceType' Source # | |
Defined in StripeAPI.Types.Source (==) :: SourceType' -> SourceType' -> Bool # (/=) :: SourceType' -> SourceType' -> Bool # | |
Show SourceType' Source # | |
Defined in StripeAPI.Types.Source showsPrec :: Int -> SourceType' -> ShowS # show :: SourceType' -> String # showList :: [SourceType'] -> ShowS # | |
ToJSON SourceType' Source # | |
Defined in StripeAPI.Types.Source toJSON :: SourceType' -> Value # toEncoding :: SourceType' -> Encoding # toJSONList :: [SourceType'] -> Value # toEncodingList :: [SourceType'] -> Encoding # | |
FromJSON SourceType' Source # | |
Defined in StripeAPI.Types.Source parseJSON :: Value -> Parser SourceType' # parseJSONList :: Value -> Parser [SourceType'] # |