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

RecurlyClient.Operations.Remove_usage

Description

Contains the different functions to run the operation remove_usage

Synopsis

Documentation

remove_usage Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

usage_id: Usage Record ID.

-> ClientT m (Response Remove_usageResponse)

Monadic computation which returns the result of the operation

DELETE /usage/{usage_id}

Delete a usage record.

data Remove_usageResponse Source #

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

Constructors

Remove_usageResponseError String

Means either no matching case available or a parse error

Remove_usageResponse204

Usage was successfully deleted.

Remove_usageResponse400 Error

Invalid or unpermitted parameter.

Remove_usageResponse404 Error

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

Remove_usageResponse422 Error

A validation error.

Remove_usageResponseDefault Error

Unexpected error.

remove_usageWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

usage_id: Usage Record ID.

-> m (Response Remove_usageResponse)

Monadic computation which returns the result of the operation

DELETE /usage/{usage_id}

The same as remove_usage but accepts an explicit configuration.

remove_usageRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

usage_id: Usage Record ID.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /usage/{usage_id}

The same as remove_usage but returns the raw ByteString.

remove_usageWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

usage_id: Usage Record ID.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /usage/{usage_id}

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