Triggered when a tier is deleted.
handler(event: TierDeletedEnvelope): void | Promise<void>
Triggered when a tier is updated.
function onTierUpdated(handler: function): void;
handler(event: TierUpdatedEnvelope): void | Promise<void>
import { tiers } from "@wix/loyalty";
tiers.onTierUpdated((event) => {
// handle your event here
});