Adds simple discount of known type to existing order. User must have rights to work with discounts.
Namespace: Resto.Front.Api.V3.Editors
Assembly: Resto.Front.Api.V3 (in Resto.Front.Api.V3.dll) Version: 4.1.1236.1 (4.1.1236.1)
Syntax
C#
void AddDiscount( IDiscountType discount, IOrderStub order )
Parameters
- discount
- Type: Resto.Front.Api.V3.Data.OrdersIDiscountType
Type of the discount - order
- Type: Resto.Front.Api.V3.EditorsIOrderStub
See Also