| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Operations.Create_measured_unit
Description
Contains the different functions to run the operation create_measured_unit
Synopsis
- create_measured_unit :: forall m. MonadHTTP m => MeasuredUnitCreate -> ClientT m (Response Create_measured_unitResponse)
- data Create_measured_unitResponse
- create_measured_unitWithConfiguration :: forall m. MonadHTTP m => Configuration -> MeasuredUnitCreate -> m (Response Create_measured_unitResponse)
- create_measured_unitRaw :: forall m. MonadHTTP m => MeasuredUnitCreate -> ClientT m (Response ByteString)
- create_measured_unitWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> MeasuredUnitCreate -> m (Response ByteString)
Documentation
Arguments
| :: forall m. MonadHTTP m | |
| => MeasuredUnitCreate | The request body to send |
| -> ClientT m (Response Create_measured_unitResponse) | Monadic computation which returns the result of the operation |
POST /measured_units
Create a new measured unit
data Create_measured_unitResponse Source #
Represents a response of the operation create_measured_unit.
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_measured_unitResponseError is used.
Constructors
| Create_measured_unitResponseError String | Means either no matching case available or a parse error |
| Create_measured_unitResponse201 MeasuredUnit | A new measured unit. |
| Create_measured_unitResponse400 Error | Bad request, perhaps invalid JSON? |
| Create_measured_unitResponse404 Error | Incorrect site ID. |
| Create_measured_unitResponse422 Error | Invalid request parameters. |
| Create_measured_unitResponseDefault Error | Unexpected error. |
Instances
| Show Create_measured_unitResponse Source # | |
Defined in RecurlyClient.Operations.Create_measured_unit Methods showsPrec :: Int -> Create_measured_unitResponse -> ShowS # show :: Create_measured_unitResponse -> String # showList :: [Create_measured_unitResponse] -> ShowS # | |
| Eq Create_measured_unitResponse Source # | |
Defined in RecurlyClient.Operations.Create_measured_unit Methods (==) :: Create_measured_unitResponse -> Create_measured_unitResponse -> Bool # (/=) :: Create_measured_unitResponse -> Create_measured_unitResponse -> Bool # | |
create_measured_unitWithConfiguration Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> MeasuredUnitCreate | The request body to send |
| -> m (Response Create_measured_unitResponse) | Monadic computation which returns the result of the operation |
POST /measured_units
The same as create_measured_unit but accepts an explicit configuration.
create_measured_unitRaw Source #
Arguments
| :: forall m. MonadHTTP m | |
| => MeasuredUnitCreate | The request body to send |
| -> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /measured_units
The same as create_measured_unit but returns the raw ByteString.
create_measured_unitWithConfigurationRaw Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> MeasuredUnitCreate | The request body to send |
| -> m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /measured_units
The same as create_measured_unit but accepts an explicit configuration and returns the raw ByteString.