From f86c9d86ce91bb37294cbf27fee4d278a2521173 Mon Sep 17 00:00:00 2001 From: Pulkit Aggarwal Date: Thu, 16 Apr 2020 04:55:31 +0530 Subject: [PATCH] @types/stripe: New parameter added on stripe-sdk, subscriptions API (#43920) * New parameter added on stripe-sdk, subscriptions API Please refer to these new parameter: https://stripe.com/docs/api/subscription_items/delete#delete_subscription_item-proration_behavior https://stripe.com/docs/api/subscription_items/update#update_subscription_item-proration_behavior * Removed: Trailing white-spaces. --- 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 3a2b0611b9..15bb2d4cee 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -10709,6 +10709,12 @@ declare namespace Stripe { */ proration_date?: number; + /** + * Determines how to handle prorations when the billing cycle changes or if an item’s quantity changes. + * Prorations can be disabled by passing none. + */ + proration_behavior?: 'create_prorations' | 'always_invoice' | 'none'; + /** * The quantity you'd like to apply to the subscription you're creating. For example, if your plan is £10/user/month, and your customer * has 5 users, you could pass 5 as the quantity to have the customer charged £50 (5 x £10) monthly. If you update a subscription but @@ -10994,6 +11000,12 @@ declare namespace Stripe { * proration that was previewed with the upcoming invoice endpoint. */ proration_date?: number; + + /** + * Determines how to handle prorations when the billing cycle changes or if an item’s quantity changes. + * Prorations can be disabled by passing none. + */ + proration_behavior?: 'create_prorations' | 'always_invoice' | 'none'; } interface ISubscriptionItemListOptions extends IListOptionsCreated {