Skip to content

Commit 742b069

Browse files
authored
Merge pull request stripe#875 from stripe/remi/codegen-6bc6b0c
Add support for `Coupon` when for subscriptions on Checkout
2 parents 5eac840 + 6ce723e commit 742b069

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

types/2020-03-02/BillingPortal/Sessions.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare module 'stripe' {
6060

6161
class SessionsResource {
6262
/**
63-
* Creates a session of the Self-service Portal.
63+
* Creates a session of the self-serve Portal.
6464
*/
6565
create(
6666
params: SessionCreateParams,

types/2020-03-02/Checkout/Sessions.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,11 @@ declare module 'stripe' {
10491049
*/
10501050
application_fee_percent?: number;
10511051

1052+
/**
1053+
* 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.
1054+
*/
1055+
coupon?: string;
1056+
10521057
/**
10531058
* The tax rates that will apply to any subscription item that does not have
10541059
* `tax_rates` set. Invoices created will have their `default_tax_rates` populated

0 commit comments

Comments
 (0)