Triggered when a coupon specification is updated.
function onCouponUpdated(handler: function): void;
handler(event: CouponUpdatedEnvelope): void | Promise<void>
import { coupons } from "@wix/marketing";
coupons.onCouponUpdated((event) => {
// handle your event here
});