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

RecurlyClient.Operations.Update_subscription

Description

Contains the different functions to run the operation update_subscription

Synopsis

Documentation

update_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`.

-> SubscriptionUpdate

The request body to send

-> ClientT m (Response Update_subscriptionResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}

This only lets you change the subscription settings that have no impact on the billed amount. Use the Create Subscription Change endpoint to make those changes.

data Update_subscriptionResponse Source #

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

Constructors

Update_subscriptionResponseError String

Means either no matching case available or a parse error

Update_subscriptionResponse200 Subscription

A subscription.

Update_subscriptionResponseDefault Error

Unexpected error.

update_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`.

-> SubscriptionUpdate

The request body to send

-> m (Response Update_subscriptionResponse)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}

The same as update_subscription but accepts an explicit configuration.

update_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`.

-> SubscriptionUpdate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}

The same as update_subscription but returns the raw ByteString.

update_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`.

-> SubscriptionUpdate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /subscriptions/{subscription_id}

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