Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.GetCountrySpecs
Description
Contains the different functions to run the operation getCountrySpecs
Synopsis
- getCountrySpecs :: forall m. MonadHTTP m => GetCountrySpecsParameters -> ClientT m (Response GetCountrySpecsResponse)
- data GetCountrySpecsParameters = GetCountrySpecsParameters {}
- mkGetCountrySpecsParameters :: GetCountrySpecsParameters
- data GetCountrySpecsResponse
- data GetCountrySpecsResponseBody200 = GetCountrySpecsResponseBody200 {}
- mkGetCountrySpecsResponseBody200 :: [CountrySpec] -> Bool -> Text -> GetCountrySpecsResponseBody200
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> GetCountrySpecsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetCountrySpecsResponse) | Monadic computation which returns the result of the operation |
GET /v1/country_specs
<p>Lists all Country Spec objects available in the API.</p>
data GetCountrySpecsParameters Source #
Defines the object schema located at paths./v1/country_specs.GET.parameters
in the specification.
Constructors
GetCountrySpecsParameters | |
Fields
|
Instances
Eq GetCountrySpecsParameters Source # | |
Defined in StripeAPI.Operations.GetCountrySpecs Methods (==) :: GetCountrySpecsParameters -> GetCountrySpecsParameters -> Bool # (/=) :: GetCountrySpecsParameters -> GetCountrySpecsParameters -> Bool # | |
Show GetCountrySpecsParameters Source # | |
Defined in StripeAPI.Operations.GetCountrySpecs Methods showsPrec :: Int -> GetCountrySpecsParameters -> ShowS # show :: GetCountrySpecsParameters -> String # showList :: [GetCountrySpecsParameters] -> ShowS # | |
ToJSON GetCountrySpecsParameters Source # | |
Defined in StripeAPI.Operations.GetCountrySpecs Methods toJSON :: GetCountrySpecsParameters -> Value # toEncoding :: GetCountrySpecsParameters -> Encoding # toJSONList :: [GetCountrySpecsParameters] -> Value # | |
FromJSON GetCountrySpecsParameters Source # | |
Defined in StripeAPI.Operations.GetCountrySpecs Methods parseJSON :: Value -> Parser GetCountrySpecsParameters # parseJSONList :: Value -> Parser [GetCountrySpecsParameters] # |
mkGetCountrySpecsParameters :: GetCountrySpecsParameters Source #
Create a new GetCountrySpecsParameters
with all required fields.
data GetCountrySpecsResponse Source #
Represents a response of the operation getCountrySpecs
.
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), GetCountrySpecsResponseError
is used.
Constructors
GetCountrySpecsResponseError String | Means either no matching case available or a parse error |
GetCountrySpecsResponse200 GetCountrySpecsResponseBody200 | Successful response. |
GetCountrySpecsResponseDefault Error | Error response. |
Instances
Eq GetCountrySpecsResponse Source # | |
Defined in StripeAPI.Operations.GetCountrySpecs Methods (==) :: GetCountrySpecsResponse -> GetCountrySpecsResponse -> Bool # (/=) :: GetCountrySpecsResponse -> GetCountrySpecsResponse -> Bool # | |
Show GetCountrySpecsResponse Source # | |
Defined in StripeAPI.Operations.GetCountrySpecs Methods showsPrec :: Int -> GetCountrySpecsResponse -> ShowS # show :: GetCountrySpecsResponse -> String # showList :: [GetCountrySpecsResponse] -> ShowS # |
data GetCountrySpecsResponseBody200 Source #
Defines the object schema located at paths./v1/country_specs.GET.responses.200.content.application/json.schema
in the specification.
Constructors
GetCountrySpecsResponseBody200 | |
Fields
|
Instances
mkGetCountrySpecsResponseBody200 Source #
Arguments
:: [CountrySpec] | |
-> Bool | |
-> Text | |
-> GetCountrySpecsResponseBody200 |
Create a new GetCountrySpecsResponseBody200
with all required fields.