Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getCountrySpecsCountry
Synopsis
- getCountrySpecsCountry :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetCountrySpecsCountryRequestBody -> m (Either HttpException (Response GetCountrySpecsCountryResponse))
- getCountrySpecsCountryRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetCountrySpecsCountryRequestBody -> m (Either HttpException (Response ByteString))
- getCountrySpecsCountryM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCountrySpecsCountryRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetCountrySpecsCountryResponse))
- getCountrySpecsCountryRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCountrySpecsCountryRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetCountrySpecsCountryRequestBody = GetCountrySpecsCountryRequestBody {
- data GetCountrySpecsCountryResponse
Documentation
getCountrySpecsCountry Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | country | Constraints: Maximum length of 5000 |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> GetCountrySpecsCountryRequestBody | The request body to send |
-> m (Either HttpException (Response GetCountrySpecsCountryResponse)) | Monad containing the result of the operation |
GET /v1/country_specs/{country}
<p>Returns a Country Spec for a given Country code.</p>
getCountrySpecsCountryRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetCountrySpecsCountryRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/country_specs/{country}
The same as getCountrySpecsCountry
but returns the raw ByteString
getCountrySpecsCountryM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCountrySpecsCountryRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetCountrySpecsCountryResponse)) Source #
GET /v1/country_specs/{country}
Monadic version of getCountrySpecsCountry
(use with runWithConfiguration
)
getCountrySpecsCountryRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCountrySpecsCountryRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/country_specs/{country}
Monadic version of getCountrySpecsCountryRaw
(use with runWithConfiguration
)
data GetCountrySpecsCountryRequestBody Source #
Defines the data type for the schema getCountrySpecsCountryRequestBody
data GetCountrySpecsCountryResponse Source #
Represents a response of the operation getCountrySpecsCountry
.
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), GetCountrySpecsCountryResponseError
is used.
GetCountrySpecsCountryResponseError String | Means either no matching case available or a parse error |
GetCountrySpecsCountryResponse200 CountrySpec | Successful response. |
GetCountrySpecsCountryResponseDefault Error | Error response. |