Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTaxRates
Synopsis
- postTaxRates :: forall m. MonadHTTP m => PostTaxRatesRequestBody -> StripeT m (Response PostTaxRatesResponse)
- data PostTaxRatesRequestBody = PostTaxRatesRequestBody {
- postTaxRatesRequestBodyActive :: Maybe Bool
- postTaxRatesRequestBodyCountry :: Maybe Text
- postTaxRatesRequestBodyDescription :: Maybe Text
- postTaxRatesRequestBodyDisplayName :: Text
- postTaxRatesRequestBodyExpand :: Maybe [Text]
- postTaxRatesRequestBodyInclusive :: Bool
- postTaxRatesRequestBodyJurisdiction :: Maybe Text
- postTaxRatesRequestBodyMetadata :: Maybe Object
- postTaxRatesRequestBodyPercentage :: Double
- postTaxRatesRequestBodyState :: Maybe Text
- postTaxRatesRequestBodyTaxType :: Maybe PostTaxRatesRequestBodyTaxType'
- mkPostTaxRatesRequestBody :: Text -> Bool -> Double -> PostTaxRatesRequestBody
- data PostTaxRatesRequestBodyTaxType'
- = PostTaxRatesRequestBodyTaxType'Other Value
- | PostTaxRatesRequestBodyTaxType'Typed Text
- | PostTaxRatesRequestBodyTaxType'EnumGst
- | PostTaxRatesRequestBodyTaxType'EnumHst
- | PostTaxRatesRequestBodyTaxType'EnumPst
- | PostTaxRatesRequestBodyTaxType'EnumQst
- | PostTaxRatesRequestBodyTaxType'EnumSalesTax
- | PostTaxRatesRequestBodyTaxType'EnumVat
- data PostTaxRatesResponse
Documentation
:: forall m. MonadHTTP m | |
=> PostTaxRatesRequestBody | The request body to send |
-> StripeT m (Response PostTaxRatesResponse) | Monadic computation which returns the result of the operation |
POST /v1/tax_rates
<p>Creates a new tax rate.</p>
data PostTaxRatesRequestBody Source #
Defines the object schema located at paths./v1/tax_rates.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostTaxRatesRequestBody | |
|
Instances
Eq PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates | |
Show PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates showsPrec :: Int -> PostTaxRatesRequestBody -> ShowS # show :: PostTaxRatesRequestBody -> String # showList :: [PostTaxRatesRequestBody] -> ShowS # | |
ToJSON PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates | |
FromJSON PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates |
mkPostTaxRatesRequestBody Source #
:: Text | |
-> Bool | |
-> Double | |
-> PostTaxRatesRequestBody |
Create a new PostTaxRatesRequestBody
with all required fields.
data PostTaxRatesRequestBodyTaxType' Source #
Defines the enum schema located at paths./v1/tax_rates.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax_type
in the specification.
The high-level tax type, such as `vat` or `sales_tax`.
PostTaxRatesRequestBodyTaxType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostTaxRatesRequestBodyTaxType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostTaxRatesRequestBodyTaxType'EnumGst | Represents the JSON value |
PostTaxRatesRequestBodyTaxType'EnumHst | Represents the JSON value |
PostTaxRatesRequestBodyTaxType'EnumPst | Represents the JSON value |
PostTaxRatesRequestBodyTaxType'EnumQst | Represents the JSON value |
PostTaxRatesRequestBodyTaxType'EnumSalesTax | Represents the JSON value |
PostTaxRatesRequestBodyTaxType'EnumVat | Represents the JSON value |
data PostTaxRatesResponse Source #
Represents a response of the operation postTaxRates
.
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), PostTaxRatesResponseError
is used.
PostTaxRatesResponseError String | Means either no matching case available or a parse error |
PostTaxRatesResponse200 TaxRate | Successful response. |
PostTaxRatesResponseDefault Error | Error response. |
Instances
Eq PostTaxRatesResponse Source # | |
Defined in StripeAPI.Operations.PostTaxRates (==) :: PostTaxRatesResponse -> PostTaxRatesResponse -> Bool # (/=) :: PostTaxRatesResponse -> PostTaxRatesResponse -> Bool # | |
Show PostTaxRatesResponse Source # | |
Defined in StripeAPI.Operations.PostTaxRates showsPrec :: Int -> PostTaxRatesResponse -> ShowS # show :: PostTaxRatesResponse -> String # showList :: [PostTaxRatesResponse] -> ShowS # |