stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostPromotionCodes

Description

Contains the different functions to run the operation postPromotionCodes

Synopsis

Documentation

postPromotionCodes Source #

Arguments

:: forall m. MonadHTTP m 
=> PostPromotionCodesRequestBody

The request body to send

-> ClientT m (Response PostPromotionCodesResponse)

Monadic computation which returns the result of the operation

POST /v1/promotion_codes

<p>A promotion code points to a coupon. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.</p>

data PostPromotionCodesRequestBody Source #

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

Constructors

PostPromotionCodesRequestBody 

Fields

data PostPromotionCodesRequestBodyRestrictions' Source #

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

Settings that restrict the redemption of the promotion code.

data PostPromotionCodesResponse Source #

Represents a response of the operation postPromotionCodes.

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

Constructors

PostPromotionCodesResponseError String

Means either no matching case available or a parse error

PostPromotionCodesResponse200 PromotionCode

Successful response.

PostPromotionCodesResponseDefault Error

Error response.