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

RecurlyClient.Operations.Get_plan

Description

Contains the different functions to run the operation get_plan

Synopsis

Documentation

get_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 Get_planResponse)

Monadic computation which returns the result of the operation

GET /plans/{plan_id}

Fetch a plan

data Get_planResponse Source #

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

Constructors

Get_planResponseError String

Means either no matching case available or a parse error

Get_planResponse200 Plan

A plan.

Get_planResponse404 Error

Incorrect site or plan ID.

Get_planResponseDefault Error

Unexpected error.

get_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 Get_planResponse)

Monadic computation which returns the result of the operation

GET /plans/{plan_id}

The same as get_plan but accepts an explicit configuration.

get_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

GET /plans/{plan_id}

The same as get_plan but returns the raw ByteString.

get_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

GET /plans/{plan_id}

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