create Invoice Line Item
suspend fun createInvoiceLineItem(invoiceId: String, request: InvoiceLineItemRequests.CreateLineItemRequest): Pair<InvoiceLineItem?, NetworkingError?>
Creates a new line item on the specified invoice.
Return
A Pair where the first element is the created InvoiceLineItem on success, and the second element is a NetworkingError on failure.
Parameters
invoice Id
The unique identifier of the invoice to add the line item to.
request
The details of the line item to create.
fun createInvoiceLineItem(invoiceId: String, request: InvoiceLineItemRequests.CreateLineItemRequest, completionHandler: (InvoiceLineItem?, NetworkingError?) -> Unit)
Creates a new line item on the specified invoice, delivering the result via a callback.
Parameters
invoice Id
The unique identifier of the invoice to add the line item to.
request
The details of the line item to create.
completion Handler
Called on completion with the created InvoiceLineItem on success, or a NetworkingError on failure.