Variable Coupon When Ordering

Hello, please tell me where the condition is stored that the promotional code is used. Not the $order_info variable.promotions, which stores discounts. Namely, if a discount coupon was used when ordering.

Thank you, worked out themselves