Click or drag to resize
IDiscount Interface
Represents a general discount application which is applicable on the base price.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public interface IDiscount : ICouponCodeApplication

The IDiscount type exposes the following members.

Properties
  NameDescription
Public propertyAppliedCouponCode
Applied coupon code.
Public propertyDiscountName
Gets the display name of the discount.
Top
Methods
  NameDescription
Public methodApply
Applies coupon code during order creation.
(Inherited from ICouponCodeApplication.)
Public methodCalculateDiscount
Calculates the discount value for given basePrice.
Top
Remarks
Use this class as a base for custom discount calculation implementations.
See Also