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

# IOrder Interface

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

    public interface IOrder : ISerializable, IEntity,
    	IVersionedEntity, IOrderStub

The IOrder type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| AppliedDiscounts | The result of applying discount items from Discounts. Discount items that don't affect the order, aren't included into this collection.
| BillTime | Gets the bill cheque print time of the current order.
| Cashier | Gets the user closed the current order.
| CloseTime | Gets the payment time of the current order.
| Combos |
| Comment | Order comment.
| CookingPriority | Specifies a custom cooking priority. While the application provides built-in prioritization logic for orders based on timing, dish courses, etc., you can override it and enforce custom cooking order based on your external logic. Ideally, all dishes should be cooked timely, but in case of concurrency when kitchen is high-loaded, you have to decide which orders are more important and should be cooked in the first place and which orders are allowed to be delayed. Higher priority values mean that the order, its serve groups and dishes will appear at the kitchen display earlier. Default value is zero. Both positive and negative values are allowed for raising and lowering the priority correspondingly. Orders with the same cooking priority will be sorted using default built-in logic.
| CustomerIds |
| Discounts | Discount items that have been added to the order.
| Donations |
| EstimatedGuestsCount | Gets estimated guests count, that is greater than or equal to added guests count. When single order is used to serve many people and handling each of them as a separate guest may be inconvenient, this property will indicate estimated guests count while guests collection will contain as many guests as needed for waiters.
| FiscalChequeNumber | Fiscal cheque number.
| FullSum | Subtotal, sum of all not deleted order items with included vat, but without excluded vat and discounts.
| Guests |
| Id | (Inherited from IEntity.)
| IikoCard51Info | Specific data for iikoCard51.
| IsBanquetOrder | Order is banquet.
| IsTopCookingPriority | The flag specifies that this order should be cooked out-of-order at kitchen. All orders which have this flag set on will appear above other orders at the kitchen display. Both groups (top priority and non-top priority) will be sorted separately using usual sorting logic (custom cooking priority, then default built-in criterions. Default value is false.
| Items |
| LastChangedTerminalId | Id of the terminal (ITerminal) that last changed the order.
| Number |
| OpenTime |
| OrderType |
| OriginName | Optional marker used to specify order origin. This property contains either null or name of the source order was received from. Specifying origin allows to analyse efficiency of external order sources such as different web-sites, mobile applications and so on.
| Payments |
| PriceCategory | Price category.
| PricingTime | Time, which determines the price of products. By default time is taken from items print time.
| ProcessedPaymentsSum | Sum of all processed payment items in order.
| RepeatBillNumber | Number of repeated bills.
| ResultSum | Total sum to be paid, sum of all not deleted order items with discounts and both included and excluded vat.
| Revision | Incremental version of the entity. (Inherited from IVersionedEntity.)
| Status |
| StornedOrderId | Source order's identifier this order copied from during storno operation. null if the order has never storned.
| Tables |
| TabName | Optional marker used to specify that the order is a tab. This property contains name of the tab if the order is marked as tab, otherwise null.
| Waiter |
| WasPrepaid | Whether order was prepaid. Any processed or deleted prepay.

Top
Methods

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

Top
Extension Methods

| Name | Description
--- | --- | ---
| TryGetOrderExternalDataByKey | Returns external data by key. Use [!:AddOrderExternalData] to add the data in order. (Defined by OperationArgumentExtensions.)

Top
See Also

#### Reference

Resto.Front.Api.Data.Orders Namespace