| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Operations.Redeem_gift_card
Description
Contains the different functions to run the operation redeem_gift_card
Synopsis
- redeem_gift_card :: forall m. MonadHTTP m => GiftCardRedeem -> ClientT m (Response Redeem_gift_cardResponse)
- data Redeem_gift_cardResponse
- redeem_gift_cardWithConfiguration :: forall m. MonadHTTP m => Configuration -> GiftCardRedeem -> m (Response Redeem_gift_cardResponse)
- redeem_gift_cardRaw :: forall m. MonadHTTP m => GiftCardRedeem -> ClientT m (Response ByteString)
- redeem_gift_cardWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> GiftCardRedeem -> m (Response ByteString)
Documentation
Arguments
| :: forall m. MonadHTTP m | |
| => GiftCardRedeem | The request body to send |
| -> ClientT m (Response Redeem_gift_cardResponse) | Monadic computation which returns the result of the operation |
POST /gift_cards/{redemption_code}/redeemRedeem gift card
data Redeem_gift_cardResponse Source #
Represents a response of the operation redeem_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), Redeem_gift_cardResponseError is used.
Constructors
| Redeem_gift_cardResponseError String | Means either no matching case available or a parse error |
| Redeem_gift_cardResponse201 GiftCard | Redeems and returns the gift card |
| Redeem_gift_cardResponse400 Error | Bad request; perhaps missing or invalid parameters. |
| Redeem_gift_cardResponse422 Error | Gift card cannot be redeemed for the specified reason. |
| Redeem_gift_cardResponseDefault Error | Unexpected error. |
Instances
| Show Redeem_gift_cardResponse Source # | |
Defined in RecurlyClient.Operations.Redeem_gift_card Methods showsPrec :: Int -> Redeem_gift_cardResponse -> ShowS # show :: Redeem_gift_cardResponse -> String # showList :: [Redeem_gift_cardResponse] -> ShowS # | |
| Eq Redeem_gift_cardResponse Source # | |
Defined in RecurlyClient.Operations.Redeem_gift_card Methods (==) :: Redeem_gift_cardResponse -> Redeem_gift_cardResponse -> Bool # (/=) :: Redeem_gift_cardResponse -> Redeem_gift_cardResponse -> Bool # | |
redeem_gift_cardWithConfiguration Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> GiftCardRedeem | The request body to send |
| -> m (Response Redeem_gift_cardResponse) | Monadic computation which returns the result of the operation |
POST /gift_cards/{redemption_code}/redeemThe same as redeem_gift_card but accepts an explicit configuration.
Arguments
| :: forall m. MonadHTTP m | |
| => GiftCardRedeem | The request body to send |
| -> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /gift_cards/{redemption_code}/redeemThe same as redeem_gift_card but returns the raw ByteString.
redeem_gift_cardWithConfigurationRaw Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> GiftCardRedeem | The request body to send |
| -> m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /gift_cards/{redemption_code}/redeemThe same as redeem_gift_card but accepts an explicit configuration and returns the raw ByteString.