CouponCodeCollection Class |
Namespace: CMS.Ecommerce
[SerializableAttribute] public sealed class CouponCodeCollection : ICouponCodeCollection, IReadOnlyCouponCodeCollection, ICouponCodeApplication
The CouponCodeCollection type exposes the following members.
Name | Description | |
---|---|---|
CouponCodeCollection |
Name | Description | |
---|---|---|
AllAppliedCodes |
Gets all applied coupon codes.
| |
CartAppliedCodes |
Gets coupon codes that are already applied in cart.
| |
Codes |
Gets the coupon codes.
| |
CouponCodes |
Gets the coupon codes.
| |
NotAppliedInCartCodes |
Gets coupon codes, that are in cart, but not applied.
| |
OrderAppliedCodes |
Gets all applied coupon codes that are already applied in order.
|
Name | Description | |
---|---|---|
Add |
Adds coupon with given couponCode and status to the collection.
| |
Apply |
Applies all applicable coupon codes during order creation.
| |
Deserialize |
Returns a new instance of CouponCodeCollection deserialized from given string.
| |
IsAppliedInCart |
Returns true when given codes is present and was 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.
|