| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Operations.GetExchangeRates
Description
Contains the different functions to run the operation getExchangeRates
Synopsis
- getExchangeRates :: forall m. MonadHTTP m => GetExchangeRatesParameters -> ClientT m (Response GetExchangeRatesResponse)
- data GetExchangeRatesParameters = GetExchangeRatesParameters {}
- mkGetExchangeRatesParameters :: GetExchangeRatesParameters
- data GetExchangeRatesResponse
- data GetExchangeRatesResponseBody200 = GetExchangeRatesResponseBody200 {}
- mkGetExchangeRatesResponseBody200 :: [ExchangeRate] -> Bool -> Text -> GetExchangeRatesResponseBody200
Documentation
Arguments
| :: forall m. MonadHTTP m | |
| => GetExchangeRatesParameters | Contains all available parameters of this operation (query and path parameters) |
| -> ClientT m (Response GetExchangeRatesResponse) | Monadic computation which returns the result of the operation |
GET /v1/exchange_rates
<p>Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.</p>
data GetExchangeRatesParameters Source #
Defines the object schema located at paths./v1/exchange_rates.GET.parameters in the specification.
Constructors
| GetExchangeRatesParameters | |
Fields
| |
Instances
mkGetExchangeRatesParameters :: GetExchangeRatesParameters Source #
Create a new GetExchangeRatesParameters with all required fields.
data GetExchangeRatesResponse Source #
Represents a response of the operation getExchangeRates.
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), GetExchangeRatesResponseError is used.
Constructors
| GetExchangeRatesResponseError String | Means either no matching case available or a parse error |
| GetExchangeRatesResponse200 GetExchangeRatesResponseBody200 | Successful response. |
| GetExchangeRatesResponseDefault Error | Error response. |
Instances
| Eq GetExchangeRatesResponse Source # | |
Defined in StripeAPI.Operations.GetExchangeRates Methods (==) :: GetExchangeRatesResponse -> GetExchangeRatesResponse -> Bool # (/=) :: GetExchangeRatesResponse -> GetExchangeRatesResponse -> Bool # | |
| Show GetExchangeRatesResponse Source # | |
Defined in StripeAPI.Operations.GetExchangeRates Methods showsPrec :: Int -> GetExchangeRatesResponse -> ShowS # show :: GetExchangeRatesResponse -> String # showList :: [GetExchangeRatesResponse] -> ShowS # | |
data GetExchangeRatesResponseBody200 Source #
Defines the object schema located at paths./v1/exchange_rates.GET.responses.200.content.application/json.schema in the specification.
Constructors
| GetExchangeRatesResponseBody200 | |
Fields
| |
Instances
mkGetExchangeRatesResponseBody200 Source #
Arguments
| :: [ExchangeRate] | |
| -> Bool | |
| -> Text | |
| -> GetExchangeRatesResponseBody200 |
Create a new GetExchangeRatesResponseBody200 with all required fields.