stripe 18.1.0-beta.2 → 18.1.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 (309) hide show
  1. package/CHANGELOG.md +140 -1185
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +3 -93
  6. package/cjs/RequestSender.js +3 -7
  7. package/cjs/Webhooks.js +6 -2
  8. package/cjs/apiVersion.js +1 -1
  9. package/cjs/net/FetchHttpClient.js +3 -4
  10. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  11. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  12. package/cjs/resources/Invoices.js +0 -17
  13. package/cjs/resources/PaymentIntents.js +0 -8
  14. package/cjs/resources/Quotes.js +0 -32
  15. package/cjs/resources/SubscriptionSchedules.js +0 -4
  16. package/cjs/resources/Terminal/Readers.js +0 -12
  17. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  18. package/cjs/resources.js +18 -106
  19. package/cjs/stripe.core.js +2 -4
  20. package/cjs/utils.js +28 -4
  21. package/esm/Error.js +2 -81
  22. package/esm/RequestSender.js +4 -8
  23. package/esm/Webhooks.js +6 -2
  24. package/esm/apiVersion.js +1 -1
  25. package/esm/net/FetchHttpClient.js +3 -4
  26. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  27. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  28. package/esm/resources/Invoices.js +0 -17
  29. package/esm/resources/PaymentIntents.js +0 -8
  30. package/esm/resources/Quotes.js +0 -32
  31. package/esm/resources/SubscriptionSchedules.js +0 -4
  32. package/esm/resources/Terminal/Readers.js +0 -12
  33. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  34. package/esm/resources.js +1 -83
  35. package/esm/stripe.core.js +2 -4
  36. package/esm/utils.js +24 -3
  37. package/package.json +12 -3
  38. package/types/AccountLinksResource.d.ts +1 -5
  39. package/types/AccountSessions.d.ts +0 -45
  40. package/types/AccountSessionsResource.d.ts +0 -300
  41. package/types/Accounts.d.ts +20 -212
  42. package/types/AccountsResource.d.ts +214 -546
  43. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  44. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  45. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  46. package/types/Billing/CreditGrants.d.ts +0 -5
  47. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  48. package/types/BillingPortal/Sessions.d.ts +0 -5
  49. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  50. package/types/Cards.d.ts +0 -5
  51. package/types/CashBalances.d.ts +0 -5
  52. package/types/Charges.d.ts +5 -166
  53. package/types/ChargesResource.d.ts +0 -1294
  54. package/types/Checkout/Sessions.d.ts +13 -306
  55. package/types/Checkout/SessionsResource.d.ts +3 -246
  56. package/types/ConfirmationTokens.d.ts +5 -120
  57. package/types/CreditNoteLineItems.d.ts +0 -17
  58. package/types/CreditNotes.d.ts +0 -9
  59. package/types/CreditNotesResource.d.ts +0 -5
  60. package/types/CustomerBalanceTransactions.d.ts +0 -2
  61. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  62. package/types/CustomerSessions.d.ts +0 -5
  63. package/types/CustomerSessionsResource.d.ts +1 -6
  64. package/types/Customers.d.ts +0 -2
  65. package/types/CustomersResource.d.ts +23 -11
  66. package/types/Discounts.d.ts +0 -10
  67. package/types/Errors.d.ts +2 -69
  68. package/types/EventTypes.d.ts +0 -681
  69. package/types/Events.d.ts +1 -99
  70. package/types/FinancialConnections/Accounts.d.ts +1 -31
  71. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  72. package/types/FinancialConnections/Sessions.d.ts +1 -51
  73. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  74. package/types/Identity/VerificationSessions.d.ts +0 -5
  75. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  76. package/types/InvoiceItems.d.ts +0 -10
  77. package/types/InvoiceItemsResource.d.ts +6 -117
  78. package/types/InvoiceLineItems.d.ts +2 -46
  79. package/types/InvoicePayments.d.ts +0 -5
  80. package/types/InvoicePaymentsResource.d.ts +74 -0
  81. package/types/Invoices.d.ts +16 -138
  82. package/types/InvoicesResource.d.ts +20 -1550
  83. package/types/Issuing/CardholdersResource.d.ts +1 -2
  84. package/types/Issuing/Transactions.d.ts +0 -5
  85. package/types/Issuing/TransactionsResource.d.ts +0 -5
  86. package/types/LineItems.d.ts +0 -49
  87. package/types/Mandates.d.ts +0 -77
  88. package/types/PaymentIntents.d.ts +2 -675
  89. package/types/PaymentIntentsResource.d.ts +3983 -8416
  90. package/types/PaymentLinks.d.ts +0 -6
  91. package/types/PaymentLinksResource.d.ts +0 -12
  92. package/types/PaymentMethodConfigurations.d.ts +4 -148
  93. package/types/PaymentMethodConfigurationsResource.d.ts +10 -210
  94. package/types/PaymentMethods.d.ts +5 -120
  95. package/types/PaymentMethodsResource.d.ts +12 -167
  96. package/types/Payouts.d.ts +0 -5
  97. package/types/PayoutsResource.d.ts +0 -5
  98. package/types/Persons.d.ts +88 -1
  99. package/types/Prices.d.ts +0 -22
  100. package/types/PricesResource.d.ts +0 -22
  101. package/types/Products.d.ts +0 -39
  102. package/types/ProductsResource.d.ts +0 -36
  103. package/types/PromotionCodes.d.ts +0 -5
  104. package/types/PromotionCodesResource.d.ts +0 -10
  105. package/types/Quotes.d.ts +2 -597
  106. package/types/QuotesResource.d.ts +224 -2571
  107. package/types/Refunds.d.ts +10 -14
  108. package/types/SetupAttempts.d.ts +1 -50
  109. package/types/SetupIntents.d.ts +2 -121
  110. package/types/SetupIntentsResource.d.ts +18 -730
  111. package/types/Sources.d.ts +0 -29
  112. package/types/SubscriptionItems.d.ts +0 -23
  113. package/types/SubscriptionItemsResource.d.ts +0 -109
  114. package/types/SubscriptionSchedules.d.ts +0 -205
  115. package/types/SubscriptionSchedulesResource.d.ts +8 -1236
  116. package/types/Subscriptions.d.ts +2 -97
  117. package/types/SubscriptionsResource.d.ts +11 -391
  118. package/types/Tax/Calculations.d.ts +11 -1
  119. package/types/Tax/CalculationsResource.d.ts +11 -1
  120. package/types/Tax/Registrations.d.ts +99 -0
  121. package/types/Tax/RegistrationsResource.d.ts +132 -0
  122. package/types/Tax/Transactions.d.ts +11 -1
  123. package/types/TaxIds.d.ts +11 -11
  124. package/types/TaxIdsResource.d.ts +11 -11
  125. package/types/Terminal/Readers.d.ts +0 -300
  126. package/types/Terminal/ReadersResource.d.ts +0 -220
  127. package/types/TestHelpers/ConfirmationTokensResource.d.ts +12 -127
  128. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  129. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  130. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  131. package/types/TokensResource.d.ts +106 -0
  132. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  133. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  134. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  135. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  136. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  137. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  138. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  139. package/types/V2/EventTypes.d.ts +7 -677
  140. package/types/WebhookEndpointsResource.d.ts +4 -83
  141. package/types/index.d.ts +5 -142
  142. package/types/lib.d.ts +1 -11
  143. package/types/test/typescriptTest.ts +3 -3
  144. package/cjs/resources/AccountNotices.js +0 -21
  145. package/cjs/resources/BalanceSettings.js +0 -10
  146. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  147. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  148. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  149. package/cjs/resources/ExternalAccounts.js +0 -23
  150. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  151. package/cjs/resources/GiftCards/Cards.js +0 -23
  152. package/cjs/resources/GiftCards/Transactions.js +0 -33
  153. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  154. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  155. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  156. package/cjs/resources/Margins.js +0 -22
  157. package/cjs/resources/Orders.js +0 -24
  158. package/cjs/resources/PaymentRecords.js +0 -29
  159. package/cjs/resources/Privacy/RedactionJobs.js +0 -46
  160. package/cjs/resources/Tax/Associations.js +0 -9
  161. package/cjs/resources/Tax/Forms.js +0 -20
  162. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  163. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  164. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  165. package/cjs/resources/V2/Core/Accounts.js +0 -25
  166. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  167. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  168. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  169. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
  170. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  171. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  172. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
  173. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  174. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  175. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  176. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  177. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  178. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  179. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  180. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  181. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  182. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  183. package/esm/resources/AccountNotices.js +0 -18
  184. package/esm/resources/BalanceSettings.js +0 -7
  185. package/esm/resources/Capital/FinancingOffers.js +0 -18
  186. package/esm/resources/Capital/FinancingSummary.js +0 -9
  187. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  188. package/esm/resources/ExternalAccounts.js +0 -20
  189. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  190. package/esm/resources/GiftCards/Cards.js +0 -20
  191. package/esm/resources/GiftCards/Transactions.js +0 -30
  192. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  193. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  194. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  195. package/esm/resources/Margins.js +0 -19
  196. package/esm/resources/Orders.js +0 -21
  197. package/esm/resources/PaymentRecords.js +0 -26
  198. package/esm/resources/Privacy/RedactionJobs.js +0 -43
  199. package/esm/resources/Tax/Associations.js +0 -6
  200. package/esm/resources/Tax/Forms.js +0 -17
  201. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  202. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  203. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  204. package/esm/resources/V2/Core/Accounts.js +0 -22
  205. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  206. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  207. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  208. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
  209. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  210. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  211. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
  212. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  213. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  214. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  215. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  216. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  217. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  218. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  219. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  220. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  221. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  222. package/types/AccountNotices.d.ts +0 -113
  223. package/types/AccountNoticesResource.d.ts +0 -98
  224. package/types/BalanceSettings.d.ts +0 -85
  225. package/types/BalanceSettingsResource.d.ts +0 -108
  226. package/types/Billing/MeterErrorReports.d.ts +0 -106
  227. package/types/Capital/FinancingOffers.d.ts +0 -188
  228. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  229. package/types/Capital/FinancingSummary.d.ts +0 -106
  230. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  231. package/types/Capital/FinancingTransactions.d.ts +0 -135
  232. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  233. package/types/ExternalAccountsResource.d.ts +0 -304
  234. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  235. package/types/FinancialConnections/Institutions.d.ts +0 -93
  236. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  237. package/types/GiftCards/Cards.d.ts +0 -118
  238. package/types/GiftCards/CardsResource.d.ts +0 -159
  239. package/types/GiftCards/Transactions.d.ts +0 -129
  240. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  241. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  242. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  243. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  244. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  245. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  246. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  247. package/types/Issuing/Settlements.d.ts +0 -113
  248. package/types/Margins.d.ts +0 -56
  249. package/types/MarginsResource.d.ts +0 -114
  250. package/types/Orders.d.ts +0 -1189
  251. package/types/OrdersResource.d.ts +0 -2981
  252. package/types/PaymentAttemptRecords.d.ts +0 -2112
  253. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  254. package/types/PaymentRecords.d.ts +0 -2105
  255. package/types/PaymentRecordsResource.d.ts +0 -455
  256. package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
  257. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
  258. package/types/Privacy/RedactionJobs.d.ts +0 -43
  259. package/types/Privacy/RedactionJobsResource.d.ts +0 -240
  260. package/types/QuoteLines.d.ts +0 -634
  261. package/types/QuotePreviewInvoices.d.ts +0 -1686
  262. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  263. package/types/Tax/Associations.d.ts +0 -126
  264. package/types/Tax/AssociationsResource.d.ts +0 -29
  265. package/types/Tax/Forms.d.ts +0 -220
  266. package/types/Tax/FormsResource.d.ts +0 -107
  267. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  268. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  269. package/types/V2/Core/AccountLinks.d.ts +0 -101
  270. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  271. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
  272. package/types/V2/Core/Accounts.d.ts +0 -8057
  273. package/types/V2/Core/AccountsResource.d.ts +0 -10184
  274. package/types/V2/Core/Persons.d.ts +0 -1857
  275. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
  276. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  277. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
  278. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  279. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
  280. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
  281. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
  282. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  283. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
  284. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
  285. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
  286. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
  287. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
  288. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  289. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
  290. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
  291. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
  292. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  293. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
  294. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  295. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
  296. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
  297. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
  298. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  299. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
  300. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  301. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
  302. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  303. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
  304. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  305. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
  306. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  307. package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
  308. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  309. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -126,11 +126,6 @@ declare module 'stripe' {
126
126
  */
127
127
  customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
128
128
 
129
- /**
130
- * The ID of the account for this Session.
131
- */
132
- customer_account?: string | null;
133
-
134
129
  /**
135
130
  * Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
136
131
  */
@@ -390,7 +385,7 @@ declare module 'stripe' {
390
385
  /**
391
386
  * The tax provider powering automatic tax.
392
387
  */
393
- provider?: string | null;
388
+ provider: string | null;
394
389
 
395
390
  /**
396
391
  * The status of the most recent automated tax calculation for this session.
@@ -421,30 +416,10 @@ declare module 'stripe' {
421
416
  type BillingAddressCollection = 'auto' | 'required';
422
417
 
423
418
  interface CollectedInformation {
424
- /**
425
- * Customer's business name for this Checkout Session
426
- */
427
- business_name?: string | null;
428
-
429
- /**
430
- * Customer's email for this Checkout Session
431
- */
432
- email?: string | null;
433
-
434
- /**
435
- * Customer's phone number for this Checkout Session
436
- */
437
- phone?: string | null;
438
-
439
419
  /**
440
420
  * Shipping information for this Checkout Session.
441
421
  */
442
422
  shipping_details: CollectedInformation.ShippingDetails | null;
443
-
444
- /**
445
- * Customer's tax ids for this Checkout Session.
446
- */
447
- tax_ids?: Array<CollectedInformation.TaxId> | null;
448
423
  }
449
424
 
450
425
  namespace CollectedInformation {
@@ -456,123 +431,6 @@ declare module 'stripe' {
456
431
  */
457
432
  name: string;
458
433
  }
459
-
460
- interface TaxId {
461
- /**
462
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
463
- */
464
- type: TaxId.Type;
465
-
466
- /**
467
- * The value of the tax ID.
468
- */
469
- value: string | null;
470
- }
471
-
472
- namespace TaxId {
473
- type Type =
474
- | 'ad_nrt'
475
- | 'ae_trn'
476
- | 'al_tin'
477
- | 'am_tin'
478
- | 'ao_tin'
479
- | 'ar_cuit'
480
- | 'au_abn'
481
- | 'au_arn'
482
- | 'ba_tin'
483
- | 'bb_tin'
484
- | 'bg_uic'
485
- | 'bh_vat'
486
- | 'bo_tin'
487
- | 'br_cnpj'
488
- | 'br_cpf'
489
- | 'bs_tin'
490
- | 'by_tin'
491
- | 'ca_bn'
492
- | 'ca_gst_hst'
493
- | 'ca_pst_bc'
494
- | 'ca_pst_mb'
495
- | 'ca_pst_sk'
496
- | 'ca_qst'
497
- | 'cd_nif'
498
- | 'ch_uid'
499
- | 'ch_vat'
500
- | 'cl_tin'
501
- | 'cn_tin'
502
- | 'co_nit'
503
- | 'cr_tin'
504
- | 'de_stn'
505
- | 'do_rcn'
506
- | 'ec_ruc'
507
- | 'eg_tin'
508
- | 'es_cif'
509
- | 'eu_oss_vat'
510
- | 'eu_vat'
511
- | 'gb_vat'
512
- | 'ge_vat'
513
- | 'gn_nif'
514
- | 'hk_br'
515
- | 'hr_oib'
516
- | 'hu_tin'
517
- | 'id_npwp'
518
- | 'il_vat'
519
- | 'in_gst'
520
- | 'is_vat'
521
- | 'jp_cn'
522
- | 'jp_rn'
523
- | 'jp_trn'
524
- | 'ke_pin'
525
- | 'kh_tin'
526
- | 'kr_brn'
527
- | 'kz_bin'
528
- | 'li_uid'
529
- | 'li_vat'
530
- | 'ma_vat'
531
- | 'md_vat'
532
- | 'me_pib'
533
- | 'mk_vat'
534
- | 'mr_nif'
535
- | 'mx_rfc'
536
- | 'my_frp'
537
- | 'my_itn'
538
- | 'my_sst'
539
- | 'ng_tin'
540
- | 'no_vat'
541
- | 'no_voec'
542
- | 'np_pan'
543
- | 'nz_gst'
544
- | 'om_vat'
545
- | 'pe_ruc'
546
- | 'ph_tin'
547
- | 'ro_tin'
548
- | 'rs_pib'
549
- | 'ru_inn'
550
- | 'ru_kpp'
551
- | 'sa_vat'
552
- | 'sg_gst'
553
- | 'sg_uen'
554
- | 'si_tin'
555
- | 'sn_ninea'
556
- | 'sr_fin'
557
- | 'sv_nit'
558
- | 'th_vat'
559
- | 'tj_tin'
560
- | 'tr_tin'
561
- | 'tw_vat'
562
- | 'tz_vat'
563
- | 'ua_vat'
564
- | 'ug_tin'
565
- | 'unknown'
566
- | 'us_ein'
567
- | 'uy_ruc'
568
- | 'uz_tin'
569
- | 'uz_vat'
570
- | 've_rif'
571
- | 'vn_tin'
572
- | 'za_vat'
573
- | 'zm_tin'
574
- | 'zw_tin';
575
- }
576
434
  }
577
435
 
578
436
  interface Consent {
@@ -692,7 +550,7 @@ declare module 'stripe' {
692
550
 
693
551
  interface TaxId {
694
552
  /**
695
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
553
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
696
554
  */
697
555
  type: TaxId.Type;
698
556
 
@@ -712,10 +570,15 @@ declare module 'stripe' {
712
570
  | 'ar_cuit'
713
571
  | 'au_abn'
714
572
  | 'au_arn'
573
+ | 'aw_tin'
574
+ | 'az_tin'
715
575
  | 'ba_tin'
716
576
  | 'bb_tin'
577
+ | 'bd_bin'
578
+ | 'bf_ifu'
717
579
  | 'bg_uic'
718
580
  | 'bh_vat'
581
+ | 'bj_ifu'
719
582
  | 'bo_tin'
720
583
  | 'br_cnpj'
721
584
  | 'br_cpf'
@@ -731,14 +594,17 @@ declare module 'stripe' {
731
594
  | 'ch_uid'
732
595
  | 'ch_vat'
733
596
  | 'cl_tin'
597
+ | 'cm_niu'
734
598
  | 'cn_tin'
735
599
  | 'co_nit'
736
600
  | 'cr_tin'
601
+ | 'cv_nif'
737
602
  | 'de_stn'
738
603
  | 'do_rcn'
739
604
  | 'ec_ruc'
740
605
  | 'eg_tin'
741
606
  | 'es_cif'
607
+ | 'et_tin'
742
608
  | 'eu_oss_vat'
743
609
  | 'eu_vat'
744
610
  | 'gb_vat'
@@ -755,9 +621,11 @@ declare module 'stripe' {
755
621
  | 'jp_rn'
756
622
  | 'jp_trn'
757
623
  | 'ke_pin'
624
+ | 'kg_tin'
758
625
  | 'kh_tin'
759
626
  | 'kr_brn'
760
627
  | 'kz_bin'
628
+ | 'la_tin'
761
629
  | 'li_uid'
762
630
  | 'li_vat'
763
631
  | 'ma_vat'
@@ -1222,8 +1090,6 @@ declare module 'stripe' {
1222
1090
 
1223
1091
  paypal?: PaymentMethodOptions.Paypal;
1224
1092
 
1225
- payto?: PaymentMethodOptions.Payto;
1226
-
1227
1093
  pix?: PaymentMethodOptions.Pix;
1228
1094
 
1229
1095
  revolut_pay?: PaymentMethodOptions.RevolutPay;
@@ -1456,11 +1322,6 @@ declare module 'stripe' {
1456
1322
  interface Card {
1457
1323
  installments?: Card.Installments;
1458
1324
 
1459
- /**
1460
- * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1461
- */
1462
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1463
-
1464
1325
  /**
1465
1326
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
1466
1327
  */
@@ -1518,8 +1379,6 @@ declare module 'stripe' {
1518
1379
  enabled?: boolean;
1519
1380
  }
1520
1381
 
1521
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1522
-
1523
1382
  type RequestExtendedAuthorization = 'if_available' | 'never';
1524
1383
 
1525
1384
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1901,100 +1760,12 @@ declare module 'stripe' {
1901
1760
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1902
1761
  */
1903
1762
  setup_future_usage?: Paypal.SetupFutureUsage;
1904
-
1905
- /**
1906
- * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1907
- */
1908
- subsellers?: Array<string>;
1909
1763
  }
1910
1764
 
1911
1765
  namespace Paypal {
1912
1766
  type SetupFutureUsage = 'none' | 'off_session';
1913
1767
  }
1914
1768
 
1915
- interface Payto {
1916
- mandate_options?: Payto.MandateOptions;
1917
-
1918
- /**
1919
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1920
- *
1921
- * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1922
- *
1923
- * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1924
- *
1925
- * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1926
- */
1927
- setup_future_usage?: Payto.SetupFutureUsage;
1928
- }
1929
-
1930
- namespace Payto {
1931
- interface MandateOptions {
1932
- /**
1933
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1934
- */
1935
- amount: number | null;
1936
-
1937
- /**
1938
- * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
1939
- */
1940
- amount_type: MandateOptions.AmountType | null;
1941
-
1942
- /**
1943
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1944
- */
1945
- end_date: string | null;
1946
-
1947
- /**
1948
- * The periodicity at which payments will be collected.
1949
- */
1950
- payment_schedule: MandateOptions.PaymentSchedule | null;
1951
-
1952
- /**
1953
- * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
1954
- */
1955
- payments_per_period: number | null;
1956
-
1957
- /**
1958
- * The purpose for which payments are made. Defaults to retail.
1959
- */
1960
- purpose: MandateOptions.Purpose | null;
1961
-
1962
- /**
1963
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1964
- */
1965
- start_date: string | null;
1966
- }
1967
-
1968
- namespace MandateOptions {
1969
- type AmountType = 'fixed' | 'maximum';
1970
-
1971
- type PaymentSchedule =
1972
- | 'adhoc'
1973
- | 'annual'
1974
- | 'daily'
1975
- | 'fortnightly'
1976
- | 'monthly'
1977
- | 'quarterly'
1978
- | 'semi_annual'
1979
- | 'weekly';
1980
-
1981
- type Purpose =
1982
- | 'dependant_support'
1983
- | 'government'
1984
- | 'loan'
1985
- | 'mortgage'
1986
- | 'other'
1987
- | 'pension'
1988
- | 'personal'
1989
- | 'retail'
1990
- | 'salary'
1991
- | 'tax'
1992
- | 'utility';
1993
- }
1994
-
1995
- type SetupFutureUsage = 'none' | 'off_session';
1996
- }
1997
-
1998
1769
  interface Pix {
1999
1770
  /**
2000
1771
  * The number of seconds after which Pix payment will expire.
@@ -2106,8 +1877,6 @@ declare module 'stripe' {
2106
1877
  interface FinancialConnections {
2107
1878
  filters?: FinancialConnections.Filters;
2108
1879
 
2109
- manual_entry?: FinancialConnections.ManualEntry;
2110
-
2111
1880
  /**
2112
1881
  * The list of permissions to request. The `payment_method` permission must be included.
2113
1882
  */
@@ -2130,39 +1899,19 @@ declare module 'stripe' {
2130
1899
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2131
1900
  */
2132
1901
  account_subcategories?: Array<Filters.AccountSubcategory>;
2133
-
2134
- /**
2135
- * The institution to use to filter for possible accounts to link.
2136
- */
2137
- institution?: string;
2138
1902
  }
2139
1903
 
2140
1904
  namespace Filters {
2141
1905
  type AccountSubcategory = 'checking' | 'savings';
2142
1906
  }
2143
1907
 
2144
- interface ManualEntry {
2145
- /**
2146
- * Settings for configuring manual entry of account details.
2147
- */
2148
- mode?: ManualEntry.Mode;
2149
- }
2150
-
2151
- namespace ManualEntry {
2152
- type Mode = 'automatic' | 'custom';
2153
- }
2154
-
2155
1908
  type Permission =
2156
1909
  | 'balances'
2157
1910
  | 'ownership'
2158
1911
  | 'payment_method'
2159
1912
  | 'transactions';
2160
1913
 
2161
- type Prefetch =
2162
- | 'balances'
2163
- | 'inferred_balances'
2164
- | 'ownership'
2165
- | 'transactions';
1914
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2166
1915
  }
2167
1916
 
2168
1917
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2174,20 +1923,6 @@ declare module 'stripe' {
2174
1923
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
2175
1924
 
2176
1925
  interface Permissions {
2177
- /**
2178
- * Permissions for updating the Checkout Session.
2179
- */
2180
- update?: Permissions.Update | null;
2181
-
2182
- /**
2183
- * Determines which entity is allowed to update the line items.
2184
- *
2185
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2186
- *
2187
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2188
- */
2189
- update_line_items?: Permissions.UpdateLineItems | null;
2190
-
2191
1926
  /**
2192
1927
  * Determines which entity is allowed to update the shipping details.
2193
1928
  *
@@ -2199,34 +1934,6 @@ declare module 'stripe' {
2199
1934
  }
2200
1935
 
2201
1936
  namespace Permissions {
2202
- interface Update {
2203
- /**
2204
- * Determines which entity is allowed to update the line items.
2205
- *
2206
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2207
- *
2208
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2209
- */
2210
- line_items?: Update.LineItems | null;
2211
-
2212
- /**
2213
- * Determines which entity is allowed to update the shipping details.
2214
- *
2215
- * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2216
- *
2217
- * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2218
- */
2219
- shipping_details: Update.ShippingDetails | null;
2220
- }
2221
-
2222
- namespace Update {
2223
- type LineItems = 'client_only' | 'server_only';
2224
-
2225
- type ShippingDetails = 'client_only' | 'server_only';
2226
- }
2227
-
2228
- type UpdateLineItems = 'client_only' | 'server_only';
2229
-
2230
1937
  type UpdateShippingDetails = 'client_only' | 'server_only';
2231
1938
  }
2232
1939