updateInvoiceLineItem

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

invoiceId

The unique identifier of the invoice that owns the line item.

invoiceLineItemId

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

invoiceId

The unique identifier of the invoice that owns the line item.

invoiceLineItemId

The unique identifier of the line item to update.

request

The fields to update on the line item.

completionHandler

Called on completion with the updated InvoiceLineItem on success, or a NetworkingError on failure.