update Invoice Line Item
suspend fun updateInvoiceLineItem(invoiceId: String, invoiceLineItemId: String, request: InvoiceLineItemRequests.UpdateLineItemRequest): Pair<InvoiceLineItem?, NetworkingError?>
Updates an existing line item on the specified invoice.
Return
A Pair where the first element is the updated InvoiceLineItem 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 update.
request
The fields to update on the line item.
fun updateInvoiceLineItem(invoiceId: String, invoiceLineItemId: String, request: InvoiceLineItemRequests.UpdateLineItemRequest, completionHandler: (InvoiceLineItem?, NetworkingError?) -> Unit)
Updates an existing line item on 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 update.
request
The fields to update on the line item.
completion Handler
Called on completion with the updated InvoiceLineItem on success, or a NetworkingError on failure.