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

RecurlyClient.Operations.Create_plan

Description

Contains the different functions to run the operation create_plan

Synopsis

Documentation

create_plan Source #

Arguments

:: 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.

Constructors

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.

create_planWithConfiguration Source #

Arguments

:: 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.

create_planRaw Source #

Arguments

:: 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 #

Arguments

:: 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.