Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTerminalReaders
Synopsis
- postTerminalReaders :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalReadersRequestBody -> m (Either HttpException (Response PostTerminalReadersResponse))
- postTerminalReadersRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalReadersRequestBody -> m (Either HttpException (Response ByteString))
- postTerminalReadersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalReadersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalReadersResponse))
- postTerminalReadersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalReadersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostTerminalReadersRequestBody = PostTerminalReadersRequestBody {
- postTerminalReadersRequestBodyExpand :: Maybe ([] String)
- postTerminalReadersRequestBodyLabel :: Maybe String
- postTerminalReadersRequestBodyLocation :: Maybe String
- postTerminalReadersRequestBodyMetadata :: Maybe PostTerminalReadersRequestBodyMetadata'
- postTerminalReadersRequestBodyRegistrationCode :: String
- data PostTerminalReadersRequestBodyMetadata' = PostTerminalReadersRequestBodyMetadata' {
- data PostTerminalReadersResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostTerminalReadersRequestBody | The request body to send |
-> m (Either HttpException (Response PostTerminalReadersResponse)) | Monad containing the result of the operation |
POST /v1/terminal/readers
<p>Creates a new <code>Reader</code> object.</p>
postTerminalReadersRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalReadersRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/readers
The same as postTerminalReaders
but returns the raw ByteString
postTerminalReadersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalReadersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalReadersResponse)) Source #
POST /v1/terminal/readers
Monadic version of postTerminalReaders
(use with runWithConfiguration
)
postTerminalReadersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalReadersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/readers
Monadic version of postTerminalReadersRaw
(use with runWithConfiguration
)
data PostTerminalReadersRequestBody Source #
Defines the data type for the schema postTerminalReadersRequestBody
PostTerminalReadersRequestBody | |
|
data PostTerminalReadersRequestBodyMetadata' Source #
Defines the data type for the schema postTerminalReadersRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
data PostTerminalReadersResponse Source #
Represents a response of the operation postTerminalReaders
.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostTerminalReadersResponseError
is used.
PostTerminalReadersResponseError String | Means either no matching case available or a parse error |
PostTerminalReadersResponse200 Terminal'reader | Successful response. |
PostTerminalReadersResponseDefault Error | Error response. |