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

RecurlyClient.Operations.Get_credit_payment

Description

Contains the different functions to run the operation get_credit_payment

Synopsis

Documentation

get_credit_payment 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 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.

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.