IPaymentProcessorOnPreliminaryPaymentEditing Method |
Perform operations when preliminary payment is going to be edited.
If method throws exception, payment is removed from order.
Namespace: Resto.Front.ApiAssembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntaxbool OnPreliminaryPaymentEditing(
IOrder order,
IPaymentItem paymentItem,
IUser cashier,
IOperationService operationService,
IReceiptPrinter printer,
IViewManager viewManager,
IPaymentDataContext context
)
Parameters
- order IOrder
- Order.
- paymentItem IPaymentItem
- Payment item.
- cashier IUser
- User handling payments and receipts.
- operationService IOperationService
- Allows to edit entities within this method. Should not be used after method returns.
- printer IReceiptPrinter
- IReceiptPrinter object to perform print actions. Should not be used after method returns.
- viewManager IViewManager
- IViewManager object to show dialogs. Should not be used after method returns.
- context IPaymentDataContext
- IPaymentDataContext object to work with plugin saved data in Syrve storage.
Return Value
BooleanWhether standard numpad is active after method ends. If new sum is set in action and no further edit is considered, return false. Otherwise return true to enable editing sum via numbad.
Exceptions
See Also