string public static \Bitrix\Sale\Internals\DiscountCouponTable::generateCoupon( boolean $check = false );
Method generates coupon code. Static method.