Log in
Model

UpdateInfo

Magento\SalesRule\Model\Coupon\Usage\UpdateInfo

What it does

This class serves as a data transfer object (DTO) to carry information about coupon usage updates in Magento 2's sales rule system.

Developers use this class when they need to track and update coupon usage statistics, such as incrementing or decrementing usage counts, associating coupons with customers, and managing which promotion rules have been applied to an order.

Public Methods

  • getAppliedRuleIds()
  • setAppliedRuleIds()
  • getCouponCode()
  • setCouponCode()
  • getCouponCodes()
  • setCouponCodes()
  • getCustomerId()
  • setCustomerId()
  • isIncrement()
  • setIsIncrement()
  • isCouponAlreadyApplied()
  • setCouponAlreadyApplied()