magento plugin changes for stock api