Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getTokensToken
Synopsis
- getTokensToken :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetTokensTokenRequestBody -> m (Either HttpException (Response GetTokensTokenResponse))
- getTokensTokenRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetTokensTokenRequestBody -> m (Either HttpException (Response ByteString))
- getTokensTokenM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetTokensTokenRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetTokensTokenResponse))
- getTokensTokenRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetTokensTokenRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetTokensTokenRequestBody = GetTokensTokenRequestBody {
- data GetTokensTokenResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> String | token | Constraints: Maximum length of 5000 |
-> GetTokensTokenRequestBody | The request body to send |
-> m (Either HttpException (Response GetTokensTokenResponse)) | Monad containing the result of the operation |
GET /v1/tokens/{token}
<p>Retrieves the token with the given ID.</p>
getTokensTokenRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetTokensTokenRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/tokens/{token}
The same as getTokensToken
but returns the raw ByteString
getTokensTokenM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetTokensTokenRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetTokensTokenResponse)) Source #
GET /v1/tokens/{token}
Monadic version of getTokensToken
(use with runWithConfiguration
)
getTokensTokenRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetTokensTokenRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/tokens/{token}
Monadic version of getTokensTokenRaw
(use with runWithConfiguration
)
data GetTokensTokenRequestBody Source #
Defines the data type for the schema getTokensTokenRequestBody
Instances
data GetTokensTokenResponse Source #
Represents a response of the operation getTokensToken
.
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), GetTokensTokenResponseError
is used.
GetTokensTokenResponseError String | Means either no matching case available or a parse error |
GetTokensTokenResponse200 Token | Successful response. |
GetTokensTokenResponseDefault Error | Error response. |
Instances
Eq GetTokensTokenResponse Source # | |
Defined in StripeAPI.Operations.GetTokensToken | |
Show GetTokensTokenResponse Source # | |
Defined in StripeAPI.Operations.GetTokensToken showsPrec :: Int -> GetTokensTokenResponse -> ShowS # show :: GetTokensTokenResponse -> String # showList :: [GetTokensTokenResponse] -> ShowS # |