Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postPricesPrice
Synopsis
- postPricesPrice :: forall m. MonadHTTP m => Text -> Maybe PostPricesPriceRequestBody -> StripeT m (Response PostPricesPriceResponse)
- data PostPricesPriceRequestBody = PostPricesPriceRequestBody {
- postPricesPriceRequestBodyActive :: Maybe Bool
- postPricesPriceRequestBodyExpand :: Maybe [Text]
- postPricesPriceRequestBodyLookupKey :: Maybe Text
- postPricesPriceRequestBodyMetadata :: Maybe PostPricesPriceRequestBodyMetadata'Variants
- postPricesPriceRequestBodyNickname :: Maybe Text
- postPricesPriceRequestBodyTaxBehavior :: Maybe PostPricesPriceRequestBodyTaxBehavior'
- postPricesPriceRequestBodyTransferLookupKey :: Maybe Bool
- mkPostPricesPriceRequestBody :: PostPricesPriceRequestBody
- data PostPricesPriceRequestBodyMetadata'Variants
- data PostPricesPriceRequestBodyTaxBehavior'
- data PostPricesPriceResponse
Documentation
:: forall m. MonadHTTP m | |
=> Text | price | Constraints: Maximum length of 5000 |
-> Maybe PostPricesPriceRequestBody | The request body to send |
-> StripeT 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.
PostPricesPriceRequestBody | |
|
Instances
mkPostPricesPriceRequestBody :: PostPricesPriceRequestBody Source #
Create a new PostPricesPriceRequestBody
with all required 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`.
PostPricesPriceRequestBodyMetadata'EmptyString | Represents the JSON value |
PostPricesPriceRequestBodyMetadata'Object Object |
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.
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 |
PostPricesPriceRequestBodyTaxBehavior'EnumInclusive | Represents the JSON value |
PostPricesPriceRequestBodyTaxBehavior'EnumUnspecified | Represents the JSON value |
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.
PostPricesPriceResponseError String | Means either no matching case available or a parse error |
PostPricesPriceResponse200 Price | Successful response. |
PostPricesPriceResponseDefault Error | Error response. |
Instances
Eq PostPricesPriceResponse Source # | |
Defined in StripeAPI.Operations.PostPricesPrice | |
Show PostPricesPriceResponse Source # | |
Defined in StripeAPI.Operations.PostPricesPrice showsPrec :: Int -> PostPricesPriceResponse -> ShowS # show :: PostPricesPriceResponse -> String # showList :: [PostPricesPriceResponse] -> ShowS # |