From 8af56905bed71e886862c3bd04975da9c37b3fda Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Mon, 21 Jan 2019 16:23:35 -0800 Subject: [PATCH] stripe: Mark optional subscription fields Fields `canceled_at`, `trial_start`, and `trial_end` are optional. --- types/stripe/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 5ab2666e58..335479b107 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -4606,7 +4606,7 @@ declare namespace Stripe { * cancel_at_period_end, canceled_at will still reflect the date of the initial cancellation request, not the end of the * subscription period when the subscription is automatically moved to a canceled state. */ - canceled_at: number; + canceled_at: number | null; created: number; @@ -4675,12 +4675,12 @@ declare namespace Stripe { /** * If the subscription has a trial, the end of that trial. */ - trial_end: number; + trial_end: number | null; /** * If the subscription has a trial, the beginning of that trial. */ - trial_start: number; + trial_start: number | null; /** * Either "charge_automatically", or "send_invoice". When charging automatically, Stripe will attempt to pay this subscription at the