recurly-client-0.1.0.0: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Operations.Get_unique_coupon_code

Description

Contains the different functions to run the operation get_unique_coupon_code

Synopsis

Documentation

get_unique_coupon_code Source #

Arguments

:: forall m. MonadHTTP m 
=> ClientT m (Response Get_unique_coupon_codeResponse)

Monadic computation which returns the result of the operation

GET /unique_coupon_codes/{unique_coupon_code_id}

Fetch a unique coupon code

data Get_unique_coupon_codeResponse Source #

Represents a response of the operation get_unique_coupon_code.

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

Constructors

Get_unique_coupon_codeResponseError String

Means either no matching case available or a parse error

Get_unique_coupon_codeResponse200 UniqueCouponCode

A unique coupon code.

Get_unique_coupon_codeResponse400 Error

Bad request; perhaps missing or invalid parameters.

Get_unique_coupon_codeResponseDefault Error

Unexpected error.

get_unique_coupon_codeWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response Get_unique_coupon_codeResponse)

Monadic computation which returns the result of the operation

GET /unique_coupon_codes/{unique_coupon_code_id}

The same as get_unique_coupon_code but accepts an explicit configuration.

get_unique_coupon_codeRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /unique_coupon_codes/{unique_coupon_code_id}

The same as get_unique_coupon_code but returns the raw ByteString.

get_unique_coupon_codeWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /unique_coupon_codes/{unique_coupon_code_id}

The same as get_unique_coupon_code but accepts an explicit configuration and returns the raw ByteString.