updateInvoice

Updates an existing invoice.

Return

A pair containing the updated Invoice on success, or a NetworkingError on failure.

Parameters

invoiceId

The unique identifier of the invoice to update.

request

The fields to update on the invoice.


fun updateInvoice(invoiceId: String, request: InvoiceRequests.UpdateInvoiceRequest, completionHandler: (Invoice?, NetworkingError?) -> Unit)

Updates an existing invoice and delivers the result via a callback.

Parameters

invoiceId

The unique identifier of the invoice to update.

request

The fields to update on the invoice.

completionHandler

Invoked on completion with the updated Invoice on success, or a NetworkingError on failure.