This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
function onRuleCreated(handler: function): void;
handler(event: RuleCreatedEnvelope): void | Promise<void>
import { serviceFees } from "@wix/restaurants";
serviceFees.onRuleCreated((event) => {
// handle your event here
});