Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Update_invoice
Description
Contains the different functions to run the operation update_invoice
Synopsis
- update_invoice :: forall m. MonadHTTP m => Text -> InvoiceUpdate -> ClientT m (Response Update_invoiceResponse)
- data Update_invoiceResponse
- update_invoiceWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> InvoiceUpdate -> m (Response Update_invoiceResponse)
- update_invoiceRaw :: forall m. MonadHTTP m => Text -> InvoiceUpdate -> ClientT m (Response ByteString)
- update_invoiceWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> InvoiceUpdate -> 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`. |
-> 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 |
Instances
Show Update_invoiceResponse Source # | |
Defined in RecurlyClient.Operations.Update_invoice Methods showsPrec :: Int -> Update_invoiceResponse -> ShowS # show :: Update_invoiceResponse -> String # showList :: [Update_invoiceResponse] -> ShowS # | |
Eq Update_invoiceResponse Source # | |
Defined in RecurlyClient.Operations.Update_invoice Methods (==) :: Update_invoiceResponse -> Update_invoiceResponse -> Bool # (/=) :: Update_invoiceResponse -> Update_invoiceResponse -> Bool # |
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.
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
.