Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Get_transaction
Description
Contains the different functions to run the operation get_transaction
Synopsis
- get_transaction :: forall m. MonadHTTP m => Text -> ClientT m (Response Get_transactionResponse)
- data Get_transactionResponse
- get_transactionWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Get_transactionResponse)
- get_transactionRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- get_transactionWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
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 |
Instances
Show Get_transactionResponse Source # | |
Defined in RecurlyClient.Operations.Get_transaction Methods showsPrec :: Int -> Get_transactionResponse -> ShowS # show :: Get_transactionResponse -> String # showList :: [Get_transactionResponse] -> ShowS # | |
Eq Get_transactionResponse Source # | |
Defined in RecurlyClient.Operations.Get_transaction Methods (==) :: Get_transactionResponse -> Get_transactionResponse -> Bool # (/=) :: Get_transactionResponse -> Get_transactionResponse -> Bool # |
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.
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
.