stripe 22.2.1 → 22.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +18 -11
  3. package/VERSION +1 -1
  4. package/cjs/resources/Apps/index.d.ts +1 -1
  5. package/cjs/resources/Billing/index.d.ts +7 -7
  6. package/cjs/resources/BillingPortal/index.d.ts +2 -2
  7. package/cjs/resources/Checkout/Sessions.d.ts +2 -1
  8. package/cjs/resources/Checkout/index.d.ts +1 -1
  9. package/cjs/resources/Climate/index.d.ts +3 -3
  10. package/cjs/resources/CreditNotes.d.ts +2 -1
  11. package/cjs/resources/Entitlements/index.d.ts +2 -2
  12. package/cjs/resources/FinancialConnections/index.d.ts +3 -3
  13. package/cjs/resources/Forwarding/index.d.ts +1 -1
  14. package/cjs/resources/Identity/index.d.ts +2 -2
  15. package/cjs/resources/Issuing/index.d.ts +8 -8
  16. package/cjs/resources/LineItems.d.ts +2 -1
  17. package/cjs/resources/Quotes.d.ts +5 -5
  18. package/cjs/resources/Radar/index.d.ts +6 -4
  19. package/cjs/resources/Reporting/index.d.ts +2 -2
  20. package/cjs/resources/Reserve/index.js +1 -2
  21. package/cjs/resources/Reserve/index.js.map +1 -1
  22. package/cjs/resources/Sigma/index.d.ts +1 -1
  23. package/cjs/resources/SubscriptionSchedules.d.ts +4 -3
  24. package/cjs/resources/Tax/index.d.ts +5 -5
  25. package/cjs/resources/Terminal/index.d.ts +8 -5
  26. package/cjs/resources/TestHelpers/index.d.ts +2 -1
  27. package/cjs/resources/Treasury/index.d.ts +10 -10
  28. package/cjs/resources/V2/Billing/index.d.ts +3 -3
  29. package/cjs/resources/V2/Core/index.d.ts +5 -5
  30. package/cjs/stripe.cjs.node.d.ts +2513 -1
  31. package/cjs/stripe.cjs.node.js +1 -4
  32. package/cjs/stripe.cjs.node.js.map +1 -1
  33. package/cjs/stripe.core.d.ts +44 -1
  34. package/cjs/stripe.core.js +2 -1
  35. package/cjs/stripe.core.js.map +1 -1
  36. package/esm/resources/Apps/index.d.ts +1 -1
  37. package/esm/resources/Billing/index.d.ts +7 -7
  38. package/esm/resources/BillingPortal/index.d.ts +2 -2
  39. package/esm/resources/Checkout/Sessions.d.ts +2 -1
  40. package/esm/resources/Checkout/index.d.ts +1 -1
  41. package/esm/resources/Climate/index.d.ts +3 -3
  42. package/esm/resources/CreditNotes.d.ts +2 -1
  43. package/esm/resources/Entitlements/index.d.ts +2 -2
  44. package/esm/resources/FinancialConnections/index.d.ts +3 -3
  45. package/esm/resources/Forwarding/index.d.ts +1 -1
  46. package/esm/resources/Identity/index.d.ts +2 -2
  47. package/esm/resources/Issuing/index.d.ts +8 -8
  48. package/esm/resources/LineItems.d.ts +2 -1
  49. package/esm/resources/Quotes.d.ts +5 -5
  50. package/esm/resources/Radar/index.d.ts +6 -4
  51. package/esm/resources/Reporting/index.d.ts +2 -2
  52. package/esm/resources/Reserve/index.js +1 -2
  53. package/esm/resources/Reserve/index.js.map +1 -1
  54. package/esm/resources/Sigma/index.d.ts +1 -1
  55. package/esm/resources/SubscriptionSchedules.d.ts +4 -3
  56. package/esm/resources/Tax/index.d.ts +5 -5
  57. package/esm/resources/Terminal/index.d.ts +8 -5
  58. package/esm/resources/TestHelpers/index.d.ts +2 -1
  59. package/esm/resources/Treasury/index.d.ts +10 -10
  60. package/esm/resources/V2/Billing/index.d.ts +3 -3
  61. package/esm/resources/V2/Core/index.d.ts +5 -5
  62. package/esm/stripe.core.d.ts +44 -1
  63. package/esm/stripe.core.js +2 -1
  64. package/esm/stripe.core.js.map +1 -1
  65. package/esm/stripe.esm.node.d.ts +44 -1
  66. package/esm/stripe.esm.node.js +2 -3
  67. package/esm/stripe.esm.node.js.map +1 -1
  68. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 22.2.2 - 2026-06-18
4
+ * [#2725](https://github.com/stripe/stripe-node/pull/2725) Fixes CJS type exports for stripe package (reported in [#2683](https://github.com/stripe/stripe-node/issues/2683))
5
+ * [#2758](https://github.com/stripe/stripe-node/pull/2758) Fix `Stripe.ErrorType.StripeError` incorrectly being usable as a runtime class (reported in [#2661](https://github.com/stripe/stripe-node/issues/2661))
6
+ * [#2753](https://github.com/stripe/stripe-node/pull/2753) handle shadowed namespaces (reported in [#2691](https://github.com/stripe/stripe-node/issues/2691))
7
+
3
8
  ## 22.2.1 - 2026-06-12
4
9
  * [#2750](https://github.com/stripe/stripe-node/pull/2750) URI Encode path params
5
10
  * [#2747](https://github.com/stripe/stripe-node/pull/2747) Fix V2ListIterator: concurrency guard and empty page handling
package/README.md CHANGED
@@ -51,20 +51,19 @@ console.log(customer.id);
51
51
  ```
52
52
 
53
53
  Or using CJS:
54
+
54
55
  ```js
55
56
  const Stripe = require('stripe');
56
57
  const stripeClient = Stripe('sk_test_...');
57
58
 
58
- stripeClient.customers.create({
59
- email: 'customer@example.com',
60
- })
61
- .then(customer => console.log(customer.id))
62
- .catch(error => console.error(error));
59
+ stripeClient.customers
60
+ .create({
61
+ email: 'customer@example.com',
62
+ })
63
+ .then((customer) => console.log(customer.id))
64
+ .catch((error) => console.error(error));
63
65
  ```
64
66
 
65
-
66
-
67
-
68
67
  > [!WARNING]
69
68
  > If you're using `v17.x.x` or later and getting an error about a missing API key despite being sure it's available, it's likely you're importing the file that instantiates `Stripe` while the key isn't present (for instance, during a build step).
70
69
  > If that's the case, consider instantiating the client lazily:
@@ -424,7 +423,11 @@ const header = stripeClient.webhooks.generateTestHeaderString({
424
423
  secret,
425
424
  });
426
425
 
427
- const event = stripeClient.webhooks.constructEvent(payloadString, header, secret);
426
+ const event = stripeClient.webhooks.constructEvent(
427
+ payloadString,
428
+ header,
429
+ secret
430
+ );
428
431
 
429
432
  // Do something with mocked signed event
430
433
  expect(event.id).to.equal(payload.id);
@@ -441,8 +444,9 @@ See [undocumented params and properties](https://docs.stripe.com/sdks/server-sid
441
444
  If you're writing a plugin that uses the library, we'd appreciate it if you instantiated your stripe client with `appInfo`, eg;
442
445
 
443
446
  With ES modules or TypeScript:
447
+
444
448
  ```js
445
- import Stripe from "stripe";
449
+ import Stripe from 'stripe';
446
450
  const stripeClient = new Stripe(apiKey, {
447
451
  appInfo: {
448
452
  name: 'MyAwesomePlugin',
@@ -453,6 +457,7 @@ const stripeClient = new Stripe(apiKey, {
453
457
  ```
454
458
 
455
459
  Or using CJS:
460
+
456
461
  ```js
457
462
  const Stripe = require('stripe');
458
463
  const stripeClient = Stripe('sk_test_...', {
@@ -464,7 +469,6 @@ const stripeClient = Stripe('sk_test_...', {
464
469
  });
465
470
  ```
466
471
 
467
-
468
472
  This information is passed along when the library makes calls to the Stripe API.
469
473
 
470
474
  ### Auto-pagination
@@ -637,6 +641,9 @@ New features and bug fixes are released on the latest major version of the `stri
637
641
 
638
642
  ## Development
639
643
 
644
+ > [!WARNING]
645
+ > External contributions to this repo from first-time contributors are currently on hiatus. If you'd like to see a change made to the package, please open an issue.(
646
+
640
647
  [Contribution guidelines for this project](CONTRIBUTING.md)
641
648
 
642
649
  The tests depend on [stripe-mock][stripe-mock], so make sure to fetch and
package/VERSION CHANGED
@@ -1 +1 @@
1
- 22.2.1
1
+ 22.2.2
@@ -11,5 +11,5 @@ export declare namespace Apps {
11
11
  export import SecretCreateParams = AppsNamespace0.SecretCreateParams;
12
12
  export import SecretFindParams = AppsNamespace0.SecretFindParams;
13
13
  export import SecretDeleteWhereParams = AppsNamespace0.SecretDeleteWhereParams;
14
- export { Secret };
14
+ export { Secret, SecretResource };
15
15
  }
@@ -35,19 +35,19 @@ export declare namespace Billing {
35
35
  export import AlertActivateParams = BillingNamespace0.AlertActivateParams;
36
36
  export import AlertArchiveParams = BillingNamespace0.AlertArchiveParams;
37
37
  export import AlertDeactivateParams = BillingNamespace0.AlertDeactivateParams;
38
- export { Alert };
38
+ export { Alert, AlertResource };
39
39
  export import CreditBalanceSummaryRetrieveParams = BillingNamespace1.CreditBalanceSummaryRetrieveParams;
40
- export { CreditBalanceSummary };
40
+ export { CreditBalanceSummary, CreditBalanceSummaryResource };
41
41
  export import CreditBalanceTransactionListParams = BillingNamespace2.CreditBalanceTransactionListParams;
42
42
  export import CreditBalanceTransactionRetrieveParams = BillingNamespace2.CreditBalanceTransactionRetrieveParams;
43
- export { CreditBalanceTransaction };
43
+ export { CreditBalanceTransaction, CreditBalanceTransactionResource };
44
44
  export import CreditGrantListParams = BillingNamespace3.CreditGrantListParams;
45
45
  export import CreditGrantCreateParams = BillingNamespace3.CreditGrantCreateParams;
46
46
  export import CreditGrantRetrieveParams = BillingNamespace3.CreditGrantRetrieveParams;
47
47
  export import CreditGrantUpdateParams = BillingNamespace3.CreditGrantUpdateParams;
48
48
  export import CreditGrantExpireParams = BillingNamespace3.CreditGrantExpireParams;
49
49
  export import CreditGrantVoidGrantParams = BillingNamespace3.CreditGrantVoidGrantParams;
50
- export { CreditGrant };
50
+ export { CreditGrant, CreditGrantResource };
51
51
  export import MeterListParams = BillingNamespace4.MeterListParams;
52
52
  export import MeterCreateParams = BillingNamespace4.MeterCreateParams;
53
53
  export import MeterRetrieveParams = BillingNamespace4.MeterRetrieveParams;
@@ -55,11 +55,11 @@ export declare namespace Billing {
55
55
  export import MeterDeactivateParams = BillingNamespace4.MeterDeactivateParams;
56
56
  export import MeterReactivateParams = BillingNamespace4.MeterReactivateParams;
57
57
  export import MeterListEventSummariesParams = BillingNamespace4.MeterListEventSummariesParams;
58
- export { Meter };
58
+ export { Meter, MeterResource };
59
59
  export import MeterEventCreateParams = BillingNamespace5.MeterEventCreateParams;
60
- export { MeterEvent };
60
+ export { MeterEvent, MeterEventResource };
61
61
  export import MeterEventAdjustmentCreateParams = BillingNamespace6.MeterEventAdjustmentCreateParams;
62
- export { MeterEventAdjustment };
62
+ export { MeterEventAdjustment, MeterEventAdjustmentResource };
63
63
  export { AlertTriggered };
64
64
  export { MeterEventSummary };
65
65
  }
@@ -14,7 +14,7 @@ export declare namespace BillingPortal {
14
14
  export import ConfigurationCreateParams = BillingPortalNamespace0.ConfigurationCreateParams;
15
15
  export import ConfigurationRetrieveParams = BillingPortalNamespace0.ConfigurationRetrieveParams;
16
16
  export import ConfigurationUpdateParams = BillingPortalNamespace0.ConfigurationUpdateParams;
17
- export { Configuration };
17
+ export { Configuration, ConfigurationResource };
18
18
  export import SessionCreateParams = BillingPortalNamespace1.SessionCreateParams;
19
- export { Session };
19
+ export { Session, SessionResource };
20
20
  }
@@ -1,5 +1,6 @@
1
1
  import { StripeResource } from '../../StripeResource.js';
2
2
  import { LineItem } from './../LineItems.js';
3
+ import { Discount as _Discount } from './../Discounts.js';
3
4
  import { Subscription } from './../Subscriptions.js';
4
5
  import { Customer, DeletedCustomer } from './../Customers.js';
5
6
  import { Invoice } from './../Invoices.js';
@@ -2010,7 +2011,7 @@ export declare namespace Checkout {
2010
2011
  *
2011
2012
  * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
2012
2013
  */
2013
- discount: Discount;
2014
+ discount: _Discount;
2014
2015
  }
2015
2016
  interface Tax {
2016
2017
  /**
@@ -13,5 +13,5 @@ export declare namespace Checkout {
13
13
  export import SessionUpdateParams = CheckoutNamespace0.SessionUpdateParams;
14
14
  export import SessionExpireParams = CheckoutNamespace0.SessionExpireParams;
15
15
  export import SessionListLineItemsParams = CheckoutNamespace0.SessionListLineItemsParams;
16
- export { Session };
16
+ export { Session, SessionResource };
17
17
  }
@@ -18,11 +18,11 @@ export declare namespace Climate {
18
18
  export import OrderRetrieveParams = ClimateNamespace0.OrderRetrieveParams;
19
19
  export import OrderUpdateParams = ClimateNamespace0.OrderUpdateParams;
20
20
  export import OrderCancelParams = ClimateNamespace0.OrderCancelParams;
21
- export { Order };
21
+ export { Order, OrderResource };
22
22
  export import ProductListParams = ClimateNamespace1.ProductListParams;
23
23
  export import ProductRetrieveParams = ClimateNamespace1.ProductRetrieveParams;
24
- export { Product };
24
+ export { Product, ProductResource };
25
25
  export import SupplierListParams = ClimateNamespace2.SupplierListParams;
26
26
  export import SupplierRetrieveParams = ClimateNamespace2.SupplierRetrieveParams;
27
- export { Supplier };
27
+ export { Supplier, SupplierResource };
28
28
  }
@@ -1,5 +1,6 @@
1
1
  import { StripeResource } from '../StripeResource.js';
2
2
  import { CreditNoteLineItem } from './CreditNoteLineItems.js';
3
+ import { Refund as _Refund } from './Refunds.js';
3
4
  import { Customer, DeletedCustomer } from './Customers.js';
4
5
  import { CustomerBalanceTransaction } from './CustomerBalanceTransactions.js';
5
6
  import { Invoice } from './Invoices.js';
@@ -235,7 +236,7 @@ export declare namespace CreditNote {
235
236
  /**
236
237
  * ID of the refund.
237
238
  */
238
- refund: string | Refund;
239
+ refund: string | _Refund;
239
240
  /**
240
241
  * Type of the refund, one of `refund` or `payment_record_refund`.
241
242
  */
@@ -14,11 +14,11 @@ export declare class Entitlements {
14
14
  export declare namespace Entitlements {
15
15
  export import ActiveEntitlementListParams = EntitlementsNamespace0.ActiveEntitlementListParams;
16
16
  export import ActiveEntitlementRetrieveParams = EntitlementsNamespace0.ActiveEntitlementRetrieveParams;
17
- export { ActiveEntitlement };
17
+ export { ActiveEntitlement, ActiveEntitlementResource };
18
18
  export import FeatureListParams = EntitlementsNamespace1.FeatureListParams;
19
19
  export import FeatureCreateParams = EntitlementsNamespace1.FeatureCreateParams;
20
20
  export import FeatureRetrieveParams = EntitlementsNamespace1.FeatureRetrieveParams;
21
21
  export import FeatureUpdateParams = EntitlementsNamespace1.FeatureUpdateParams;
22
- export { Feature };
22
+ export { Feature, FeatureResource };
23
23
  export { ActiveEntitlementSummary };
24
24
  }
@@ -24,13 +24,13 @@ export declare namespace FinancialConnections {
24
24
  export import AccountSubscribeParams = FinancialConnectionsNamespace0.AccountSubscribeParams;
25
25
  export import AccountUnsubscribeParams = FinancialConnectionsNamespace0.AccountUnsubscribeParams;
26
26
  export import AccountListOwnersParams = FinancialConnectionsNamespace0.AccountListOwnersParams;
27
- export { Account };
27
+ export { Account, AccountResource };
28
28
  export import SessionRetrieveParams = FinancialConnectionsNamespace1.SessionRetrieveParams;
29
29
  export import SessionCreateParams = FinancialConnectionsNamespace1.SessionCreateParams;
30
- export { Session };
30
+ export { Session, SessionResource };
31
31
  export import TransactionListParams = FinancialConnectionsNamespace2.TransactionListParams;
32
32
  export import TransactionRetrieveParams = FinancialConnectionsNamespace2.TransactionRetrieveParams;
33
- export { Transaction };
33
+ export { Transaction, TransactionResource };
34
34
  export { AccountOwner };
35
35
  export { AccountOwnership };
36
36
  }
@@ -10,5 +10,5 @@ export declare namespace Forwarding {
10
10
  export import RequestListParams = ForwardingNamespace0.RequestListParams;
11
11
  export import RequestCreateParams = ForwardingNamespace0.RequestCreateParams;
12
12
  export import RequestRetrieveParams = ForwardingNamespace0.RequestRetrieveParams;
13
- export { Request };
13
+ export { Request, RequestResource };
14
14
  }
@@ -12,12 +12,12 @@ export declare class Identity {
12
12
  export declare namespace Identity {
13
13
  export import VerificationReportListParams = IdentityNamespace0.VerificationReportListParams;
14
14
  export import VerificationReportRetrieveParams = IdentityNamespace0.VerificationReportRetrieveParams;
15
- export { VerificationReport };
15
+ export { VerificationReport, VerificationReportResource };
16
16
  export import VerificationSessionListParams = IdentityNamespace1.VerificationSessionListParams;
17
17
  export import VerificationSessionCreateParams = IdentityNamespace1.VerificationSessionCreateParams;
18
18
  export import VerificationSessionRetrieveParams = IdentityNamespace1.VerificationSessionRetrieveParams;
19
19
  export import VerificationSessionUpdateParams = IdentityNamespace1.VerificationSessionUpdateParams;
20
20
  export import VerificationSessionCancelParams = IdentityNamespace1.VerificationSessionCancelParams;
21
21
  export import VerificationSessionRedactParams = IdentityNamespace1.VerificationSessionRedactParams;
22
- export { VerificationSession };
22
+ export { VerificationSession, VerificationSessionResource };
23
23
  }
@@ -33,37 +33,37 @@ export declare namespace Issuing {
33
33
  export import AuthorizationUpdateParams = IssuingNamespace0.AuthorizationUpdateParams;
34
34
  export import AuthorizationApproveParams = IssuingNamespace0.AuthorizationApproveParams;
35
35
  export import AuthorizationDeclineParams = IssuingNamespace0.AuthorizationDeclineParams;
36
- export { Authorization };
36
+ export { Authorization, AuthorizationResource };
37
37
  export import CardListParams = IssuingNamespace1.CardListParams;
38
38
  export import CardCreateParams = IssuingNamespace1.CardCreateParams;
39
39
  export import CardRetrieveParams = IssuingNamespace1.CardRetrieveParams;
40
40
  export import CardUpdateParams = IssuingNamespace1.CardUpdateParams;
41
- export { Card };
41
+ export { Card, CardResource };
42
42
  export import CardholderListParams = IssuingNamespace2.CardholderListParams;
43
43
  export import CardholderCreateParams = IssuingNamespace2.CardholderCreateParams;
44
44
  export import CardholderRetrieveParams = IssuingNamespace2.CardholderRetrieveParams;
45
45
  export import CardholderUpdateParams = IssuingNamespace2.CardholderUpdateParams;
46
- export { Cardholder };
46
+ export { Cardholder, CardholderResource };
47
47
  export import DisputeListParams = IssuingNamespace3.DisputeListParams;
48
48
  export import DisputeCreateParams = IssuingNamespace3.DisputeCreateParams;
49
49
  export import DisputeRetrieveParams = IssuingNamespace3.DisputeRetrieveParams;
50
50
  export import DisputeUpdateParams = IssuingNamespace3.DisputeUpdateParams;
51
51
  export import DisputeSubmitParams = IssuingNamespace3.DisputeSubmitParams;
52
- export { Dispute };
52
+ export { Dispute, DisputeResource };
53
53
  export import PersonalizationDesignListParams = IssuingNamespace4.PersonalizationDesignListParams;
54
54
  export import PersonalizationDesignCreateParams = IssuingNamespace4.PersonalizationDesignCreateParams;
55
55
  export import PersonalizationDesignRetrieveParams = IssuingNamespace4.PersonalizationDesignRetrieveParams;
56
56
  export import PersonalizationDesignUpdateParams = IssuingNamespace4.PersonalizationDesignUpdateParams;
57
- export { PersonalizationDesign };
57
+ export { PersonalizationDesign, PersonalizationDesignResource };
58
58
  export import PhysicalBundleListParams = IssuingNamespace5.PhysicalBundleListParams;
59
59
  export import PhysicalBundleRetrieveParams = IssuingNamespace5.PhysicalBundleRetrieveParams;
60
- export { PhysicalBundle };
60
+ export { PhysicalBundle, PhysicalBundleResource };
61
61
  export import TokenListParams = IssuingNamespace6.TokenListParams;
62
62
  export import TokenRetrieveParams = IssuingNamespace6.TokenRetrieveParams;
63
63
  export import TokenUpdateParams = IssuingNamespace6.TokenUpdateParams;
64
- export { Token };
64
+ export { Token, TokenResource };
65
65
  export import TransactionListParams = IssuingNamespace7.TransactionListParams;
66
66
  export import TransactionRetrieveParams = IssuingNamespace7.TransactionRetrieveParams;
67
67
  export import TransactionUpdateParams = IssuingNamespace7.TransactionUpdateParams;
68
- export { Transaction };
68
+ export { Transaction, TransactionResource };
69
69
  }
@@ -1,3 +1,4 @@
1
+ import { Discount as _Discount } from './Discounts.js';
1
2
  import { Price } from './Prices.js';
2
3
  import { TaxRate } from './TaxRates.js';
3
4
  import { Metadata } from '../shared.js';
@@ -73,7 +74,7 @@ export declare namespace LineItem {
73
74
  *
74
75
  * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
75
76
  */
76
- discount: Discount;
77
+ discount: _Discount;
77
78
  }
78
79
  interface Tax {
79
80
  /**
@@ -1,6 +1,6 @@
1
1
  import { StripeResource } from '../StripeResource.js';
2
2
  import { LineItem } from './LineItems.js';
3
- import { Discount } from './Discounts.js';
3
+ import { Discount as _Discount } from './Discounts.js';
4
4
  import { Application, DeletedApplication } from './Applications.js';
5
5
  import { Customer, DeletedCustomer } from './Customers.js';
6
6
  import { TaxRate } from './TaxRates.js';
@@ -115,7 +115,7 @@ export interface Quote {
115
115
  /**
116
116
  * The discounts applied to this quote.
117
117
  */
118
- discounts: Array<string | Discount>;
118
+ discounts: Array<string | _Discount>;
119
119
  /**
120
120
  * The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.
121
121
  */
@@ -382,7 +382,7 @@ export declare namespace Quote {
382
382
  *
383
383
  * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
384
384
  */
385
- discount: Discount;
385
+ discount: _Discount;
386
386
  }
387
387
  interface Tax {
388
388
  /**
@@ -449,7 +449,7 @@ export declare namespace Quote {
449
449
  *
450
450
  * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
451
451
  */
452
- discount: Discount;
452
+ discount: _Discount;
453
453
  }
454
454
  interface Tax {
455
455
  /**
@@ -537,7 +537,7 @@ export declare namespace Quote {
537
537
  *
538
538
  * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
539
539
  */
540
- discount: Discount;
540
+ discount: _Discount;
541
541
  }
542
542
  interface Tax {
543
543
  /**
@@ -18,18 +18,20 @@ export declare class Radar {
18
18
  export declare namespace Radar {
19
19
  export import EarlyFraudWarningListParams = RadarNamespace0.EarlyFraudWarningListParams;
20
20
  export import EarlyFraudWarningRetrieveParams = RadarNamespace0.EarlyFraudWarningRetrieveParams;
21
- export { EarlyFraudWarning };
21
+ export { EarlyFraudWarning, EarlyFraudWarningResource };
22
22
  export import PaymentEvaluationCreateParams = RadarNamespace1.PaymentEvaluationCreateParams;
23
- export { PaymentEvaluation };
23
+ export { PaymentEvaluation, PaymentEvaluationResource };
24
24
  export import ValueListDeleteParams = RadarNamespace2.ValueListDeleteParams;
25
25
  export import ValueListRetrieveParams = RadarNamespace2.ValueListRetrieveParams;
26
26
  export import ValueListUpdateParams = RadarNamespace2.ValueListUpdateParams;
27
27
  export import ValueListListParams = RadarNamespace2.ValueListListParams;
28
28
  export import ValueListCreateParams = RadarNamespace2.ValueListCreateParams;
29
- export { ValueList };
29
+ export import DeletedValueList = RadarNamespace2.DeletedValueList;
30
+ export { ValueList, ValueListResource };
30
31
  export import ValueListItemDeleteParams = RadarNamespace3.ValueListItemDeleteParams;
31
32
  export import ValueListItemRetrieveParams = RadarNamespace3.ValueListItemRetrieveParams;
32
33
  export import ValueListItemListParams = RadarNamespace3.ValueListItemListParams;
33
34
  export import ValueListItemCreateParams = RadarNamespace3.ValueListItemCreateParams;
34
- export { ValueListItem };
35
+ export import DeletedValueListItem = RadarNamespace3.DeletedValueListItem;
36
+ export { ValueListItem, ValueListItemResource };
35
37
  }
@@ -13,8 +13,8 @@ export declare namespace Reporting {
13
13
  export import ReportRunListParams = ReportingNamespace0.ReportRunListParams;
14
14
  export import ReportRunCreateParams = ReportingNamespace0.ReportRunCreateParams;
15
15
  export import ReportRunRetrieveParams = ReportingNamespace0.ReportRunRetrieveParams;
16
- export { ReportRun };
16
+ export { ReportRun, ReportRunResource };
17
17
  export import ReportTypeListParams = ReportingNamespace1.ReportTypeListParams;
18
18
  export import ReportTypeRetrieveParams = ReportingNamespace1.ReportTypeRetrieveParams;
19
- export { ReportType };
19
+ export { ReportType, ReportTypeResource };
20
20
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
- // eslint-disable-next-line no-warning-comments
3
- // TODO(prathmesh): https://go/j/DEVSDK-3050 Generate this class with codegen
2
+ // File generated from our OpenAPI spec
4
3
  Object.defineProperty(exports, "__esModule", { value: true });
5
4
  exports.Reserve = void 0;
6
5
  class Reserve {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Reserve/index.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,6EAA6E;;;AAU7E,MAAa,OAAO;CAAG;AAAvB,0BAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Reserve/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAUvC,MAAa,OAAO;CAAG;AAAvB,0BAAuB"}
@@ -9,5 +9,5 @@ export declare class Sigma {
9
9
  export declare namespace Sigma {
10
10
  export import ScheduledQueryRunListParams = SigmaNamespace0.ScheduledQueryRunListParams;
11
11
  export import ScheduledQueryRunRetrieveParams = SigmaNamespace0.ScheduledQueryRunRetrieveParams;
12
- export { ScheduledQueryRun };
12
+ export { ScheduledQueryRun, ScheduledQueryRunResource };
13
13
  }
@@ -1,4 +1,5 @@
1
1
  import { StripeResource } from '../StripeResource.js';
2
+ import { Discount as _Discount } from './Discounts.js';
2
3
  import { Application, DeletedApplication } from './Applications.js';
3
4
  import { Customer, DeletedCustomer } from './Customers.js';
4
5
  import { Subscription } from './Subscriptions.js';
@@ -413,7 +414,7 @@ export declare namespace SubscriptionSchedule {
413
414
  /**
414
415
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
415
416
  */
416
- discount: string | Discount | null;
417
+ discount: string | _Discount | null;
417
418
  /**
418
419
  * ID of the promotion code to create a new discount for.
419
420
  */
@@ -483,7 +484,7 @@ export declare namespace SubscriptionSchedule {
483
484
  /**
484
485
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
485
486
  */
486
- discount: string | Discount | null;
487
+ discount: string | _Discount | null;
487
488
  /**
488
489
  * ID of the promotion code to create a new discount for.
489
490
  */
@@ -567,7 +568,7 @@ export declare namespace SubscriptionSchedule {
567
568
  /**
568
569
  * ID of an existing discount on the object (or one of its ancestors) to reuse.
569
570
  */
570
- discount: string | Discount | null;
571
+ discount: string | _Discount | null;
571
572
  /**
572
573
  * ID of the promotion code to create a new discount for.
573
574
  */
@@ -24,24 +24,24 @@ export declare class Tax {
24
24
  }
25
25
  export declare namespace Tax {
26
26
  export import AssociationFindParams = TaxNamespace0.AssociationFindParams;
27
- export { Association };
27
+ export { Association, AssociationResource };
28
28
  export import CalculationRetrieveParams = TaxNamespace1.CalculationRetrieveParams;
29
29
  export import CalculationCreateParams = TaxNamespace1.CalculationCreateParams;
30
30
  export import CalculationListLineItemsParams = TaxNamespace1.CalculationListLineItemsParams;
31
- export { Calculation };
31
+ export { Calculation, CalculationResource };
32
32
  export import RegistrationListParams = TaxNamespace2.RegistrationListParams;
33
33
  export import RegistrationCreateParams = TaxNamespace2.RegistrationCreateParams;
34
34
  export import RegistrationRetrieveParams = TaxNamespace2.RegistrationRetrieveParams;
35
35
  export import RegistrationUpdateParams = TaxNamespace2.RegistrationUpdateParams;
36
- export { Registration };
36
+ export { Registration, RegistrationResource };
37
37
  export import SettingsRetrieveParams = TaxNamespace3.SettingsRetrieveParams;
38
38
  export import SettingsUpdateParams = TaxNamespace3.SettingsUpdateParams;
39
- export { Settings };
39
+ export { Settings, SettingResource };
40
40
  export import TransactionRetrieveParams = TaxNamespace4.TransactionRetrieveParams;
41
41
  export import TransactionCreateFromCalculationParams = TaxNamespace4.TransactionCreateFromCalculationParams;
42
42
  export import TransactionCreateReversalParams = TaxNamespace4.TransactionCreateReversalParams;
43
43
  export import TransactionListLineItemsParams = TaxNamespace4.TransactionListLineItemsParams;
44
- export { Transaction };
44
+ export { Transaction, TransactionResource };
45
45
  export { CalculationLineItem };
46
46
  export { TransactionLineItem };
47
47
  }
@@ -24,17 +24,19 @@ export declare namespace Terminal {
24
24
  export import ConfigurationUpdateParams = TerminalNamespace0.ConfigurationUpdateParams;
25
25
  export import ConfigurationListParams = TerminalNamespace0.ConfigurationListParams;
26
26
  export import ConfigurationCreateParams = TerminalNamespace0.ConfigurationCreateParams;
27
- export { Configuration };
27
+ export import DeletedConfiguration = TerminalNamespace0.DeletedConfiguration;
28
+ export { Configuration, ConfigurationResource };
28
29
  export import ConnectionTokenCreateParams = TerminalNamespace1.ConnectionTokenCreateParams;
29
- export { ConnectionToken };
30
+ export { ConnectionToken, ConnectionTokenResource };
30
31
  export import LocationDeleteParams = TerminalNamespace2.LocationDeleteParams;
31
32
  export import LocationRetrieveParams = TerminalNamespace2.LocationRetrieveParams;
32
33
  export import LocationUpdateParams = TerminalNamespace2.LocationUpdateParams;
33
34
  export import LocationListParams = TerminalNamespace2.LocationListParams;
34
35
  export import LocationCreateParams = TerminalNamespace2.LocationCreateParams;
35
- export { Location };
36
+ export import DeletedLocation = TerminalNamespace2.DeletedLocation;
37
+ export { Location, LocationResource };
36
38
  export import OnboardingLinkCreateParams = TerminalNamespace3.OnboardingLinkCreateParams;
37
- export { OnboardingLink };
39
+ export { OnboardingLink, OnboardingLinkResource };
38
40
  export import ReaderDeleteParams = TerminalNamespace4.ReaderDeleteParams;
39
41
  export import ReaderRetrieveParams = TerminalNamespace4.ReaderRetrieveParams;
40
42
  export import ReaderUpdateParams = TerminalNamespace4.ReaderUpdateParams;
@@ -48,5 +50,6 @@ export declare namespace Terminal {
48
50
  export import ReaderProcessSetupIntentParams = TerminalNamespace4.ReaderProcessSetupIntentParams;
49
51
  export import ReaderRefundPaymentParams = TerminalNamespace4.ReaderRefundPaymentParams;
50
52
  export import ReaderSetReaderDisplayParams = TerminalNamespace4.ReaderSetReaderDisplayParams;
51
- export { Reader };
53
+ export import DeletedReader = TerminalNamespace4.DeletedReader;
54
+ export { Reader, ReaderResource };
52
55
  }
@@ -24,7 +24,8 @@ export declare namespace TestHelpers {
24
24
  export import TestClockListParams = TestHelpersNamespace3.TestClockListParams;
25
25
  export import TestClockCreateParams = TestHelpersNamespace3.TestClockCreateParams;
26
26
  export import TestClockAdvanceParams = TestHelpersNamespace3.TestClockAdvanceParams;
27
- export { TestClock };
27
+ export import DeletedTestClock = TestHelpersNamespace3.DeletedTestClock;
28
+ export { TestClock, TestClockResource };
28
29
  export { Issuing };
29
30
  export { Terminal };
30
31
  export { Treasury };
@@ -39,11 +39,11 @@ export declare namespace Treasury {
39
39
  export import CreditReversalListParams = TreasuryNamespace0.CreditReversalListParams;
40
40
  export import CreditReversalCreateParams = TreasuryNamespace0.CreditReversalCreateParams;
41
41
  export import CreditReversalRetrieveParams = TreasuryNamespace0.CreditReversalRetrieveParams;
42
- export { CreditReversal };
42
+ export { CreditReversal, CreditReversalResource };
43
43
  export import DebitReversalListParams = TreasuryNamespace1.DebitReversalListParams;
44
44
  export import DebitReversalCreateParams = TreasuryNamespace1.DebitReversalCreateParams;
45
45
  export import DebitReversalRetrieveParams = TreasuryNamespace1.DebitReversalRetrieveParams;
46
- export { DebitReversal };
46
+ export { DebitReversal, DebitReversalResource };
47
47
  export import FinancialAccountListParams = TreasuryNamespace2.FinancialAccountListParams;
48
48
  export import FinancialAccountCreateParams = TreasuryNamespace2.FinancialAccountCreateParams;
49
49
  export import FinancialAccountRetrieveParams = TreasuryNamespace2.FinancialAccountRetrieveParams;
@@ -51,33 +51,33 @@ export declare namespace Treasury {
51
51
  export import FinancialAccountCloseParams = TreasuryNamespace2.FinancialAccountCloseParams;
52
52
  export import FinancialAccountUpdateFeaturesParams = TreasuryNamespace2.FinancialAccountUpdateFeaturesParams;
53
53
  export import FinancialAccountRetrieveFeaturesParams = TreasuryNamespace2.FinancialAccountRetrieveFeaturesParams;
54
- export { FinancialAccount };
54
+ export { FinancialAccount, FinancialAccountResource };
55
55
  export import InboundTransferListParams = TreasuryNamespace3.InboundTransferListParams;
56
56
  export import InboundTransferCreateParams = TreasuryNamespace3.InboundTransferCreateParams;
57
57
  export import InboundTransferRetrieveParams = TreasuryNamespace3.InboundTransferRetrieveParams;
58
58
  export import InboundTransferCancelParams = TreasuryNamespace3.InboundTransferCancelParams;
59
- export { InboundTransfer };
59
+ export { InboundTransfer, InboundTransferResource };
60
60
  export import OutboundPaymentListParams = TreasuryNamespace4.OutboundPaymentListParams;
61
61
  export import OutboundPaymentCreateParams = TreasuryNamespace4.OutboundPaymentCreateParams;
62
62
  export import OutboundPaymentRetrieveParams = TreasuryNamespace4.OutboundPaymentRetrieveParams;
63
63
  export import OutboundPaymentCancelParams = TreasuryNamespace4.OutboundPaymentCancelParams;
64
- export { OutboundPayment };
64
+ export { OutboundPayment, OutboundPaymentResource };
65
65
  export import OutboundTransferListParams = TreasuryNamespace5.OutboundTransferListParams;
66
66
  export import OutboundTransferCreateParams = TreasuryNamespace5.OutboundTransferCreateParams;
67
67
  export import OutboundTransferRetrieveParams = TreasuryNamespace5.OutboundTransferRetrieveParams;
68
68
  export import OutboundTransferCancelParams = TreasuryNamespace5.OutboundTransferCancelParams;
69
- export { OutboundTransfer };
69
+ export { OutboundTransfer, OutboundTransferResource };
70
70
  export import ReceivedCreditListParams = TreasuryNamespace6.ReceivedCreditListParams;
71
71
  export import ReceivedCreditRetrieveParams = TreasuryNamespace6.ReceivedCreditRetrieveParams;
72
- export { ReceivedCredit };
72
+ export { ReceivedCredit, ReceivedCreditResource };
73
73
  export import ReceivedDebitListParams = TreasuryNamespace7.ReceivedDebitListParams;
74
74
  export import ReceivedDebitRetrieveParams = TreasuryNamespace7.ReceivedDebitRetrieveParams;
75
- export { ReceivedDebit };
75
+ export { ReceivedDebit, ReceivedDebitResource };
76
76
  export import TransactionListParams = TreasuryNamespace8.TransactionListParams;
77
77
  export import TransactionRetrieveParams = TreasuryNamespace8.TransactionRetrieveParams;
78
- export { Transaction };
78
+ export { Transaction, TransactionResource };
79
79
  export import TransactionEntryListParams = TreasuryNamespace9.TransactionEntryListParams;
80
80
  export import TransactionEntryRetrieveParams = TreasuryNamespace9.TransactionEntryRetrieveParams;
81
- export { TransactionEntry };
81
+ export { TransactionEntry, TransactionEntryResource };
82
82
  export { FinancialAccountFeatures };
83
83
  }
@@ -16,9 +16,9 @@ export declare class Billing {
16
16
  }
17
17
  export declare namespace Billing {
18
18
  export import MeterEventCreateParams = V2Namespace0.Billing.MeterEventCreateParams;
19
- export { MeterEvent };
19
+ export { MeterEvent, MeterEventResource };
20
20
  export import MeterEventAdjustmentCreateParams = V2Namespace1.Billing.MeterEventAdjustmentCreateParams;
21
- export { MeterEventAdjustment };
21
+ export { MeterEventAdjustment, MeterEventAdjustmentResource };
22
22
  export import MeterEventSessionCreateParams = V2Namespace2.Billing.MeterEventSessionCreateParams;
23
- export { MeterEventSession };
23
+ export { MeterEventSession, MeterEventSessionResource };
24
24
  }