Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Capability
Synopsis
- data Capability = Capability {}
- mkCapability :: CapabilityAccount'Variants -> Text -> Bool -> CapabilityStatus' -> Capability
- data CapabilityAccount'Variants
- data CapabilityStatus'
Documentation
data Capability Source #
Defines the object schema located at components.schemas.capability
in the specification.
This is an object representing a capability for a Stripe account.
Related guide: Account capabilities.
Capability | |
|
Instances
Eq Capability Source # | |
Defined in StripeAPI.Types.Capability (==) :: Capability -> Capability -> Bool # (/=) :: Capability -> Capability -> Bool # | |
Show Capability Source # | |
Defined in StripeAPI.Types.Capability showsPrec :: Int -> Capability -> ShowS # show :: Capability -> String # showList :: [Capability] -> ShowS # | |
ToJSON Capability Source # | |
Defined in StripeAPI.Types.Capability toJSON :: Capability -> Value # toEncoding :: Capability -> Encoding # toJSONList :: [Capability] -> Value # toEncodingList :: [Capability] -> Encoding # | |
FromJSON Capability Source # | |
Defined in StripeAPI.Types.Capability parseJSON :: Value -> Parser Capability # parseJSONList :: Value -> Parser [Capability] # |
Create a new Capability
with all required fields.
data CapabilityAccount'Variants Source #
Defines the oneOf schema located at components.schemas.capability.properties.account.anyOf
in the specification.
The account for which the capability enables functionality.
Instances
Eq CapabilityAccount'Variants Source # | |
Defined in StripeAPI.Types.Capability | |
Show CapabilityAccount'Variants Source # | |
Defined in StripeAPI.Types.Capability showsPrec :: Int -> CapabilityAccount'Variants -> ShowS # show :: CapabilityAccount'Variants -> String # showList :: [CapabilityAccount'Variants] -> ShowS # | |
ToJSON CapabilityAccount'Variants Source # | |
Defined in StripeAPI.Types.Capability | |
FromJSON CapabilityAccount'Variants Source # | |
Defined in StripeAPI.Types.Capability |
data CapabilityStatus' Source #
Defines the enum schema located at components.schemas.capability.properties.status
in the specification.
The status of the capability. Can be `active`, `inactive`, `pending`, or `unrequested`.
CapabilityStatus'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
CapabilityStatus'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
CapabilityStatus'EnumActive | Represents the JSON value |
CapabilityStatus'EnumDisabled | Represents the JSON value |
CapabilityStatus'EnumInactive | Represents the JSON value |
CapabilityStatus'EnumPending | Represents the JSON value |
CapabilityStatus'EnumUnrequested | Represents the JSON value |
Instances
Eq CapabilityStatus' Source # | |
Defined in StripeAPI.Types.Capability (==) :: CapabilityStatus' -> CapabilityStatus' -> Bool # (/=) :: CapabilityStatus' -> CapabilityStatus' -> Bool # | |
Show CapabilityStatus' Source # | |
Defined in StripeAPI.Types.Capability showsPrec :: Int -> CapabilityStatus' -> ShowS # show :: CapabilityStatus' -> String # showList :: [CapabilityStatus'] -> ShowS # | |
ToJSON CapabilityStatus' Source # | |
Defined in StripeAPI.Types.Capability toJSON :: CapabilityStatus' -> Value # toEncoding :: CapabilityStatus' -> Encoding # toJSONList :: [CapabilityStatus'] -> Value # toEncodingList :: [CapabilityStatus'] -> Encoding # | |
FromJSON CapabilityStatus' Source # | |
Defined in StripeAPI.Types.Capability parseJSON :: Value -> Parser CapabilityStatus' # parseJSONList :: Value -> Parser [CapabilityStatus'] # |