Log in
Model

RuleDiscount

Magento\SalesRule\Model\Data\RuleDiscount

What it does

This class is a data model that represents discount information applied by a sales rule (shopping cart price rule) to an item or quote.

Developers use this class to access discount details including the discount amount/percentage, the rule's label shown to customers, and the rule ID when processing or displaying applied promotions during checkout or in order summaries.

Public Methods

  • getDiscountData()
  • getRuleLabel()
  • getRuleID()
  • getExtensionAttributes()
  • setExtensionAttributes()