Click or drag to resize
ICouponCodeCollection Methods

The ICouponCodeCollection type exposes the following members.

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