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