mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-28 19:52:53 +00:00
stripe: Allow coupon to be removed from subscription (#36270)
To remove a coupon from a subscription, you pass `null` when updating the subscription. The types previously did not allow `null` for this field. See https://stripe.com/docs/api/subscriptions/update#update_subscription-coupon
This commit is contained in:
parent
f0540a6f36
commit
c59794dd21
4
types/stripe/index.d.ts
vendored
4
types/stripe/index.d.ts
vendored
@ -6104,9 +6104,9 @@ declare namespace Stripe {
|
||||
|
||||
/**
|
||||
* The code of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that
|
||||
* particular subscription.
|
||||
* particular subscription. Passing null will remove any coupon previously applied to a subscription.
|
||||
*/
|
||||
coupon?: string;
|
||||
coupon?: string | null;
|
||||
|
||||
/**
|
||||
* @deprecated Use items property instead.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user