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

RecurlyClient.Operations.Update_measured_unit

Description

Contains the different functions to run the operation update_measured_unit

Synopsis

Documentation

update_measured_unit Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`.

-> MeasuredUnitUpdate

The request body to send

-> ClientT m (Response Update_measured_unitResponse)

Monadic computation which returns the result of the operation

PUT /measured_units/{measured_unit_id}

Update a measured unit

data Update_measured_unitResponse Source #

Represents a response of the operation update_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), Update_measured_unitResponseError is used.

Constructors

Update_measured_unitResponseError String

Means either no matching case available or a parse error

Update_measured_unitResponse200 MeasuredUnit

The updated measured_unit.

Update_measured_unitResponse400 Error

Bad request, perhaps invalid JSON?

Update_measured_unitResponse404 Error

Incorrect site or measured unit ID.

Update_measured_unitResponse422 Error

Invalid request parameters

Update_measured_unitResponseDefault Error

Unexpected error.

update_measured_unitWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`.

-> MeasuredUnitUpdate

The request body to send

-> m (Response Update_measured_unitResponse)

Monadic computation which returns the result of the operation

PUT /measured_units/{measured_unit_id}

The same as update_measured_unit but accepts an explicit configuration.

update_measured_unitRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`.

-> MeasuredUnitUpdate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /measured_units/{measured_unit_id}

The same as update_measured_unit but returns the raw ByteString.

update_measured_unitWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`.

-> MeasuredUnitUpdate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /measured_units/{measured_unit_id}

The same as update_measured_unit but accepts an explicit configuration and returns the raw ByteString.