@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.
This commit is contained in:
Pulkit Aggarwal
2020-04-16 04:55:31 +05:30
committed by GitHub
parent 379f53bf8f
commit f86c9d86ce

View File

@@ -10709,6 +10709,12 @@ declare namespace Stripe {
*/
proration_date?: number;
/**
* Determines how to handle prorations when the billing cycle changes or if an items 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 items quantity changes.
* Prorations can be disabled by passing none.
*/
proration_behavior?: 'create_prorations' | 'always_invoice' | 'none';
}
interface ISubscriptionItemListOptions extends IListOptionsCreated {