update Invoice
suspend fun updateInvoice(invoiceId: String, request: InvoiceRequests.UpdateInvoiceRequest): Pair<Invoice?, NetworkingError?>
Updates an existing invoice.
Return
A pair containing the updated Invoice on success, or a NetworkingError on failure.
Parameters
invoice Id
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
invoice Id
The unique identifier of the invoice to update.
request
The fields to update on the invoice.
completion Handler
Invoked on completion with the updated Invoice on success, or a NetworkingError on failure.