stripe 18.1.0-beta.3 → 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 (317) hide show
  1. package/CHANGELOG.md +140 -1208
  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 -4
  13. package/cjs/resources/PaymentIntents.js +0 -13
  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 -108
  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 -4
  29. package/esm/resources/PaymentIntents.js +0 -13
  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 -84
  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 +1 -212
  42. package/types/AccountsResource.d.ts +2 -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 +0 -166
  53. package/types/ChargesResource.d.ts +0 -1314
  54. package/types/Checkout/Sessions.d.ts +13 -306
  55. package/types/Checkout/SessionsResource.d.ts +1 -333
  56. package/types/ConfirmationTokens.d.ts +0 -120
  57. package/types/Coupons.d.ts +0 -33
  58. package/types/CouponsResource.d.ts +0 -21
  59. package/types/CreditNoteLineItems.d.ts +0 -17
  60. package/types/CreditNotes.d.ts +0 -9
  61. package/types/CreditNotesResource.d.ts +0 -5
  62. package/types/CustomerBalanceTransactions.d.ts +0 -2
  63. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  64. package/types/CustomerSessions.d.ts +0 -5
  65. package/types/CustomerSessionsResource.d.ts +1 -6
  66. package/types/Customers.d.ts +0 -2
  67. package/types/CustomersResource.d.ts +23 -11
  68. package/types/Discounts.d.ts +0 -10
  69. package/types/Errors.d.ts +2 -69
  70. package/types/EventTypes.d.ts +0 -698
  71. package/types/Events.d.ts +1 -100
  72. package/types/FinancialConnections/Accounts.d.ts +1 -31
  73. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  74. package/types/FinancialConnections/Sessions.d.ts +1 -51
  75. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  76. package/types/Identity/VerificationSessions.d.ts +0 -5
  77. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  78. package/types/InvoiceItems.d.ts +0 -10
  79. package/types/InvoiceItemsResource.d.ts +6 -117
  80. package/types/InvoiceLineItems.d.ts +2 -46
  81. package/types/InvoicePayments.d.ts +0 -5
  82. package/types/InvoicePaymentsResource.d.ts +74 -0
  83. package/types/Invoices.d.ts +15 -138
  84. package/types/InvoicesResource.d.ts +15 -1471
  85. package/types/Issuing/CardholdersResource.d.ts +1 -2
  86. package/types/Issuing/Transactions.d.ts +0 -5
  87. package/types/Issuing/TransactionsResource.d.ts +0 -5
  88. package/types/LineItems.d.ts +0 -49
  89. package/types/Mandates.d.ts +0 -77
  90. package/types/PaymentIntents.d.ts +2 -728
  91. package/types/PaymentIntentsResource.d.ts +3955 -8479
  92. package/types/PaymentLinks.d.ts +0 -6
  93. package/types/PaymentLinksResource.d.ts +0 -12
  94. package/types/PaymentMethodConfigurations.d.ts +0 -180
  95. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  96. package/types/PaymentMethods.d.ts +0 -120
  97. package/types/PaymentMethodsResource.d.ts +2 -167
  98. package/types/Payouts.d.ts +0 -5
  99. package/types/PayoutsResource.d.ts +0 -5
  100. package/types/Prices.d.ts +0 -22
  101. package/types/PricesResource.d.ts +0 -22
  102. package/types/Products.d.ts +0 -39
  103. package/types/ProductsResource.d.ts +0 -36
  104. package/types/PromotionCodes.d.ts +0 -5
  105. package/types/PromotionCodesResource.d.ts +0 -10
  106. package/types/Quotes.d.ts +2 -597
  107. package/types/QuotesResource.d.ts +224 -2571
  108. package/types/Refunds.d.ts +0 -14
  109. package/types/SetupAttempts.d.ts +1 -50
  110. package/types/SetupIntents.d.ts +2 -121
  111. package/types/SetupIntentsResource.d.ts +3 -730
  112. package/types/Sources.d.ts +0 -29
  113. package/types/SubscriptionItems.d.ts +0 -23
  114. package/types/SubscriptionItemsResource.d.ts +0 -109
  115. package/types/SubscriptionSchedules.d.ts +0 -205
  116. package/types/SubscriptionSchedulesResource.d.ts +8 -1236
  117. package/types/Subscriptions.d.ts +1 -97
  118. package/types/SubscriptionsResource.d.ts +9 -391
  119. package/types/Tax/Calculations.d.ts +11 -1
  120. package/types/Tax/CalculationsResource.d.ts +11 -1
  121. package/types/Tax/Registrations.d.ts +27 -0
  122. package/types/Tax/RegistrationsResource.d.ts +36 -0
  123. package/types/Tax/Transactions.d.ts +11 -1
  124. package/types/TaxIds.d.ts +11 -11
  125. package/types/TaxIdsResource.d.ts +11 -11
  126. package/types/Terminal/Readers.d.ts +0 -300
  127. package/types/Terminal/ReadersResource.d.ts +0 -220
  128. package/types/TestHelpers/ConfirmationTokensResource.d.ts +7 -127
  129. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  130. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  131. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  132. package/types/Transfers.d.ts +0 -5
  133. package/types/TransfersResource.d.ts +0 -5
  134. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  135. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  136. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  137. package/types/Treasury/OutboundPaymentsResource.d.ts +0 -5
  138. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  139. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  140. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  141. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  142. package/types/V2/EventTypes.d.ts +7 -677
  143. package/types/WebhookEndpointsResource.d.ts +4 -85
  144. package/types/index.d.ts +5 -146
  145. package/types/lib.d.ts +1 -11
  146. package/types/test/typescriptTest.ts +3 -3
  147. package/cjs/resources/AccountNotices.js +0 -21
  148. package/cjs/resources/BalanceSettings.js +0 -10
  149. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  150. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  151. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  152. package/cjs/resources/ExternalAccounts.js +0 -23
  153. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  154. package/cjs/resources/FxQuotes.js +0 -15
  155. package/cjs/resources/GiftCards/Cards.js +0 -23
  156. package/cjs/resources/GiftCards/Transactions.js +0 -33
  157. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  158. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  159. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  160. package/cjs/resources/Margins.js +0 -22
  161. package/cjs/resources/Orders.js +0 -24
  162. package/cjs/resources/PaymentRecords.js +0 -29
  163. package/cjs/resources/Privacy/RedactionJobs.js +0 -46
  164. package/cjs/resources/Tax/Associations.js +0 -9
  165. package/cjs/resources/Tax/Forms.js +0 -20
  166. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  167. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  168. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  169. package/cjs/resources/V2/Core/Accounts.js +0 -25
  170. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  171. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  172. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  173. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
  174. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  175. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  176. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
  177. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  178. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  179. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  180. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  181. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  182. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  183. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  184. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  185. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  186. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  187. package/esm/resources/AccountNotices.js +0 -18
  188. package/esm/resources/BalanceSettings.js +0 -7
  189. package/esm/resources/Capital/FinancingOffers.js +0 -18
  190. package/esm/resources/Capital/FinancingSummary.js +0 -9
  191. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  192. package/esm/resources/ExternalAccounts.js +0 -20
  193. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  194. package/esm/resources/FxQuotes.js +0 -12
  195. package/esm/resources/GiftCards/Cards.js +0 -20
  196. package/esm/resources/GiftCards/Transactions.js +0 -30
  197. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  198. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  199. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  200. package/esm/resources/Margins.js +0 -19
  201. package/esm/resources/Orders.js +0 -21
  202. package/esm/resources/PaymentRecords.js +0 -26
  203. package/esm/resources/Privacy/RedactionJobs.js +0 -43
  204. package/esm/resources/Tax/Associations.js +0 -6
  205. package/esm/resources/Tax/Forms.js +0 -17
  206. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  207. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  208. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  209. package/esm/resources/V2/Core/Accounts.js +0 -22
  210. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  211. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  212. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  213. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
  214. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  215. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  216. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
  217. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  218. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  219. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  220. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  221. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  222. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  223. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  224. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  225. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  226. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  227. package/types/AccountNotices.d.ts +0 -113
  228. package/types/AccountNoticesResource.d.ts +0 -98
  229. package/types/BalanceSettings.d.ts +0 -89
  230. package/types/BalanceSettingsResource.d.ts +0 -108
  231. package/types/Billing/MeterErrorReports.d.ts +0 -106
  232. package/types/Capital/FinancingOffers.d.ts +0 -188
  233. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  234. package/types/Capital/FinancingSummary.d.ts +0 -106
  235. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  236. package/types/Capital/FinancingTransactions.d.ts +0 -135
  237. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  238. package/types/ExternalAccountsResource.d.ts +0 -304
  239. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  240. package/types/FinancialConnections/Institutions.d.ts +0 -93
  241. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  242. package/types/FxQuotes.d.ts +0 -153
  243. package/types/FxQuotesResource.d.ts +0 -130
  244. package/types/GiftCards/Cards.d.ts +0 -118
  245. package/types/GiftCards/CardsResource.d.ts +0 -159
  246. package/types/GiftCards/Transactions.d.ts +0 -129
  247. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  248. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  249. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  250. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  251. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  252. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  253. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  254. package/types/Issuing/Settlements.d.ts +0 -113
  255. package/types/Margins.d.ts +0 -56
  256. package/types/MarginsResource.d.ts +0 -114
  257. package/types/Orders.d.ts +0 -1189
  258. package/types/OrdersResource.d.ts +0 -2981
  259. package/types/PaymentAttemptRecords.d.ts +0 -2112
  260. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  261. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -110
  262. package/types/PaymentRecords.d.ts +0 -2105
  263. package/types/PaymentRecordsResource.d.ts +0 -455
  264. package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
  265. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
  266. package/types/Privacy/RedactionJobs.d.ts +0 -43
  267. package/types/Privacy/RedactionJobsResource.d.ts +0 -240
  268. package/types/QuoteLines.d.ts +0 -634
  269. package/types/QuotePreviewInvoices.d.ts +0 -1687
  270. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  271. package/types/Tax/Associations.d.ts +0 -126
  272. package/types/Tax/AssociationsResource.d.ts +0 -29
  273. package/types/Tax/Forms.d.ts +0 -220
  274. package/types/Tax/FormsResource.d.ts +0 -107
  275. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  276. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  277. package/types/V2/Core/AccountLinks.d.ts +0 -101
  278. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  279. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
  280. package/types/V2/Core/Accounts.d.ts +0 -8057
  281. package/types/V2/Core/AccountsResource.d.ts +0 -10184
  282. package/types/V2/Core/Persons.d.ts +0 -1857
  283. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
  284. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  285. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
  286. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  287. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
  288. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
  289. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
  290. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  291. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
  292. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
  293. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
  294. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
  295. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
  296. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  297. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
  298. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
  299. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
  300. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  301. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
  302. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  303. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
  304. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
  305. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
  306. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  307. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
  308. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  309. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
  310. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  311. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
  312. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  313. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
  314. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  315. package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
  316. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  317. 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