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

RecurlyClient.Operations.Get_invoice_pdf

Description

Contains the different functions to run the operation get_invoice_pdf

Synopsis

Documentation

get_invoice_pdf 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_invoice_pdfResponse)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}.pdf

Fetch an invoice as a PDF

data Get_invoice_pdfResponse Source #

Represents a response of the operation get_invoice_pdf.

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

Constructors

Get_invoice_pdfResponseError String

Means either no matching case available or a parse error

Get_invoice_pdfResponse200

An invoice as a PDF.

Get_invoice_pdfResponse404 Error

Incorrect site or invoice ID.

Get_invoice_pdfResponseDefault Error

Unexpected error.

get_invoice_pdfWithConfiguration 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_invoice_pdfResponse)

Monadic computation which returns the result of the operation

GET /invoices/{invoice_id}.pdf

The same as get_invoice_pdf but accepts an explicit configuration.

get_invoice_pdfRaw 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}.pdf

The same as get_invoice_pdf but returns the raw ByteString.

get_invoice_pdfWithConfigurationRaw 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}.pdf

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