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

RecurlyClient.Operations.Create_subscription

Description

Contains the different functions to run the operation create_subscription

Synopsis

Documentation

create_subscription Source #

Arguments

:: forall m. MonadHTTP m 
=> SubscriptionCreate

The request body to send

-> ClientT m (Response Create_subscriptionResponse)

Monadic computation which returns the result of the operation

POST /subscriptions

Create a new subscription

data Create_subscriptionResponse Source #

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

Constructors

Create_subscriptionResponseError String

Means either no matching case available or a parse error

Create_subscriptionResponse201 Subscription

A subscription.

Create_subscriptionResponse404 Error

Incorrect site ID.

Create_subscriptionResponse422 ErrorMayHaveTransaction

A validation error such as 'You already have a subscription to this plan.' error running the verification transaction.

Create_subscriptionResponseDefault Error

Unexpected error.

create_subscriptionWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> SubscriptionCreate

The request body to send

-> m (Response Create_subscriptionResponse)

Monadic computation which returns the result of the operation

POST /subscriptions

The same as create_subscription but accepts an explicit configuration.

create_subscriptionRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> SubscriptionCreate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

POST /subscriptions

The same as create_subscription but returns the raw ByteString.

create_subscriptionWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> SubscriptionCreate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

POST /subscriptions

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