stripe 18.6.0-beta.1 → 19.0.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 (335) hide show
  1. package/CHANGELOG.md +107 -1364
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +22 -7
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -107
  6. package/cjs/RequestSender.js +15 -6
  7. package/cjs/StripeContext.js +56 -0
  8. package/cjs/apiVersion.js +3 -2
  9. package/cjs/net/FetchHttpClient.js +1 -1
  10. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  11. package/cjs/resources/Mandates.js +0 -5
  12. package/cjs/resources/PaymentIntents.js +0 -13
  13. package/cjs/resources/Quotes.js +0 -32
  14. package/cjs/resources/SubscriptionSchedules.js +0 -4
  15. package/cjs/resources/V2/Core/Events.js +1 -1
  16. package/cjs/resources.js +8 -100
  17. package/cjs/stripe.core.js +24 -3
  18. package/esm/Error.js +0 -93
  19. package/esm/RequestSender.js +15 -6
  20. package/esm/StripeContext.js +52 -0
  21. package/esm/apiVersion.js +2 -1
  22. package/esm/net/FetchHttpClient.js +1 -1
  23. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  24. package/esm/resources/Mandates.js +0 -5
  25. package/esm/resources/PaymentIntents.js +0 -13
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/V2/Core/Events.js +1 -1
  29. package/esm/resources.js +0 -85
  30. package/esm/stripe.core.js +24 -3
  31. package/package.json +4 -4
  32. package/types/AccountLinksResource.d.ts +1 -5
  33. package/types/AccountSessions.d.ts +0 -75
  34. package/types/AccountSessionsResource.d.ts +0 -306
  35. package/types/Accounts.d.ts +5 -207
  36. package/types/AccountsResource.d.ts +4 -528
  37. package/types/BalanceSettings.d.ts +12 -6
  38. package/types/BalanceSettingsResource.d.ts +15 -10
  39. package/types/BankAccounts.d.ts +4 -0
  40. package/types/Billing/AlertTriggereds.d.ts +1 -1
  41. package/types/Billing/AlertsResource.d.ts +1 -1
  42. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  43. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  44. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  45. package/types/Billing/CreditGrants.d.ts +0 -5
  46. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  47. package/types/BillingPortal/Configurations.d.ts +7 -0
  48. package/types/BillingPortal/ConfigurationsResource.d.ts +14 -0
  49. package/types/BillingPortal/Sessions.d.ts +0 -5
  50. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  51. package/types/Capabilities.d.ts +4 -0
  52. package/types/Cards.d.ts +1 -6
  53. package/types/CashBalances.d.ts +0 -5
  54. package/types/Charges.d.ts +1 -169
  55. package/types/ChargesResource.d.ts +0 -1406
  56. package/types/Checkout/Sessions.d.ts +204 -360
  57. package/types/Checkout/SessionsResource.d.ts +346 -521
  58. package/types/ConfirmationTokens.d.ts +0 -120
  59. package/types/Coupons.d.ts +0 -33
  60. package/types/CouponsResource.d.ts +0 -21
  61. package/types/CreditNoteLineItems.d.ts +0 -17
  62. package/types/CreditNotes.d.ts +0 -5
  63. package/types/CreditNotesResource.d.ts +0 -5
  64. package/types/CustomerBalanceTransactions.d.ts +0 -2
  65. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  66. package/types/CustomerSessions.d.ts +0 -5
  67. package/types/CustomerSessionsResource.d.ts +1 -6
  68. package/types/Customers.d.ts +10 -2
  69. package/types/CustomersResource.d.ts +20 -7
  70. package/types/Discounts.d.ts +32 -24
  71. package/types/Disputes.d.ts +6 -29
  72. package/types/Errors.d.ts +0 -79
  73. package/types/EventTypes.d.ts +0 -664
  74. package/types/Events.d.ts +0 -97
  75. package/types/ExchangeRates.d.ts +2 -0
  76. package/types/ExchangeRatesResource.d.ts +6 -0
  77. package/types/FinancialConnections/Accounts.d.ts +1 -36
  78. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  79. package/types/FinancialConnections/Sessions.d.ts +1 -51
  80. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  81. package/types/Identity/VerificationSessions.d.ts +0 -5
  82. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  83. package/types/InvoiceItems.d.ts +27 -9
  84. package/types/InvoiceItemsResource.d.ts +6 -117
  85. package/types/InvoiceLineItems.d.ts +1 -45
  86. package/types/InvoicePayments.d.ts +0 -5
  87. package/types/InvoicePaymentsResource.d.ts +1 -10
  88. package/types/Invoices.d.ts +6 -172
  89. package/types/InvoicesResource.d.ts +54 -1523
  90. package/types/Issuing/CardholdersResource.d.ts +5 -6
  91. package/types/Issuing/Cards.d.ts +5 -0
  92. package/types/Issuing/CardsResource.d.ts +4 -4
  93. package/types/Issuing/Transactions.d.ts +0 -5
  94. package/types/Issuing/TransactionsResource.d.ts +0 -5
  95. package/types/LineItems.d.ts +0 -49
  96. package/types/Mandates.d.ts +1 -135
  97. package/types/MandatesResource.d.ts +0 -31
  98. package/types/PaymentIntents.d.ts +5 -820
  99. package/types/PaymentIntentsResource.d.ts +5643 -11279
  100. package/types/PaymentLinks.d.ts +0 -6
  101. package/types/PaymentLinksResource.d.ts +5 -12
  102. package/types/PaymentMethodConfigurations.d.ts +0 -180
  103. package/types/PaymentMethodConfigurationsResource.d.ts +28 -228
  104. package/types/PaymentMethods.d.ts +0 -125
  105. package/types/PaymentMethodsResource.d.ts +2 -172
  106. package/types/Persons.d.ts +4 -0
  107. package/types/Prices.d.ts +0 -22
  108. package/types/PricesResource.d.ts +0 -22
  109. package/types/PromotionCodes.d.ts +16 -14
  110. package/types/PromotionCodesResource.d.ts +15 -13
  111. package/types/Quotes.d.ts +9 -589
  112. package/types/QuotesResource.d.ts +290 -2619
  113. package/types/Refunds.d.ts +0 -14
  114. package/types/Reviews.d.ts +2 -0
  115. package/types/SetupAttempts.d.ts +3 -51
  116. package/types/SetupIntents.d.ts +4 -210
  117. package/types/SetupIntentsResource.d.ts +3 -913
  118. package/types/Sources.d.ts +1 -30
  119. package/types/SubscriptionItems.d.ts +0 -21
  120. package/types/SubscriptionItemsResource.d.ts +0 -109
  121. package/types/SubscriptionSchedules.d.ts +16 -205
  122. package/types/SubscriptionSchedulesResource.d.ts +21 -1243
  123. package/types/Subscriptions.d.ts +17 -135
  124. package/types/SubscriptionsResource.d.ts +49 -476
  125. package/types/Tax/CalculationsResource.d.ts +5 -5
  126. package/types/Tax/Settings.d.ts +7 -0
  127. package/types/TaxIds.d.ts +0 -10
  128. package/types/TaxIdsResource.d.ts +0 -10
  129. package/types/Terminal/Configurations.d.ts +9 -9
  130. package/types/Terminal/ConfigurationsResource.d.ts +26 -28
  131. package/types/Terminal/Locations.d.ts +95 -0
  132. package/types/Terminal/LocationsResource.d.ts +59 -6
  133. package/types/Terminal/Readers.d.ts +0 -20
  134. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -118
  135. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +79 -0
  136. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  137. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  138. package/types/Transfers.d.ts +0 -5
  139. package/types/TransfersResource.d.ts +0 -5
  140. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  141. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  142. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  143. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  144. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  145. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  146. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  147. package/types/V2/Billing/MeterEventStreamResource.d.ts +1 -1
  148. package/types/V2/Core/EventDestinations.d.ts +166 -0
  149. package/types/V2/Core/EventDestinationsResource.d.ts +14 -14
  150. package/types/V2/Core/EventTypes.d.ts +256 -0
  151. package/types/V2/Core/Events.d.ts +77 -0
  152. package/types/V2/Core/EventsResource.d.ts +4 -4
  153. package/types/V2/DeletedObject.d.ts +22 -0
  154. package/types/V2/EventMisc.d.ts +72 -0
  155. package/types/WebhookEndpointsResource.d.ts +2 -79
  156. package/types/apiVersion.d.ts +4 -0
  157. package/types/index.d.ts +8 -150
  158. package/types/lib.d.ts +7 -15
  159. package/types/test/typescriptTest.ts +48 -3
  160. package/cjs/resources/AccountNotices.js +0 -21
  161. package/cjs/resources/Billing/MeterUsage.js +0 -12
  162. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  163. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  164. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  165. package/cjs/resources/ExternalAccounts.js +0 -23
  166. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  167. package/cjs/resources/FxQuotes.js +0 -15
  168. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  169. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  170. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  171. package/cjs/resources/Margins.js +0 -22
  172. package/cjs/resources/Orders.js +0 -24
  173. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  174. package/cjs/resources/PaymentRecords.js +0 -29
  175. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  176. package/cjs/resources/Tax/Associations.js +0 -9
  177. package/cjs/resources/Tax/Forms.js +0 -20
  178. package/cjs/resources/Terminal/OnboardingLinks.js +0 -12
  179. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  180. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  181. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  182. package/cjs/resources/V2/Core/Accounts.js +0 -25
  183. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  184. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  185. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  186. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  187. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  188. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  189. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  190. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  191. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  192. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  193. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  194. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  195. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  196. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  197. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  198. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  199. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -25
  200. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  201. package/esm/resources/AccountNotices.js +0 -18
  202. package/esm/resources/Billing/MeterUsage.js +0 -9
  203. package/esm/resources/Capital/FinancingOffers.js +0 -18
  204. package/esm/resources/Capital/FinancingSummary.js +0 -9
  205. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  206. package/esm/resources/ExternalAccounts.js +0 -20
  207. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  208. package/esm/resources/FxQuotes.js +0 -12
  209. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  210. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  211. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  212. package/esm/resources/Margins.js +0 -19
  213. package/esm/resources/Orders.js +0 -21
  214. package/esm/resources/PaymentAttemptRecords.js +0 -14
  215. package/esm/resources/PaymentRecords.js +0 -26
  216. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  217. package/esm/resources/Tax/Associations.js +0 -6
  218. package/esm/resources/Tax/Forms.js +0 -17
  219. package/esm/resources/Terminal/OnboardingLinks.js +0 -9
  220. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  221. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  222. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  223. package/esm/resources/V2/Core/Accounts.js +0 -22
  224. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  225. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  226. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  227. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  228. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  229. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  230. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  231. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  232. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  233. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  234. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  235. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  236. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  237. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  238. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  239. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  240. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -22
  241. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  242. package/types/AccountNotices.d.ts +0 -113
  243. package/types/AccountNoticesResource.d.ts +0 -98
  244. package/types/Billing/MeterUsage.d.ts +0 -32
  245. package/types/Billing/MeterUsageResource.d.ts +0 -685
  246. package/types/Billing/MeterUsageRows.d.ts +0 -49
  247. package/types/Capital/FinancingOffers.d.ts +0 -188
  248. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  249. package/types/Capital/FinancingSummary.d.ts +0 -106
  250. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  251. package/types/Capital/FinancingTransactions.d.ts +0 -135
  252. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  253. package/types/ExternalAccountsResource.d.ts +0 -304
  254. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  255. package/types/FinancialConnections/Institutions.d.ts +0 -98
  256. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  257. package/types/FxQuotes.d.ts +0 -155
  258. package/types/FxQuotesResource.d.ts +0 -130
  259. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  260. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  261. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  262. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  263. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  264. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  265. package/types/Issuing/Settlements.d.ts +0 -113
  266. package/types/Margins.d.ts +0 -56
  267. package/types/MarginsResource.d.ts +0 -114
  268. package/types/Orders.d.ts +0 -1163
  269. package/types/OrdersResource.d.ts +0 -3139
  270. package/types/PaymentAttemptRecords.d.ts +0 -2321
  271. package/types/PaymentAttemptRecordsResource.d.ts +0 -52
  272. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
  273. package/types/PaymentRecords.d.ts +0 -2314
  274. package/types/PaymentRecordsResource.d.ts +0 -476
  275. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  276. package/types/Privacy/RedactionJobs.d.ts +0 -111
  277. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  278. package/types/QuoteLines.d.ts +0 -634
  279. package/types/QuotePreviewInvoices.d.ts +0 -1736
  280. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -892
  281. package/types/Tax/Associations.d.ts +0 -82
  282. package/types/Tax/AssociationsResource.d.ts +0 -29
  283. package/types/Tax/Forms.d.ts +0 -220
  284. package/types/Tax/FormsResource.d.ts +0 -107
  285. package/types/Terminal/OnboardingLinks.d.ts +0 -57
  286. package/types/Terminal/OnboardingLinksResource.d.ts +0 -62
  287. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  288. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  289. package/types/ThinEvent.d.ts +0 -36
  290. package/types/V2/Core/AccountLinks.d.ts +0 -168
  291. package/types/V2/Core/AccountLinksResource.d.ts +0 -152
  292. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3812
  293. package/types/V2/Core/Accounts.d.ts +0 -8862
  294. package/types/V2/Core/AccountsResource.d.ts +0 -10704
  295. package/types/V2/Core/Persons.d.ts +0 -1888
  296. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  297. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  298. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  299. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  300. package/types/V2/EventDestinations.d.ts +0 -164
  301. package/types/V2/EventTypes.d.ts +0 -1188
  302. package/types/V2/Events.d.ts +0 -75
  303. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  304. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  305. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  306. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  307. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -585
  308. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -331
  309. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
  310. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -289
  311. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  312. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  313. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
  314. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  315. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  316. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  317. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  318. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  319. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  320. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  321. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
  322. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  323. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
  324. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  325. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -262
  326. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  327. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  328. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  329. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
  330. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  331. package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
  332. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  333. package/types/V2/Payments/OffSessionPayments.d.ts +0 -179
  334. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -174
  335. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
@@ -3,6 +3,11 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  interface SubscriptionCreateParams {
6
+ /**
7
+ * The identifier of the customer to subscribe.
8
+ */
9
+ customer: string;
10
+
6
11
  /**
7
12
  * A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.
8
13
  */
@@ -29,7 +34,7 @@ declare module 'stripe' {
29
34
  billing_cycle_anchor?: number;
30
35
 
31
36
  /**
32
- * Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.
37
+ * Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurrence of the day_of_month at the hour, minute, and second UTC.
33
38
  */
34
39
  billing_cycle_anchor_config?: SubscriptionCreateParams.BillingCycleAnchorConfig;
35
40
 
@@ -65,16 +70,6 @@ declare module 'stripe' {
65
70
  */
66
71
  currency?: string;
67
72
 
68
- /**
69
- * The identifier of the customer to subscribe.
70
- */
71
- customer?: string;
72
-
73
- /**
74
- * The identifier of the account to subscribe.
75
- */
76
- customer_account?: string;
77
-
78
73
  /**
79
74
  * Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
80
75
  */
@@ -162,11 +157,6 @@ declare module 'stripe' {
162
157
  SubscriptionCreateParams.PendingInvoiceItemInterval
163
158
  >;
164
159
 
165
- /**
166
- * If specified, the invoicing for the given billing cycle iterations will be processed now.
167
- */
168
- prebilling?: SubscriptionCreateParams.Prebilling;
169
-
170
160
  /**
171
161
  * Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
172
162
  */
@@ -211,7 +201,7 @@ declare module 'stripe' {
211
201
  metadata?: Stripe.MetadataParam;
212
202
 
213
203
  /**
214
- * The period associated with this invoice item. Defaults to the current period of the subscription.
204
+ * The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.
215
205
  */
216
206
  period?: AddInvoiceItem.Period;
217
207
 
@@ -248,56 +238,12 @@ declare module 'stripe' {
248
238
  */
249
239
  discount?: string;
250
240
 
251
- /**
252
- * Details to determine how long the discount should be applied for.
253
- */
254
- discount_end?: Discount.DiscountEnd;
255
-
256
241
  /**
257
242
  * ID of the promotion code to create a new discount for.
258
243
  */
259
244
  promotion_code?: string;
260
245
  }
261
246
 
262
- namespace Discount {
263
- interface DiscountEnd {
264
- /**
265
- * Time span for the redeemed discount.
266
- */
267
- duration?: DiscountEnd.Duration;
268
-
269
- /**
270
- * A precise Unix timestamp for the discount to end. Must be in the future.
271
- */
272
- timestamp?: number;
273
-
274
- /**
275
- * The type of calculation made to determine when the discount ends.
276
- */
277
- type: DiscountEnd.Type;
278
- }
279
-
280
- namespace DiscountEnd {
281
- interface Duration {
282
- /**
283
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
284
- */
285
- interval: Duration.Interval;
286
-
287
- /**
288
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
289
- */
290
- interval_count: number;
291
- }
292
-
293
- namespace Duration {
294
- type Interval = 'day' | 'month' | 'week' | 'year';
295
- }
296
-
297
- type Type = 'duration' | 'timestamp';
298
- }
299
- }
300
-
301
247
  interface Period {
302
248
  /**
303
249
  * End of the invoice item period.
@@ -435,12 +381,28 @@ declare module 'stripe' {
435
381
 
436
382
  interface BillingMode {
437
383
  /**
438
- * Controls the calculation and orchestration of prorations and invoices for subscriptions.
384
+ * Configure behavior for flexible billing mode.
385
+ */
386
+ flexible?: BillingMode.Flexible;
387
+
388
+ /**
389
+ * Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
439
390
  */
440
391
  type: BillingMode.Type;
441
392
  }
442
393
 
443
394
  namespace BillingMode {
395
+ interface Flexible {
396
+ /**
397
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
398
+ */
399
+ proration_discounts?: Flexible.ProrationDiscounts;
400
+ }
401
+
402
+ namespace Flexible {
403
+ type ProrationDiscounts = 'included' | 'itemized';
404
+ }
405
+
444
406
  type Type = 'classic' | 'flexible';
445
407
  }
446
408
 
@@ -471,56 +433,12 @@ declare module 'stripe' {
471
433
  */
472
434
  discount?: string;
473
435
 
474
- /**
475
- * Details to determine how long the discount should be applied for.
476
- */
477
- discount_end?: Discount.DiscountEnd;
478
-
479
436
  /**
480
437
  * ID of the promotion code to create a new discount for.
481
438
  */
482
439
  promotion_code?: string;
483
440
  }
484
441
 
485
- namespace Discount {
486
- interface DiscountEnd {
487
- /**
488
- * Time span for the redeemed discount.
489
- */
490
- duration?: DiscountEnd.Duration;
491
-
492
- /**
493
- * A precise Unix timestamp for the discount to end. Must be in the future.
494
- */
495
- timestamp?: number;
496
-
497
- /**
498
- * The type of calculation made to determine when the discount ends.
499
- */
500
- type: DiscountEnd.Type;
501
- }
502
-
503
- namespace DiscountEnd {
504
- interface Duration {
505
- /**
506
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
507
- */
508
- interval: Duration.Interval;
509
-
510
- /**
511
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
512
- */
513
- interval_count: number;
514
- }
515
-
516
- namespace Duration {
517
- type Interval = 'day' | 'month' | 'week' | 'year';
518
- }
519
-
520
- type Type = 'duration' | 'timestamp';
521
- }
522
- }
523
-
524
442
  interface InvoiceSettings {
525
443
  /**
526
444
  * The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
@@ -591,11 +509,6 @@ declare module 'stripe' {
591
509
  * A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
592
510
  */
593
511
  tax_rates?: Stripe.Emptyable<Array<string>>;
594
-
595
- /**
596
- * Define options to configure the trial on the subscription item.
597
- */
598
- trial?: Item.Trial;
599
512
  }
600
513
 
601
514
  namespace Item {
@@ -617,56 +530,12 @@ declare module 'stripe' {
617
530
  */
618
531
  discount?: string;
619
532
 
620
- /**
621
- * Details to determine how long the discount should be applied for.
622
- */
623
- discount_end?: Discount.DiscountEnd;
624
-
625
533
  /**
626
534
  * ID of the promotion code to create a new discount for.
627
535
  */
628
536
  promotion_code?: string;
629
537
  }
630
538
 
631
- namespace Discount {
632
- interface DiscountEnd {
633
- /**
634
- * Time span for the redeemed discount.
635
- */
636
- duration?: DiscountEnd.Duration;
637
-
638
- /**
639
- * A precise Unix timestamp for the discount to end. Must be in the future.
640
- */
641
- timestamp?: number;
642
-
643
- /**
644
- * The type of calculation made to determine when the discount ends.
645
- */
646
- type: DiscountEnd.Type;
647
- }
648
-
649
- namespace DiscountEnd {
650
- interface Duration {
651
- /**
652
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
653
- */
654
- interval: Duration.Interval;
655
-
656
- /**
657
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
658
- */
659
- interval_count: number;
660
- }
661
-
662
- namespace Duration {
663
- type Interval = 'day' | 'month' | 'week' | 'year';
664
- }
665
-
666
- type Type = 'duration' | 'timestamp';
667
- }
668
- }
669
-
670
539
  interface PriceData {
671
540
  /**
672
541
  * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
@@ -718,22 +587,6 @@ declare module 'stripe' {
718
587
 
719
588
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
720
589
  }
721
-
722
- interface Trial {
723
- /**
724
- * List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
725
- */
726
- converts_to?: Array<string>;
727
-
728
- /**
729
- * Determines the type of trial for this item.
730
- */
731
- type: Trial.Type;
732
- }
733
-
734
- namespace Trial {
735
- type Type = 'free' | 'paid';
736
- }
737
590
  }
738
591
 
739
592
  type PaymentBehavior =
@@ -785,13 +638,6 @@ declare module 'stripe' {
785
638
  PaymentMethodOptions.CustomerBalance
786
639
  >;
787
640
 
788
- /**
789
- * This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
790
- */
791
- id_bank_transfer?: Stripe.Emptyable<
792
- PaymentMethodOptions.IdBankTransfer
793
- >;
794
-
795
641
  /**
796
642
  * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
797
643
  */
@@ -802,11 +648,6 @@ declare module 'stripe' {
802
648
  */
803
649
  sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;
804
650
 
805
- /**
806
- * This sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
807
- */
808
- upi?: Stripe.Emptyable<PaymentMethodOptions.Upi>;
809
-
810
651
  /**
811
652
  * This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
812
653
  */
@@ -946,47 +787,10 @@ declare module 'stripe' {
946
787
  }
947
788
  }
948
789
 
949
- interface IdBankTransfer {}
950
-
951
790
  interface Konbini {}
952
791
 
953
792
  interface SepaDebit {}
954
793
 
955
- interface Upi {
956
- /**
957
- * Configuration options for setting up an eMandate
958
- */
959
- mandate_options?: Upi.MandateOptions;
960
- }
961
-
962
- namespace Upi {
963
- interface MandateOptions {
964
- /**
965
- * Amount to be charged for future payments.
966
- */
967
- amount?: number;
968
-
969
- /**
970
- * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
971
- */
972
- amount_type?: MandateOptions.AmountType;
973
-
974
- /**
975
- * A description of the mandate or subscription that is meant to be displayed to the customer.
976
- */
977
- description?: string;
978
-
979
- /**
980
- * End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
981
- */
982
- end_date?: number;
983
- }
984
-
985
- namespace MandateOptions {
986
- type AmountType = 'fixed' | 'maximum';
987
- }
988
- }
989
-
990
794
  interface UsBankAccount {
991
795
  /**
992
796
  * Additional fields for Financial Connections Session creation
@@ -1023,11 +827,6 @@ declare module 'stripe' {
1023
827
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1024
828
  */
1025
829
  account_subcategories?: Array<Filters.AccountSubcategory>;
1026
-
1027
- /**
1028
- * ID of the institution to use to filter for selectable accounts.
1029
- */
1030
- institution?: string;
1031
830
  }
1032
831
 
1033
832
  namespace Filters {
@@ -1040,11 +839,7 @@ declare module 'stripe' {
1040
839
  | 'payment_method'
1041
840
  | 'transactions';
1042
841
 
1043
- type Prefetch =
1044
- | 'balances'
1045
- | 'inferred_balances'
1046
- | 'ownership'
1047
- | 'transactions';
842
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1048
843
  }
1049
844
 
1050
845
  type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
@@ -1064,13 +859,11 @@ declare module 'stripe' {
1064
859
  | 'card'
1065
860
  | 'cashapp'
1066
861
  | 'crypto'
1067
- | 'custom'
1068
862
  | 'customer_balance'
1069
863
  | 'eps'
1070
864
  | 'fpx'
1071
865
  | 'giropay'
1072
866
  | 'grabpay'
1073
- | 'id_bank_transfer'
1074
867
  | 'ideal'
1075
868
  | 'jp_credit_transfer'
1076
869
  | 'kakao_pay'
@@ -1090,9 +883,7 @@ declare module 'stripe' {
1090
883
  | 'sepa_credit_transfer'
1091
884
  | 'sepa_debit'
1092
885
  | 'sofort'
1093
- | 'stripe_balance'
1094
886
  | 'swish'
1095
- | 'upi'
1096
887
  | 'us_bank_account'
1097
888
  | 'wechat_pay';
1098
889
 
@@ -1115,22 +906,6 @@ declare module 'stripe' {
1115
906
  type Interval = 'day' | 'month' | 'week' | 'year';
1116
907
  }
1117
908
 
1118
- interface Prebilling {
1119
- /**
1120
- * This is used to determine the number of billing cycles to prebill.
1121
- */
1122
- iterations: number;
1123
-
1124
- /**
1125
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
1126
- */
1127
- update_behavior?: Prebilling.UpdateBehavior;
1128
- }
1129
-
1130
- namespace Prebilling {
1131
- type UpdateBehavior = 'prebill' | 'reset';
1132
- }
1133
-
1134
909
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
1135
910
 
1136
911
  interface TransferData {
@@ -1311,11 +1086,6 @@ declare module 'stripe' {
1311
1086
  SubscriptionUpdateParams.PendingInvoiceItemInterval
1312
1087
  >;
1313
1088
 
1314
- /**
1315
- * If specified, the invoicing for the given billing cycle iterations will be processed now.
1316
- */
1317
- prebilling?: SubscriptionUpdateParams.Prebilling;
1318
-
1319
1089
  /**
1320
1090
  * Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
1321
1091
  */
@@ -1360,7 +1130,7 @@ declare module 'stripe' {
1360
1130
  metadata?: Stripe.MetadataParam;
1361
1131
 
1362
1132
  /**
1363
- * The period associated with this invoice item. Defaults to the current period of the subscription.
1133
+ * The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.
1364
1134
  */
1365
1135
  period?: AddInvoiceItem.Period;
1366
1136
 
@@ -1397,56 +1167,12 @@ declare module 'stripe' {
1397
1167
  */
1398
1168
  discount?: string;
1399
1169
 
1400
- /**
1401
- * Details to determine how long the discount should be applied for.
1402
- */
1403
- discount_end?: Discount.DiscountEnd;
1404
-
1405
1170
  /**
1406
1171
  * ID of the promotion code to create a new discount for.
1407
1172
  */
1408
1173
  promotion_code?: string;
1409
1174
  }
1410
1175
 
1411
- namespace Discount {
1412
- interface DiscountEnd {
1413
- /**
1414
- * Time span for the redeemed discount.
1415
- */
1416
- duration?: DiscountEnd.Duration;
1417
-
1418
- /**
1419
- * A precise Unix timestamp for the discount to end. Must be in the future.
1420
- */
1421
- timestamp?: number;
1422
-
1423
- /**
1424
- * The type of calculation made to determine when the discount ends.
1425
- */
1426
- type: DiscountEnd.Type;
1427
- }
1428
-
1429
- namespace DiscountEnd {
1430
- interface Duration {
1431
- /**
1432
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1433
- */
1434
- interval: Duration.Interval;
1435
-
1436
- /**
1437
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1438
- */
1439
- interval_count: number;
1440
- }
1441
-
1442
- namespace Duration {
1443
- type Interval = 'day' | 'month' | 'week' | 'year';
1444
- }
1445
-
1446
- type Type = 'duration' | 'timestamp';
1447
- }
1448
- }
1449
-
1450
1176
  interface Period {
1451
1177
  /**
1452
1178
  * End of the invoice item period.
@@ -1608,56 +1334,12 @@ declare module 'stripe' {
1608
1334
  */
1609
1335
  discount?: string;
1610
1336
 
1611
- /**
1612
- * Details to determine how long the discount should be applied for.
1613
- */
1614
- discount_end?: Discount.DiscountEnd;
1615
-
1616
1337
  /**
1617
1338
  * ID of the promotion code to create a new discount for.
1618
1339
  */
1619
1340
  promotion_code?: string;
1620
1341
  }
1621
1342
 
1622
- namespace Discount {
1623
- interface DiscountEnd {
1624
- /**
1625
- * Time span for the redeemed discount.
1626
- */
1627
- duration?: DiscountEnd.Duration;
1628
-
1629
- /**
1630
- * A precise Unix timestamp for the discount to end. Must be in the future.
1631
- */
1632
- timestamp?: number;
1633
-
1634
- /**
1635
- * The type of calculation made to determine when the discount ends.
1636
- */
1637
- type: DiscountEnd.Type;
1638
- }
1639
-
1640
- namespace DiscountEnd {
1641
- interface Duration {
1642
- /**
1643
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1644
- */
1645
- interval: Duration.Interval;
1646
-
1647
- /**
1648
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1649
- */
1650
- interval_count: number;
1651
- }
1652
-
1653
- namespace Duration {
1654
- type Interval = 'day' | 'month' | 'week' | 'year';
1655
- }
1656
-
1657
- type Type = 'duration' | 'timestamp';
1658
- }
1659
- }
1660
-
1661
1343
  interface InvoiceSettings {
1662
1344
  /**
1663
1345
  * The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
@@ -1764,56 +1446,12 @@ declare module 'stripe' {
1764
1446
  */
1765
1447
  discount?: string;
1766
1448
 
1767
- /**
1768
- * Details to determine how long the discount should be applied for.
1769
- */
1770
- discount_end?: Discount.DiscountEnd;
1771
-
1772
1449
  /**
1773
1450
  * ID of the promotion code to create a new discount for.
1774
1451
  */
1775
1452
  promotion_code?: string;
1776
1453
  }
1777
1454
 
1778
- namespace Discount {
1779
- interface DiscountEnd {
1780
- /**
1781
- * Time span for the redeemed discount.
1782
- */
1783
- duration?: DiscountEnd.Duration;
1784
-
1785
- /**
1786
- * A precise Unix timestamp for the discount to end. Must be in the future.
1787
- */
1788
- timestamp?: number;
1789
-
1790
- /**
1791
- * The type of calculation made to determine when the discount ends.
1792
- */
1793
- type: DiscountEnd.Type;
1794
- }
1795
-
1796
- namespace DiscountEnd {
1797
- interface Duration {
1798
- /**
1799
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1800
- */
1801
- interval: Duration.Interval;
1802
-
1803
- /**
1804
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1805
- */
1806
- interval_count: number;
1807
- }
1808
-
1809
- namespace Duration {
1810
- type Interval = 'day' | 'month' | 'week' | 'year';
1811
- }
1812
-
1813
- type Type = 'duration' | 'timestamp';
1814
- }
1815
- }
1816
-
1817
1455
  interface PriceData {
1818
1456
  /**
1819
1457
  * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
@@ -1932,13 +1570,6 @@ declare module 'stripe' {
1932
1570
  PaymentMethodOptions.CustomerBalance
1933
1571
  >;
1934
1572
 
1935
- /**
1936
- * This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
1937
- */
1938
- id_bank_transfer?: Stripe.Emptyable<
1939
- PaymentMethodOptions.IdBankTransfer
1940
- >;
1941
-
1942
1573
  /**
1943
1574
  * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
1944
1575
  */
@@ -1949,11 +1580,6 @@ declare module 'stripe' {
1949
1580
  */
1950
1581
  sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;
1951
1582
 
1952
- /**
1953
- * This sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
1954
- */
1955
- upi?: Stripe.Emptyable<PaymentMethodOptions.Upi>;
1956
-
1957
1583
  /**
1958
1584
  * This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
1959
1585
  */
@@ -2093,47 +1719,10 @@ declare module 'stripe' {
2093
1719
  }
2094
1720
  }
2095
1721
 
2096
- interface IdBankTransfer {}
2097
-
2098
1722
  interface Konbini {}
2099
1723
 
2100
1724
  interface SepaDebit {}
2101
1725
 
2102
- interface Upi {
2103
- /**
2104
- * Configuration options for setting up an eMandate
2105
- */
2106
- mandate_options?: Upi.MandateOptions;
2107
- }
2108
-
2109
- namespace Upi {
2110
- interface MandateOptions {
2111
- /**
2112
- * Amount to be charged for future payments.
2113
- */
2114
- amount?: number;
2115
-
2116
- /**
2117
- * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
2118
- */
2119
- amount_type?: MandateOptions.AmountType;
2120
-
2121
- /**
2122
- * A description of the mandate or subscription that is meant to be displayed to the customer.
2123
- */
2124
- description?: string;
2125
-
2126
- /**
2127
- * End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
2128
- */
2129
- end_date?: number;
2130
- }
2131
-
2132
- namespace MandateOptions {
2133
- type AmountType = 'fixed' | 'maximum';
2134
- }
2135
- }
2136
-
2137
1726
  interface UsBankAccount {
2138
1727
  /**
2139
1728
  * Additional fields for Financial Connections Session creation
@@ -2170,11 +1759,6 @@ declare module 'stripe' {
2170
1759
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2171
1760
  */
2172
1761
  account_subcategories?: Array<Filters.AccountSubcategory>;
2173
-
2174
- /**
2175
- * ID of the institution to use to filter for selectable accounts.
2176
- */
2177
- institution?: string;
2178
1762
  }
2179
1763
 
2180
1764
  namespace Filters {
@@ -2187,11 +1771,7 @@ declare module 'stripe' {
2187
1771
  | 'payment_method'
2188
1772
  | 'transactions';
2189
1773
 
2190
- type Prefetch =
2191
- | 'balances'
2192
- | 'inferred_balances'
2193
- | 'ownership'
2194
- | 'transactions';
1774
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2195
1775
  }
2196
1776
 
2197
1777
  type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
@@ -2211,13 +1791,11 @@ declare module 'stripe' {
2211
1791
  | 'card'
2212
1792
  | 'cashapp'
2213
1793
  | 'crypto'
2214
- | 'custom'
2215
1794
  | 'customer_balance'
2216
1795
  | 'eps'
2217
1796
  | 'fpx'
2218
1797
  | 'giropay'
2219
1798
  | 'grabpay'
2220
- | 'id_bank_transfer'
2221
1799
  | 'ideal'
2222
1800
  | 'jp_credit_transfer'
2223
1801
  | 'kakao_pay'
@@ -2237,9 +1815,7 @@ declare module 'stripe' {
2237
1815
  | 'sepa_credit_transfer'
2238
1816
  | 'sepa_debit'
2239
1817
  | 'sofort'
2240
- | 'stripe_balance'
2241
1818
  | 'swish'
2242
- | 'upi'
2243
1819
  | 'us_bank_account'
2244
1820
  | 'wechat_pay';
2245
1821
 
@@ -2262,22 +1838,6 @@ declare module 'stripe' {
2262
1838
  type Interval = 'day' | 'month' | 'week' | 'year';
2263
1839
  }
2264
1840
 
2265
- interface Prebilling {
2266
- /**
2267
- * This is used to determine the number of billing cycles to prebill.
2268
- */
2269
- iterations: number;
2270
-
2271
- /**
2272
- * Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
2273
- */
2274
- update_behavior?: Prebilling.UpdateBehavior;
2275
- }
2276
-
2277
- namespace Prebilling {
2278
- type UpdateBehavior = 'prebill' | 'reset';
2279
- }
2280
-
2281
1841
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
2282
1842
 
2283
1843
  interface TransferData {
@@ -2344,11 +1904,6 @@ declare module 'stripe' {
2344
1904
  */
2345
1905
  customer?: string;
2346
1906
 
2347
- /**
2348
- * The ID of the account whose subscriptions will be retrieved.
2349
- */
2350
- customer_account?: string;
2351
-
2352
1907
  /**
2353
1908
  * Specifies which fields in the response should be expanded.
2354
1909
  */
@@ -2462,8 +2017,29 @@ declare module 'stripe' {
2462
2017
 
2463
2018
  namespace SubscriptionMigrateParams {
2464
2019
  interface BillingMode {
2020
+ /**
2021
+ * Configure behavior for flexible billing mode.
2022
+ */
2023
+ flexible?: BillingMode.Flexible;
2024
+
2025
+ /**
2026
+ * Controls the calculation and orchestration of prorations and invoices for subscriptions.
2027
+ */
2465
2028
  type: 'flexible';
2466
2029
  }
2030
+
2031
+ namespace BillingMode {
2032
+ interface Flexible {
2033
+ /**
2034
+ * Controls how invoices and invoice items display proration amounts and discount amounts.
2035
+ */
2036
+ proration_discounts?: Flexible.ProrationDiscounts;
2037
+ }
2038
+
2039
+ namespace Flexible {
2040
+ type ProrationDiscounts = 'included' | 'itemized';
2041
+ }
2042
+ }
2467
2043
  }
2468
2044
 
2469
2045
  interface SubscriptionResumeParams {
@@ -2527,10 +2103,7 @@ declare module 'stripe' {
2527
2103
  * Schedules provide the flexibility to model more complex billing configurations that change over time.
2528
2104
  */
2529
2105
  create(
2530
- params?: SubscriptionCreateParams,
2531
- options?: RequestOptions
2532
- ): Promise<Stripe.Response<Stripe.Subscription>>;
2533
- create(
2106
+ params: SubscriptionCreateParams,
2534
2107
  options?: RequestOptions
2535
2108
  ): Promise<Stripe.Response<Stripe.Subscription>>;
2536
2109