Model
SelectRuleCoupon
Magento\SalesRule\Model\SelectRuleCoupon
What it does
This class selects and validates which coupon code from a list of applied coupons actually belongs to a specific sales rule.
Developers use this when processing shopping cart price rules to match customer-entered coupon codes with their corresponding rule IDs, ensuring only valid coupons are applied to orders.
Public Methods
- execute()
- getCouponsToRules()
- _resetState()