DiscountManagerInterface
interface DiscountManagerInterface (View source)
Methods
addType(string $classname)
Add a discount type by classname
Collection
getTypes()
Return the available discount types.
Collection
getApplied()
Return the applied discounts
bool
validateCoupon(string $coupon)
Validate a given coupon against all system discounts.
Details
DiscountManagerInterface
addType(string $classname)
Add a discount type by classname
Collection
getTypes()
Return the available discount types.
DiscountManagerInterface
addApplied(CartDiscount $cartDiscount)
Add an applied discount
Collection
getApplied()
Return the applied discounts
bool
validateCoupon(string $coupon)
Validate a given coupon against all system discounts.