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

RecurlyClient.Operations.Create_item

Description

Contains the different functions to run the operation create_item

Synopsis

Documentation

create_item Source #

Arguments

:: forall m. MonadHTTP m 
=> ItemCreate

The request body to send

-> ClientT m (Response Create_itemResponse)

Monadic computation which returns the result of the operation

POST /items

Create a new item

data Create_itemResponse Source #

Represents a response of the operation create_item.

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

Constructors

Create_itemResponseError String

Means either no matching case available or a parse error

Create_itemResponse201 Item

A new item.

Create_itemResponse400 Error

Bad request, perhaps invalid JSON?

Create_itemResponse404 Error

Incorrect site ID.

Create_itemResponse422 Error

Invalid request parameters.

Create_itemResponseDefault Error

Unexpected error.

create_itemWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> ItemCreate

The request body to send

-> m (Response Create_itemResponse)

Monadic computation which returns the result of the operation

POST /items

The same as create_item but accepts an explicit configuration.

create_itemRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> ItemCreate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

POST /items

The same as create_item but returns the raw ByteString.

create_itemWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> ItemCreate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

POST /items

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