SalesRule Module
Api\CouponManagementInterface
This interface defines the contract for managing coupon codes in Magento 2 shopping cart price rules. Developers use this to programmatically generate...
Api\Data\ConditionInterface
This interface defines the structure for sales rule conditions in Magento 2's promotion system. Developers use it to create, read, and manipulate comp...
Api\Data\CouponGenerationSpecInterface
This interface defines the contract for specifying parameters when generating coupon codes in bulk for sales rules. Developers use this to programmati...
Api\Data\CouponInterface
This interface defines the contract for coupon data objects in Magento 2's sales rule system. Developers use this to work with coupon codes, including...
Api\Data\CouponMassDeleteResultInterface
This interface defines the structure for results returned from mass coupon deletion operations in Magento 2. Developers use this to handle and report...
Api\Data\CouponSearchResultInterface
This interface defines the contract for search results when querying for sales rule coupons in Magento 2. Developers use this when working with the Co...
Api\Data\DiscountAppliedToInterface
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 d...
Api\Data\DiscountDataInterface
This interface defines the contract for retrieving discount data in Magento 2 sales rules. Developers use it to access discount amounts in both store...
Api\Data\RuleDiscountInterface
This interface defines the contract for rule discount data objects in Magento 2's sales rule system. Developers use this to retrieve discount informat...
Api\Data\RuleInterface
This interface defines the contract for sales promotion rules (cart price rules) in Magento 2. Developers use it when programmatically creating, readi...
Api\Data\RuleLabelInterface
This interface defines the contract for managing store-specific labels for sales rules (cart price rules) in Magento 2. Developers use this to get or...
Api\Data\RuleSearchResultInterface
This interface defines the contract for search results when querying sales rules (cart price rules/promotions). Developers use this when implementing...
Model\Coupon\CodegeneratorInterface
This interface defines the contract for generating coupon codes in Magento 2's sales rule system. Developers implement this interface to create custom...
Model\Quote\GetCouponCodeLengthInterface
This interface defines a contract for retrieving the length of a coupon code in Magento's sales rule system. Developers would implement this interface...
Model\Spi\CodeLimitManagerInterface
This interface defines a contract for checking if coupon code requests have exceeded rate limits. Developers implement this interface to create servic...
Model\Spi\CouponResourceInterface
This interface defines the contract for managing coupon resource operations in Magento 2's sales rule system. Developers use implementations of this i...
Model\Spi\QuoteResetAppliedRulesInterface
This interface defines a contract for resetting applied sales rules (cart price rules/promotions) on a quote/shopping cart. Developers would implement...
Model\Spi\RuleQuoteRecollectTotalsInterface
This interface defines a contract for recollecting quote totals when a sales rule (promotional rule/coupon) is modified. Developers implement this int...