Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.PostTaxRates
Description
Contains the different functions to run the operation postTaxRates
Synopsis
- postTaxRates :: forall m. MonadHTTP m => PostTaxRatesRequestBody -> ClientT 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
Arguments
:: forall m. MonadHTTP m | |
=> PostTaxRatesRequestBody | The request body to send |
-> ClientT 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.
Constructors
PostTaxRatesRequestBody | |
Fields
|
Instances
Eq PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates Methods (==) :: PostTaxRatesRequestBody -> PostTaxRatesRequestBody -> Bool # (/=) :: PostTaxRatesRequestBody -> PostTaxRatesRequestBody -> Bool # | |
Show PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates Methods showsPrec :: Int -> PostTaxRatesRequestBody -> ShowS # show :: PostTaxRatesRequestBody -> String # showList :: [PostTaxRatesRequestBody] -> ShowS # | |
ToJSON PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates Methods toJSON :: PostTaxRatesRequestBody -> Value # toEncoding :: PostTaxRatesRequestBody -> Encoding # toJSONList :: [PostTaxRatesRequestBody] -> Value # | |
FromJSON PostTaxRatesRequestBody Source # | |
Defined in StripeAPI.Operations.PostTaxRates Methods parseJSON :: Value -> Parser PostTaxRatesRequestBody # parseJSONList :: Value -> Parser [PostTaxRatesRequestBody] # |
mkPostTaxRatesRequestBody Source #
Arguments
:: 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`.
Constructors
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 |
Instances
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.
Constructors
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 Methods (==) :: PostTaxRatesResponse -> PostTaxRatesResponse -> Bool # (/=) :: PostTaxRatesResponse -> PostTaxRatesResponse -> Bool # | |
Show PostTaxRatesResponse Source # | |
Defined in StripeAPI.Operations.PostTaxRates Methods showsPrec :: Int -> PostTaxRatesResponse -> ShowS # show :: PostTaxRatesResponse -> String # showList :: [PostTaxRatesResponse] -> ShowS # |