Triggered when an order is canceled.
This webhook is triggered either immediately or at the end of the current payment cycle, as follows:
effectiveAt
is set to IMMEDIATELY
, the webhook is triggered immediately when canceled.effectiveAt
is set to NEXT_PAYMENT_DATE
, the webhook is triggered at the end of the current payment cycle. In this case, the Order Auto Renew Canceled Webhook is triggered immediately.
handler(event: OrderCanceledEnvelope): void | Promise<void>