public function checkByShipment(\Bitrix\Sale\Shipment $shipment, array $restrictionParams, $deliveryId = 0) { if (empty($restrictionParams)) { return true; } $weight = $shipment->getWeight(); return $this->check($weight, $restrictionParams, $deliveryId); }