<?php
namespace Leadlion\StockUpdates\Cron;

use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Catalog\Model\Product;
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\InventoryApi\Api\Data\SourceItemInterfaceFactory;
use Magento\InventoryApi\Api\SourceItemsSaveInterface;
use Magento\Store\Model\ScopeInterface;
use SmartBill\Integration\Cron\Config;
use SmartBill\Integration\Cron\Handler;
use SmartBill\Integration\Cron\LoggerInterface;
use SmartBill\Integration\Helper\Data;
use SmartBill\Integration\Model\SmartBillCloudRestClient;

class UnitsOfMeasure {

    private $umModel;

    /**
     * ProcessProducts constructor.
     * @param State $state
     * @param Config $config
     * @param Handler $handler
     * @param CollectionFactory $collectionFactory
     */
    public function __construct(
        \Leadlion\StockUpdates\Model\UpdateUm $umModel
    ) {
        $this->umModel = $umModel;
    }

    /**
     * Run cron
     */
    public function execute()
    {
        try {
            $this->umModel->execute();
        }
        catch (\Exception $e) {

        }

    }

}
