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

RecurlyClient.Operations.Resume_subscription

Description

Contains the different functions to run the operation resume_subscription

Synopsis

Documentation

resume_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 Resume_subscriptionResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}/resume

This will immediately resume a paused subscription and move it into the active state.

The subscription must be in the paused state. Active, expired, cancelled, or failed subscriptions cannot be resumed.

data Resume_subscriptionResponse Source #

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

Constructors

Resume_subscriptionResponseError String

Means either no matching case available or a parse error

Resume_subscriptionResponse200 Subscription

A subscription.

Resume_subscriptionResponse404 Error

Incorrect site or subscription ID.

Resume_subscriptionResponse422 Error

A validation error such as "Unable to resume active subscription".

Resume_subscriptionResponseDefault Error

Unexpected error.

resume_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 Resume_subscriptionResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}/resume

The same as resume_subscription but accepts an explicit configuration.

resume_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

PUT /subscriptions/{subscription_id}/resume

The same as resume_subscription but returns the raw ByteString.

resume_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

PUT /subscriptions/{subscription_id}/resume

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