public function validate(\Magento\Framework\Model\AbstractModel $model)
    {
        $isShopgateOrder = (int) in_array($model->getData(self::CLIENT_ATTRIBUTE), self::APP_CLIENTS);
        // TODO add validation for web checkout
        $model->setData(self::IS_SHOPGATE_ORDER, $isShopgateOrder);

        return parent::validate($model);
    }
public function validate(\Magento\Framework\Model\AbstractModel $model)
    {
        $isShopgateOrder = (int) in_array($model->getData(self::CLIENT_ATTRIBUTE), self::APP_CLIENTS);
        // TODO add validation for web checkout
        $model->setData(self::IS_SHOPGATE_ORDER, $isShopgateOrder);

        return parent::validate($model);
    }
public function validate ( \ Magento \ Framework \ Model \ AbstractModel $ model ) { $ isShopgateOrder = ( int ) in_array ( $ model -> getData ( self :: CLIENT_ATTRIBUTE ) , self :: APP_CLIENTS ) ; // TODO add validation for web checkout $ model -> setData ( self :: IS_SHOPGATE_ORDER , $ isShopgateOrder ) ; return parent :: validate ( $ model ) ; }
Validate App Rule Condition

@param \Magento\Framework\Model\AbstractModel $model

@return bool
Validate App Rule Condition