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

RecurlyClient.Operations.Get_subscription

Description

Contains the different functions to run the operation get_subscription

Synopsis

Documentation

get_subscription Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> ClientT m (Response Get_subscriptionResponse)

Monadic computation which returns the result of the operation

GET /subscriptions/{subscription_id}

Fetch a subscription

data Get_subscriptionResponse Source #

Represents a response of the operation get_subscription.

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

Constructors

Get_subscriptionResponseError String

Means either no matching case available or a parse error

Get_subscriptionResponse200 Subscription

A subscription.

Get_subscriptionResponse404 Error

Incorrect site or subscription ID.

Get_subscriptionResponseDefault Error

Unexpected error

get_subscriptionWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> m (Response Get_subscriptionResponse)

Monadic computation which returns the result of the operation

GET /subscriptions/{subscription_id}

The same as get_subscription but accepts an explicit configuration.

get_subscriptionRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /subscriptions/{subscription_id}

The same as get_subscription but returns the raw ByteString.

get_subscriptionWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /subscriptions/{subscription_id}

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