stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostPricesPrice

Description

Contains the different functions to run the operation postPricesPrice

Synopsis

Documentation

postPricesPrice Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

price | Constraints: Maximum length of 5000

-> Maybe PostPricesPriceRequestBody

The request body to send

-> ClientT m (Response PostPricesPriceResponse)

Monadic computation which returns the result of the operation

POST /v1/prices/{price}

<p>Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.</p>

data PostPricesPriceRequestBody Source #

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

Constructors

PostPricesPriceRequestBody 

Fields

data PostPricesPriceRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/prices/{price}.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 PostPricesPriceRequestBodyTaxBehavior' Source #

Defines the enum schema located at paths./v1/prices/{price}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax_behavior in the specification.

Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.

Constructors

PostPricesPriceRequestBodyTaxBehavior'Other Value

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

PostPricesPriceRequestBodyTaxBehavior'Typed Text

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

PostPricesPriceRequestBodyTaxBehavior'EnumExclusive

Represents the JSON value "exclusive"

PostPricesPriceRequestBodyTaxBehavior'EnumInclusive

Represents the JSON value "inclusive"

PostPricesPriceRequestBodyTaxBehavior'EnumUnspecified

Represents the JSON value "unspecified"

data PostPricesPriceResponse Source #

Represents a response of the operation postPricesPrice.

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

Constructors

PostPricesPriceResponseError String

Means either no matching case available or a parse error

PostPricesPriceResponse200 Price

Successful response.

PostPricesPriceResponseDefault Error

Error response.