SpecialPriceInterface
Magento\Catalog\Api\Data\SpecialPriceInterface
What it does
This interface defines the contract for managing product special prices in Magento 2.
It provides methods to set and retrieve special price values, along with their effective date ranges (price_from and price_to), associated store IDs, and product SKUs.
Developers use this interface when working with special pricing APIs to apply temporary discounts or promotional prices to products.
Public Methods
- setPrice()
- getPrice()
- setStoreId()
- getStoreId()
- setSku()
- getSku()
- setPriceFrom()
- getPriceFrom()
- setPriceTo()
- getPriceTo()
- getExtensionAttributes()
- setExtensionAttributes()