stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostTaxRates

Description

Contains the different functions to run the operation postTaxRates

Synopsis

Documentation

postTaxRates Source #

Arguments

:: 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.

Constructors

PostTaxRatesRequestBody 

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 "gst"

PostTaxRatesRequestBodyTaxType'EnumHst

Represents the JSON value "hst"

PostTaxRatesRequestBodyTaxType'EnumPst

Represents the JSON value "pst"

PostTaxRatesRequestBodyTaxType'EnumQst

Represents the JSON value "qst"

PostTaxRatesRequestBodyTaxType'EnumSalesTax

Represents the JSON value "sales_tax"

PostTaxRatesRequestBodyTaxType'EnumVat

Represents the JSON value "vat"

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.