[web] update webhook event handlers for Stripe custom checkout (#28526)

* do not emit subscription-started when status is incomplete
* emit subscription-started when incomplete subscription transitions to active
* do not emit subscription-expired when status is incomplete_expired
* do not sync incomplete or incomplete_expired Stripe subscriptions
* allow `incomplete*` status to better guard against syncing

GitOrigin-RevId: 4e851f654dcb4bf356280197dd158e834175df12
This commit is contained in:
Kristina
2025-09-22 10:16:44 +02:00
committed by Copybot
parent 70f2b62a57
commit 61c03c8f24

View File

@@ -14,6 +14,8 @@ export type SubscriptionState =
| 'expired'
| 'paused'
| 'past_due'
| 'incomplete'
| 'incomplete_expired'
// when puchasing a new add-on in recurly, we only need to provide the code
export type PurchasingAddOnCode = {