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