Click or drag to resize

IEditSession Interface

Accumulates a sequence of entity changes that can be applied atomically at the end.

Namespace: Resto.Front.Api.Editors
Assembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
public interface IEditSession

The IEditSession type exposes the following members.

Properties
 NameDescription
Public propertyHasChanges Determines whether an edit session has changes.
Top
Methods
 NameDescription
Public methodActivateReserveAndBindToOrderCloses reserve and creates order on reserved table. Closed reserve is binded to the created order. Number of guests in the created order equals to number of guests in the reserve.
Public methodAddCardLoyaltyDiscountsAdds discounts grouped by order items.
Public methodAddDeliveryAutoAdditionAdds some items according to the product auto-addition settings.
Public methodAddDiscountAdds simple discount of known type to existing order. User must have rights to work with discounts.
Public methodAddDiscountByCardNumberAdd discount by card number.
Public methodAddExternalFiscalizedPaymentItem(Decimal, IPaymentItemAdditionalData, IPaymentType, IOrderStub, IAdditionalCurrency, IOrderGuestItemStub)Add new externally fiscalized payment item to order.
Public methodAddExternalFiscalizedPaymentItem(Guid, Decimal, IPaymentItemAdditionalData, IPaymentType, IOrderStub, IAdditionalCurrency, IOrderGuestItemStub)Add new external fiscalized payment item to order.
Public methodAddExternalPaymentItem(Decimal, Boolean, IPaymentItemAdditionalData, OrganizationDetailsInfo, IPaymentType, IOrderStub, IAdditionalCurrency, IOrderGuestItemStub)Add new external payment item to order.
Public methodAddExternalPaymentItem(Guid, Decimal, Boolean, IPaymentItemAdditionalData, OrganizationDetailsInfo, IPaymentType, IOrderStub, IAdditionalCurrency, IOrderGuestItemStub)Add new external payment item to order.
Public methodAddFlexibleSumDiscountAdds simple discount of known type to existing order. User must have rights to work with discounts.
Public methodAddFlexibleSumDiscountByCardNumberAdd discount by card number.
Public methodAddIdentifierCodesToModifierItemUnitAdds identifier codes for one product unit within a modifier item.
Public methodAddIdentifierCodesToOrderItemUnitAdds identifier codes for one product unit within an order item.
Public methodAddOrderComboCreate order combo item. Order must contain new combo items.
Public methodAddOrderCompoundItem(IProduct, IOrderStub, IOrderGuestItemStub, IProductSize, OrderItemCourse)Adds compound item to the guest in existing order. User must have permission to edit orders.
Public methodAddOrderCompoundItem(Guid, IProduct, IOrderStub, IOrderGuestItemStub, IProductSize, OrderItemCourse)Adds compound item to the guest in existing order. User must have permission to edit orders.
Public methodAddOrderExternalDataAdds external data to the order. Cannot update public external data for closed order. Use DeleteOrderExternalData(String, IOrderStub) to delete the data when it's no longer needed.
Public methodAddOrderGuest(String, IOrderStub)Adds new guest to existing order. User must have rights to edit orders.
Public methodAddOrderGuest(Guid, String, IOrderStub)Adds new guest with the given ID to existing order. User must have rights to edit orders.
Public methodAddOrderModifierItem(Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemComponentStub, NullableInt32, NullableDecimal)Adds order item modifier to the compound item component in existing order. User must have rights to edit orders.
Public methodAddOrderModifierItem(Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemStub, NullableInt32, NullableDecimal)Adds order item modifier to the compound item in existing order. User must have rights to edit orders.
Public methodAddOrderModifierItem(Int32, IProduct, IProductGroup, IOrderStub, IOrderProductItemStub, NullableInt32, NullableDecimal)Adds order item modifier to the order item in existing order. User must have rights to edit orders.
Public methodAddOrderModifierItem(Guid, Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemComponentStub, NullableInt32, NullableDecimal)Adds order item modifier to the compound item component in existing order. User must have rights to edit orders.
Public methodAddOrderModifierItem(Guid, Int32, IProduct, IProductGroup, IOrderStub, IOrderCompoundItemStub, NullableInt32, NullableDecimal)Adds order item modifier to the compound item in existing order. User must have rights to edit orders.
Public methodAddOrderModifierItem(Guid, Int32, IProduct, IProductGroup, IOrderStub, IOrderProductItemStub, NullableInt32, NullableDecimal)Adds order item modifier to the order item in existing order. User must have rights to edit orders.
Public methodAddOrderProductItem(Decimal, IProduct, IOrderStub, IOrderGuestItemStub, IProductSize, OrderItemCourse, NullableDecimal)Adds assortment position to the guest in existing order. User must have rights to edit orders.
Public methodAddOrderProductItem(Guid, Decimal, IProduct, IOrderStub, IOrderGuestItemStub, IProductSize, OrderItemCourse, NullableDecimal)Adds assortment position to the guest in existing order. User must have rights to edit orders.
Public methodAddOrderServiceItemAdds time pay service item to the guest in existing order. User must have permission to edit orders.
Public methodAddOrUpdateModifierForPrintedItemAdds order item modifier for product which is already printed. User must have rights to edit orders.
Public methodAddPaymentItem(Decimal, IPaymentItemAdditionalData, IPaymentType, IOrderStub, IAdditionalCurrency, IOrderGuestItemStub)Add new payment item to order.
Public methodAddPaymentItem(Guid, Decimal, IPaymentItemAdditionalData, IPaymentType, IOrderStub, IAdditionalCurrency, IOrderGuestItemStub)Add new payment item to order.
Public methodAddPreliminaryPaymentItem(Decimal, IPaymentItemAdditionalData, IPaymentType, IDeliveryOrderStub, IOrderGuestItemStub)Add new preliminary payment item to order.
Public methodAddPreliminaryPaymentItem(Guid, Decimal, IPaymentItemAdditionalData, IPaymentType, IDeliveryOrderStub, IOrderGuestItemStub)Add new preliminary payment item to order.
Public methodAddPrimaryComponent(IProduct, IOrderStub, IOrderCompoundItemStub, NullableDecimal)Adds a primary component to the compound item.
Public methodAddPrimaryComponent(Guid, IProduct, IOrderStub, IOrderCompoundItemStub, NullableDecimal)Adds a primary component to the compound item.
Public methodAddSecondaryComponent(IProduct, IOrderStub, IOrderCompoundItemStub, NullableDecimal)Adds a secondary component to the compound item.
Public methodAddSecondaryComponent(Guid, IProduct, IOrderStub, IOrderCompoundItemStub, NullableDecimal)Adds a secondary component to the compound item.
Public methodAttachToJournalEventSets default attributes of order for journal event.
Public methodBindReserveToOrderConverts exising reserve or banquet without order to banquet with order.
Public methodChangeClientAddressesChanges client addresses.
Public methodChangeClientBirthDateChanges client's birth date.
Public methodChangeClientBlacklistInfoChanges client blacklist info.
Public methodChangeClientCardNumberChanges client card number.
Public methodChangeClientCommentChanges client comment.
Public methodChangeClientConsentDatesChanges client's dates of consent.
Public methodChangeClientEmailsChanges client emails list.
Public methodChangeClientGenderChange client's gender.
Public methodChangeClientIikoBizIdChanges client's account in Syrve.biz.
Public methodChangeClientLastOrderDateChanges client's last order date.
Public methodChangeClientLinkedCounteragentChanges client linked counter agent.
Public methodChangeClientMainAddressIndexChanges client main address index.
Public methodChangeClientMarketingSourceChanges client marketing source.
Public methodChangeClientNameChanges client name.
Public methodChangeClientNickChanges client nickname.
Public methodChangeClientOrganizationDetailsInfoChanges organization details information of client.
Public methodChangeClientPersonalDataConsentChanges whether client consented processing their personal data.
Public methodChangeClientPersonalDataProcessingDatesChanges dates of the time interval which allows client's legal personal data processing without thier consent.
Public methodChangeClientPhonesChanges client phones list.
Public methodChangeClientReceivesLoyaltySystemNotificationsChanges whether client receives loyalty system notification messages.
Public methodChangeClientReceivesOrderStatusNotificationsChanges whether client receives order status notification messages.
Public methodChangeClientReceivesPromotionalNotificationsChanges whether client receives promotional notification messages.
Public methodChangeClientSurnameChanges client surname.
Public methodChangeComboAmountChange combo amount.
Public methodChangeComboPriceChange combo price.
Public methodChangeComboSizeChange combo size.
Public methodChangeCookingPriorityChanges custom cooking priority and top priority flag.
Public methodChangeDeliveryActualDeliverTimeChange time when the order was actually delivered.
Public methodChangeDeliveryAddressChanges address of delivery
Public methodChangeDeliveryClientNameChange name of delivery client.
Public methodChangeDeliveryCommentChange the order comment.
Public methodChangeDeliveryConfirmTimeChanges delivery confirmation state and time.
Public methodChangeDeliveryCourierAssign/Change the order courier. Can use this action only before the order is to be delivered.
Public methodChangeDeliveryCustomApiDataChange the delivery custom data from api.
Public methodChangeDeliveryDurationSets duration of delivery processing.
Public methodChangeDeliveryEmailChange the order e-mail.
Public methodChangeDeliveryEstimatedTimeOfArrivalChange estimated time of arrival of the order. Can change property only for Unconfirmed, New, Waiting or OnWay delivery.
Public methodChangeDeliveryExpectedDeliverTimeChange time when client wants the order to be delivered.
Public methodChangeDeliveryExpectedDurationSets calculated delivery duration without overrided value on terminal.
Public methodChangeDeliveryExternalCourierServiceChanges external courier service for delivery.
Public methodChangeDeliveryFixedRestrictionsFixes delivery restrictions check result values, so that they could not be corrected in Syrve POS from now on. Or unfixes them for Syrve POS to reevaluate them later on.
Public methodChangeDeliveryLastVerifiedRestrictionsHashSets calculated delivery restirictions hash.
Public methodChangeDeliveryLocationChanges delivery address location.
Public methodChangeDeliveryMarketingSourceAssign/change order marketing source.
Public methodChangeDeliveryMoveIdsSets identifiers of:
the new delivery created to transfer current one to a new terminal.
the group of a new delivery created to transfer current one to a new terminal.
the old delivery, from which the current one was created after transferring to a new terminal.
the group of an old delivery, from which the current one was created after transferring to a new terminal.
Public methodChangeDeliveryOperatorAssign/change the order operator.
Public methodChangeDeliveryOrderPredictedCookingCompleteTimeChange predicted time when the order cooking should be completed. Can change property only for Unconfirmed, New or Waiting delivery.
Public methodChangeDeliveryPhoneChanges the order phone.
Public methodChangeDeliveryPredictedDeliveryTimeChange predicted time when the order should be delivered. Can change property only for Unconfirmed, New or Waiting delivery.
Public methodChangeDeliveryProblemCommentChange the order problem comment.
Public methodChangeDeliveryProblemStatusChange the order problem status.
Public methodChangeDeliverySplitBetweenPersonsChanges the order property if it should be splitted between persons.
Public methodChangeDeliveryZoneSets matching the address calculated delivery zone name.
Public methodChangeEstimatedOrderGuestsCountChanges estimated order guests count. Use this method to set estimated guests count when guests collection doesn't reflect actual state of affairs.
Public methodChangeExternalPaymentItemCustomDataChanges custom data of existing external payment item.
Public methodChangeModifierItemVerificationResultSets the verification result for an identifier code in a modifier item.
Public methodChangeOrderAppliedIikoCard5ManualConditionsBind or unbind Syrve Loyalty (legacy) manual conditions for order.
Public methodChangeOrderCommentChanges order comment.
Public methodChangeOrderCookingItemAmountChanges the amount of the assortment position in existing order. User must have rights to edit orders.
Public methodChangeOrderCookingItemCourseChanges the course of the order item.
Public methodChangeOrderCookingItemSizeChanges the product size of the order item.
Public methodChangeOrderExternalNumberSets order it's corresponding external number from an external system.
Public methodChangeOrderIikoCard5CouponsBind or unbind order Syrve Loyalty (legacy) coupons, used in Syrve Loyalty (legacy) system.
Public methodChangeOrderItemCommentChanges product order item's comment.
Public methodChangeOrderItemMarkingCodeChanges the marking code of a product within an order item. Skip scanning of marking code option will be reset. Use SkipScanningOrderItemMarkingCode(IOrderStub, IOrderProductItemStub) to set this option.
Public methodChangeOrderItemsCookingPlaceChanges cooking place for order cooking items.
Public methodChangeOrderItemVerificationResultSets the verification result for an identifier code in an order item.
Public methodChangeOrderItemWaiterChanges product order item's waiter.
Public methodChangeOrderLoyaltyDynamicDiscountsChange Syrve Loyalty (legacy) dynamic discounts for order.
Public methodChangeOrderModifierItemAmount(Int32, IOrderStub, IOrderCompoundItemComponentStub, IOrderModifierItemStub, NullableInt32)Changes the amount of the compound component modifier. User must have rights to edit orders.
Public methodChangeOrderModifierItemAmount(Int32, IOrderStub, IOrderCompoundItemStub, IOrderModifierItemStub, NullableInt32)Changes the amount of the compound item common modifier. User must have rights to edit orders.
Public methodChangeOrderModifierItemAmount(Int32, IOrderStub, IOrderProductItemStub, IOrderModifierItemStub, NullableInt32)Changes the amount of the product item modifier. User must have rights to edit orders.
Public methodChangeOrderModifierItemMarkingCodeChanges the marking code of a modifier within an order item. Skip scanning of marking code option will be reset. Use SkipScanningOrderItemMarkingCode(IOrderStub, IOrderProductItemStub) to set this option.
Public methodChangeOrderOriginNameSets order origin — name of the source this order was received from. Specifying origin allows to analyse efficiency of external order sources such as different web-sites, mobile applications and so on. Origin name can be set only once.
Public methodChangeOrderPricingTimeChange order pricing time, which determines the price of products. By default time taken from items print time.
Public methodChangeOrderTablesChanges tables of the order.
Public methodChangeOrderWaiterChanges order's waiter.
Public methodChangePaymentItemCustomDataChanges custom data of existing payment item.
Public methodChangePaymentItemSumChanges sum of existing payment item.
Public methodChangePreliminaryPaymentItemCustomDataChanges custom data of existing preliminary payment item.
Public methodChangePreliminaryPaymentItemSumChanges sum of existing preliminary payment item.
Public methodChangePriceCategoryChanges price category of the order.
Public methodChangeReserveCommentChanges reserve comment. Use empty string to clear comment.
Public methodChangeReserveDurationChanges estimated reserve duration (amount of time betwen visit's start and end). Default reserve duration is 2 hours, banquet duration is 3 hours.
Public methodChangeReserveEstimatedStartTimeChanges estimated reserve start time.
Public methodChangeReserveGuestsCountChanges estimated guests count for reserve. Default value is 2.
Public methodChangeReserveReminderChanges reserve reminder flag.
Public methodChangeReserveTablesChanges reserving tables.
Public methodChangeSelectiveDiscount(IReadOnlyListValueTupleGuid, Decimal, IOrderStub, IDiscountType)Change discount item selective application settings. For each item Id, the discount amount is set separately.
Public methodChangeSelectiveDiscount(IOrderStub, IDiscountType, IReadOnlyListIOrderProductItemStub, IReadOnlyListIOrderModifierItemStub, IReadOnlyListIOrderCompoundItemComponentStub)Change discount item selective application settings. Set both products and modifiers to null if you want the discount item to be applied to the whole order (including future order items), otherwise provide order item products and modifiers for selective discount item application.
Public methodChangeStreetNameChanges street's name.
Public methodConvertToTableServiceOrderConverts FastFood order to TableService order.
Public methodCreateBanquet(DateTime, String, IClientStub, IOrderStub, Guid)Creates reservation for planned event in future. Order's table will be marked as reserved to prevent collision with other events at the same time.
Public methodCreateBanquet(DateTime, String, IClientStub, IReadOnlyListITable, Guid)Creates reservation for planned event in future. Table will be marked as reserved to prevent collision with other events at the same time.
Public methodCreateClientCreates new client. The client must have a card number or at least one phone number.
Public methodCreateClientWithOrganizationDetailsCreates new client. The client must have orgatizations details info.
Public methodCreateDeliveryOrder(NullableInt32, DateTime, String, AddressDto, NullableDateTime, IOrderType, IClientStub, IUser, NullableTimeSpan, String, Boolean, Boolean, String)Creates new delivery order. User must have rights to edit delivery orders. Specify address for courier-service; leave it null for self-service.
Public methodCreateDeliveryOrder(Guid, Guid, NullableInt32, DateTime, String, AddressDto, NullableDateTime, IOrderType, IClientStub, IUser, NullableTimeSpan, String, Boolean, Boolean, String)Creates new delivery order. User must have rights to edit delivery orders. Specify address for courier-service; leave it null for self-service.
Public methodCreateJournalEventCreates new journal event.
Public methodCreateOrderCreates new order on specified table. User must have rights to create orders.
Public methodCreateReserveCreates reservation for planned visit in future. Table will be marked as reserved to prevent collision with other guests at the same time.
Public methodCreateStreet(String)Creates new street.
Public methodCreateStreet(Guid, String, ICity)Creates new street.
Public methodDecreasePrintedComboAmountDecrease combo with printed items amount. All redundant copies of items will be deleted according to writeoffOptions.
Public methodDeleteDiscountRemoves discount of known type from existing order. User must have rights to work with discounts.
Public methodDeleteExternalFiscalizedPaymentItemDelete existing externally fiscalized payment item from order.
Public methodDeleteExternalPaymentItemDelete existing external payment item from order.
Public methodDeleteModifierItemIdentifierCodesDeletes multiple identifier codes from a modifier item by their unique IDs.
Public methodDeleteOrderComboDelete order combo item.
Public methodDeleteOrderExternalDataDeletes external data from the order.
Public methodDeleteOrderGuestDeletes guest without any products from order.
Public methodDeleteOrderItemDeletes order item from order that represents the assortment position. User must have rights to edit orders.
Public methodDeleteOrderItemCommentDeletes product order item's comment.
Public methodDeleteOrderItemIdentifierCodesDeletes multiple identifier codes from an order item by their unique IDs.
Public methodDeleteOrderModifierItem(IOrderStub, IOrderCompoundItemComponentStub, IOrderModifierItem)Deletes order item modifier from order item that represents the assortment position. User must have rights to edit orders.
Public methodDeleteOrderModifierItem(IOrderStub, IOrderCompoundItemStub, IOrderModifierItem)Deletes order item modifier from order item that represents the assortment position. User must have rights to edit orders.
Public methodDeleteOrderModifierItem(IOrderStub, IOrderProductItemStub, IOrderModifierItem)Deletes order item modifier from order item that represents the assortment position. User must have rights to edit orders.
Public methodDeleteOrRestoreStreetDeletes street.
Public methodDeletePaymentItemDelete existing payment item from order.
Public methodDeletePreliminaryPaymentItemDelete existing preliminary payment item from order.
Public methodDeletePrintedOrderItemCommentDeletes product order item's comment.
Public methodDeletePrintedOrderItemsDeletes order items that is already printed. User must have rights to edit orders.
Public methodDeletePrintedOrderModifierItemDeletes order item modifier that is already printed. User must have rights to edit orders.
Public methodGroupOrderCookingItemsCombines the order item products into mix group so that they will be cooked together. Only consecutive products of the same guest can be combined into mix group.
Public methodMarkOrderAsAdditionalMarks order as additional.
Public methodMarkOrderAsTabMarks the order as tab and assigns tab name.
Public methodMoveOrderItemToAnotherGuestMoves product item between guests of the same order.
Public methodMoveOrderItemToAnotherOrderMoves product item between orders.
Public methodOverrideVatInclusionForOrderOverrides default VAT inclusion settings for items of the specified order.
Public methodRecoverCorruptedReserveRecovers banquet which is bound to non-existent order. Normally such cases should never occur, but due to entities storage implementation details sometimes banquet may loose its order. Note that new empty order will be created from scratch.
Public methodRenameOrderGuestRenames order's guest.
Public methodReopenReserveReopens previously closed or canceled reserve.
Public methodResetIsPrintedDeliveryBillActualResets whether latest printed bill is actual to 'false' value. Use when you want delivery bill to be print again according to settings. For example, if you changed courier and wish to have actual name on the bill, call this action and delivery will automatically printed according to settings. On the contrary, if you don't want bill to be printed again (for example, courier is written to the bill later by hands), you have no need to call this action.
Public methodResetOderLastChangeTimeByWaiterReset order last change time by waiter time to now. User must have rights to edit orders.
Public methodResetPriceCategoryResets price category of the order.
Public methodServeOrderCookingItemMark order item product as served.
Public methodSetChequeAdditionalInfoSets cheque information to the order.
Public methodSetCompoundItemComponentCustomNameSets the custom name of the compound component. User must have rights to edit orders.
Public methodSetDeliveryCloseTimeChanges delivery closing status and time.
Public methodSetDeliveryCustomerAuthorizedInIikoBizChanges whether the client is already authorized in Syrve.biz. WARNING: use with caution! Illegal value can lead to unsuccessful Syrve.biz operations. Do NOT set this property to 'true' if you are not sure that all authorization properties are correct and customer is registered in Syrve.biz; that will cause Syrve.biz payment failure.
Public methodSetDeliveryDeliveredChanges delivery status from OnWay to Delivere and sets current time as time when the order was actually delivered.
Public methodSetDeliveryUndeliveredReturns the delivery from the Delivered status back to the OnWay status.
Public methodSetJournalEventAttributeSets attribute for journal event.
Public methodSetOpenPriceChanges order item open price.
Public methodSetOrderHasFixedIikoCardDiscountsSets that the order has fixed Syrve Loyalty (legacy) discounts.
Public methodSetOrderModifierItemCustomName(String, IOrderStub, IOrderCompoundItemComponentStub, IOrderModifierItemStub)Sets the custom name of the compound component modifier. User must have rights to edit orders.
Public methodSetOrderModifierItemCustomName(String, IOrderStub, IOrderCompoundItemStub, IOrderModifierItemStub)Sets the custom name of the compound item common modifier. User must have rights to edit orders.
Public methodSetOrderModifierItemCustomName(String, IOrderStub, IOrderProductItemStub, IOrderModifierItemStub)Sets the custom name of the product item modifier. User must have rights to edit orders.
Public methodSetOrderTypeSets order type for order.
Public methodSetProductItemCustomNameSets the custom name of the product item. User must have rights to edit orders.
Public methodSetServiceItemCustomNameSets the custom name of the service item. User must have rights to edit orders.
Public methodSetServiceItemPeriodCustomNameSets the custom name of the service period. User must have rights to edit orders.
Public methodSkipScanningOrderItemMarkingCodeSkips scanning marking code of a product within an order item. Marking code of order item will be reset to null. Use ChangeOrderItemMarkingCode(String, IOrderStub, IOrderProductItemStub) to reset this option.
Public methodSplitOrderCookingItemCut off specified amount from product to new one.
Public methodStartBanquetTransits banquet to the started status.
Public methodUngroupOrderCookingItemsSeparates the order item products from mix group so that they will be cooked independently.
Public methodUnserveOrderCookingItemMark order item product as unserved.
Public methodUpdateOrderComboItemsUpdate existing order combo items. Order must contain new combo items.
Top
Extension Methods
 NameDescription
Public Extension MethodChangeReserveTableChanges reserving table.
(Defined by EditSessionExtensions)
Public Extension MethodCreateBanquetCreates reservation for planned event in future. Table will be marked as reserved to prevent collision with other events at the same time.
(Defined by EditSessionExtensions)
Public Extension MethodCreateOrderCreates new order on specified table. User must have rights to create orders.
(Defined by EditSessionExtensions)
Public Extension MethodCreateReserveCreates reservation for planned visit in future. Table will be marked as reserved to prevent collision with other guests at the same time.
(Defined by EditSessionExtensions)
Top
See Also