Click or drag to resize

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). See AppliedDiscounts to get calculated sums.

Namespace: Resto.Front.Api.Data.Orders
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
public interface IDiscountItem : ISerializable

The IDiscountItem type exposes the following members.

Properties
 NameDescription
Public propertyDiscountPaymentItemPayment item from Payments processed or fiscalized as discount from which this discount item was created. null if disount item was not created from payment item.
Public propertyDiscountTypeType of the discount item.
Public propertyIsSelectivelyAppliedWhether this discount item is applied selectively to some order items. If true, use TryGetSelectiveDiscountItemSettings(IOrder, IDiscountItem) to get or ChangeSelectiveDiscount(IOrderStub, IDiscountType, IReadOnlyListIOrderProductItemStub, IReadOnlyListIOrderModifierItemStub, IReadOnlyListIOrderCompoundItemComponentStub) to change list of selected order items.
Top
Methods
 NameDescription
Public methodGetObjectDataPopulates a SerializationInfo with the data needed to serialize the target object.
(Inherited from ISerializable)
Top
See Also