From 80b0171ab7eed3a6af84839703ba506bebb6e318 Mon Sep 17 00:00:00 2001 From: Mohamed Kamagate Date: Tue, 28 Aug 2018 08:10:16 -0700 Subject: [PATCH 1/2] Add tolerance parameter to WebHooks.contructEvent --- types/stripe/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 4d8aba7d9a..dcab22ed2f 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -7192,7 +7192,7 @@ declare namespace Stripe { } class WebHooks { - constructEvent(requestBody: any, signature: string | string[], endpointSecret: string): webhooks.StripeWebhookEvent; + constructEvent(requestBody: any, signature: string | string[], endpointSecret: string, tolerance: number): webhooks.StripeWebhookEvent; } class EphemeralKeys { From 9095eefdccfcec3cf0ce671ca05b8046407ecb61 Mon Sep 17 00:00:00 2001 From: Mohamed Kamagate Date: Tue, 28 Aug 2018 08:43:56 -0700 Subject: [PATCH 2/2] Stripe : Make tolerance an optional parameter --- types/stripe/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index dcab22ed2f..06b7fbbb70 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -7192,7 +7192,7 @@ declare namespace Stripe { } class WebHooks { - constructEvent(requestBody: any, signature: string | string[], endpointSecret: string, tolerance: number): webhooks.StripeWebhookEvent; + constructEvent(requestBody: any, signature: string | string[], endpointSecret: string, tolerance?: number): webhooks.StripeWebhookEvent; } class EphemeralKeys {