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

RecurlyClient.Operations.Get_transaction

Description

Contains the different functions to run the operation get_transaction

Synopsis

Documentation

get_transaction Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

transaction_id: Transaction ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> ClientT m (Response Get_transactionResponse)

Monadic computation which returns the result of the operation

GET /transactions/{transaction_id}

Fetch a transaction

data Get_transactionResponse Source #

Represents a response of the operation get_transaction.

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

Constructors

Get_transactionResponseError String

Means either no matching case available or a parse error

Get_transactionResponse200 Transaction

A transaction.

Get_transactionResponse404 Error

Incorrect site or transaction ID.

Get_transactionResponseDefault Error

Unexpected error

get_transactionWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

transaction_id: Transaction ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> m (Response Get_transactionResponse)

Monadic computation which returns the result of the operation

GET /transactions/{transaction_id}

The same as get_transaction but accepts an explicit configuration.

get_transactionRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

transaction_id: Transaction ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /transactions/{transaction_id}

The same as get_transaction but returns the raw ByteString.

get_transactionWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

transaction_id: Transaction ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /transactions/{transaction_id}

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