Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation reopen_invoice
Synopsis
- reopen_invoice :: forall m. MonadHTTP m => Text -> ClientT m (Response Reopen_invoiceResponse)
- data Reopen_invoiceResponse
- reopen_invoiceWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Reopen_invoiceResponse)
- reopen_invoiceRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- reopen_invoiceWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
:: 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.
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. |
Instances
Show Reopen_invoiceResponse Source # | |
Defined in RecurlyClient.Operations.Reopen_invoice showsPrec :: Int -> Reopen_invoiceResponse -> ShowS # show :: Reopen_invoiceResponse -> String # showList :: [Reopen_invoiceResponse] -> ShowS # | |
Eq Reopen_invoiceResponse Source # | |
Defined in RecurlyClient.Operations.Reopen_invoice |
reopen_invoiceWithConfiguration Source #
:: 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.
:: 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 #
:: 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
.