Model
Usage
Magento\SalesRule\Model\ResourceModel\Coupon\Usage
What it does
This resource model manages the tracking of how many times individual customers have used specific coupons in Magento 2.
Developers use this class to increment/decrement coupon usage counts per customer and retrieve usage data for a specific customer-coupon combination, which is essential for enforcing per-customer coupon usage limits in sales rules.
Public Methods
- updateCustomerCouponTimesUsed()
- loadByCustomerCoupon()