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

RecurlyClient.Operations.Get_invoice

Description

Contains the different functions to run the operation get_invoice

Synopsis

Documentation

get_invoice Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

invoice_id: Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.

-> ClientT m (Response Get_invoiceResponse)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}

Fetch an invoice

data Get_invoiceResponse Source #

Represents a response of the operation get_invoice.

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

Constructors

Get_invoiceResponseError String

Means either no matching case available or a parse error

Get_invoiceResponse200 Invoice

An invoice.

Get_invoiceResponse404 Error

Incorrect site or invoice ID.

Get_invoiceResponseDefault Error

Unexpected error.

get_invoiceWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

invoice_id: Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.

-> m (Response Get_invoiceResponse)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}

The same as get_invoice but accepts an explicit configuration.

get_invoiceRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

invoice_id: Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}

The same as get_invoice but returns the raw ByteString.

get_invoiceWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

invoice_id: Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}

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