Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getExchangeRatesCurrency
Synopsis
- getExchangeRatesCurrency :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetExchangeRatesCurrencyRequestBody -> m (Either HttpException (Response GetExchangeRatesCurrencyResponse))
- getExchangeRatesCurrencyRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetExchangeRatesCurrencyRequestBody -> m (Either HttpException (Response ByteString))
- getExchangeRatesCurrencyM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetExchangeRatesCurrencyRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetExchangeRatesCurrencyResponse))
- getExchangeRatesCurrencyRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetExchangeRatesCurrencyRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetExchangeRatesCurrencyRequestBody = GetExchangeRatesCurrencyRequestBody {
- data GetExchangeRatesCurrencyResponse
Documentation
getExchangeRatesCurrency Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | currency | Constraints: Maximum length of 3 |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> GetExchangeRatesCurrencyRequestBody | The request body to send |
-> m (Either HttpException (Response GetExchangeRatesCurrencyResponse)) | Monad containing the result of the operation |
GET /v1/exchange_rates/{currency}
<p>Retrieves the exchange rates from the given currency to every supported currency.</p>
getExchangeRatesCurrencyRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetExchangeRatesCurrencyRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/exchange_rates/{currency}
The same as getExchangeRatesCurrency
but returns the raw ByteString
getExchangeRatesCurrencyM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetExchangeRatesCurrencyRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetExchangeRatesCurrencyResponse)) Source #
GET /v1/exchange_rates/{currency}
Monadic version of getExchangeRatesCurrency
(use with runWithConfiguration
)
getExchangeRatesCurrencyRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetExchangeRatesCurrencyRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/exchange_rates/{currency}
Monadic version of getExchangeRatesCurrencyRaw
(use with runWithConfiguration
)
data GetExchangeRatesCurrencyRequestBody Source #
Defines the data type for the schema getExchangeRatesCurrencyRequestBody
data GetExchangeRatesCurrencyResponse Source #
Represents a response of the operation getExchangeRatesCurrency
.
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), GetExchangeRatesCurrencyResponseError
is used.
GetExchangeRatesCurrencyResponseError String | Means either no matching case available or a parse error |
GetExchangeRatesCurrencyResponse200 ExchangeRate | Successful response. |
GetExchangeRatesCurrencyResponseDefault Error | Error response. |