Click or drag to resize

DiscountForOrderItem Constructor

Initializes a new instance of the DiscountForOrderItem class.

Namespace:  Resto.Front.Api.Data.Orders
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
public DiscountForOrderItem(
	Guid orderItemId,
	decimal sum,
	decimal amount
)

Parameters

orderItemId
Type: SystemGuid
Order item id
sum
Type: SystemDecimal
Sum of discount
amount
Type: SystemDecimal
The discount amount is a part of the dish amount that this discount applies to. The discount amount is equal to the dish amount if the discount applies to the whole item, otherwise the discount amount must be between zero and the dish amount.
See Also