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

RecurlyClient.Operations.Update_usage

Description

Contains the different functions to run the operation update_usage

Synopsis

Documentation

update_usage Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

usage_id: Usage Record ID.

-> UsageCreate

The request body to send

-> ClientT m (Response Update_usageResponse)

Monadic computation which returns the result of the operation

PUT /usage/{usage_id}

Update a usage record

data Update_usageResponse Source #

Represents a response of the operation update_usage.

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_usageResponseError is used.

Constructors

Update_usageResponseError String

Means either no matching case available or a parse error

Update_usageResponse200 Usage

The updated usage record.

Update_usageResponse400 Error

Invalid or unpermitted parameter.

Update_usageResponse404 Error

Incorrect site or subscription, add-on, or usage ID.

Update_usageResponse422 Error

A validation error.

Update_usageResponseDefault Error

Unexpected error.

update_usageWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

usage_id: Usage Record ID.

-> UsageCreate

The request body to send

-> m (Response Update_usageResponse)

Monadic computation which returns the result of the operation

PUT /usage/{usage_id}

The same as update_usage but accepts an explicit configuration.

update_usageRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

usage_id: Usage Record ID.

-> UsageCreate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /usage/{usage_id}

The same as update_usage but returns the raw ByteString.

update_usageWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

usage_id: Usage Record ID.

-> UsageCreate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /usage/{usage_id}

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