Repository
RuleRepositoryInterface
Magento\SalesRule\Api\RuleRepositoryInterface
What it does
This interface defines the contract for managing sales rules (promotional/discount rules) in Magento 2.
Developers use this repository to create, read, update, and delete cart price rules programmatically, providing a standardized API for rule management across custom modules and integrations.
Public Methods
- save()
- getById()
- getList()
- deleteById()