Log in
Interface

CodeLimitManagerInterface

Magento\SalesRule\Model\Spi\CodeLimitManagerInterface

What it does

This interface defines a contract for checking if coupon code requests have exceeded rate limits.

Developers implement this interface to create services that track and validate coupon code request frequency, preventing abuse from excessive coupon code validation attempts.

It throws an exception when the limit is reached, allowing for proper rate limiting enforcement in the coupon validation process.

Public Methods

  • checkRequest()