issueInvoice

suspend fun issueInvoice(invoiceId: String): Pair<Invoice?, NetworkingError?>

Issues a draft invoice, making it visible to the customer.

Return

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

Parameters

invoiceId

The unique identifier of the invoice to issue.


fun issueInvoice(invoiceId: String, completionHandler: (Invoice?, NetworkingError?) -> Unit)

Issues a draft invoice and delivers the result via a callback.

Parameters

invoiceId

The unique identifier of the invoice to issue.

completionHandler

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