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

RecurlyClient.Operations.Create_measured_unit

Description

Contains the different functions to run the operation create_measured_unit

Synopsis

Documentation

create_measured_unit Source #

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.

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.