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

RecurlyClient.Operations.Reactivate_unique_coupon_code

Description

Contains the different functions to run the operation reactivate_unique_coupon_code

Synopsis

Documentation

reactivate_unique_coupon_code Source #

Arguments

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

Monadic computation which returns the result of the operation

PUT /unique_coupon_codes/{unique_coupon_code_id}/restore

Restore a unique coupon code

data Reactivate_unique_coupon_codeResponse Source #

Represents a response of the operation reactivate_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), Reactivate_unique_coupon_codeResponseError is used.

Constructors

Reactivate_unique_coupon_codeResponseError String

Means either no matching case available or a parse error

Reactivate_unique_coupon_codeResponse200 UniqueCouponCode

A unique coupon code.

Reactivate_unique_coupon_codeResponse400 Error

Bad request; perhaps missing or invalid parameters.

Reactivate_unique_coupon_codeResponse422 Error

Unique coupon code cannot be restored for the provided reason.

Reactivate_unique_coupon_codeResponseDefault Error

Unexpected error.

reactivate_unique_coupon_codeWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response Reactivate_unique_coupon_codeResponse)

Monadic computation which returns the result of the operation

PUT /unique_coupon_codes/{unique_coupon_code_id}/restore

The same as reactivate_unique_coupon_code but accepts an explicit configuration.

reactivate_unique_coupon_codeRaw Source #

Arguments

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

Monadic computation which returns the result of the operation

PUT /unique_coupon_codes/{unique_coupon_code_id}/restore

The same as reactivate_unique_coupon_code but returns the raw ByteString.

reactivate_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

PUT /unique_coupon_codes/{unique_coupon_code_id}/restore

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