stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostTaxRatesTaxRate

Description

Contains the different functions to run the operation postTaxRatesTaxRate

Synopsis

Documentation

postTaxRatesTaxRate Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

tax_rate | Constraints: Maximum length of 5000

-> Maybe PostTaxRatesTaxRateRequestBody

The request body to send

-> ClientT m (Response PostTaxRatesTaxRateResponse)

Monadic computation which returns the result of the operation

POST /v1/tax_rates/{tax_rate}

<p>Updates an existing tax rate.</p>

data PostTaxRatesTaxRateRequestBody Source #

Defines the object schema located at paths./v1/tax_rates/{tax_rate}.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostTaxRatesTaxRateRequestBody 

Fields

data PostTaxRatesTaxRateRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/tax_rates/{tax_rate}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf in the specification.

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

data PostTaxRatesTaxRateRequestBodyTaxType' Source #

Defines the enum schema located at paths./v1/tax_rates/{tax_rate}.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

PostTaxRatesTaxRateRequestBodyTaxType'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostTaxRatesTaxRateRequestBodyTaxType'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostTaxRatesTaxRateRequestBodyTaxType'EnumGst

Represents the JSON value "gst"

PostTaxRatesTaxRateRequestBodyTaxType'EnumHst

Represents the JSON value "hst"

PostTaxRatesTaxRateRequestBodyTaxType'EnumPst

Represents the JSON value "pst"

PostTaxRatesTaxRateRequestBodyTaxType'EnumQst

Represents the JSON value "qst"

PostTaxRatesTaxRateRequestBodyTaxType'EnumSalesTax

Represents the JSON value "sales_tax"

PostTaxRatesTaxRateRequestBodyTaxType'EnumVat

Represents the JSON value "vat"

data PostTaxRatesTaxRateResponse Source #

Represents a response of the operation postTaxRatesTaxRate.

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), PostTaxRatesTaxRateResponseError is used.

Constructors

PostTaxRatesTaxRateResponseError String

Means either no matching case available or a parse error

PostTaxRatesTaxRateResponse200 TaxRate

Successful response.

PostTaxRatesTaxRateResponseDefault Error

Error response.