mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #25363 from overleaf/mf-stripe-webhook-delete-subscription
[web] Delete "expired" subscription in Stripe (in Stripe, this is called "canceled" status) GitOrigin-RevId: 847cf431c2f6edd7ec6c4e17137d163e450dc4f1
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
|
type StripeWebhookEventType =
|
||||||
|
| 'customer.subscription.created'
|
||||||
|
| 'customer.subscription.updated'
|
||||||
|
| 'customer.subscription.deleted'
|
||||||
|
|
||||||
export type CustomerSubscriptionWebhookEvent = {
|
export type CustomerSubscriptionWebhookEvent = {
|
||||||
type: 'customer.subscription.created'
|
type: StripeWebhookEventType
|
||||||
data: {
|
data: {
|
||||||
object: {
|
object: {
|
||||||
id: string
|
id: string
|
||||||
|
|||||||
@@ -111,3 +111,8 @@ export type PaymentProvider = {
|
|||||||
trialStartedAt?: Nullable<Date>
|
trialStartedAt?: Nullable<Date>
|
||||||
trialEndsAt?: Nullable<Date>
|
trialEndsAt?: Nullable<Date>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type SubscriptionRequesterData = {
|
||||||
|
id?: string
|
||||||
|
ip?: string
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user