delete Invoice Line Item
suspend fun deleteInvoiceLineItem(invoiceId: String, invoiceLineItemId: String): Pair<InvoiceLineItemResponses.DeletedInvoiceLineItemResponse?, NetworkingError?>
Deletes a line item from the specified invoice.
Return
A Pair where the first element is a InvoiceLineItemResponses.DeletedInvoiceLineItemResponse confirming deletion on success, and the second element is a NetworkingError on failure.
Parameters
invoice Id
The unique identifier of the invoice that owns the line item.
invoice Line Item Id
The unique identifier of the line item to delete.
fun deleteInvoiceLineItem(invoiceId: String, invoiceLineItemId: String, completionHandler: (InvoiceLineItemResponses.DeletedInvoiceLineItemResponse?, NetworkingError?) -> Unit)
Deletes a line item from the specified invoice, delivering the result via a callback.
Parameters
invoice Id
The unique identifier of the invoice that owns the line item.
invoice Line Item Id
The unique identifier of the line item to delete.
completion Handler
Called on completion with a InvoiceLineItemResponses.DeletedInvoiceLineItemResponse confirming deletion on success, or a NetworkingError on failure.