OnTicketCommands
This hook runs after commands have been applied to a Ticket Actor from the create or applyCommands message. Commands returned from rules does not trigger the hook again.
For invariants that can only be checked after every OnTicketCommands rule has run and its commands have been applied — for example rules that depend on data set by other rules — use the OnTicketValidate hook instead.
Type
filtrera
{
hook: 'OnTicketCommands'
before: Ticket // The ticket before the commands were applied
ticket: Ticket // The ticket after the commands were applied
}