ICouponCodeCollection Interface |
Namespace: CMS.Ecommerce
public interface ICouponCodeCollection : IReadOnlyCouponCodeCollection, ICouponCodeApplication
The ICouponCodeCollection type exposes the following members.
Name | Description | |
---|---|---|
AllAppliedCodes |
Gets coupon codes that are already applied in cart or order.
(Inherited from IReadOnlyCouponCodeCollection.) | |
CartAppliedCodes |
Gets coupon codes that are already applied in cart.
(Inherited from IReadOnlyCouponCodeCollection.) | |
Codes |
Gets all coupon codes.
(Inherited from IReadOnlyCouponCodeCollection.) | |
NotAppliedInCartCodes |
Gets coupon codes, that are in cart, but not applied.
(Inherited from IReadOnlyCouponCodeCollection.) | |
OrderAppliedCodes |
Gets coupon codes that are already applied in order.
(Inherited from IReadOnlyCouponCodeCollection.) |
Name | Description | |
---|---|---|
Add |
Adds coupon with given couponCode and status to the collection.
| |
Apply |
Applies coupon code during order creation.
(Inherited from ICouponCodeApplication.) | |
IsAppliedInCart |
Returns true when given codes is present and is applied in cart.
| |
IsAppliedInOrder |
Returns true when given codes is present and was applied in order.
| |
IsNotAppliedInCart |
Returns true when given codes is present in cart, but it is not applied.
| |
Merge |
Merge existing coupon codes with given ones.
| |
Remove |
Removes the coupon with given couponCode from collection.
Does nothing when no such coupon exists.
| |
Serialize |
Serializes the collection into string.
|