public function addData($storeId, array $indexData)
{
$inventoryData = $this->resourceModel->loadInventoryData($storeId, array_keys($indexData));
foreach ($inventoryData as $inventoryDataRow) {
$productId = (int) $inventoryDataRow['product_id'];
$indexData[$productId]['stock'] = ['is_in_stock' => (bool) $inventoryDataRow['stock_status'], 'qty' => (int) $inventoryDataRow['qty']];
}
return $indexData;
}