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

RecurlyClient.Operations.Deactivate_account

Description

Contains the different functions to run the operation deactivate_account

Synopsis

Documentation

deactivate_account Source #

Arguments

:: forall m. MonadHTTP m 
=> ClientT m (Response Deactivate_accountResponse)

Monadic computation which returns the result of the operation

DELETE /accounts/{account_id}

Deactivating an account permanently deletes its billing information and cancels any active subscriptions (canceled subscriptions will remain active until the end of the current billing cycle before expiring). We recommend closing accounts only when all business is concluded with a customer.

data Deactivate_accountResponse Source #

Represents a response of the operation deactivate_account.

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

Constructors

Deactivate_accountResponseError String

Means either no matching case available or a parse error

Deactivate_accountResponse200 Account

An account.

Deactivate_accountResponse422 Error

Account may already be inactive.

Deactivate_accountResponseDefault Error

Unexpected error.

deactivate_accountWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response Deactivate_accountResponse)

Monadic computation which returns the result of the operation

DELETE /accounts/{account_id}

The same as deactivate_account but accepts an explicit configuration.

deactivate_accountRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /accounts/{account_id}

The same as deactivate_account but returns the raw ByteString.

deactivate_accountWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /accounts/{account_id}

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