I would expect getOrder to return a full JSON in the same way that getLineItems returns an array of line item JSONs. There should be a convention of all of these methods:
getItem -> returns single object
getItemId -> returns item's id
getItems -> returns array of objects
The single case one is only really useful in the library's internal methods, since it's usually when you're fetching an id. So maybe the first isn't even necessary.
I would expect
getOrderto return a full JSON in the same way thatgetLineItemsreturns an array of line item JSONs. There should be a convention of all of these methods:getItem -> returns single objectgetItemId -> returns item's idgetItems -> returns array of objectsThe single case one is only really useful in the library's internal methods, since it's usually when you're fetching an id. So maybe the first isn't even necessary.