RuleInterface
Magento\CatalogRule\Api\Data\RuleInterface
What it does
This interface defines the data structure for catalog price rules in Magento 2.
Developers use it when working with catalog rule objects through the API to set promotional pricing conditions, discount amounts, and rule behavior like whether to stop processing subsequent rules.
It provides standardized getters and setters for all rule properties including conditions, actions, sorting, and activation status.
Public Methods
- getRuleId()
- setRuleId()
- getName()
- setName()
- getDescription()
- setDescription()
- getIsActive()
- setIsActive()
- getRuleCondition()
- setRuleCondition()
- getStopRulesProcessing()
- setStopRulesProcessing()
- getSortOrder()
- setSortOrder()
- getSimpleAction()
- setSimpleAction()
- getDiscountAmount()
- setDiscountAmount()
- getExtensionAttributes()
- setExtensionAttributes()