void public \Bitrix\Sale\Discount::setUseMode( integer $useMode );
Method sets mode for calculation of all discounts and rules for an order/shopping cart. Static method.