iikoFront Api V8 Code Reference
iikoFront Api V8 Code Reference
Resto.Front.Api.Data.Orders
IDiscountItem Interface
IDiscountItem Properties
IDiscountItem Methods

# IDiscountItem Interface

Discount item is the result of adding discount to an order, contains discount parameters, which will be used to calculate sums. While discount params are persistent, discount sums are calculated on demand, because they are subject to change (they may depend on the time, etc). Call [!:IOperationService.GetOrderAppliedDiscounts] to get calculated sums.

Namespace: Resto.Front.Api.Data.Orders
Assembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    public interface IDiscountItem : ISerializable

The IDiscountItem type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| DiscountType | Type of the discount item.
| IsSelectivelyApplied | Whether this discount item is applied selectively to some order items. If true, use TryGetSelectiveDiscountItemSettings(IOrder, IDiscountItem) to get or ChangeSelectiveDiscount(IOrderStub, IDiscountType, IReadOnlyList IOrderProductItemStub , IReadOnlyList IOrderModifierItemStub , IReadOnlyList IOrderCompoundItemComponentStub ) to change list of selected order items.

Top
Methods

| Name | Description
--- | --- | ---
| GetObjectData | Populates a SerializationInfo with the data needed to serialize the target object. (Inherited from ISerializable.)

Top
See Also

#### Reference

Resto.Front.Api.Data.Orders Namespace