Extend Promotion entity class with method for Coupons
- getCoupons()
- getCouponsCodes
- getCouponsIds

Comments

vasike created an issue. See original summary.

vasike’s picture

vasike’s picture

Status: Active » Needs review

new PR for the parent issue, it includes the fix for this.
https://github.com/drupalcommerce/commerce/pull/660

Also Promotion tests updated to include the new methods.

bojanz’s picture

Status: Needs review » Closed (duplicate)

Closing for the parent issue.