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

RecurlyClient.Operations.Get_add_on

Description

Contains the different functions to run the operation get_add_on

Synopsis

Documentation

get_add_on Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

add_on_id: Add-on 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_add_onResponse)

Monadic computation which returns the result of the operation

GET /add_ons/{add_on_id}

Fetch an add-on

data Get_add_onResponse Source #

Represents a response of the operation get_add_on.

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

Constructors

Get_add_onResponseError String

Means either no matching case available or a parse error

Get_add_onResponse200 AddOn

An add-on.

Get_add_onResponse404 Error

Incorrect site or add-on ID.

Get_add_onResponseDefault Error

Unexpected error.

get_add_onWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

add_on_id: Add-on ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.

-> m (Response Get_add_onResponse)

Monadic computation which returns the result of the operation

GET /add_ons/{add_on_id}

The same as get_add_on but accepts an explicit configuration.

get_add_onRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

add_on_id: Add-on 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 /add_ons/{add_on_id}

The same as get_add_on but returns the raw ByteString.

get_add_onWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

add_on_id: Add-on 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 /add_ons/{add_on_id}

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