CouponCodeCollection Methods |
The CouponCodeCollection type exposes the following members.
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.
|