Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteInvoicesInvoice
Synopsis
- deleteInvoicesInvoice :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe DeleteInvoicesInvoiceRequestBody -> m (Either HttpException (Response DeleteInvoicesInvoiceResponse))
- deleteInvoicesInvoiceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe DeleteInvoicesInvoiceRequestBody -> m (Either HttpException (Response ByteString))
- deleteInvoicesInvoiceM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteInvoicesInvoiceResponse))
- deleteInvoicesInvoiceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data DeleteInvoicesInvoiceRequestBody = DeleteInvoicesInvoiceRequestBody {
- data DeleteInvoicesInvoiceResponse
Documentation
deleteInvoicesInvoice Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Text | invoice | Constraints: Maximum length of 5000 |
-> Maybe DeleteInvoicesInvoiceRequestBody | The request body to send |
-> m (Either HttpException (Response DeleteInvoicesInvoiceResponse)) | Monad containing the result of the operation |
DELETE /v1/invoices/{invoice}
<p>Permanently deletes a draft invoice. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized, it must be <a href="#void_invoice">voided</a>.</p>
deleteInvoicesInvoiceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe DeleteInvoicesInvoiceRequestBody -> m (Either HttpException (Response ByteString)) Source #
DELETE /v1/invoices/{invoice}
The same as deleteInvoicesInvoice
but returns the raw ByteString
deleteInvoicesInvoiceM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteInvoicesInvoiceResponse)) Source #
DELETE /v1/invoices/{invoice}
Monadic version of deleteInvoicesInvoice
(use with runWithConfiguration
)
deleteInvoicesInvoiceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
DELETE /v1/invoices/{invoice}
Monadic version of deleteInvoicesInvoiceRaw
(use with runWithConfiguration
)
data DeleteInvoicesInvoiceRequestBody Source #
Defines the data type for the schema deleteInvoicesInvoiceRequestBody
data DeleteInvoicesInvoiceResponse Source #
Represents a response of the operation deleteInvoicesInvoice
.
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), DeleteInvoicesInvoiceResponseError
is used.
DeleteInvoicesInvoiceResponseError String | Means either no matching case available or a parse error |
DeleteInvoicesInvoiceResponse200 DeletedInvoice | Successful response. |
DeleteInvoicesInvoiceResponseDefault Error | Error response. |