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

RecurlyClient.Operations.Convert_trial

Description

Contains the different functions to run the operation convert_trial

Synopsis

Documentation

convert_trial 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 Convert_trialResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}/convert_trial

This will immediately convert a trial subscription to a fully active paid subscription, creating and collecting an invoice for auto-collecting subsriptions. If the invoice cannot be collected, the subscription will remain in trial. The subscription must be in a trial. Active, paused, expired, cancelled, or failed subscriptions cannot be converted.

data Convert_trialResponse Source #

Represents a response of the operation convert_trial.

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), Convert_trialResponseError is used.

Constructors

Convert_trialResponseError String

Means either no matching case available or a parse error

Convert_trialResponse200 Subscription

A subscription.

Convert_trialResponse404 Error

Incorrect site or subscription ID.

Convert_trialResponse422 ErrorMayHaveTransaction

A validation error such as "Unable to convert active subscription", or a transaction error if the invoice could not be collected.

Convert_trialResponseDefault Error

Unexpected error.

convert_trialWithConfiguration 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 Convert_trialResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}/convert_trial

The same as convert_trial but accepts an explicit configuration.

convert_trialRaw 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}/convert_trial

The same as convert_trial but returns the raw ByteString.

convert_trialWithConfigurationRaw 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}/convert_trial

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