get Invoice Line Items
suspend fun getInvoiceLineItems(invoiceId: String): Pair<InvoiceLineItemResponses.ListInvoiceLineItemsResponse?, NetworkingError?>
Retrieves all line items belonging to the specified invoice.
Return
A Pair where the first element is a InvoiceLineItemResponses.ListInvoiceLineItemsResponse containing the list on success, and the second element is a NetworkingError on failure.
Parameters
invoice Id
The unique identifier of the invoice whose line items to fetch.
fun getInvoiceLineItems(invoiceId: String, completionHandler: (InvoiceLineItemResponses.ListInvoiceLineItemsResponse?, NetworkingError?) -> Unit)
Retrieves all line items belonging to the specified invoice, delivering the result via a callback.
Parameters
invoice Id
The unique identifier of the invoice whose line items to fetch.
completion Handler
Called on completion with a InvoiceLineItemResponses.ListInvoiceLineItemsResponse on success, or a NetworkingError on failure.