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
@@ -34,13 +34,6 @@ declare module 'stripe' {
34
34
  */
35
35
  customer?: string;
36
36
 
37
- /**
38
- * ID of the Account this SetupIntent belongs to, if one exists.
39
- *
40
- * If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
41
- */
42
- customer_account?: string;
43
-
44
37
  /**
45
38
  * An arbitrary string attached to the object. Often useful for displaying to users.
46
39
  */
@@ -288,21 +281,11 @@ declare module 'stripe' {
288
281
  */
289
282
  giropay?: PaymentMethodData.Giropay;
290
283
 
291
- /**
292
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
293
- */
294
- gopay?: PaymentMethodData.Gopay;
295
-
296
284
  /**
297
285
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
298
286
  */
299
287
  grabpay?: PaymentMethodData.Grabpay;
300
288
 
301
- /**
302
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
303
- */
304
- id_bank_transfer?: PaymentMethodData.IdBankTransfer;
305
-
306
289
  /**
307
290
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
308
291
  */
@@ -338,11 +321,6 @@ declare module 'stripe' {
338
321
  */
339
322
  link?: PaymentMethodData.Link;
340
323
 
341
- /**
342
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
343
- */
344
- mb_way?: PaymentMethodData.MbWay;
345
-
346
324
  /**
347
325
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
348
326
  */
@@ -398,11 +376,6 @@ declare module 'stripe' {
398
376
  */
399
377
  paypal?: PaymentMethodData.Paypal;
400
378
 
401
- /**
402
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
403
- */
404
- payto?: PaymentMethodData.Payto;
405
-
406
379
  /**
407
380
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
408
381
  */
@@ -413,21 +386,11 @@ declare module 'stripe' {
413
386
  */
414
387
  promptpay?: PaymentMethodData.Promptpay;
415
388
 
416
- /**
417
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
418
- */
419
- qris?: PaymentMethodData.Qris;
420
-
421
389
  /**
422
390
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
423
391
  */
424
392
  radar_options?: PaymentMethodData.RadarOptions;
425
393
 
426
- /**
427
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
428
- */
429
- rechnung?: PaymentMethodData.Rechnung;
430
-
431
394
  /**
432
395
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
433
396
  */
@@ -448,21 +411,11 @@ declare module 'stripe' {
448
411
  */
449
412
  sepa_debit?: PaymentMethodData.SepaDebit;
450
413
 
451
- /**
452
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
453
- */
454
- shopeepay?: PaymentMethodData.Shopeepay;
455
-
456
414
  /**
457
415
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
458
416
  */
459
417
  sofort?: PaymentMethodData.Sofort;
460
418
 
461
- /**
462
- * This hash contains details about the Stripe balance payment method.
463
- */
464
- stripe_balance?: PaymentMethodData.StripeBalance;
465
-
466
419
  /**
467
420
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
468
421
  */
@@ -572,6 +525,11 @@ declare module 'stripe' {
572
525
  * Billing phone number (including extension).
573
526
  */
574
527
  phone?: Stripe.Emptyable<string>;
528
+
529
+ /**
530
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
531
+ */
532
+ tax_id?: string;
575
533
  }
576
534
 
577
535
  interface Blik {}
@@ -668,21 +626,8 @@ declare module 'stripe' {
668
626
 
669
627
  interface Giropay {}
670
628
 
671
- interface Gopay {}
672
-
673
629
  interface Grabpay {}
674
630
 
675
- interface IdBankTransfer {
676
- /**
677
- * Bank where the account is held.
678
- */
679
- bank?: IdBankTransfer.Bank;
680
- }
681
-
682
- namespace IdBankTransfer {
683
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
684
- }
685
-
686
631
  interface Ideal {
687
632
  /**
688
633
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -746,8 +691,6 @@ declare module 'stripe' {
746
691
 
747
692
  interface Link {}
748
693
 
749
- interface MbWay {}
750
-
751
694
  interface Mobilepay {}
752
695
 
753
696
  interface Multibanco {}
@@ -839,29 +782,10 @@ declare module 'stripe' {
839
782
 
840
783
  interface Paypal {}
841
784
 
842
- interface Payto {
843
- /**
844
- * The account number for the bank account.
845
- */
846
- account_number?: string;
847
-
848
- /**
849
- * Bank-State-Branch number of the bank account.
850
- */
851
- bsb_number?: string;
852
-
853
- /**
854
- * The PayID alias for the bank account.
855
- */
856
- pay_id?: string;
857
- }
858
-
859
785
  interface Pix {}
860
786
 
861
787
  interface Promptpay {}
862
788
 
863
- interface Qris {}
864
-
865
789
  interface RadarOptions {
866
790
  /**
867
791
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -869,32 +793,6 @@ declare module 'stripe' {
869
793
  session?: string;
870
794
  }
871
795
 
872
- interface Rechnung {
873
- /**
874
- * Customer's date of birth
875
- */
876
- dob: Rechnung.Dob;
877
- }
878
-
879
- namespace Rechnung {
880
- interface Dob {
881
- /**
882
- * The day of birth, between 1 and 31.
883
- */
884
- day: number;
885
-
886
- /**
887
- * The month of birth, between 1 and 12.
888
- */
889
- month: number;
890
-
891
- /**
892
- * The four-digit year of birth.
893
- */
894
- year: number;
895
- }
896
- }
897
-
898
796
  interface RevolutPay {}
899
797
 
900
798
  interface SamsungPay {}
@@ -908,8 +806,6 @@ declare module 'stripe' {
908
806
  iban: string;
909
807
  }
910
808
 
911
- interface Shopeepay {}
912
-
913
809
  interface Sofort {
914
810
  /**
915
811
  * Two-letter ISO code representing the country the bank account is located in.
@@ -921,22 +817,6 @@ declare module 'stripe' {
921
817
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
922
818
  }
923
819
 
924
- interface StripeBalance {
925
- /**
926
- * The connected account ID whose Stripe balance to use as the source of payment
927
- */
928
- account?: string;
929
-
930
- /**
931
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
932
- */
933
- source_type?: StripeBalance.SourceType;
934
- }
935
-
936
- namespace StripeBalance {
937
- type SourceType = 'bank_account' | 'card' | 'fpx';
938
- }
939
-
940
820
  interface Swish {}
941
821
 
942
822
  interface Twint {}
@@ -959,16 +839,13 @@ declare module 'stripe' {
959
839
  | 'eps'
960
840
  | 'fpx'
961
841
  | 'giropay'
962
- | 'gopay'
963
842
  | 'grabpay'
964
- | 'id_bank_transfer'
965
843
  | 'ideal'
966
844
  | 'kakao_pay'
967
845
  | 'klarna'
968
846
  | 'konbini'
969
847
  | 'kr_card'
970
848
  | 'link'
971
- | 'mb_way'
972
849
  | 'mobilepay'
973
850
  | 'multibanco'
974
851
  | 'naver_pay'
@@ -979,18 +856,13 @@ declare module 'stripe' {
979
856
  | 'payco'
980
857
  | 'paynow'
981
858
  | 'paypal'
982
- | 'payto'
983
859
  | 'pix'
984
860
  | 'promptpay'
985
- | 'qris'
986
- | 'rechnung'
987
861
  | 'revolut_pay'
988
862
  | 'samsung_pay'
989
863
  | 'satispay'
990
864
  | 'sepa_debit'
991
- | 'shopeepay'
992
865
  | 'sofort'
993
- | 'stripe_balance'
994
866
  | 'swish'
995
867
  | 'twint'
996
868
  | 'us_bank_account'
@@ -1071,11 +943,6 @@ declare module 'stripe' {
1071
943
  */
1072
944
  paypal?: PaymentMethodOptions.Paypal;
1073
945
 
1074
- /**
1075
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
1076
- */
1077
- payto?: PaymentMethodOptions.Payto;
1078
-
1079
946
  /**
1080
947
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1081
948
  */
@@ -1377,86 +1244,6 @@ declare module 'stripe' {
1377
1244
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1378
1245
  */
1379
1246
  billing_agreement_id?: string;
1380
-
1381
- currency?: string;
1382
-
1383
- /**
1384
- * 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.
1385
- */
1386
- subsellers?: Array<string>;
1387
- }
1388
-
1389
- interface Payto {
1390
- /**
1391
- * Additional fields for Mandate creation.
1392
- */
1393
- mandate_options?: Payto.MandateOptions;
1394
- }
1395
-
1396
- namespace Payto {
1397
- interface MandateOptions {
1398
- /**
1399
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1400
- */
1401
- amount?: number;
1402
-
1403
- /**
1404
- * 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.
1405
- */
1406
- amount_type?: MandateOptions.AmountType;
1407
-
1408
- /**
1409
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1410
- */
1411
- end_date?: string;
1412
-
1413
- /**
1414
- * The periodicity at which payments will be collected.
1415
- */
1416
- payment_schedule?: MandateOptions.PaymentSchedule;
1417
-
1418
- /**
1419
- * 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.
1420
- */
1421
- payments_per_period?: number;
1422
-
1423
- /**
1424
- * The purpose for which payments are made. Defaults to retail.
1425
- */
1426
- purpose?: MandateOptions.Purpose;
1427
-
1428
- /**
1429
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1430
- */
1431
- start_date?: string;
1432
- }
1433
-
1434
- namespace MandateOptions {
1435
- type AmountType = 'fixed' | 'maximum';
1436
-
1437
- type PaymentSchedule =
1438
- | 'adhoc'
1439
- | 'annual'
1440
- | 'daily'
1441
- | 'fortnightly'
1442
- | 'monthly'
1443
- | 'quarterly'
1444
- | 'semi_annual'
1445
- | 'weekly';
1446
-
1447
- type Purpose =
1448
- | 'dependant_support'
1449
- | 'government'
1450
- | 'loan'
1451
- | 'mortgage'
1452
- | 'other'
1453
- | 'pension'
1454
- | 'personal'
1455
- | 'retail'
1456
- | 'salary'
1457
- | 'tax'
1458
- | 'utility';
1459
- }
1460
1247
  }
1461
1248
 
1462
1249
  interface SepaDebit {
@@ -1504,11 +1291,6 @@ declare module 'stripe' {
1504
1291
  */
1505
1292
  filters?: FinancialConnections.Filters;
1506
1293
 
1507
- /**
1508
- * Customize manual entry behavior
1509
- */
1510
- manual_entry?: FinancialConnections.ManualEntry;
1511
-
1512
1294
  /**
1513
1295
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1514
1296
  */
@@ -1531,39 +1313,19 @@ declare module 'stripe' {
1531
1313
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1532
1314
  */
1533
1315
  account_subcategories?: Array<Filters.AccountSubcategory>;
1534
-
1535
- /**
1536
- * ID of the institution to use to filter for selectable accounts.
1537
- */
1538
- institution?: string;
1539
1316
  }
1540
1317
 
1541
1318
  namespace Filters {
1542
1319
  type AccountSubcategory = 'checking' | 'savings';
1543
1320
  }
1544
1321
 
1545
- interface ManualEntry {
1546
- /**
1547
- * Settings for configuring manual entry of account details.
1548
- */
1549
- mode: ManualEntry.Mode;
1550
- }
1551
-
1552
- namespace ManualEntry {
1553
- type Mode = 'automatic' | 'custom';
1554
- }
1555
-
1556
1322
  type Permission =
1557
1323
  | 'balances'
1558
1324
  | 'ownership'
1559
1325
  | 'payment_method'
1560
1326
  | 'transactions';
1561
1327
 
1562
- type Prefetch =
1563
- | 'balances'
1564
- | 'inferred_balances'
1565
- | 'ownership'
1566
- | 'transactions';
1328
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1567
1329
  }
1568
1330
 
1569
1331
  interface MandateOptions {
@@ -1630,13 +1392,6 @@ declare module 'stripe' {
1630
1392
  */
1631
1393
  customer?: string;
1632
1394
 
1633
- /**
1634
- * ID of the Account this SetupIntent belongs to, if one exists.
1635
- *
1636
- * If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
1637
- */
1638
- customer_account?: string;
1639
-
1640
1395
  /**
1641
1396
  * An arbitrary string attached to the object. Often useful for displaying to users.
1642
1397
  */
@@ -1785,21 +1540,11 @@ declare module 'stripe' {
1785
1540
  */
1786
1541
  giropay?: PaymentMethodData.Giropay;
1787
1542
 
1788
- /**
1789
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1790
- */
1791
- gopay?: PaymentMethodData.Gopay;
1792
-
1793
1543
  /**
1794
1544
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1795
1545
  */
1796
1546
  grabpay?: PaymentMethodData.Grabpay;
1797
1547
 
1798
- /**
1799
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1800
- */
1801
- id_bank_transfer?: PaymentMethodData.IdBankTransfer;
1802
-
1803
1548
  /**
1804
1549
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1805
1550
  */
@@ -1835,11 +1580,6 @@ declare module 'stripe' {
1835
1580
  */
1836
1581
  link?: PaymentMethodData.Link;
1837
1582
 
1838
- /**
1839
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
1840
- */
1841
- mb_way?: PaymentMethodData.MbWay;
1842
-
1843
1583
  /**
1844
1584
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1845
1585
  */
@@ -1895,11 +1635,6 @@ declare module 'stripe' {
1895
1635
  */
1896
1636
  paypal?: PaymentMethodData.Paypal;
1897
1637
 
1898
- /**
1899
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1900
- */
1901
- payto?: PaymentMethodData.Payto;
1902
-
1903
1638
  /**
1904
1639
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1905
1640
  */
@@ -1910,21 +1645,11 @@ declare module 'stripe' {
1910
1645
  */
1911
1646
  promptpay?: PaymentMethodData.Promptpay;
1912
1647
 
1913
- /**
1914
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
1915
- */
1916
- qris?: PaymentMethodData.Qris;
1917
-
1918
1648
  /**
1919
1649
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1920
1650
  */
1921
1651
  radar_options?: PaymentMethodData.RadarOptions;
1922
1652
 
1923
- /**
1924
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1925
- */
1926
- rechnung?: PaymentMethodData.Rechnung;
1927
-
1928
1653
  /**
1929
1654
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1930
1655
  */
@@ -1945,21 +1670,11 @@ declare module 'stripe' {
1945
1670
  */
1946
1671
  sepa_debit?: PaymentMethodData.SepaDebit;
1947
1672
 
1948
- /**
1949
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
1950
- */
1951
- shopeepay?: PaymentMethodData.Shopeepay;
1952
-
1953
1673
  /**
1954
1674
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1955
1675
  */
1956
1676
  sofort?: PaymentMethodData.Sofort;
1957
1677
 
1958
- /**
1959
- * This hash contains details about the Stripe balance payment method.
1960
- */
1961
- stripe_balance?: PaymentMethodData.StripeBalance;
1962
-
1963
1678
  /**
1964
1679
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1965
1680
  */
@@ -2069,6 +1784,11 @@ declare module 'stripe' {
2069
1784
  * Billing phone number (including extension).
2070
1785
  */
2071
1786
  phone?: Stripe.Emptyable<string>;
1787
+
1788
+ /**
1789
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
1790
+ */
1791
+ tax_id?: string;
2072
1792
  }
2073
1793
 
2074
1794
  interface Blik {}
@@ -2165,21 +1885,8 @@ declare module 'stripe' {
2165
1885
 
2166
1886
  interface Giropay {}
2167
1887
 
2168
- interface Gopay {}
2169
-
2170
1888
  interface Grabpay {}
2171
1889
 
2172
- interface IdBankTransfer {
2173
- /**
2174
- * Bank where the account is held.
2175
- */
2176
- bank?: IdBankTransfer.Bank;
2177
- }
2178
-
2179
- namespace IdBankTransfer {
2180
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
2181
- }
2182
-
2183
1890
  interface Ideal {
2184
1891
  /**
2185
1892
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -2243,8 +1950,6 @@ declare module 'stripe' {
2243
1950
 
2244
1951
  interface Link {}
2245
1952
 
2246
- interface MbWay {}
2247
-
2248
1953
  interface Mobilepay {}
2249
1954
 
2250
1955
  interface Multibanco {}
@@ -2336,29 +2041,10 @@ declare module 'stripe' {
2336
2041
 
2337
2042
  interface Paypal {}
2338
2043
 
2339
- interface Payto {
2340
- /**
2341
- * The account number for the bank account.
2342
- */
2343
- account_number?: string;
2344
-
2345
- /**
2346
- * Bank-State-Branch number of the bank account.
2347
- */
2348
- bsb_number?: string;
2349
-
2350
- /**
2351
- * The PayID alias for the bank account.
2352
- */
2353
- pay_id?: string;
2354
- }
2355
-
2356
2044
  interface Pix {}
2357
2045
 
2358
2046
  interface Promptpay {}
2359
2047
 
2360
- interface Qris {}
2361
-
2362
2048
  interface RadarOptions {
2363
2049
  /**
2364
2050
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -2366,32 +2052,6 @@ declare module 'stripe' {
2366
2052
  session?: string;
2367
2053
  }
2368
2054
 
2369
- interface Rechnung {
2370
- /**
2371
- * Customer's date of birth
2372
- */
2373
- dob: Rechnung.Dob;
2374
- }
2375
-
2376
- namespace Rechnung {
2377
- interface Dob {
2378
- /**
2379
- * The day of birth, between 1 and 31.
2380
- */
2381
- day: number;
2382
-
2383
- /**
2384
- * The month of birth, between 1 and 12.
2385
- */
2386
- month: number;
2387
-
2388
- /**
2389
- * The four-digit year of birth.
2390
- */
2391
- year: number;
2392
- }
2393
- }
2394
-
2395
2055
  interface RevolutPay {}
2396
2056
 
2397
2057
  interface SamsungPay {}
@@ -2405,8 +2065,6 @@ declare module 'stripe' {
2405
2065
  iban: string;
2406
2066
  }
2407
2067
 
2408
- interface Shopeepay {}
2409
-
2410
2068
  interface Sofort {
2411
2069
  /**
2412
2070
  * Two-letter ISO code representing the country the bank account is located in.
@@ -2418,22 +2076,6 @@ declare module 'stripe' {
2418
2076
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
2419
2077
  }
2420
2078
 
2421
- interface StripeBalance {
2422
- /**
2423
- * The connected account ID whose Stripe balance to use as the source of payment
2424
- */
2425
- account?: string;
2426
-
2427
- /**
2428
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2429
- */
2430
- source_type?: StripeBalance.SourceType;
2431
- }
2432
-
2433
- namespace StripeBalance {
2434
- type SourceType = 'bank_account' | 'card' | 'fpx';
2435
- }
2436
-
2437
2079
  interface Swish {}
2438
2080
 
2439
2081
  interface Twint {}
@@ -2456,16 +2098,13 @@ declare module 'stripe' {
2456
2098
  | 'eps'
2457
2099
  | 'fpx'
2458
2100
  | 'giropay'
2459
- | 'gopay'
2460
2101
  | 'grabpay'
2461
- | 'id_bank_transfer'
2462
2102
  | 'ideal'
2463
2103
  | 'kakao_pay'
2464
2104
  | 'klarna'
2465
2105
  | 'konbini'
2466
2106
  | 'kr_card'
2467
2107
  | 'link'
2468
- | 'mb_way'
2469
2108
  | 'mobilepay'
2470
2109
  | 'multibanco'
2471
2110
  | 'naver_pay'
@@ -2476,18 +2115,13 @@ declare module 'stripe' {
2476
2115
  | 'payco'
2477
2116
  | 'paynow'
2478
2117
  | 'paypal'
2479
- | 'payto'
2480
2118
  | 'pix'
2481
2119
  | 'promptpay'
2482
- | 'qris'
2483
- | 'rechnung'
2484
2120
  | 'revolut_pay'
2485
2121
  | 'samsung_pay'
2486
2122
  | 'satispay'
2487
2123
  | 'sepa_debit'
2488
- | 'shopeepay'
2489
2124
  | 'sofort'
2490
- | 'stripe_balance'
2491
2125
  | 'swish'
2492
2126
  | 'twint'
2493
2127
  | 'us_bank_account'
@@ -2568,11 +2202,6 @@ declare module 'stripe' {
2568
2202
  */
2569
2203
  paypal?: PaymentMethodOptions.Paypal;
2570
2204
 
2571
- /**
2572
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2573
- */
2574
- payto?: PaymentMethodOptions.Payto;
2575
-
2576
2205
  /**
2577
2206
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2578
2207
  */
@@ -2874,86 +2503,6 @@ declare module 'stripe' {
2874
2503
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2875
2504
  */
2876
2505
  billing_agreement_id?: string;
2877
-
2878
- currency?: string;
2879
-
2880
- /**
2881
- * 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.
2882
- */
2883
- subsellers?: Array<string>;
2884
- }
2885
-
2886
- interface Payto {
2887
- /**
2888
- * Additional fields for Mandate creation.
2889
- */
2890
- mandate_options?: Payto.MandateOptions;
2891
- }
2892
-
2893
- namespace Payto {
2894
- interface MandateOptions {
2895
- /**
2896
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2897
- */
2898
- amount?: number;
2899
-
2900
- /**
2901
- * 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.
2902
- */
2903
- amount_type?: MandateOptions.AmountType;
2904
-
2905
- /**
2906
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2907
- */
2908
- end_date?: string;
2909
-
2910
- /**
2911
- * The periodicity at which payments will be collected.
2912
- */
2913
- payment_schedule?: MandateOptions.PaymentSchedule;
2914
-
2915
- /**
2916
- * 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.
2917
- */
2918
- payments_per_period?: number;
2919
-
2920
- /**
2921
- * The purpose for which payments are made. Defaults to retail.
2922
- */
2923
- purpose?: MandateOptions.Purpose;
2924
-
2925
- /**
2926
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2927
- */
2928
- start_date?: string;
2929
- }
2930
-
2931
- namespace MandateOptions {
2932
- type AmountType = 'fixed' | 'maximum';
2933
-
2934
- type PaymentSchedule =
2935
- | 'adhoc'
2936
- | 'annual'
2937
- | 'daily'
2938
- | 'fortnightly'
2939
- | 'monthly'
2940
- | 'quarterly'
2941
- | 'semi_annual'
2942
- | 'weekly';
2943
-
2944
- type Purpose =
2945
- | 'dependant_support'
2946
- | 'government'
2947
- | 'loan'
2948
- | 'mortgage'
2949
- | 'other'
2950
- | 'pension'
2951
- | 'personal'
2952
- | 'retail'
2953
- | 'salary'
2954
- | 'tax'
2955
- | 'utility';
2956
- }
2957
2506
  }
2958
2507
 
2959
2508
  interface SepaDebit {
@@ -3001,11 +2550,6 @@ declare module 'stripe' {
3001
2550
  */
3002
2551
  filters?: FinancialConnections.Filters;
3003
2552
 
3004
- /**
3005
- * Customize manual entry behavior
3006
- */
3007
- manual_entry?: FinancialConnections.ManualEntry;
3008
-
3009
2553
  /**
3010
2554
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
3011
2555
  */
@@ -3028,39 +2572,19 @@ declare module 'stripe' {
3028
2572
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3029
2573
  */
3030
2574
  account_subcategories?: Array<Filters.AccountSubcategory>;
3031
-
3032
- /**
3033
- * ID of the institution to use to filter for selectable accounts.
3034
- */
3035
- institution?: string;
3036
2575
  }
3037
2576
 
3038
2577
  namespace Filters {
3039
2578
  type AccountSubcategory = 'checking' | 'savings';
3040
2579
  }
3041
2580
 
3042
- interface ManualEntry {
3043
- /**
3044
- * Settings for configuring manual entry of account details.
3045
- */
3046
- mode: ManualEntry.Mode;
3047
- }
3048
-
3049
- namespace ManualEntry {
3050
- type Mode = 'automatic' | 'custom';
3051
- }
3052
-
3053
2581
  type Permission =
3054
2582
  | 'balances'
3055
2583
  | 'ownership'
3056
2584
  | 'payment_method'
3057
2585
  | 'transactions';
3058
2586
 
3059
- type Prefetch =
3060
- | 'balances'
3061
- | 'inferred_balances'
3062
- | 'ownership'
3063
- | 'transactions';
2587
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
3064
2588
  }
3065
2589
 
3066
2590
  interface MandateOptions {
@@ -3104,11 +2628,6 @@ declare module 'stripe' {
3104
2628
  */
3105
2629
  customer?: string;
3106
2630
 
3107
- /**
3108
- * Only return SetupIntents for the account specified by this customer ID.
3109
- */
3110
- customer_account?: string;
3111
-
3112
2631
  /**
3113
2632
  * Specifies which fields in the response should be expanded.
3114
2633
  */
@@ -3329,21 +2848,11 @@ declare module 'stripe' {
3329
2848
  */
3330
2849
  giropay?: PaymentMethodData.Giropay;
3331
2850
 
3332
- /**
3333
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
3334
- */
3335
- gopay?: PaymentMethodData.Gopay;
3336
-
3337
2851
  /**
3338
2852
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
3339
2853
  */
3340
2854
  grabpay?: PaymentMethodData.Grabpay;
3341
2855
 
3342
- /**
3343
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
3344
- */
3345
- id_bank_transfer?: PaymentMethodData.IdBankTransfer;
3346
-
3347
2856
  /**
3348
2857
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
3349
2858
  */
@@ -3379,11 +2888,6 @@ declare module 'stripe' {
3379
2888
  */
3380
2889
  link?: PaymentMethodData.Link;
3381
2890
 
3382
- /**
3383
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
3384
- */
3385
- mb_way?: PaymentMethodData.MbWay;
3386
-
3387
2891
  /**
3388
2892
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3389
2893
  */
@@ -3439,11 +2943,6 @@ declare module 'stripe' {
3439
2943
  */
3440
2944
  paypal?: PaymentMethodData.Paypal;
3441
2945
 
3442
- /**
3443
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
3444
- */
3445
- payto?: PaymentMethodData.Payto;
3446
-
3447
2946
  /**
3448
2947
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
3449
2948
  */
@@ -3454,21 +2953,11 @@ declare module 'stripe' {
3454
2953
  */
3455
2954
  promptpay?: PaymentMethodData.Promptpay;
3456
2955
 
3457
- /**
3458
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
3459
- */
3460
- qris?: PaymentMethodData.Qris;
3461
-
3462
2956
  /**
3463
2957
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
3464
2958
  */
3465
2959
  radar_options?: PaymentMethodData.RadarOptions;
3466
2960
 
3467
- /**
3468
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3469
- */
3470
- rechnung?: PaymentMethodData.Rechnung;
3471
-
3472
2961
  /**
3473
2962
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3474
2963
  */
@@ -3489,21 +2978,11 @@ declare module 'stripe' {
3489
2978
  */
3490
2979
  sepa_debit?: PaymentMethodData.SepaDebit;
3491
2980
 
3492
- /**
3493
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
3494
- */
3495
- shopeepay?: PaymentMethodData.Shopeepay;
3496
-
3497
2981
  /**
3498
2982
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
3499
2983
  */
3500
2984
  sofort?: PaymentMethodData.Sofort;
3501
2985
 
3502
- /**
3503
- * This hash contains details about the Stripe balance payment method.
3504
- */
3505
- stripe_balance?: PaymentMethodData.StripeBalance;
3506
-
3507
2986
  /**
3508
2987
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
3509
2988
  */
@@ -3613,6 +3092,11 @@ declare module 'stripe' {
3613
3092
  * Billing phone number (including extension).
3614
3093
  */
3615
3094
  phone?: Stripe.Emptyable<string>;
3095
+
3096
+ /**
3097
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
3098
+ */
3099
+ tax_id?: string;
3616
3100
  }
3617
3101
 
3618
3102
  interface Blik {}
@@ -3709,21 +3193,8 @@ declare module 'stripe' {
3709
3193
 
3710
3194
  interface Giropay {}
3711
3195
 
3712
- interface Gopay {}
3713
-
3714
3196
  interface Grabpay {}
3715
3197
 
3716
- interface IdBankTransfer {
3717
- /**
3718
- * Bank where the account is held.
3719
- */
3720
- bank?: IdBankTransfer.Bank;
3721
- }
3722
-
3723
- namespace IdBankTransfer {
3724
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
3725
- }
3726
-
3727
3198
  interface Ideal {
3728
3199
  /**
3729
3200
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -3787,8 +3258,6 @@ declare module 'stripe' {
3787
3258
 
3788
3259
  interface Link {}
3789
3260
 
3790
- interface MbWay {}
3791
-
3792
3261
  interface Mobilepay {}
3793
3262
 
3794
3263
  interface Multibanco {}
@@ -3880,29 +3349,10 @@ declare module 'stripe' {
3880
3349
 
3881
3350
  interface Paypal {}
3882
3351
 
3883
- interface Payto {
3884
- /**
3885
- * The account number for the bank account.
3886
- */
3887
- account_number?: string;
3888
-
3889
- /**
3890
- * Bank-State-Branch number of the bank account.
3891
- */
3892
- bsb_number?: string;
3893
-
3894
- /**
3895
- * The PayID alias for the bank account.
3896
- */
3897
- pay_id?: string;
3898
- }
3899
-
3900
3352
  interface Pix {}
3901
3353
 
3902
3354
  interface Promptpay {}
3903
3355
 
3904
- interface Qris {}
3905
-
3906
3356
  interface RadarOptions {
3907
3357
  /**
3908
3358
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -3910,32 +3360,6 @@ declare module 'stripe' {
3910
3360
  session?: string;
3911
3361
  }
3912
3362
 
3913
- interface Rechnung {
3914
- /**
3915
- * Customer's date of birth
3916
- */
3917
- dob: Rechnung.Dob;
3918
- }
3919
-
3920
- namespace Rechnung {
3921
- interface Dob {
3922
- /**
3923
- * The day of birth, between 1 and 31.
3924
- */
3925
- day: number;
3926
-
3927
- /**
3928
- * The month of birth, between 1 and 12.
3929
- */
3930
- month: number;
3931
-
3932
- /**
3933
- * The four-digit year of birth.
3934
- */
3935
- year: number;
3936
- }
3937
- }
3938
-
3939
3363
  interface RevolutPay {}
3940
3364
 
3941
3365
  interface SamsungPay {}
@@ -3949,8 +3373,6 @@ declare module 'stripe' {
3949
3373
  iban: string;
3950
3374
  }
3951
3375
 
3952
- interface Shopeepay {}
3953
-
3954
3376
  interface Sofort {
3955
3377
  /**
3956
3378
  * Two-letter ISO code representing the country the bank account is located in.
@@ -3962,22 +3384,6 @@ declare module 'stripe' {
3962
3384
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
3963
3385
  }
3964
3386
 
3965
- interface StripeBalance {
3966
- /**
3967
- * The connected account ID whose Stripe balance to use as the source of payment
3968
- */
3969
- account?: string;
3970
-
3971
- /**
3972
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
3973
- */
3974
- source_type?: StripeBalance.SourceType;
3975
- }
3976
-
3977
- namespace StripeBalance {
3978
- type SourceType = 'bank_account' | 'card' | 'fpx';
3979
- }
3980
-
3981
3387
  interface Swish {}
3982
3388
 
3983
3389
  interface Twint {}
@@ -4000,16 +3406,13 @@ declare module 'stripe' {
4000
3406
  | 'eps'
4001
3407
  | 'fpx'
4002
3408
  | 'giropay'
4003
- | 'gopay'
4004
3409
  | 'grabpay'
4005
- | 'id_bank_transfer'
4006
3410
  | 'ideal'
4007
3411
  | 'kakao_pay'
4008
3412
  | 'klarna'
4009
3413
  | 'konbini'
4010
3414
  | 'kr_card'
4011
3415
  | 'link'
4012
- | 'mb_way'
4013
3416
  | 'mobilepay'
4014
3417
  | 'multibanco'
4015
3418
  | 'naver_pay'
@@ -4020,18 +3423,13 @@ declare module 'stripe' {
4020
3423
  | 'payco'
4021
3424
  | 'paynow'
4022
3425
  | 'paypal'
4023
- | 'payto'
4024
3426
  | 'pix'
4025
3427
  | 'promptpay'
4026
- | 'qris'
4027
- | 'rechnung'
4028
3428
  | 'revolut_pay'
4029
3429
  | 'samsung_pay'
4030
3430
  | 'satispay'
4031
3431
  | 'sepa_debit'
4032
- | 'shopeepay'
4033
3432
  | 'sofort'
4034
- | 'stripe_balance'
4035
3433
  | 'swish'
4036
3434
  | 'twint'
4037
3435
  | 'us_bank_account'
@@ -4112,11 +3510,6 @@ declare module 'stripe' {
4112
3510
  */
4113
3511
  paypal?: PaymentMethodOptions.Paypal;
4114
3512
 
4115
- /**
4116
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
4117
- */
4118
- payto?: PaymentMethodOptions.Payto;
4119
-
4120
3513
  /**
4121
3514
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
4122
3515
  */
@@ -4418,86 +3811,6 @@ declare module 'stripe' {
4418
3811
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
4419
3812
  */
4420
3813
  billing_agreement_id?: string;
4421
-
4422
- currency?: string;
4423
-
4424
- /**
4425
- * 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.
4426
- */
4427
- subsellers?: Array<string>;
4428
- }
4429
-
4430
- interface Payto {
4431
- /**
4432
- * Additional fields for Mandate creation.
4433
- */
4434
- mandate_options?: Payto.MandateOptions;
4435
- }
4436
-
4437
- namespace Payto {
4438
- interface MandateOptions {
4439
- /**
4440
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
4441
- */
4442
- amount?: number;
4443
-
4444
- /**
4445
- * 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.
4446
- */
4447
- amount_type?: MandateOptions.AmountType;
4448
-
4449
- /**
4450
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
4451
- */
4452
- end_date?: string;
4453
-
4454
- /**
4455
- * The periodicity at which payments will be collected.
4456
- */
4457
- payment_schedule?: MandateOptions.PaymentSchedule;
4458
-
4459
- /**
4460
- * 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.
4461
- */
4462
- payments_per_period?: number;
4463
-
4464
- /**
4465
- * The purpose for which payments are made. Defaults to retail.
4466
- */
4467
- purpose?: MandateOptions.Purpose;
4468
-
4469
- /**
4470
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
4471
- */
4472
- start_date?: string;
4473
- }
4474
-
4475
- namespace MandateOptions {
4476
- type AmountType = 'fixed' | 'maximum';
4477
-
4478
- type PaymentSchedule =
4479
- | 'adhoc'
4480
- | 'annual'
4481
- | 'daily'
4482
- | 'fortnightly'
4483
- | 'monthly'
4484
- | 'quarterly'
4485
- | 'semi_annual'
4486
- | 'weekly';
4487
-
4488
- type Purpose =
4489
- | 'dependant_support'
4490
- | 'government'
4491
- | 'loan'
4492
- | 'mortgage'
4493
- | 'other'
4494
- | 'pension'
4495
- | 'personal'
4496
- | 'retail'
4497
- | 'salary'
4498
- | 'tax'
4499
- | 'utility';
4500
- }
4501
3814
  }
4502
3815
 
4503
3816
  interface SepaDebit {
@@ -4545,11 +3858,6 @@ declare module 'stripe' {
4545
3858
  */
4546
3859
  filters?: FinancialConnections.Filters;
4547
3860
 
4548
- /**
4549
- * Customize manual entry behavior
4550
- */
4551
- manual_entry?: FinancialConnections.ManualEntry;
4552
-
4553
3861
  /**
4554
3862
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
4555
3863
  */
@@ -4572,39 +3880,19 @@ declare module 'stripe' {
4572
3880
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
4573
3881
  */
4574
3882
  account_subcategories?: Array<Filters.AccountSubcategory>;
4575
-
4576
- /**
4577
- * ID of the institution to use to filter for selectable accounts.
4578
- */
4579
- institution?: string;
4580
3883
  }
4581
3884
 
4582
3885
  namespace Filters {
4583
3886
  type AccountSubcategory = 'checking' | 'savings';
4584
3887
  }
4585
3888
 
4586
- interface ManualEntry {
4587
- /**
4588
- * Settings for configuring manual entry of account details.
4589
- */
4590
- mode: ManualEntry.Mode;
4591
- }
4592
-
4593
- namespace ManualEntry {
4594
- type Mode = 'automatic' | 'custom';
4595
- }
4596
-
4597
3889
  type Permission =
4598
3890
  | 'balances'
4599
3891
  | 'ownership'
4600
3892
  | 'payment_method'
4601
3893
  | 'transactions';
4602
3894
 
4603
- type Prefetch =
4604
- | 'balances'
4605
- | 'inferred_balances'
4606
- | 'ownership'
4607
- | 'transactions';
3895
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
4608
3896
  }
4609
3897
 
4610
3898
  interface MandateOptions {