Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTerminalConnectionTokens
Synopsis
- postTerminalConnectionTokens :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalConnectionTokensRequestBody -> m (Either HttpException (Response PostTerminalConnectionTokensResponse))
- postTerminalConnectionTokensRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalConnectionTokensRequestBody -> m (Either HttpException (Response ByteString))
- postTerminalConnectionTokensM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalConnectionTokensRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalConnectionTokensResponse))
- postTerminalConnectionTokensRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalConnectionTokensRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostTerminalConnectionTokensRequestBody = PostTerminalConnectionTokensRequestBody {}
- data PostTerminalConnectionTokensResponse
Documentation
postTerminalConnectionTokens Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostTerminalConnectionTokensRequestBody | The request body to send |
-> m (Either HttpException (Response PostTerminalConnectionTokensResponse)) | Monad containing the result of the operation |
POST /v1/terminal/connection_tokens
<p>To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.</p>
postTerminalConnectionTokensRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalConnectionTokensRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/connection_tokens
The same as postTerminalConnectionTokens
but returns the raw ByteString
postTerminalConnectionTokensM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalConnectionTokensRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalConnectionTokensResponse)) Source #
POST /v1/terminal/connection_tokens
Monadic version of postTerminalConnectionTokens
(use with runWithConfiguration
)
postTerminalConnectionTokensRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalConnectionTokensRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/connection_tokens
Monadic version of postTerminalConnectionTokensRaw
(use with runWithConfiguration
)
data PostTerminalConnectionTokensRequestBody Source #
Defines the data type for the schema postTerminalConnectionTokensRequestBody
PostTerminalConnectionTokensRequestBody | |
|
data PostTerminalConnectionTokensResponse Source #
Represents a response of the operation postTerminalConnectionTokens
.
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), PostTerminalConnectionTokensResponseError
is used.
PostTerminalConnectionTokensResponseError String | Means either no matching case available or a parse error |
PostTerminalConnectionTokensResponse200 Terminal'connectionToken | Successful response. |
PostTerminalConnectionTokensResponseDefault Error | Error response. |