Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Types.PaymentMethod
Description
Contains the types generated from the schema PaymentMethod
Synopsis
- data PaymentMethod = PaymentMethod {
- paymentMethodAcssDebit :: Maybe PaymentMethodAcssDebit
- paymentMethodAfterpayClearpay :: Maybe PaymentMethodAfterpayClearpay
- paymentMethodAlipay :: Maybe PaymentFlowsPrivatePaymentMethodsAlipay
- paymentMethodAuBecsDebit :: Maybe PaymentMethodAuBecsDebit
- paymentMethodBacsDebit :: Maybe PaymentMethodBacsDebit
- paymentMethodBancontact :: Maybe PaymentMethodBancontact
- paymentMethodBillingDetails :: BillingDetails
- paymentMethodBoleto :: Maybe PaymentMethodBoleto
- paymentMethodCard :: Maybe PaymentMethodCard
- paymentMethodCardPresent :: Maybe PaymentMethodCardPresent
- paymentMethodCreated :: Int
- paymentMethodCustomer :: Maybe PaymentMethodCustomer'Variants
- paymentMethodEps :: Maybe PaymentMethodEps
- paymentMethodFpx :: Maybe PaymentMethodFpx
- paymentMethodGiropay :: Maybe PaymentMethodGiropay
- paymentMethodGrabpay :: Maybe PaymentMethodGrabpay
- paymentMethodId :: Text
- paymentMethodIdeal :: Maybe PaymentMethodIdeal
- paymentMethodInteracPresent :: Maybe PaymentMethodInteracPresent
- paymentMethodLivemode :: Bool
- paymentMethodMetadata :: Maybe Object
- paymentMethodOxxo :: Maybe PaymentMethodOxxo
- paymentMethodP24 :: Maybe PaymentMethodP24
- paymentMethodSepaDebit :: Maybe PaymentMethodSepaDebit
- paymentMethodSofort :: Maybe PaymentMethodSofort
- paymentMethodType :: PaymentMethodType'
- mkPaymentMethod :: BillingDetails -> Int -> Text -> Bool -> PaymentMethodType' -> PaymentMethod
- data PaymentMethodCustomer'Variants
- data PaymentMethodType'
- = PaymentMethodType'Other Value
- | PaymentMethodType'Typed Text
- | PaymentMethodType'EnumAcssDebit
- | PaymentMethodType'EnumAfterpayClearpay
- | PaymentMethodType'EnumAlipay
- | PaymentMethodType'EnumAuBecsDebit
- | PaymentMethodType'EnumBacsDebit
- | PaymentMethodType'EnumBancontact
- | PaymentMethodType'EnumBoleto
- | PaymentMethodType'EnumCard
- | PaymentMethodType'EnumCardPresent
- | PaymentMethodType'EnumEps
- | PaymentMethodType'EnumFpx
- | PaymentMethodType'EnumGiropay
- | PaymentMethodType'EnumGrabpay
- | PaymentMethodType'EnumIdeal
- | PaymentMethodType'EnumInteracPresent
- | PaymentMethodType'EnumOxxo
- | PaymentMethodType'EnumP24
- | PaymentMethodType'EnumSepaDebit
- | PaymentMethodType'EnumSofort
Documentation
data PaymentMethod Source #
Defines the object schema located at components.schemas.payment_method
in the specification.
PaymentMethod objects represent your customer's payment instruments. They can be used with PaymentIntents to collect payments or saved to Customer objects to store instrument details for future payments.
Related guides: Payment Methods and More Payment Scenarios.
Constructors
Instances
Eq PaymentMethod Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods (==) :: PaymentMethod -> PaymentMethod -> Bool # (/=) :: PaymentMethod -> PaymentMethod -> Bool # | |
Show PaymentMethod Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods showsPrec :: Int -> PaymentMethod -> ShowS # show :: PaymentMethod -> String # showList :: [PaymentMethod] -> ShowS # | |
ToJSON PaymentMethod Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods toJSON :: PaymentMethod -> Value # toEncoding :: PaymentMethod -> Encoding # toJSONList :: [PaymentMethod] -> Value # toEncodingList :: [PaymentMethod] -> Encoding # | |
FromJSON PaymentMethod Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods parseJSON :: Value -> Parser PaymentMethod # parseJSONList :: Value -> Parser [PaymentMethod] # |
Arguments
:: BillingDetails | |
-> Int | |
-> Text | |
-> Bool | |
-> PaymentMethodType' | |
-> PaymentMethod |
Create a new PaymentMethod
with all required fields.
data PaymentMethodCustomer'Variants Source #
Defines the oneOf schema located at components.schemas.payment_method.properties.customer.anyOf
in the specification.
The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
Instances
Eq PaymentMethodCustomer'Variants Source # | |
Defined in StripeAPI.Types.PaymentMethod | |
Show PaymentMethodCustomer'Variants Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods showsPrec :: Int -> PaymentMethodCustomer'Variants -> ShowS # show :: PaymentMethodCustomer'Variants -> String # showList :: [PaymentMethodCustomer'Variants] -> ShowS # | |
ToJSON PaymentMethodCustomer'Variants Source # | |
Defined in StripeAPI.Types.PaymentMethod | |
FromJSON PaymentMethodCustomer'Variants Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods parseJSON :: Value -> Parser PaymentMethodCustomer'Variants # parseJSONList :: Value -> Parser [PaymentMethodCustomer'Variants] # |
data PaymentMethodType' Source #
Defines the enum schema located at components.schemas.payment_method.properties.type
in the specification.
The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
Constructors
PaymentMethodType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PaymentMethodType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PaymentMethodType'EnumAcssDebit | Represents the JSON value |
PaymentMethodType'EnumAfterpayClearpay | Represents the JSON value |
PaymentMethodType'EnumAlipay | Represents the JSON value |
PaymentMethodType'EnumAuBecsDebit | Represents the JSON value |
PaymentMethodType'EnumBacsDebit | Represents the JSON value |
PaymentMethodType'EnumBancontact | Represents the JSON value |
PaymentMethodType'EnumBoleto | Represents the JSON value |
PaymentMethodType'EnumCard | Represents the JSON value |
PaymentMethodType'EnumCardPresent | Represents the JSON value |
PaymentMethodType'EnumEps | Represents the JSON value |
PaymentMethodType'EnumFpx | Represents the JSON value |
PaymentMethodType'EnumGiropay | Represents the JSON value |
PaymentMethodType'EnumGrabpay | Represents the JSON value |
PaymentMethodType'EnumIdeal | Represents the JSON value |
PaymentMethodType'EnumInteracPresent | Represents the JSON value |
PaymentMethodType'EnumOxxo | Represents the JSON value |
PaymentMethodType'EnumP24 | Represents the JSON value |
PaymentMethodType'EnumSepaDebit | Represents the JSON value |
PaymentMethodType'EnumSofort | Represents the JSON value |
Instances
Eq PaymentMethodType' Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods (==) :: PaymentMethodType' -> PaymentMethodType' -> Bool # (/=) :: PaymentMethodType' -> PaymentMethodType' -> Bool # | |
Show PaymentMethodType' Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods showsPrec :: Int -> PaymentMethodType' -> ShowS # show :: PaymentMethodType' -> String # showList :: [PaymentMethodType'] -> ShowS # | |
ToJSON PaymentMethodType' Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods toJSON :: PaymentMethodType' -> Value # toEncoding :: PaymentMethodType' -> Encoding # toJSONList :: [PaymentMethodType'] -> Value # toEncodingList :: [PaymentMethodType'] -> Encoding # | |
FromJSON PaymentMethodType' Source # | |
Defined in StripeAPI.Types.PaymentMethod Methods parseJSON :: Value -> Parser PaymentMethodType' # parseJSONList :: Value -> Parser [PaymentMethodType'] # |