Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation create_plan
Synopsis
- create_plan :: forall m. MonadHTTP m => PlanCreate -> ClientT m (Response Create_planResponse)
- data Create_planResponse
- create_planWithConfiguration :: forall m. MonadHTTP m => Configuration -> PlanCreate -> m (Response Create_planResponse)
- create_planRaw :: forall m. MonadHTTP m => PlanCreate -> ClientT m (Response ByteString)
- create_planWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> PlanCreate -> m (Response ByteString)
Documentation
:: forall m. MonadHTTP m | |
=> PlanCreate | The request body to send |
-> ClientT m (Response Create_planResponse) | Monadic computation which returns the result of the operation |
POST /plans
Create a plan
data Create_planResponse Source #
Represents a response of the operation create_plan
.
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_planResponseError
is used.
Create_planResponseError String | Means either no matching case available or a parse error |
Create_planResponse201 Plan | A plan. |
Create_planResponse404 Error | Incorrect site ID. |
Create_planResponse422 Error | A validation error such as 'Code has already been taken.' |
Create_planResponseDefault Error | Unexpected error. |
Instances
Show Create_planResponse Source # | |
Defined in RecurlyClient.Operations.Create_plan showsPrec :: Int -> Create_planResponse -> ShowS # show :: Create_planResponse -> String # showList :: [Create_planResponse] -> ShowS # | |
Eq Create_planResponse Source # | |
Defined in RecurlyClient.Operations.Create_plan (==) :: Create_planResponse -> Create_planResponse -> Bool # (/=) :: Create_planResponse -> Create_planResponse -> Bool # |
create_planWithConfiguration Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> PlanCreate | The request body to send |
-> m (Response Create_planResponse) | Monadic computation which returns the result of the operation |
POST /plans
The same as create_plan
but accepts an explicit configuration.
:: forall m. MonadHTTP m | |
=> PlanCreate | The request body to send |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /plans
The same as create_plan
but returns the raw ByteString
.
create_planWithConfigurationRaw Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> PlanCreate | The request body to send |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /plans
The same as create_plan
but accepts an explicit configuration and returns the raw ByteString
.