stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetCouponsCoupon

Description

Contains the different functions to run the operation getCouponsCoupon

Synopsis

Documentation

getCouponsCoupon Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> Text

coupon | Constraints: Maximum length of 5000

-> Maybe Text

expand: Specifies which fields in the response should be expanded.

-> Maybe GetCouponsCouponRequestBody

The request body to send

-> m (Either HttpException (Response GetCouponsCouponResponse))

Monad containing the result of the operation

GET /v1/coupons/{coupon}

<p>Retrieves the coupon with the given ID.</p>

getCouponsCouponRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe Text -> Maybe GetCouponsCouponRequestBody -> m (Either HttpException (Response ByteString)) Source #

GET /v1/coupons/{coupon}

The same as getCouponsCoupon but returns the raw ByteString

data GetCouponsCouponResponse Source #

Represents a response of the operation getCouponsCoupon.

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

Constructors

GetCouponsCouponResponseError String

Means either no matching case available or a parse error

GetCouponsCouponResponse200 Coupon

Successful response.

GetCouponsCouponResponseDefault Error

Error response.