Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Get_credit_payment
Description
Contains the different functions to run the operation get_credit_payment
Synopsis
- get_credit_payment :: forall m. MonadHTTP m => Text -> ClientT m (Response Get_credit_paymentResponse)
- data Get_credit_paymentResponse
- get_credit_paymentWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Get_credit_paymentResponse)
- get_credit_paymentRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- get_credit_paymentWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> Text | credit_payment_id: Credit Payment 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_credit_paymentResponse) | Monadic computation which returns the result of the operation |
GET /credit_payments/{credit_payment_id}
Fetch a credit payment
data Get_credit_paymentResponse Source #
Represents a response of the operation get_credit_payment
.
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_credit_paymentResponseError
is used.
Constructors
Get_credit_paymentResponseError String | Means either no matching case available or a parse error |
Get_credit_paymentResponse200 CreditPayment | A credit payment. |
Get_credit_paymentResponse404 Error | Incorrect site or credit payment ID. |
Get_credit_paymentResponseDefault Error | Unexpected error. |
Instances
Show Get_credit_paymentResponse Source # | |
Defined in RecurlyClient.Operations.Get_credit_payment Methods showsPrec :: Int -> Get_credit_paymentResponse -> ShowS # show :: Get_credit_paymentResponse -> String # showList :: [Get_credit_paymentResponse] -> ShowS # | |
Eq Get_credit_paymentResponse Source # | |
Defined in RecurlyClient.Operations.Get_credit_payment Methods (==) :: Get_credit_paymentResponse -> Get_credit_paymentResponse -> Bool # (/=) :: Get_credit_paymentResponse -> Get_credit_paymentResponse -> Bool # |
get_credit_paymentWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | credit_payment_id: Credit Payment ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> m (Response Get_credit_paymentResponse) | Monadic computation which returns the result of the operation |
GET /credit_payments/{credit_payment_id}
The same as get_credit_payment
but accepts an explicit configuration.
get_credit_paymentRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Text | credit_payment_id: Credit Payment 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 /credit_payments/{credit_payment_id}
The same as get_credit_payment
but returns the raw ByteString
.
get_credit_paymentWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | credit_payment_id: Credit Payment 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 /credit_payments/{credit_payment_id}
The same as get_credit_payment
but accepts an explicit configuration and returns the raw ByteString
.