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

RecurlyClient.Operations.Remove_plan

Description

Contains the different functions to run the operation remove_plan

Synopsis

Documentation

remove_plan Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

plan_id: Plan ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.

-> ClientT m (Response Remove_planResponse)

Monadic computation which returns the result of the operation

DELETE /plans/{plan_id}

Remove a plan

data Remove_planResponse Source #

Represents a response of the operation remove_plan.

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

Constructors

Remove_planResponseError String

Means either no matching case available or a parse error

Remove_planResponse200 Plan

Plan deleted

Remove_planResponse404 Error

Incorrect site or plan ID.

remove_planWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

plan_id: Plan ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.

-> m (Response Remove_planResponse)

Monadic computation which returns the result of the operation

DELETE /plans/{plan_id}

The same as remove_plan but accepts an explicit configuration.

remove_planRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

plan_id: Plan ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /plans/{plan_id}

The same as remove_plan but returns the raw ByteString.

remove_planWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

plan_id: Plan ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /plans/{plan_id}

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