Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Card
Synopsis
- data Card = Card {
- cardAccount :: Maybe CardAccount'Variants
- cardAddressCity :: Maybe Text
- cardAddressCountry :: Maybe Text
- cardAddressLine1 :: Maybe Text
- cardAddressLine1Check :: Maybe Text
- cardAddressLine2 :: Maybe Text
- cardAddressState :: Maybe Text
- cardAddressZip :: Maybe Text
- cardAddressZipCheck :: Maybe Text
- cardAvailablePayoutMethods :: Maybe [CardAvailablePayoutMethods']
- cardBrand :: Text
- cardCountry :: Maybe Text
- cardCurrency :: Maybe Text
- cardCustomer :: Maybe CardCustomer'Variants
- cardCvcCheck :: Maybe Text
- cardDefaultForCurrency :: Maybe Bool
- cardDynamicLast4 :: Maybe Text
- cardExpMonth :: Int
- cardExpYear :: Int
- cardFingerprint :: Maybe Text
- cardFunding :: Text
- cardId :: Text
- cardLast4 :: Text
- cardMetadata :: Maybe Object
- cardName :: Maybe Text
- cardRecipient :: Maybe CardRecipient'Variants
- cardTokenizationMethod :: Maybe Text
- mkCard :: Text -> Int -> Int -> Text -> Text -> Text -> Card
- data CardAccount'Variants
- data CardAvailablePayoutMethods'
- data CardCustomer'Variants
- data CardRecipient'Variants
Documentation
Defines the object schema located at components.schemas.card
in the specification.
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later.
Related guide: Card Payments with Sources.
Card | |
|
data CardAccount'Variants Source #
Defines the oneOf schema located at components.schemas.card.properties.account.anyOf
in the specification.
The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead.
Instances
Eq CardAccount'Variants Source # | |
Defined in StripeAPI.Types.Card (==) :: CardAccount'Variants -> CardAccount'Variants -> Bool # (/=) :: CardAccount'Variants -> CardAccount'Variants -> Bool # | |
Show CardAccount'Variants Source # | |
Defined in StripeAPI.Types.Card showsPrec :: Int -> CardAccount'Variants -> ShowS # show :: CardAccount'Variants -> String # showList :: [CardAccount'Variants] -> ShowS # | |
ToJSON CardAccount'Variants Source # | |
Defined in StripeAPI.Types.Card toJSON :: CardAccount'Variants -> Value # toEncoding :: CardAccount'Variants -> Encoding # toJSONList :: [CardAccount'Variants] -> Value # toEncodingList :: [CardAccount'Variants] -> Encoding # | |
FromJSON CardAccount'Variants Source # | |
Defined in StripeAPI.Types.Card parseJSON :: Value -> Parser CardAccount'Variants # parseJSONList :: Value -> Parser [CardAccount'Variants] # |
data CardAvailablePayoutMethods' Source #
Defines the enum schema located at components.schemas.card.properties.available_payout_methods.items
in the specification.
CardAvailablePayoutMethods'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
CardAvailablePayoutMethods'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
CardAvailablePayoutMethods'EnumInstant | Represents the JSON value |
CardAvailablePayoutMethods'EnumStandard | Represents the JSON value |
Instances
Eq CardAvailablePayoutMethods' Source # | |
Defined in StripeAPI.Types.Card | |
Show CardAvailablePayoutMethods' Source # | |
Defined in StripeAPI.Types.Card showsPrec :: Int -> CardAvailablePayoutMethods' -> ShowS # show :: CardAvailablePayoutMethods' -> String # showList :: [CardAvailablePayoutMethods'] -> ShowS # | |
ToJSON CardAvailablePayoutMethods' Source # | |
Defined in StripeAPI.Types.Card | |
FromJSON CardAvailablePayoutMethods' Source # | |
Defined in StripeAPI.Types.Card |
data CardCustomer'Variants Source #
Defines the oneOf schema located at components.schemas.card.properties.customer.anyOf
in the specification.
The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
Instances
Eq CardCustomer'Variants Source # | |
Defined in StripeAPI.Types.Card (==) :: CardCustomer'Variants -> CardCustomer'Variants -> Bool # (/=) :: CardCustomer'Variants -> CardCustomer'Variants -> Bool # | |
Show CardCustomer'Variants Source # | |
Defined in StripeAPI.Types.Card showsPrec :: Int -> CardCustomer'Variants -> ShowS # show :: CardCustomer'Variants -> String # showList :: [CardCustomer'Variants] -> ShowS # | |
ToJSON CardCustomer'Variants Source # | |
Defined in StripeAPI.Types.Card toJSON :: CardCustomer'Variants -> Value # toEncoding :: CardCustomer'Variants -> Encoding # toJSONList :: [CardCustomer'Variants] -> Value # toEncodingList :: [CardCustomer'Variants] -> Encoding # | |
FromJSON CardCustomer'Variants Source # | |
Defined in StripeAPI.Types.Card parseJSON :: Value -> Parser CardCustomer'Variants # parseJSONList :: Value -> Parser [CardCustomer'Variants] # |
data CardRecipient'Variants Source #
Defines the oneOf schema located at components.schemas.card.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.
Instances
Eq CardRecipient'Variants Source # | |
Defined in StripeAPI.Types.Card | |
Show CardRecipient'Variants Source # | |
Defined in StripeAPI.Types.Card showsPrec :: Int -> CardRecipient'Variants -> ShowS # show :: CardRecipient'Variants -> String # showList :: [CardRecipient'Variants] -> ShowS # | |
ToJSON CardRecipient'Variants Source # | |
Defined in StripeAPI.Types.Card toJSON :: CardRecipient'Variants -> Value # toEncoding :: CardRecipient'Variants -> Encoding # toJSONList :: [CardRecipient'Variants] -> Value # | |
FromJSON CardRecipient'Variants Source # | |
Defined in StripeAPI.Types.Card |