Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTerminalConnectionTokens
Synopsis
- postTerminalConnectionTokens :: forall m. MonadHTTP m => Maybe PostTerminalConnectionTokensRequestBody -> ClientT m (Response PostTerminalConnectionTokensResponse)
- data PostTerminalConnectionTokensRequestBody = PostTerminalConnectionTokensRequestBody {}
- mkPostTerminalConnectionTokensRequestBody :: PostTerminalConnectionTokensRequestBody
- data PostTerminalConnectionTokensResponse
Documentation
postTerminalConnectionTokens Source #
:: forall m. MonadHTTP m | |
=> Maybe PostTerminalConnectionTokensRequestBody | The request body to send |
-> ClientT m (Response PostTerminalConnectionTokensResponse) | Monadic computation which returns 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>
data PostTerminalConnectionTokensRequestBody Source #
Defines the object schema located at paths./v1/terminal/connection_tokens.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostTerminalConnectionTokensRequestBody | |
|
mkPostTerminalConnectionTokensRequestBody :: PostTerminalConnectionTokensRequestBody Source #
Create a new PostTerminalConnectionTokensRequestBody
with all required fields.
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. |