stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetCouponsCoupon

Description

Contains the different functions to run the operation getCouponsCoupon

Synopsis

Documentation

getCouponsCoupon Source #

Arguments

:: forall m. MonadHTTP m 
=> GetCouponsCouponParameters

Contains all available parameters of this operation (query and path parameters)

-> StripeT m (Response GetCouponsCouponResponse)

Monadic computation which returns the result of the operation

GET /v1/coupons/{coupon}

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

data GetCouponsCouponParameters Source #

Defines the object schema located at paths./v1/coupons/{coupon}.GET.parameters in the specification.

Constructors

GetCouponsCouponParameters 

Fields

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.