\Bitrix\Sale\BasketItemCollection::getOrderId();
Method returns order ID with collection. Non-static method.
No parameters