Interface
RuleDiscountInterface
Magento\SalesRule\Api\Data\RuleDiscountInterface
What it does
This interface defines the contract for rule discount data objects in Magento 2's sales rule system.
Developers use this to retrieve discount information applied to orders or quotes, including the discount amount, rule label, and rule ID.
It's typically used when displaying applied promotions to customers or processing discount calculations during checkout.
Public Methods
- getDiscountData()
- getRuleLabel()
- getRuleID()