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

RecurlyClient.Operations.Get_measured_unit

Description

Contains the different functions to run the operation get_measured_unit

Synopsis

Documentation

get_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`.

-> ClientT m (Response Get_measured_unitResponse)

Monadic computation which returns the result of the operation

GET /measured_units/{measured_unit_id}

Fetch a measured unit

data Get_measured_unitResponse Source #

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

Constructors

Get_measured_unitResponseError String

Means either no matching case available or a parse error

Get_measured_unitResponse200 MeasuredUnit

An item.

Get_measured_unitResponse404 Error

Incorrect site or measured unit ID.

Get_measured_unitResponseDefault Error

Unexpected error.

get_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`.

-> m (Response Get_measured_unitResponse)

Monadic computation which returns the result of the operation

GET /measured_units/{measured_unit_id}

The same as get_measured_unit but accepts an explicit configuration.

get_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`.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /measured_units/{measured_unit_id}

The same as get_measured_unit but returns the raw ByteString.

get_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`.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /measured_units/{measured_unit_id}

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