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

RecurlyClient.Operations.Reactivate_subscription

Description

Contains the different functions to run the operation reactivate_subscription

Synopsis

Documentation

reactivate_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 Reactivate_subscriptionResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}/reactivate

This will bring the subscription back to an active, renewing state on the customer's original billing cycle.

Expired or failed subscriptions cannot be reactivated; instead a new subscription plan will need to be applied to the account.

data Reactivate_subscriptionResponse Source #

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

Constructors

Reactivate_subscriptionResponseError String

Means either no matching case available or a parse error

Reactivate_subscriptionResponse200 Subscription

An active subscription.

Reactivate_subscriptionResponse404 Error

Incorrect site or subscription ID.

Reactivate_subscriptionResponse422 Error

A validation error such as "Only canceled subscriptions can be reactivated".

Reactivate_subscriptionResponseDefault Error

Unexpected error.

reactivate_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 Reactivate_subscriptionResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}/reactivate

The same as reactivate_subscription but accepts an explicit configuration.

reactivate_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}/reactivate

The same as reactivate_subscription but returns the raw ByteString.

reactivate_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}/reactivate

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