Interface
DiscountAppliedToInterface
Magento\SalesRule\Api\Data\DiscountAppliedToInterface
What it does
This interface defines the contract for identifying where a sales rule discount has been applied in Magento 2.
Developers use this to determine if a discount was applied to an item or to shipping, which is essential when displaying discount breakdowns or calculating totals.
The interface provides constants for the two discount application types: ITEM and SHIPPING.
Public Methods
- getAppliedTo()