From 8a6fa48e294ebae36cfd3273c69047f21907bb63 Mon Sep 17 00:00:00 2001 From: Alan Ray Date: Thu, 31 Jan 2019 19:21:12 -0500 Subject: [PATCH] stripe: Update cancel subscription options as of 2018-11-08 --- types/stripe/index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 068755e157..366d2407b2 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -4870,6 +4870,18 @@ declare namespace Stripe { interface ISubscriptionCancellationOptions extends IDataOptions { /** + * Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. + */ + invoice_now?: boolean; + + /** + * Will generate a proration invoice item that credits remaining unused time until the subscription period end. + */ + prorate?: boolean; + + /** + * @deprecated Use subscription update with cancel_at_period_end option as of 2018-08-23. + * * A flag that if set to true will delay the cancellation of the subscription until the end of the current period. */ at_period_end?: boolean;