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

RecurlyClient.Operations.Create_gift_card

Description

Contains the different functions to run the operation create_gift_card

Synopsis

Documentation

create_gift_card Source #

Arguments

:: forall m. MonadHTTP m 
=> GiftCardCreate

The request body to send

-> ClientT m (Response Create_gift_cardResponse)

Monadic computation which returns the result of the operation

POST /gift_cards

Create gift card

data Create_gift_cardResponse Source #

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

Constructors

Create_gift_cardResponseError String

Means either no matching case available or a parse error

Create_gift_cardResponse201 GiftCard

Returns the gift card

Create_gift_cardResponse400 Error

Bad request; perhaps missing or invalid parameters.

Create_gift_cardResponse422 Error

Gift card cannot be completed for the specified reason.

Create_gift_cardResponseDefault Error

Unexpected error.

create_gift_cardWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> GiftCardCreate

The request body to send

-> m (Response Create_gift_cardResponse)

Monadic computation which returns the result of the operation

POST /gift_cards

The same as create_gift_card but accepts an explicit configuration.

create_gift_cardRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> GiftCardCreate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

POST /gift_cards

The same as create_gift_card but returns the raw ByteString.

create_gift_cardWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> GiftCardCreate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

POST /gift_cards

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