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

RecurlyClient.Operations.Get_gift_card

Description

Contains the different functions to run the operation get_gift_card

Synopsis

Documentation

get_gift_card Source #

Arguments

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

Monadic computation which returns the result of the operation

GET /gift_cards/{gift_card_id}

Fetch a gift card

data Get_gift_cardResponse Source #

Represents a response of the operation get_gift_card.

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_gift_cardResponseError is used.

Constructors

Get_gift_cardResponseError String

Means either no matching case available or a parse error

Get_gift_cardResponse200 GiftCard

Gift card details

Get_gift_cardResponse404 Error

Incorrect site or gift card ID.

Get_gift_cardResponseDefault Error

Unexpected error.

get_gift_cardWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response Get_gift_cardResponse)

Monadic computation which returns the result of the operation

GET /gift_cards/{gift_card_id}

The same as get_gift_card but accepts an explicit configuration.

get_gift_cardRaw Source #

Arguments

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

Monadic computation which returns the result of the operation

GET /gift_cards/{gift_card_id}

The same as get_gift_card but returns the raw ByteString.

get_gift_cardWithConfigurationRaw 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 /gift_cards/{gift_card_id}

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