| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.Terminal_Reader
Description
Contains the types generated from the schema Terminal_Reader
Synopsis
- data Terminal'reader = Terminal'reader {
- terminal'readerDeviceSwVersion :: Maybe Text
- terminal'readerDeviceType :: Terminal'readerDeviceType'
- terminal'readerId :: Text
- terminal'readerIpAddress :: Maybe Text
- terminal'readerLabel :: Text
- terminal'readerLivemode :: Bool
- terminal'readerLocation :: Maybe Terminal'readerLocation'Variants
- terminal'readerMetadata :: Object
- terminal'readerSerialNumber :: Text
- terminal'readerStatus :: Maybe Text
- mkTerminal'reader :: Terminal'readerDeviceType' -> Text -> Text -> Bool -> Object -> Text -> Terminal'reader
- data Terminal'readerDeviceType'
- data Terminal'readerLocation'Variants
Documentation
data Terminal'reader Source #
Defines the object schema located at components.schemas.terminal.reader in the specification.
A Reader represents a physical device for accepting payment details.
Related guide: Connecting to a Reader.
Constructors
| Terminal'reader | |
Fields
| |
Instances
| Eq Terminal'reader Source # | |
Defined in StripeAPI.Types.Terminal_Reader Methods (==) :: Terminal'reader -> Terminal'reader -> Bool # (/=) :: Terminal'reader -> Terminal'reader -> Bool # | |
| Show Terminal'reader Source # | |
Defined in StripeAPI.Types.Terminal_Reader Methods showsPrec :: Int -> Terminal'reader -> ShowS # show :: Terminal'reader -> String # showList :: [Terminal'reader] -> ShowS # | |
| ToJSON Terminal'reader Source # | |
Defined in StripeAPI.Types.Terminal_Reader Methods toJSON :: Terminal'reader -> Value # toEncoding :: Terminal'reader -> Encoding # toJSONList :: [Terminal'reader] -> Value # toEncodingList :: [Terminal'reader] -> Encoding # | |
| FromJSON Terminal'reader Source # | |
Defined in StripeAPI.Types.Terminal_Reader Methods parseJSON :: Value -> Parser Terminal'reader # parseJSONList :: Value -> Parser [Terminal'reader] # | |
Arguments
| :: Terminal'readerDeviceType' | |
| -> Text | |
| -> Text | |
| -> Bool | |
| -> Object | |
| -> Text | |
| -> Terminal'reader |
Create a new Terminal'reader with all required fields.
data Terminal'readerDeviceType' Source #
Defines the enum schema located at components.schemas.terminal.reader.properties.device_type in the specification.
Type of reader, one of `bbpos_chipper2x` or `verifone_P400`.
Constructors
| Terminal'readerDeviceType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| Terminal'readerDeviceType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| Terminal'readerDeviceType'EnumBbposChipper2x | Represents the JSON value |
| Terminal'readerDeviceType'EnumVerifoneP400 | Represents the JSON value |
Instances
data Terminal'readerLocation'Variants Source #
Defines the oneOf schema located at components.schemas.terminal.reader.properties.location.anyOf in the specification.
The location identifier of the reader.
Constructors
| Terminal'readerLocation'Text Text | |
| Terminal'readerLocation'Terminal'location Terminal'location |