Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getTaxRates
Synopsis
- getTaxRates :: forall m. MonadHTTP m => GetTaxRatesParameters -> ClientT m (Response GetTaxRatesResponse)
- data GetTaxRatesParameters = GetTaxRatesParameters {
- getTaxRatesParametersQueryActive :: Maybe Bool
- getTaxRatesParametersQueryCreated :: Maybe GetTaxRatesParametersQueryCreated'Variants
- getTaxRatesParametersQueryEndingBefore :: Maybe Text
- getTaxRatesParametersQueryExpand :: Maybe [Text]
- getTaxRatesParametersQueryInclusive :: Maybe Bool
- getTaxRatesParametersQueryLimit :: Maybe Int
- getTaxRatesParametersQueryStartingAfter :: Maybe Text
- mkGetTaxRatesParameters :: GetTaxRatesParameters
- data GetTaxRatesParametersQueryCreated'OneOf1 = GetTaxRatesParametersQueryCreated'OneOf1 {}
- mkGetTaxRatesParametersQueryCreated'OneOf1 :: GetTaxRatesParametersQueryCreated'OneOf1
- data GetTaxRatesParametersQueryCreated'Variants
- data GetTaxRatesResponse
- data GetTaxRatesResponseBody200 = GetTaxRatesResponseBody200 {}
- mkGetTaxRatesResponseBody200 :: [TaxRate] -> Bool -> Text -> GetTaxRatesResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetTaxRatesParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetTaxRatesResponse) | Monadic computation which returns the result of the operation |
GET /v1/tax_rates
<p>Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.</p>
data GetTaxRatesParameters Source #
Defines the object schema located at paths./v1/tax_rates.GET.parameters
in the specification.
GetTaxRatesParameters | |
|
Instances
Eq GetTaxRatesParameters Source # | |
Defined in StripeAPI.Operations.GetTaxRates (==) :: GetTaxRatesParameters -> GetTaxRatesParameters -> Bool # (/=) :: GetTaxRatesParameters -> GetTaxRatesParameters -> Bool # | |
Show GetTaxRatesParameters Source # | |
Defined in StripeAPI.Operations.GetTaxRates showsPrec :: Int -> GetTaxRatesParameters -> ShowS # show :: GetTaxRatesParameters -> String # showList :: [GetTaxRatesParameters] -> ShowS # | |
ToJSON GetTaxRatesParameters Source # | |
Defined in StripeAPI.Operations.GetTaxRates toJSON :: GetTaxRatesParameters -> Value # toEncoding :: GetTaxRatesParameters -> Encoding # toJSONList :: [GetTaxRatesParameters] -> Value # toEncodingList :: [GetTaxRatesParameters] -> Encoding # | |
FromJSON GetTaxRatesParameters Source # | |
Defined in StripeAPI.Operations.GetTaxRates parseJSON :: Value -> Parser GetTaxRatesParameters # parseJSONList :: Value -> Parser [GetTaxRatesParameters] # |
mkGetTaxRatesParameters :: GetTaxRatesParameters Source #
Create a new GetTaxRatesParameters
with all required fields.
data GetTaxRatesParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/tax_rates.GET.parameters.properties.queryCreated.anyOf
in the specification.
mkGetTaxRatesParametersQueryCreated'OneOf1 :: GetTaxRatesParametersQueryCreated'OneOf1 Source #
Create a new GetTaxRatesParametersQueryCreated'OneOf1
with all required fields.
data GetTaxRatesParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/tax_rates.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
Optional range for filtering created date.
GetTaxRatesParametersQueryCreated'GetTaxRatesParametersQueryCreated'OneOf1 GetTaxRatesParametersQueryCreated'OneOf1 | |
GetTaxRatesParametersQueryCreated'Int Int |
data GetTaxRatesResponse Source #
Represents a response of the operation getTaxRates
.
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), GetTaxRatesResponseError
is used.
GetTaxRatesResponseError String | Means either no matching case available or a parse error |
GetTaxRatesResponse200 GetTaxRatesResponseBody200 | Successful response. |
GetTaxRatesResponseDefault Error | Error response. |
Instances
Eq GetTaxRatesResponse Source # | |
Defined in StripeAPI.Operations.GetTaxRates (==) :: GetTaxRatesResponse -> GetTaxRatesResponse -> Bool # (/=) :: GetTaxRatesResponse -> GetTaxRatesResponse -> Bool # | |
Show GetTaxRatesResponse Source # | |
Defined in StripeAPI.Operations.GetTaxRates showsPrec :: Int -> GetTaxRatesResponse -> ShowS # show :: GetTaxRatesResponse -> String # showList :: [GetTaxRatesResponse] -> ShowS # |
data GetTaxRatesResponseBody200 Source #
Defines the object schema located at paths./v1/tax_rates.GET.responses.200.content.application/json.schema
in the specification.
GetTaxRatesResponseBody200 | |
|
Instances
mkGetTaxRatesResponseBody200 Source #
:: [TaxRate] | |
-> Bool | |
-> Text | |
-> GetTaxRatesResponseBody200 |
Create a new GetTaxRatesResponseBody200
with all required fields.