IOperationServiceTryEditCurrentPaymentScreen Method |
Allows to show messages and make changes to the order that is currently opened on the payment screen.
Namespace:
Resto.Front.Api
Assembly:
Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax void TryEditCurrentPaymentScreen(
Func<(IOrder order, IPaymentScreenUpdatedContext context, IOperationService os, IViewManager vm), IReadOnlyCollection<(Guid , decimal )>> callback
)
Parameters
- callback
- Type: SystemFuncValueTupleIOrder, IPaymentScreenUpdatedContext, IOperationService, IViewManager, IReadOnlyCollectionValueTupleGuid, Decimal
Callback that can show messages and make changes to the payment screen using the view manager and filling return value.
Exceptions Exception | Condition |
---|
NotSupportedException | Current screen doesn't support this operation. |
OperationCanceledException | Current screen has canceled the operation. It means that the current screen was unable to execute the operation immediately and therefore scheduled it for executing later, but then navigation to another screen has happened in a way that prevented calling delayed operations before changing the screen. |
Exception | Any exception thrown by callback. |
Remarks
The callback will be called immediately if the are no uninterruptable activity by user or another plugin, otherwise this method will wait until the screen becomes idle.
See Also