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

RecurlyClient.Operations.Update_invoice

Description

Contains the different functions to run the operation update_invoice

Synopsis

Documentation

update_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`.

-> InvoiceUpdate

The request body to send

-> ClientT m (Response Update_invoiceResponse)

Monadic computation which returns the result of the operation

PUT /invoices/{invoice_id}

Update an invoice

data Update_invoiceResponse Source #

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

Constructors

Update_invoiceResponseError String

Means either no matching case available or a parse error

Update_invoiceResponse200 Invoice

An invoice.

Update_invoiceResponse404 Error

Incorrect site or invoice ID.

Update_invoiceResponse422 Error

A validation error

update_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`.

-> InvoiceUpdate

The request body to send

-> m (Response Update_invoiceResponse)

Monadic computation which returns the result of the operation

PUT /invoices/{invoice_id}

The same as update_invoice but accepts an explicit configuration.

update_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`.

-> InvoiceUpdate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /invoices/{invoice_id}

The same as update_invoice but returns the raw ByteString.

update_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`.

-> InvoiceUpdate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /invoices/{invoice_id}

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