Skip to content

Commit 1cf1365

Browse files
Merge upstream and update generated code for v2315 and 37eceedb50415a82d899ce91898a10c163bcb28a
2 parents b73d0dc + fe2f78c commit 1cf1365

11 files changed

Lines changed: 56 additions & 30 deletions

File tree

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d59a1f4bdea3032b8e282d40badc032cb021fc60
1+
37eceedb50415a82d899ce91898a10c163bcb28a

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2277
1+
v2315

src/resources/Checkout/Sessions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import {StripeResource} from '../../StripeResource.js';
44
import {LineItem} from './../LineItems.js';
5-
import {Discount} from './../Discounts.js';
5+
import {Discount as _Discount} from './../Discounts.js';
66
import {Subscription} from './../Subscriptions.js';
77
import {Customer, DeletedCustomer} from './../Customers.js';
88
import {Invoice} from './../Invoices.js';
@@ -3743,7 +3743,7 @@ export namespace Checkout {
37433743
*
37443744
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
37453745
*/
3746-
discount: Discount;
3746+
discount: _Discount;
37473747
}
37483748

37493749
export interface Tax {

src/resources/CreditNotes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import {StripeResource} from '../StripeResource.js';
44
import {CreditNoteLineItem} from './CreditNoteLineItems.js';
5-
import {Refund} from './Refunds.js';
5+
import {Refund as _Refund} from './Refunds.js';
66
import {Customer, DeletedCustomer} from './Customers.js';
77
import {CustomerBalanceTransaction} from './CustomerBalanceTransactions.js';
88
import {Invoice} from './Invoices.js';
@@ -593,7 +593,7 @@ export namespace CreditNote {
593593
/**
594594
* ID of the refund.
595595
*/
596-
refund: string | Refund;
596+
refund: string | _Refund;
597597

598598
/**
599599
* Type of the refund, one of `refund` or `payment_record_refund`.

src/resources/LineItems.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// File generated from our OpenAPI spec
22

3-
import {Discount} from './Discounts.js';
3+
import {Discount as _Discount} from './Discounts.js';
44
import {Price} from './Prices.js';
55
import {Product, DeletedProduct} from './Products.js';
66
import {TaxRate} from './TaxRates.js';
@@ -109,7 +109,7 @@ export namespace LineItem {
109109
*
110110
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
111111
*/
112-
discount: Discount;
112+
discount: _Discount;
113113
}
114114

115115
export interface Display {

src/resources/Orders.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import {StripeResource} from '../StripeResource.js';
44
import {LineItem} from './LineItems.js';
5-
import {Discount} from './Discounts.js';
5+
import {Discount as _Discount} from './Discounts.js';
66
import {Application} from './Applications.js';
77
import {Customer, DeletedCustomer} from './Customers.js';
88
import {PaymentIntent} from './PaymentIntents.js';
@@ -571,7 +571,7 @@ export interface Order {
571571
/**
572572
* The discounts applied to the order. Use `expand[]=discounts` to expand each discount.
573573
*/
574-
discounts: Array<string | Discount> | null;
574+
discounts: Array<string | _Discount> | null;
575575

576576
/**
577577
* A recent IP address of the purchaser used for tax reporting and tax location inference.
@@ -1620,7 +1620,7 @@ export namespace Order {
16201620
*
16211621
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
16221622
*/
1623-
discount: Discount;
1623+
discount: _Discount;
16241624
}
16251625

16261626
export interface Tax {

src/resources/QuoteLines.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// File generated from our OpenAPI spec
22

33
import {Coupon} from './Coupons.js';
4-
import {Discount} from './Discounts.js';
4+
import {Discount as _Discount} from './Discounts.js';
55
import {PromotionCode} from './PromotionCodes.js';
66
import {Price, DeletedPrice} from './Prices.js';
77
import {TaxRate} from './TaxRates.js';
@@ -251,7 +251,7 @@ export namespace QuoteLine {
251251
/**
252252
* ID of an existing discount on the object (or one of its ancestors) to reuse.
253253
*/
254-
discount: string | Discount | null;
254+
discount: string | _Discount | null;
255255

256256
/**
257257
* Details to determine how long the discount should be applied for.
@@ -315,7 +315,7 @@ export namespace QuoteLine {
315315
/**
316316
* ID of an existing discount on the object (or one of its ancestors) to reuse.
317317
*/
318-
discount: string | Discount | null;
318+
discount: string | _Discount | null;
319319

320320
/**
321321
* Details to determine how long the discount should be applied for.
@@ -344,7 +344,7 @@ export namespace QuoteLine {
344344
/**
345345
* ID of an existing discount on the object (or one of its ancestors) to reuse.
346346
*/
347-
discount: string | Discount | null;
347+
discount: string | _Discount | null;
348348

349349
/**
350350
* Details to determine how long the discount should be applied for.
@@ -426,7 +426,7 @@ export namespace QuoteLine {
426426
/**
427427
* ID of an existing discount on the object (or one of its ancestors) to reuse.
428428
*/
429-
discount: string | Discount | null;
429+
discount: string | _Discount | null;
430430

431431
/**
432432
* Details to determine how long the discount should be applied for.
@@ -508,7 +508,7 @@ export namespace QuoteLine {
508508
/**
509509
* ID of an existing discount on the object (or one of its ancestors) to reuse.
510510
*/
511-
discount: string | Discount | null;
511+
discount: string | _Discount | null;
512512

513513
/**
514514
* Details to determine how long the discount should be applied for.

src/resources/QuotePreviewSubscriptionSchedules.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {PaymentMethod} from './PaymentMethods.js';
77
import {Account} from './Accounts.js';
88
import {TaxId, DeletedTaxId} from './TaxIds.js';
99
import {TaxRate} from './TaxRates.js';
10-
import {Discount} from './Discounts.js';
10+
import {Discount as _Discount} from './Discounts.js';
1111
import {Price, DeletedPrice} from './Prices.js';
1212
import {Coupon} from './Coupons.js';
1313
import {PromotionCode} from './PromotionCodes.js';
@@ -595,7 +595,7 @@ export namespace QuotePreviewSubscriptionSchedule {
595595
/**
596596
* ID of an existing discount on the object (or one of its ancestors) to reuse.
597597
*/
598-
discount: string | Discount | null;
598+
discount: string | _Discount | null;
599599

600600
/**
601601
* Details to determine how long the discount should be applied for.
@@ -715,7 +715,7 @@ export namespace QuotePreviewSubscriptionSchedule {
715715
/**
716716
* ID of an existing discount on the object (or one of its ancestors) to reuse.
717717
*/
718-
discount: string | Discount | null;
718+
discount: string | _Discount | null;
719719

720720
/**
721721
* Details to determine how long the discount should be applied for.
@@ -853,7 +853,7 @@ export namespace QuotePreviewSubscriptionSchedule {
853853
/**
854854
* ID of an existing discount on the object (or one of its ancestors) to reuse.
855855
*/
856-
discount: string | Discount | null;
856+
discount: string | _Discount | null;
857857

858858
/**
859859
* Details to determine how long the discount should be applied for.

src/resources/Quotes.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {LineItem} from './LineItems.js';
66
import {QuoteLine} from './QuoteLines.js';
77
import {QuotePreviewInvoice} from './QuotePreviewInvoices.js';
88
import {QuotePreviewSubscriptionSchedule} from './QuotePreviewSubscriptionSchedules.js';
9-
import {Discount} from './Discounts.js';
9+
import {Discount as _Discount} from './Discounts.js';
1010
import {Application, DeletedApplication} from './Applications.js';
1111
import {Customer, DeletedCustomer} from './Customers.js';
1212
import {TaxRate} from './TaxRates.js';
@@ -2332,7 +2332,7 @@ export interface Quote {
23322332
/**
23332333
* The discounts applied to this quote.
23342334
*/
2335-
discounts: Array<string | Discount>;
2335+
discounts: Array<string | _Discount>;
23362336

23372337
/**
23382338
* The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
@@ -2823,7 +2823,7 @@ export namespace Quote {
28232823
*
28242824
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
28252825
*/
2826-
discount: Discount;
2826+
discount: _Discount;
28272827
}
28282828

28292829
export interface Tax {
@@ -2918,7 +2918,7 @@ export namespace Quote {
29182918
*
29192919
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
29202920
*/
2921-
discount: Discount;
2921+
discount: _Discount;
29222922
}
29232923

29242924
export interface Tax {
@@ -3462,7 +3462,7 @@ export namespace Quote {
34623462
*
34633463
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
34643464
*/
3465-
discount: Discount;
3465+
discount: _Discount;
34663466
}
34673467

34683468
export interface Tax {

src/resources/SubscriptionSchedules.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// File generated from our OpenAPI spec
22

33
import {StripeResource} from '../StripeResource.js';
4-
import {Discount} from './Discounts.js';
4+
import {Discount as _Discount} from './Discounts.js';
55
import {Application, DeletedApplication} from './Applications.js';
66
import {Customer, DeletedCustomer} from './Customers.js';
77
import {Subscription} from './Subscriptions.js';
@@ -775,7 +775,7 @@ export namespace SubscriptionSchedule {
775775
/**
776776
* ID of an existing discount on the object (or one of its ancestors) to reuse.
777777
*/
778-
discount: string | Discount | null;
778+
discount: string | _Discount | null;
779779

780780
/**
781781
* Details to determine how long the discount should be applied for.
@@ -895,7 +895,7 @@ export namespace SubscriptionSchedule {
895895
/**
896896
* ID of an existing discount on the object (or one of its ancestors) to reuse.
897897
*/
898-
discount: string | Discount | null;
898+
discount: string | _Discount | null;
899899

900900
/**
901901
* Details to determine how long the discount should be applied for.
@@ -1033,7 +1033,7 @@ export namespace SubscriptionSchedule {
10331033
/**
10341034
* ID of an existing discount on the object (or one of its ancestors) to reuse.
10351035
*/
1036-
discount: string | Discount | null;
1036+
discount: string | _Discount | null;
10371037

10381038
/**
10391039
* Details to determine how long the discount should be applied for.

0 commit comments

Comments
 (0)