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

RecurlyClient.Operations.Update_account

Description

Contains the different functions to run the operation update_account

Synopsis

Documentation

update_account Source #

Arguments

:: forall m. MonadHTTP m 
=> AccountUpdate

The request body to send

-> ClientT m (Response Update_accountResponse)

Monadic computation which returns the result of the operation

PUT /accounts/{account_id}

Update an account

data Update_accountResponse Source #

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

Constructors

Update_accountResponseError String

Means either no matching case available or a parse error

Update_accountResponse200 Account

An account.

Update_accountResponse400 Error

Bad request, perhaps invalid JSON?

Update_accountResponse404 Error

Incorrect site or account ID.

Update_accountResponse422 ErrorMayHaveTransaction

Invalid parameters or an error running the billing info verification transaction.

Update_accountResponseDefault Error

Unexpected error.

update_accountWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> AccountUpdate

The request body to send

-> m (Response Update_accountResponse)

Monadic computation which returns the result of the operation

PUT /accounts/{account_id}

The same as update_account but accepts an explicit configuration.

update_accountRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> AccountUpdate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /accounts/{account_id}

The same as update_account but returns the raw ByteString.

update_accountWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> AccountUpdate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /accounts/{account_id}

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