DiscountCollection Class |
Namespace: CMS.Ecommerce
public class DiscountCollection : IEnumerable<IDiscount>, IEnumerable
The DiscountCollection type exposes the following members.
Name | Description | |
---|---|---|
DiscountCollection |
Initializes a new instance of the DiscountCollection class that is empty.
| |
DiscountCollection(IEnumerableIDiscount) |
Initializes a new instance of the DiscountCollection class that
contains IDiscount elements copied from the specified collection.
|
Name | Description | |
---|---|---|
Add |
Adds a discount to the collection.
| |
GetEnumerator |
Returns an enumerator that iterates through the collection
|
Name | Description | |
---|---|---|
BatchIDiscount |
Returns input in batches of batchSize size.
(Defined by BaseExtensions.) | |
ToJSON |
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.) | |
ToXML |
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.) |