move checks to classes and add distinction between process_fees and position fees

This commit is contained in:
Lukas Bockstaller
2026-04-01 18:07:05 +02:00
parent 7ffadb87b3
commit c624fcfe41
4 changed files with 321 additions and 181 deletions

View File

@@ -1206,3 +1206,14 @@ This signal is sent out each time the information for a Device is modified.
Both the original and updated versions of the Device are included to allow
receivers to see what has been updated.
"""
self_service_cancellation_checks = EventPluginSignal()
"""
This signal is sent out to collect checks to approve or deny a self service cancellation.
You are expected to return a class instance that implements CancellationCheck.
It is is expected that that the CheckFn will not issue any further queries.
As with all event-plugin signals, the ``sender`` keyword argument will contain the event.
"""