Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteInvoiceitemsInvoiceitem
Synopsis
- deleteInvoiceitemsInvoiceitem :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteInvoiceitemsInvoiceitemRequestBody -> m (Either HttpException (Response DeleteInvoiceitemsInvoiceitemResponse))
- deleteInvoiceitemsInvoiceitemRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteInvoiceitemsInvoiceitemRequestBody -> m (Either HttpException (Response ByteString))
- deleteInvoiceitemsInvoiceitemM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteInvoiceitemsInvoiceitemResponse))
- deleteInvoiceitemsInvoiceitemRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data DeleteInvoiceitemsInvoiceitemRequestBody = DeleteInvoiceitemsInvoiceitemRequestBody {
- data DeleteInvoiceitemsInvoiceitemResponse
Documentation
deleteInvoiceitemsInvoiceitem Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | invoiceitem | Constraints: Maximum length of 5000 |
-> DeleteInvoiceitemsInvoiceitemRequestBody | The request body to send |
-> m (Either HttpException (Response DeleteInvoiceitemsInvoiceitemResponse)) | Monad containing the result of the operation |
DELETE /v1/invoiceitems/{invoiceitem}
<p>Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.</p>
deleteInvoiceitemsInvoiceitemRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteInvoiceitemsInvoiceitemRequestBody -> m (Either HttpException (Response ByteString)) Source #
DELETE /v1/invoiceitems/{invoiceitem}
The same as deleteInvoiceitemsInvoiceitem
but returns the raw ByteString
deleteInvoiceitemsInvoiceitemM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteInvoiceitemsInvoiceitemResponse)) Source #
DELETE /v1/invoiceitems/{invoiceitem}
Monadic version of deleteInvoiceitemsInvoiceitem
(use with runWithConfiguration
)
deleteInvoiceitemsInvoiceitemRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
DELETE /v1/invoiceitems/{invoiceitem}
Monadic version of deleteInvoiceitemsInvoiceitemRaw
(use with runWithConfiguration
)
data DeleteInvoiceitemsInvoiceitemRequestBody Source #
Defines the data type for the schema deleteInvoiceitemsInvoiceitemRequestBody
data DeleteInvoiceitemsInvoiceitemResponse Source #
Represents a response of the operation deleteInvoiceitemsInvoiceitem
.
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), DeleteInvoiceitemsInvoiceitemResponseError
is used.
DeleteInvoiceitemsInvoiceitemResponseError String | Means either no matching case available or a parse error |
DeleteInvoiceitemsInvoiceitemResponse200 DeletedInvoiceitem | Successful response. |
DeleteInvoiceitemsInvoiceitemResponseDefault Error | Error response. |