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

RecurlyClient.Operations.Update_plan_add_on

Description

Contains the different functions to run the operation update_plan_add_on

Synopsis

Documentation

update_plan_add_on Source #

Arguments

:: forall m. MonadHTTP m 
=> Update_plan_add_onParameters

Contains all available parameters of this operation (query and path parameters)

-> AddOnUpdate

The request body to send

-> ClientT m (Response Update_plan_add_onResponse)

Monadic computation which returns the result of the operation

PUT /plans/{plan_id}/add_ons/{add_on_id}

Update an add-on

data Update_plan_add_onParameters Source #

Defines the object schema located at paths./plans/{plan_id}/add_ons/{add_on_id}.PUT.parameters in the specification.

Constructors

Update_plan_add_onParameters 

Fields

data Update_plan_add_onResponse Source #

Represents a response of the operation update_plan_add_on.

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_plan_add_onResponseError is used.

Constructors

Update_plan_add_onResponseError String

Means either no matching case available or a parse error

Update_plan_add_onResponse201 AddOn

An add-on.

Update_plan_add_onResponse404 Error

Incorrect site, plan, or add-on ID.

Update_plan_add_onResponse422 Error

A validation error such as 'Code has already been taken.'

Update_plan_add_onResponseDefault Error

Unexpected error.

update_plan_add_onWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Update_plan_add_onParameters

Contains all available parameters of this operation (query and path parameters)

-> AddOnUpdate

The request body to send

-> m (Response Update_plan_add_onResponse)

Monadic computation which returns the result of the operation

PUT /plans/{plan_id}/add_ons/{add_on_id}

The same as update_plan_add_on but accepts an explicit configuration.

update_plan_add_onRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Update_plan_add_onParameters

Contains all available parameters of this operation (query and path parameters)

-> AddOnUpdate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /plans/{plan_id}/add_ons/{add_on_id}

The same as update_plan_add_on but returns the raw ByteString.

update_plan_add_onWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Update_plan_add_onParameters

Contains all available parameters of this operation (query and path parameters)

-> AddOnUpdate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /plans/{plan_id}/add_ons/{add_on_id}

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