Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Coupon when for subscriptions on Checkout #875

Merged
merged 1 commit into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/2020-03-02/BillingPortal/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ declare module 'stripe' {

class SessionsResource {
/**
* Creates a session of the Self-service Portal.
* Creates a session of the self-serve Portal.
*/
create(
params: SessionCreateParams,
Expand Down
5 changes: 5 additions & 0 deletions types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,11 @@ declare module 'stripe' {
*/
application_fee_percent?: number;

/**
* 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.
*/
coupon?: string;

/**
* The tax rates that will apply to any subscription item that does not have
* `tax_rates` set. Invoices created will have their `default_tax_rates` populated
Expand Down