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

RecurlyClient.Operations.Deactivate_unique_coupon_code

Description

Contains the different functions to run the operation deactivate_unique_coupon_code

Synopsis

Documentation

deactivate_unique_coupon_code Source #

Arguments

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

Monadic computation which returns the result of the operation

DELETE /unique_coupon_codes/{unique_coupon_code_id}

Expire a unique code, making that specific code no longer redeemable. The parent bulk coupon will not be affected.

data Deactivate_unique_coupon_codeResponse Source #

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

Constructors

Deactivate_unique_coupon_codeResponseError String

Means either no matching case available or a parse error

Deactivate_unique_coupon_codeResponse200 UniqueCouponCode

A unique coupon code.

Deactivate_unique_coupon_codeResponse400 Error

Bad request; perhaps missing or invalid parameters.

Deactivate_unique_coupon_codeResponse422 Error

Unique coupon code cannot be deactivated for the provided reason.

Deactivate_unique_coupon_codeResponseDefault Error

Unexpected error.

deactivate_unique_coupon_codeWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response Deactivate_unique_coupon_codeResponse)

Monadic computation which returns the result of the operation

DELETE /unique_coupon_codes/{unique_coupon_code_id}

The same as deactivate_unique_coupon_code but accepts an explicit configuration.

deactivate_unique_coupon_codeRaw Source #

Arguments

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

Monadic computation which returns the result of the operation

DELETE /unique_coupon_codes/{unique_coupon_code_id}

The same as deactivate_unique_coupon_code but returns the raw ByteString.

deactivate_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

DELETE /unique_coupon_codes/{unique_coupon_code_id}

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