onRuleCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:
Method Declaration
Copy
function onRuleCreated(handler: function): void;
Method Parameters
handlerfunction

handler(event: RuleCreatedEnvelope): void | Promise<void>

JavaScript
import { serviceFees } from "@wix/restaurants"; serviceFees.onRuleCreated((event) => { // handle your event here });
Did this help?