Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Get_gift_card
Description
Contains the different functions to run the operation get_gift_card
Synopsis
- get_gift_card :: forall m. MonadHTTP m => ClientT m (Response Get_gift_cardResponse)
- data Get_gift_cardResponse
- get_gift_cardWithConfiguration :: forall m. MonadHTTP m => Configuration -> m (Response Get_gift_cardResponse)
- get_gift_cardRaw :: forall m. MonadHTTP m => ClientT m (Response ByteString)
- get_gift_cardWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> m (Response ByteString)
Documentation
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. |
Instances
Show Get_gift_cardResponse Source # | |
Defined in RecurlyClient.Operations.Get_gift_card Methods showsPrec :: Int -> Get_gift_cardResponse -> ShowS # show :: Get_gift_cardResponse -> String # showList :: [Get_gift_cardResponse] -> ShowS # | |
Eq Get_gift_cardResponse Source # | |
Defined in RecurlyClient.Operations.Get_gift_card Methods (==) :: Get_gift_cardResponse -> Get_gift_cardResponse -> Bool # (/=) :: Get_gift_cardResponse -> Get_gift_cardResponse -> Bool # |
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.
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
.