Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema SourceTransaction
Synopsis
- data SourceTransaction = SourceTransaction {
- sourceTransactionAchCreditTransfer :: Maybe SourceTransactionAchCreditTransferData
- sourceTransactionAmount :: Int
- sourceTransactionChfCreditTransfer :: Maybe SourceTransactionChfCreditTransferData
- sourceTransactionCreated :: Int
- sourceTransactionCurrency :: Text
- sourceTransactionGbpCreditTransfer :: Maybe SourceTransactionGbpCreditTransferData
- sourceTransactionId :: Text
- sourceTransactionLivemode :: Bool
- sourceTransactionPaperCheck :: Maybe SourceTransactionPaperCheckData
- sourceTransactionSepaCreditTransfer :: Maybe SourceTransactionSepaCreditTransferData
- sourceTransactionSource :: Text
- sourceTransactionStatus :: Text
- sourceTransactionType :: SourceTransactionType'
- mkSourceTransaction :: Int -> Int -> Text -> Text -> Bool -> Text -> Text -> SourceTransactionType' -> SourceTransaction
- data SourceTransactionType'
- = SourceTransactionType'Other Value
- | SourceTransactionType'Typed Text
- | SourceTransactionType'EnumAchCreditTransfer
- | SourceTransactionType'EnumAchDebit
- | SourceTransactionType'EnumAlipay
- | SourceTransactionType'EnumBancontact
- | SourceTransactionType'EnumCard
- | SourceTransactionType'EnumCardPresent
- | SourceTransactionType'EnumEps
- | SourceTransactionType'EnumGiropay
- | SourceTransactionType'EnumIdeal
- | SourceTransactionType'EnumKlarna
- | SourceTransactionType'EnumMultibanco
- | SourceTransactionType'EnumP24
- | SourceTransactionType'EnumSepaDebit
- | SourceTransactionType'EnumSofort
- | SourceTransactionType'EnumThreeDSecure
- | SourceTransactionType'EnumWechat
Documentation
data SourceTransaction Source #
Defines the object schema located at components.schemas.source_transaction
in the specification.
Some payment methods have no required amount that a customer must send. Customers can be instructed to send any amount, and it can be made up of multiple transactions. As such, sources can have multiple associated transactions.
SourceTransaction | |
|
Instances
Eq SourceTransaction Source # | |
Defined in StripeAPI.Types.SourceTransaction (==) :: SourceTransaction -> SourceTransaction -> Bool # (/=) :: SourceTransaction -> SourceTransaction -> Bool # | |
Show SourceTransaction Source # | |
Defined in StripeAPI.Types.SourceTransaction showsPrec :: Int -> SourceTransaction -> ShowS # show :: SourceTransaction -> String # showList :: [SourceTransaction] -> ShowS # | |
ToJSON SourceTransaction Source # | |
Defined in StripeAPI.Types.SourceTransaction toJSON :: SourceTransaction -> Value # toEncoding :: SourceTransaction -> Encoding # toJSONList :: [SourceTransaction] -> Value # toEncodingList :: [SourceTransaction] -> Encoding # | |
FromJSON SourceTransaction Source # | |
Defined in StripeAPI.Types.SourceTransaction parseJSON :: Value -> Parser SourceTransaction # parseJSONList :: Value -> Parser [SourceTransaction] # |
:: Int | |
-> Int | |
-> Text | |
-> Text | |
-> Bool | |
-> Text | |
-> Text | |
-> SourceTransactionType' | |
-> SourceTransaction |
Create a new SourceTransaction
with all required fields.
data SourceTransactionType' Source #
Defines the enum schema located at components.schemas.source_transaction.properties.type
in the specification.
The type of source this transaction is attached to.
SourceTransactionType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
SourceTransactionType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
SourceTransactionType'EnumAchCreditTransfer | Represents the JSON value |
SourceTransactionType'EnumAchDebit | Represents the JSON value |
SourceTransactionType'EnumAlipay | Represents the JSON value |
SourceTransactionType'EnumBancontact | Represents the JSON value |
SourceTransactionType'EnumCard | Represents the JSON value |
SourceTransactionType'EnumCardPresent | Represents the JSON value |
SourceTransactionType'EnumEps | Represents the JSON value |
SourceTransactionType'EnumGiropay | Represents the JSON value |
SourceTransactionType'EnumIdeal | Represents the JSON value |
SourceTransactionType'EnumKlarna | Represents the JSON value |
SourceTransactionType'EnumMultibanco | Represents the JSON value |
SourceTransactionType'EnumP24 | Represents the JSON value |
SourceTransactionType'EnumSepaDebit | Represents the JSON value |
SourceTransactionType'EnumSofort | Represents the JSON value |
SourceTransactionType'EnumThreeDSecure | Represents the JSON value |
SourceTransactionType'EnumWechat | Represents the JSON value |
Instances
Eq SourceTransactionType' Source # | |
Defined in StripeAPI.Types.SourceTransaction | |
Show SourceTransactionType' Source # | |
Defined in StripeAPI.Types.SourceTransaction showsPrec :: Int -> SourceTransactionType' -> ShowS # show :: SourceTransactionType' -> String # showList :: [SourceTransactionType'] -> ShowS # | |
ToJSON SourceTransactionType' Source # | |
Defined in StripeAPI.Types.SourceTransaction toJSON :: SourceTransactionType' -> Value # toEncoding :: SourceTransactionType' -> Encoding # toJSONList :: [SourceTransactionType'] -> Value # | |
FromJSON SourceTransactionType' Source # | |
Defined in StripeAPI.Types.SourceTransaction |