delete Invoice
suspend fun deleteInvoice(invoiceId: String): Pair<InvoiceResponses.DeletedInvoiceResponse?, NetworkingError?>
Deletes an invoice by its identifier.
Return
A pair containing a InvoiceResponses.DeletedInvoiceResponse confirming deletion on success, or a NetworkingError on failure.
Parameters
invoice Id
The unique identifier of the invoice to delete.
fun deleteInvoice(invoiceId: String, completionHandler: (InvoiceResponses.DeletedInvoiceResponse?, NetworkingError?) -> Unit)
Deletes an invoice by its identifier and delivers the result via a callback.
Parameters
invoice Id
The unique identifier of the invoice to delete.
completion Handler
Invoked on completion with a InvoiceResponses.DeletedInvoiceResponse confirming deletion on success, or a NetworkingError on failure.