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

RecurlyClient.Operations.Create_external_subscription

Description

Contains the different functions to run the operation create_external_subscription

Synopsis

Documentation

create_external_subscription Source #

Arguments

:: forall m. MonadHTTP m 
=> ExternalSubscriptionCreate

The request body to send

-> ClientT m (Response Create_external_subscriptionResponse)

Monadic computation which returns the result of the operation

POST /external_subscriptions

Create an external subscription

data Create_external_subscriptionResponse Source #

Represents a response of the operation create_external_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_external_subscriptionResponseError is used.

Constructors

Create_external_subscriptionResponseError String

Means either no matching case available or a parse error

Create_external_subscriptionResponse201 ExternalSubscription

Returns the external subscription

Create_external_subscriptionResponse400 Error

Bad request; perhaps missing or invalid parameters.

Create_external_subscriptionResponse404 Error

External subscription cannot be completed for the specified reason.

Create_external_subscriptionResponseDefault Error

Unexpected error.

create_external_subscriptionWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> ExternalSubscriptionCreate

The request body to send

-> m (Response Create_external_subscriptionResponse)

Monadic computation which returns the result of the operation

POST /external_subscriptions

The same as create_external_subscription but accepts an explicit configuration.

create_external_subscriptionRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> ExternalSubscriptionCreate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

POST /external_subscriptions

The same as create_external_subscription but returns the raw ByteString.

create_external_subscriptionWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> ExternalSubscriptionCreate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

POST /external_subscriptions

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