Model
CouponGenerator
Magento\SalesRule\Model\CouponGenerator
What it does
This class generates pools of coupon codes for sales promotions and shopping cart price rules.
Developers use it to programmatically create multiple coupon codes at once based on specified parameters like quantity, format, and length.
It acts as a backward-compatible proxy to the newer CouponManagementService, mapping old parameter names to new ones.
Public Methods
- generateCodes()