get Invoice Line Item With
suspend fun getInvoiceLineItemWith(invoiceId: String, invoiceLineItemId: String): Pair<InvoiceLineItem?, NetworkingError?>
Retrieves a single line item by its identifier from the specified invoice.
Return
A Pair where the first element is the matching InvoiceLineItem on success, and the second element is a NetworkingError on failure.
Parameters
invoice Id
The unique identifier of the invoice that owns the line item.
invoice Line Item Id
The unique identifier of the line item to retrieve.
fun getInvoiceLineItemWith(invoiceId: String, invoiceLineItemId: String, completionHandler: (InvoiceLineItem?, NetworkingError?) -> Unit)
Retrieves a single line item by its identifier from the specified invoice, delivering the result via a callback.
Parameters
invoice Id
The unique identifier of the invoice that owns the line item.
invoice Line Item Id
The unique identifier of the line item to retrieve.
completion Handler
Called on completion with the matching InvoiceLineItem on success, or a NetworkingError on failure.