Log in

SalesRule Module

Api\CouponManagementInterface

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

This interface defines the contract for search results when querying sales rules (cart price rules/promotions). Developers use this when implementing...

Model\Coupon\CodegeneratorInterface

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

This interface defines a contract for recollecting quote totals when a sales rule (promotional rule/coupon) is modified. Developers implement this int...