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

RecurlyClient.Operations.Reopen_invoice

Description

Contains the different functions to run the operation reopen_invoice

Synopsis

Documentation

reopen_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 Reopen_invoiceResponse)

Monadic computation which returns the result of the operation

PUT /invoices/{invoice_id}/reopen

Reopen a closed, manual invoice

data Reopen_invoiceResponse Source #

Represents a response of the operation reopen_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), Reopen_invoiceResponseError is used.

Constructors

Reopen_invoiceResponseError String

Means either no matching case available or a parse error

Reopen_invoiceResponse200 Invoice

The updated invoice.

Reopen_invoiceResponse404 Error

Incorrect site or invoice ID.

Reopen_invoiceResponse422 Error

Tried reopening an automatic transaction, or an invoice that wasn't closed (`successful` or `failed`).

Reopen_invoiceResponseDefault Error

Unexpected error.

reopen_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 Reopen_invoiceResponse)

Monadic computation which returns the result of the operation

PUT /invoices/{invoice_id}/reopen

The same as reopen_invoice but accepts an explicit configuration.

reopen_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

PUT /invoices/{invoice_id}/reopen

The same as reopen_invoice but returns the raw ByteString.

reopen_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

PUT /invoices/{invoice_id}/reopen

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