Skip to content

Commit a904098

Browse files
Update generated code for v1994 and 2025-09-30.preview
1 parent d8c0931 commit a904098

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1993
1+
v1994

test/resources/generated_examples_test.spec.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

types/Discounts.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ declare module 'stripe' {
5858
*/
5959
promotion_code: string | Stripe.PromotionCode | null;
6060

61+
source: DeletedDiscount.Source;
62+
6163
/**
6264
* Date that the coupon was applied.
6365
*/
@@ -74,6 +76,17 @@ declare module 'stripe' {
7476
subscription_item: string | null;
7577
}
7678

79+
namespace DeletedDiscount {
80+
interface Source {
81+
/**
82+
* The coupon that was redeemed to create this discount.
83+
*/
84+
coupon: string | Stripe.Coupon | null;
85+
86+
type: 'coupon';
87+
}
88+
}
89+
7790
/**
7891
* A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
7992
* It contains information about when the discount began, when it will end, and what it is applied to.
@@ -138,6 +151,8 @@ declare module 'stripe' {
138151
*/
139152
promotion_code: string | Stripe.PromotionCode | null;
140153

154+
source: Discount.Source;
155+
141156
/**
142157
* Date that the coupon was applied.
143158
*/
@@ -153,5 +168,16 @@ declare module 'stripe' {
153168
*/
154169
subscription_item: string | null;
155170
}
171+
172+
namespace Discount {
173+
interface Source {
174+
/**
175+
* The coupon that was redeemed to create this discount.
176+
*/
177+
coupon: string | Stripe.Coupon | null;
178+
179+
type: 'coupon';
180+
}
181+
}
156182
}
157183
}

0 commit comments

Comments
 (0)