stripe 18.1.1 → 18.2.0

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 (99) hide show
  1. package/CHANGELOG.md +66 -32
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/Invoices.js +4 -0
  6. package/cjs/resources/Terminal/Readers.js +4 -0
  7. package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
  8. package/cjs/stripe.core.js +1 -1
  9. package/esm/apiVersion.js +1 -1
  10. package/esm/resources/Invoices.js +4 -0
  11. package/esm/resources/Terminal/Readers.js +4 -0
  12. package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
  13. package/esm/stripe.core.js +1 -1
  14. package/package.json +1 -1
  15. package/types/AccountSessions.d.ts +65 -0
  16. package/types/AccountSessionsResource.d.ts +77 -0
  17. package/types/Accounts.d.ts +22 -15
  18. package/types/AccountsResource.d.ts +79 -55
  19. package/types/Balance.d.ts +83 -1
  20. package/types/BalanceResource.d.ts +1 -1
  21. package/types/BalanceTransactions.d.ts +10 -0
  22. package/types/BankAccounts.d.ts +3 -3
  23. package/types/Billing/Alerts.d.ts +1 -1
  24. package/types/Billing/AlertsResource.d.ts +2 -2
  25. package/types/BillingPortal/Sessions.d.ts +1 -1
  26. package/types/Capabilities.d.ts +1 -1
  27. package/types/Cards.d.ts +2 -2
  28. package/types/Charges.d.ts +20 -0
  29. package/types/ChargesResource.d.ts +4 -4
  30. package/types/Checkout/Sessions.d.ts +120 -105
  31. package/types/Checkout/SessionsResource.d.ts +117 -108
  32. package/types/ConfirmationTokens.d.ts +4 -4
  33. package/types/CountrySpecs.d.ts +1 -1
  34. package/types/CreditNotes.d.ts +13 -3
  35. package/types/CreditNotesResource.d.ts +7 -8
  36. package/types/CustomerSessions.d.ts +3 -3
  37. package/types/CustomersResource.d.ts +7 -7
  38. package/types/Disputes.d.ts +1 -1
  39. package/types/DisputesResource.d.ts +1 -1
  40. package/types/EventTypes.d.ts +17 -0
  41. package/types/Events.d.ts +4 -0
  42. package/types/Files.d.ts +1 -1
  43. package/types/FilesResource.d.ts +1 -1
  44. package/types/Identity/VerificationReports.d.ts +17 -0
  45. package/types/Identity/VerificationSessions.d.ts +19 -2
  46. package/types/Identity/VerificationSessionsResource.d.ts +5 -5
  47. package/types/InvoiceItems.d.ts +1 -1
  48. package/types/InvoiceLineItems.d.ts +1 -1
  49. package/types/InvoicePayments.d.ts +9 -2
  50. package/types/Invoices.d.ts +7 -6
  51. package/types/InvoicesResource.d.ts +88 -11
  52. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  53. package/types/Issuing/CardsResource.d.ts +3 -0
  54. package/types/Issuing/DisputesResource.d.ts +2 -2
  55. package/types/LineItems.d.ts +2 -2
  56. package/types/PaymentIntents.d.ts +143 -128
  57. package/types/PaymentIntentsResource.d.ts +492 -441
  58. package/types/PaymentMethodConfigurations.d.ts +180 -0
  59. package/types/PaymentMethodConfigurationsResource.d.ts +254 -4
  60. package/types/PaymentMethodDomainsResource.d.ts +1 -1
  61. package/types/PaymentMethods.d.ts +4 -4
  62. package/types/PaymentMethodsResource.d.ts +8 -8
  63. package/types/Payouts.d.ts +2 -2
  64. package/types/PayoutsResource.d.ts +2 -2
  65. package/types/Persons.d.ts +10 -10
  66. package/types/PlansResource.d.ts +1 -1
  67. package/types/PricesResource.d.ts +2 -2
  68. package/types/ProductsResource.d.ts +1 -1
  69. package/types/PromotionCodesResource.d.ts +1 -1
  70. package/types/Quotes.d.ts +6 -6
  71. package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
  72. package/types/Refunds.d.ts +6 -1
  73. package/types/Reviews.d.ts +1 -1
  74. package/types/SetupAttempts.d.ts +1 -0
  75. package/types/SetupIntents.d.ts +2 -1
  76. package/types/SetupIntentsResource.d.ts +3 -3
  77. package/types/SourcesResource.d.ts +1 -1
  78. package/types/SubscriptionItems.d.ts +14 -0
  79. package/types/SubscriptionItemsResource.d.ts +28 -0
  80. package/types/SubscriptionSchedules.d.ts +47 -1
  81. package/types/SubscriptionSchedulesResource.d.ts +99 -3
  82. package/types/Subscriptions.d.ts +19 -2
  83. package/types/SubscriptionsResource.d.ts +76 -14
  84. package/types/Tax/CalculationLineItems.d.ts +5 -0
  85. package/types/Tax/CalculationsResource.d.ts +5 -0
  86. package/types/Tax/RegistrationsResource.d.ts +1 -1
  87. package/types/TaxRates.d.ts +2 -2
  88. package/types/Terminal/LocationsResource.d.ts +1 -1
  89. package/types/Terminal/Readers.d.ts +219 -1
  90. package/types/Terminal/ReadersResource.d.ts +144 -0
  91. package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
  92. package/types/Tokens.d.ts +3 -3
  93. package/types/TokensResource.d.ts +8 -8
  94. package/types/TransferReversals.d.ts +1 -1
  95. package/types/TransfersResource.d.ts +2 -2
  96. package/types/Treasury/ReceivedCredits.d.ts +2 -2
  97. package/types/WebhookEndpointsResource.d.ts +4 -1
  98. package/types/lib.d.ts +1 -1
  99. package/types/test/typescriptTest.ts +3 -3
@@ -9,7 +9,7 @@
9
9
  import Stripe from 'stripe';
10
10
 
11
11
  let stripe = new Stripe('sk_test_123', {
12
- apiVersion: '2025-04-30.basil',
12
+ apiVersion: '2025-05-28.basil',
13
13
  });
14
14
 
15
15
  stripe = new Stripe('sk_test_123');
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
26
26
 
27
27
  // Check config object.
28
28
  stripe = new Stripe('sk_test_123', {
29
- apiVersion: '2025-04-30.basil',
29
+ apiVersion: '2025-05-28.basil',
30
30
  typescript: true,
31
31
  maxNetworkRetries: 1,
32
32
  timeout: 1000,
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
44
44
  description: 'test',
45
45
  };
46
46
  const opts: Stripe.RequestOptions = {
47
- apiVersion: '2025-04-30.basil',
47
+ apiVersion: '2025-05-28.basil',
48
48
  };
49
49
  const customer: Stripe.Customer = await stripe.customers.create(params, opts);
50
50