Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.PostTaxRates
Description
Contains the different functions to run the operation postTaxRates
Synopsis
- postTaxRates :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTaxRatesRequestBody -> m (Either HttpException (Response PostTaxRatesResponse))
- postTaxRatesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTaxRatesRequestBody -> m (Either HttpException (Response ByteString))
- postTaxRatesM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTaxRatesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTaxRatesResponse))
- postTaxRatesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTaxRatesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostTaxRatesRequestBody = PostTaxRatesRequestBody {
- postTaxRatesRequestBodyActive :: Maybe Bool
- postTaxRatesRequestBodyDescription :: Maybe String
- postTaxRatesRequestBodyDisplayName :: String
- postTaxRatesRequestBodyExpand :: Maybe ([] String)
- postTaxRatesRequestBodyInclusive :: Bool
- postTaxRatesRequestBodyJurisdiction :: Maybe String
- postTaxRatesRequestBodyMetadata :: Maybe PostTaxRatesRequestBodyMetadata'
- postTaxRatesRequestBodyPercentage :: Double
- data PostTaxRatesRequestBodyMetadata' = PostTaxRatesRequestBodyMetadata' {
- data PostTaxRatesResponse
Documentation
Arguments
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostTaxRatesRequestBody | The request body to send |
-> m (Either HttpException (Response PostTaxRatesResponse)) | Monad containing the result of the operation |
POST /v1/tax_rates
<p>Creates a new tax rate.</p>
postTaxRatesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTaxRatesRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/tax_rates
The same as postTaxRates
but returns the raw ByteString
postTaxRatesM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTaxRatesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTaxRatesResponse)) Source #
POST /v1/tax_rates
Monadic version of postTaxRates
(use with runWithConfiguration
)
postTaxRatesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTaxRatesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/tax_rates
Monadic version of postTaxRatesRaw
(use with runWithConfiguration
)
data PostTaxRatesRequestBody Source #
Defines the data type for the schema postTaxRatesRequestBody
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] # |
data PostTaxRatesRequestBodyMetadata' Source #
Defines the data type for the schema postTaxRatesRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Constructors
PostTaxRatesRequestBodyMetadata' | |
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 # |