stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostPromotionCodesPromotionCode

Description

Contains the different functions to run the operation postPromotionCodesPromotionCode

Synopsis

Documentation

postPromotionCodesPromotionCode Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

promotion_code | Constraints: Maximum length of 5000

-> Maybe PostPromotionCodesPromotionCodeRequestBody

The request body to send

-> ClientT m (Response PostPromotionCodesPromotionCodeResponse)

Monadic computation which returns the result of the operation

POST /v1/promotion_codes/{promotion_code}

<p>Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.</p>

data PostPromotionCodesPromotionCodeRequestBody Source #

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

Constructors

PostPromotionCodesPromotionCodeRequestBody 

Fields

data PostPromotionCodesPromotionCodeRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/promotion_codes/{promotion_code}.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`.

Instances

Instances details
Eq PostPromotionCodesPromotionCodeRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPromotionCodesPromotionCode

Show PostPromotionCodesPromotionCodeRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPromotionCodesPromotionCode

ToJSON PostPromotionCodesPromotionCodeRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPromotionCodesPromotionCode

FromJSON PostPromotionCodesPromotionCodeRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPromotionCodesPromotionCode