Consumer
Magento\SalesRule\Model\Coupon\Consumer
What it does
This class acts as a message queue consumer that processes asynchronous coupon generation requests in Magento 2.
When a merchant generates a large batch of coupons for sales rules, this consumer handles the actual generation process in the background and sends notifications to the admin user when complete or if errors occur.
Developers would interact with this when implementing or customizing bulk coupon generation features.
Public Methods
- process()