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

RecurlyClient.Operations.Get_account_balance

Description

Contains the different functions to run the operation get_account_balance

Synopsis

Documentation

get_account_balance Source #

Arguments

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

Monadic computation which returns the result of the operation

GET /accounts/{account_id}/balance

Fetch an account's balance and past due status

data Get_account_balanceResponse Source #

Represents a response of the operation get_account_balance.

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

Constructors

Get_account_balanceResponseError String

Means either no matching case available or a parse error

Get_account_balanceResponse200 AccountBalance

An account's balance.

Get_account_balanceResponse404 Error

Incorrect site or account ID.

Get_account_balanceResponseDefault Error

Unexpected error.

get_account_balanceWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> m (Response Get_account_balanceResponse)

Monadic computation which returns the result of the operation

GET /accounts/{account_id}/balance

The same as get_account_balance but accepts an explicit configuration.

get_account_balanceRaw Source #

Arguments

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

Monadic computation which returns the result of the operation

GET /accounts/{account_id}/balance

The same as get_account_balance but returns the raw ByteString.

get_account_balanceWithConfigurationRaw 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

GET /accounts/{account_id}/balance

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