Click or drag to resize
ICouponCodeCollection Interface
Represents the collection of coupon codes.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public interface ICouponCodeCollection : IReadOnlyCouponCodeCollection, 
	ICouponCodeApplication

The ICouponCodeCollection type exposes the following members.

Properties
  NameDescription
Public propertyAllAppliedCodes
Gets coupon codes that are already applied in cart or order.
(Inherited from IReadOnlyCouponCodeCollection.)
Public propertyCartAppliedCodes
Gets coupon codes that are already applied in cart.
(Inherited from IReadOnlyCouponCodeCollection.)
Public propertyCodes
Gets all coupon codes.
(Inherited from IReadOnlyCouponCodeCollection.)
Public propertyNotAppliedInCartCodes
Gets coupon codes, that are in cart, but not applied.
(Inherited from IReadOnlyCouponCodeCollection.)
Public propertyOrderAppliedCodes
Gets coupon codes that are already applied in order.
(Inherited from IReadOnlyCouponCodeCollection.)
Top
Methods
  NameDescription
Public methodAdd
Adds coupon with given couponCode and status to the collection.
Public methodApply
Applies coupon code during order creation.
(Inherited from ICouponCodeApplication.)
Public methodIsAppliedInCart
Returns true when given codes is present and is applied in cart.
Public methodIsAppliedInOrder
Returns true when given codes is present and was applied in order.
Public methodIsNotAppliedInCart
Returns true when given codes is present in cart, but it is not applied.
Public methodMerge
Merge existing coupon codes with given ones.
Public methodRemove
Removes the coupon with given couponCode from collection. Does nothing when no such coupon exists.
Public methodSerialize
Serializes the collection into string.
Top
See Also