I need to retrieve product quantity, I found that, the interfaces we used before to get product quantity are deprecated, these are:
\Magento\CatalogInventory\Api\StockStateInterface $stockItem
And,
\Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry
Below link says StockStateInterface is replaced with Multi Source Inventory but I cannot see a function returning product quantity in it.
Is there some other way to get product quantity? I don't want to use deprecated code.