stripe 18.4.0 → 18.5.0-beta.2

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 (297) hide show
  1. package/CHANGELOG.md +1328 -11
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +1 -0
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +107 -1
  6. package/cjs/apiVersion.js +2 -3
  7. package/cjs/resources/AccountNotices.js +21 -0
  8. package/cjs/resources/BalanceSettings.js +10 -0
  9. package/cjs/resources/Billing/MeterUsage.js +12 -0
  10. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  11. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  12. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  13. package/cjs/resources/ExternalAccounts.js +23 -0
  14. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  15. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  16. package/cjs/resources/FxQuotes.js +15 -0
  17. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  18. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  19. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  20. package/cjs/resources/Margins.js +22 -0
  21. package/cjs/resources/Orders.js +24 -0
  22. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  23. package/cjs/resources/PaymentIntents.js +13 -0
  24. package/cjs/resources/PaymentRecords.js +29 -0
  25. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  26. package/cjs/resources/Quotes.js +32 -0
  27. package/cjs/resources/SubscriptionSchedules.js +4 -0
  28. package/cjs/resources/Tax/Associations.js +9 -0
  29. package/cjs/resources/Tax/Forms.js +20 -0
  30. package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
  31. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  32. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  33. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  34. package/cjs/resources/V2/Core/Accounts.js +25 -0
  35. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  36. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  37. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  38. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +25 -0
  39. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  40. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  41. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  42. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  43. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  44. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  45. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  46. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  47. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  48. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  49. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  50. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  51. package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
  52. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  53. package/cjs/resources.js +102 -8
  54. package/cjs/stripe.core.js +1 -1
  55. package/esm/Error.js +93 -0
  56. package/esm/apiVersion.js +1 -2
  57. package/esm/resources/AccountNotices.js +18 -0
  58. package/esm/resources/BalanceSettings.js +7 -0
  59. package/esm/resources/Billing/MeterUsage.js +9 -0
  60. package/esm/resources/Capital/FinancingOffers.js +18 -0
  61. package/esm/resources/Capital/FinancingSummary.js +9 -0
  62. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  63. package/esm/resources/ExternalAccounts.js +20 -0
  64. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  65. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  66. package/esm/resources/FxQuotes.js +12 -0
  67. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  68. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  69. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  70. package/esm/resources/Margins.js +19 -0
  71. package/esm/resources/Orders.js +21 -0
  72. package/esm/resources/PaymentAttemptRecords.js +14 -0
  73. package/esm/resources/PaymentIntents.js +13 -0
  74. package/esm/resources/PaymentRecords.js +26 -0
  75. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  76. package/esm/resources/Quotes.js +32 -0
  77. package/esm/resources/SubscriptionSchedules.js +4 -0
  78. package/esm/resources/Tax/Associations.js +6 -0
  79. package/esm/resources/Tax/Forms.js +17 -0
  80. package/esm/resources/Terminal/OnboardingLinks.js +9 -0
  81. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  82. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  83. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  84. package/esm/resources/V2/Core/Accounts.js +22 -0
  85. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  86. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  87. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  88. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +22 -0
  89. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  90. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  91. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  92. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  93. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  94. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  95. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  96. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  97. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  98. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  99. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  100. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  101. package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
  102. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  103. package/esm/resources.js +86 -0
  104. package/esm/stripe.core.js +1 -1
  105. package/package.json +1 -1
  106. package/types/AccountLinksResource.d.ts +5 -1
  107. package/types/AccountNotices.d.ts +113 -0
  108. package/types/AccountNoticesResource.d.ts +98 -0
  109. package/types/AccountSessions.d.ts +45 -0
  110. package/types/AccountSessionsResource.d.ts +264 -0
  111. package/types/Accounts.d.ts +212 -1
  112. package/types/AccountsResource.d.ts +544 -0
  113. package/types/BalanceSettings.d.ts +91 -0
  114. package/types/BalanceSettingsResource.d.ts +110 -0
  115. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  116. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  117. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  118. package/types/Billing/CreditGrants.d.ts +5 -0
  119. package/types/Billing/CreditGrantsResource.d.ts +11 -1
  120. package/types/Billing/MeterUsage.d.ts +32 -0
  121. package/types/Billing/MeterUsageResource.d.ts +685 -0
  122. package/types/Billing/MeterUsageRows.d.ts +49 -0
  123. package/types/BillingPortal/Sessions.d.ts +5 -0
  124. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  125. package/types/Capital/FinancingOffers.d.ts +188 -0
  126. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  127. package/types/Capital/FinancingSummary.d.ts +106 -0
  128. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  129. package/types/Capital/FinancingTransactions.d.ts +135 -0
  130. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  131. package/types/Cards.d.ts +5 -0
  132. package/types/CashBalances.d.ts +5 -0
  133. package/types/Charges.d.ts +166 -0
  134. package/types/ChargesResource.d.ts +1406 -0
  135. package/types/Checkout/Sessions.d.ts +314 -1
  136. package/types/Checkout/SessionsResource.d.ts +414 -1
  137. package/types/ConfirmationTokens.d.ts +125 -0
  138. package/types/Coupons.d.ts +33 -0
  139. package/types/CouponsResource.d.ts +21 -0
  140. package/types/CreditNoteLineItems.d.ts +17 -0
  141. package/types/CreditNotes.d.ts +5 -0
  142. package/types/CreditNotesResource.d.ts +5 -0
  143. package/types/CustomerBalanceTransactions.d.ts +2 -0
  144. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  145. package/types/CustomerSessions.d.ts +5 -0
  146. package/types/CustomerSessionsResource.d.ts +6 -1
  147. package/types/Customers.d.ts +2 -0
  148. package/types/CustomersResource.d.ts +8 -0
  149. package/types/Discounts.d.ts +10 -0
  150. package/types/Disputes.d.ts +29 -0
  151. package/types/Errors.d.ts +81 -2
  152. package/types/EventTypes.d.ts +664 -0
  153. package/types/Events.d.ts +97 -0
  154. package/types/ExternalAccountsResource.d.ts +304 -0
  155. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  156. package/types/FinancialConnections/Accounts.d.ts +36 -1
  157. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  158. package/types/FinancialConnections/Institutions.d.ts +98 -0
  159. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  160. package/types/FinancialConnections/Sessions.d.ts +51 -1
  161. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  162. package/types/FxQuotes.d.ts +155 -0
  163. package/types/FxQuotesResource.d.ts +130 -0
  164. package/types/Identity/VerificationSessions.d.ts +5 -0
  165. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  166. package/types/InvoiceItems.d.ts +10 -0
  167. package/types/InvoiceItemsResource.d.ts +117 -6
  168. package/types/InvoiceLineItems.d.ts +45 -1
  169. package/types/InvoicePayments.d.ts +5 -0
  170. package/types/InvoicePaymentsResource.d.ts +7 -1
  171. package/types/Invoices.d.ts +171 -3
  172. package/types/InvoicesResource.d.ts +1537 -26
  173. package/types/Issuing/CardholdersResource.d.ts +2 -1
  174. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  175. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  176. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  177. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  178. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  179. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  180. package/types/Issuing/Settlements.d.ts +113 -0
  181. package/types/Issuing/Transactions.d.ts +5 -0
  182. package/types/Issuing/TransactionsResource.d.ts +5 -0
  183. package/types/LineItems.d.ts +49 -0
  184. package/types/Mandates.d.ts +77 -0
  185. package/types/Margins.d.ts +56 -0
  186. package/types/MarginsResource.d.ts +114 -0
  187. package/types/Orders.d.ts +1163 -0
  188. package/types/OrdersResource.d.ts +3139 -0
  189. package/types/PaymentAttemptRecords.d.ts +2166 -0
  190. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  191. package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
  192. package/types/PaymentIntents.d.ts +768 -2
  193. package/types/PaymentIntentsResource.d.ts +11341 -5700
  194. package/types/PaymentLinks.d.ts +6 -0
  195. package/types/PaymentLinksResource.d.ts +12 -0
  196. package/types/PaymentMethodConfigurations.d.ts +180 -0
  197. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  198. package/types/PaymentMethods.d.ts +125 -0
  199. package/types/PaymentMethodsResource.d.ts +167 -2
  200. package/types/PaymentRecords.d.ts +2159 -0
  201. package/types/PaymentRecordsResource.d.ts +455 -0
  202. package/types/Payouts.d.ts +5 -0
  203. package/types/PayoutsResource.d.ts +5 -0
  204. package/types/Prices.d.ts +22 -0
  205. package/types/PricesResource.d.ts +22 -0
  206. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  207. package/types/Privacy/RedactionJobs.d.ts +111 -0
  208. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  209. package/types/PromotionCodes.d.ts +5 -0
  210. package/types/PromotionCodesResource.d.ts +10 -0
  211. package/types/QuoteLines.d.ts +634 -0
  212. package/types/QuotePreviewInvoices.d.ts +1734 -0
  213. package/types/QuotePreviewSubscriptionSchedules.d.ts +845 -0
  214. package/types/Quotes.d.ts +594 -1
  215. package/types/QuotesResource.d.ts +2577 -232
  216. package/types/Refunds.d.ts +14 -0
  217. package/types/SetupAttempts.d.ts +47 -1
  218. package/types/SetupIntents.d.ts +118 -2
  219. package/types/SetupIntentsResource.d.ts +730 -3
  220. package/types/Sources.d.ts +29 -0
  221. package/types/SubscriptionItems.d.ts +21 -0
  222. package/types/SubscriptionItemsResource.d.ts +109 -0
  223. package/types/SubscriptionSchedules.d.ts +205 -0
  224. package/types/SubscriptionSchedulesResource.d.ts +1237 -9
  225. package/types/Subscriptions.d.ts +135 -1
  226. package/types/SubscriptionsResource.d.ts +472 -8
  227. package/types/Tax/Associations.d.ts +82 -0
  228. package/types/Tax/AssociationsResource.d.ts +29 -0
  229. package/types/Tax/Forms.d.ts +220 -0
  230. package/types/Tax/FormsResource.d.ts +107 -0
  231. package/types/TaxIds.d.ts +10 -0
  232. package/types/TaxIdsResource.d.ts +10 -0
  233. package/types/Terminal/OnboardingLinks.d.ts +57 -0
  234. package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
  235. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  236. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  237. package/types/Terminal/Readers.d.ts +20 -0
  238. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  239. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  240. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  241. package/types/Transfers.d.ts +5 -0
  242. package/types/TransfersResource.d.ts +5 -0
  243. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  244. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  245. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  246. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  247. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  248. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  249. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  250. package/types/V2/Core/AccountLinks.d.ts +168 -0
  251. package/types/V2/Core/AccountLinksResource.d.ts +152 -0
  252. package/types/V2/Core/Accounts/PersonsResource.d.ts +3780 -0
  253. package/types/V2/Core/Accounts.d.ts +8813 -0
  254. package/types/V2/Core/AccountsResource.d.ts +10626 -0
  255. package/types/V2/Core/Persons.d.ts +1872 -0
  256. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  257. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  258. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  259. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  260. package/types/V2/EventTypes.d.ts +965 -5
  261. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  262. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  263. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  264. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  265. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +580 -0
  266. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +326 -0
  267. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
  268. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +289 -0
  269. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  270. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  271. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
  272. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  273. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  274. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  275. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  276. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  277. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  278. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +208 -0
  279. package/types/V2/MoneyManagement/PayoutMethods.d.ts +160 -0
  280. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  281. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
  282. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  283. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +262 -0
  284. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  285. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
  286. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  287. package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
  288. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  289. package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
  290. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  291. package/types/V2/Payments/OffSessionPayments.d.ts +179 -0
  292. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +174 -0
  293. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +68 -0
  294. package/types/WebhookEndpointsResource.d.ts +78 -0
  295. package/types/index.d.ts +145 -0
  296. package/types/lib.d.ts +11 -1
  297. package/types/test/typescriptTest.ts +3 -3
@@ -34,6 +34,13 @@ 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
+
37
44
  /**
38
45
  * An arbitrary string attached to the object. Often useful for displaying to users.
39
46
  */
@@ -286,11 +293,21 @@ declare module 'stripe' {
286
293
  */
287
294
  giropay?: PaymentMethodData.Giropay;
288
295
 
296
+ /**
297
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
298
+ */
299
+ gopay?: PaymentMethodData.Gopay;
300
+
289
301
  /**
290
302
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
291
303
  */
292
304
  grabpay?: PaymentMethodData.Grabpay;
293
305
 
306
+ /**
307
+ * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
308
+ */
309
+ id_bank_transfer?: PaymentMethodData.IdBankTransfer;
310
+
294
311
  /**
295
312
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
296
313
  */
@@ -326,6 +343,11 @@ declare module 'stripe' {
326
343
  */
327
344
  link?: PaymentMethodData.Link;
328
345
 
346
+ /**
347
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
348
+ */
349
+ mb_way?: PaymentMethodData.MbWay;
350
+
329
351
  /**
330
352
  * 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`.
331
353
  */
@@ -381,6 +403,11 @@ declare module 'stripe' {
381
403
  */
382
404
  paypal?: PaymentMethodData.Paypal;
383
405
 
406
+ /**
407
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
408
+ */
409
+ payto?: PaymentMethodData.Payto;
410
+
384
411
  /**
385
412
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
386
413
  */
@@ -391,11 +418,21 @@ declare module 'stripe' {
391
418
  */
392
419
  promptpay?: PaymentMethodData.Promptpay;
393
420
 
421
+ /**
422
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
423
+ */
424
+ qris?: PaymentMethodData.Qris;
425
+
394
426
  /**
395
427
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
396
428
  */
397
429
  radar_options?: PaymentMethodData.RadarOptions;
398
430
 
431
+ /**
432
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
433
+ */
434
+ rechnung?: PaymentMethodData.Rechnung;
435
+
399
436
  /**
400
437
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
401
438
  */
@@ -416,11 +453,21 @@ declare module 'stripe' {
416
453
  */
417
454
  sepa_debit?: PaymentMethodData.SepaDebit;
418
455
 
456
+ /**
457
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
458
+ */
459
+ shopeepay?: PaymentMethodData.Shopeepay;
460
+
419
461
  /**
420
462
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
421
463
  */
422
464
  sofort?: PaymentMethodData.Sofort;
423
465
 
466
+ /**
467
+ * This hash contains details about the Stripe balance payment method.
468
+ */
469
+ stripe_balance?: PaymentMethodData.StripeBalance;
470
+
424
471
  /**
425
472
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
426
473
  */
@@ -633,8 +680,21 @@ declare module 'stripe' {
633
680
 
634
681
  interface Giropay {}
635
682
 
683
+ interface Gopay {}
684
+
636
685
  interface Grabpay {}
637
686
 
687
+ interface IdBankTransfer {
688
+ /**
689
+ * Bank where the account is held.
690
+ */
691
+ bank?: IdBankTransfer.Bank;
692
+ }
693
+
694
+ namespace IdBankTransfer {
695
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
696
+ }
697
+
638
698
  interface Ideal {
639
699
  /**
640
700
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -699,6 +759,8 @@ declare module 'stripe' {
699
759
 
700
760
  interface Link {}
701
761
 
762
+ interface MbWay {}
763
+
702
764
  interface Mobilepay {}
703
765
 
704
766
  interface Multibanco {}
@@ -790,10 +852,29 @@ declare module 'stripe' {
790
852
 
791
853
  interface Paypal {}
792
854
 
855
+ interface Payto {
856
+ /**
857
+ * The account number for the bank account.
858
+ */
859
+ account_number?: string;
860
+
861
+ /**
862
+ * Bank-State-Branch number of the bank account.
863
+ */
864
+ bsb_number?: string;
865
+
866
+ /**
867
+ * The PayID alias for the bank account.
868
+ */
869
+ pay_id?: string;
870
+ }
871
+
793
872
  interface Pix {}
794
873
 
795
874
  interface Promptpay {}
796
875
 
876
+ interface Qris {}
877
+
797
878
  interface RadarOptions {
798
879
  /**
799
880
  * 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.
@@ -801,6 +882,32 @@ declare module 'stripe' {
801
882
  session?: string;
802
883
  }
803
884
 
885
+ interface Rechnung {
886
+ /**
887
+ * Customer's date of birth
888
+ */
889
+ dob: Rechnung.Dob;
890
+ }
891
+
892
+ namespace Rechnung {
893
+ interface Dob {
894
+ /**
895
+ * The day of birth, between 1 and 31.
896
+ */
897
+ day: number;
898
+
899
+ /**
900
+ * The month of birth, between 1 and 12.
901
+ */
902
+ month: number;
903
+
904
+ /**
905
+ * The four-digit year of birth.
906
+ */
907
+ year: number;
908
+ }
909
+ }
910
+
804
911
  interface RevolutPay {}
805
912
 
806
913
  interface SamsungPay {}
@@ -814,6 +921,8 @@ declare module 'stripe' {
814
921
  iban: string;
815
922
  }
816
923
 
924
+ interface Shopeepay {}
925
+
817
926
  interface Sofort {
818
927
  /**
819
928
  * Two-letter ISO code representing the country the bank account is located in.
@@ -825,6 +934,22 @@ declare module 'stripe' {
825
934
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
826
935
  }
827
936
 
937
+ interface StripeBalance {
938
+ /**
939
+ * The connected account ID whose Stripe balance to use as the source of payment
940
+ */
941
+ account?: string;
942
+
943
+ /**
944
+ * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
945
+ */
946
+ source_type?: StripeBalance.SourceType;
947
+ }
948
+
949
+ namespace StripeBalance {
950
+ type SourceType = 'bank_account' | 'card' | 'fpx';
951
+ }
952
+
828
953
  interface Swish {}
829
954
 
830
955
  interface Twint {}
@@ -848,13 +973,16 @@ declare module 'stripe' {
848
973
  | 'eps'
849
974
  | 'fpx'
850
975
  | 'giropay'
976
+ | 'gopay'
851
977
  | 'grabpay'
978
+ | 'id_bank_transfer'
852
979
  | 'ideal'
853
980
  | 'kakao_pay'
854
981
  | 'klarna'
855
982
  | 'konbini'
856
983
  | 'kr_card'
857
984
  | 'link'
985
+ | 'mb_way'
858
986
  | 'mobilepay'
859
987
  | 'multibanco'
860
988
  | 'naver_pay'
@@ -865,13 +993,18 @@ declare module 'stripe' {
865
993
  | 'payco'
866
994
  | 'paynow'
867
995
  | 'paypal'
996
+ | 'payto'
868
997
  | 'pix'
869
998
  | 'promptpay'
999
+ | 'qris'
1000
+ | 'rechnung'
870
1001
  | 'revolut_pay'
871
1002
  | 'samsung_pay'
872
1003
  | 'satispay'
873
1004
  | 'sepa_debit'
1005
+ | 'shopeepay'
874
1006
  | 'sofort'
1007
+ | 'stripe_balance'
875
1008
  | 'swish'
876
1009
  | 'twint'
877
1010
  | 'us_bank_account'
@@ -957,6 +1090,11 @@ declare module 'stripe' {
957
1090
  */
958
1091
  paypal?: PaymentMethodOptions.Paypal;
959
1092
 
1093
+ /**
1094
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
1095
+ */
1096
+ payto?: PaymentMethodOptions.Payto;
1097
+
960
1098
  /**
961
1099
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
962
1100
  */
@@ -1404,6 +1542,86 @@ declare module 'stripe' {
1404
1542
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1405
1543
  */
1406
1544
  billing_agreement_id?: string;
1545
+
1546
+ currency?: string;
1547
+
1548
+ /**
1549
+ * 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.
1550
+ */
1551
+ subsellers?: Array<string>;
1552
+ }
1553
+
1554
+ interface Payto {
1555
+ /**
1556
+ * Additional fields for Mandate creation.
1557
+ */
1558
+ mandate_options?: Payto.MandateOptions;
1559
+ }
1560
+
1561
+ namespace Payto {
1562
+ interface MandateOptions {
1563
+ /**
1564
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
1565
+ */
1566
+ amount?: number;
1567
+
1568
+ /**
1569
+ * 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.
1570
+ */
1571
+ amount_type?: MandateOptions.AmountType;
1572
+
1573
+ /**
1574
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1575
+ */
1576
+ end_date?: string;
1577
+
1578
+ /**
1579
+ * The periodicity at which payments will be collected.
1580
+ */
1581
+ payment_schedule?: MandateOptions.PaymentSchedule;
1582
+
1583
+ /**
1584
+ * 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.
1585
+ */
1586
+ payments_per_period?: number;
1587
+
1588
+ /**
1589
+ * The purpose for which payments are made. Defaults to retail.
1590
+ */
1591
+ purpose?: MandateOptions.Purpose;
1592
+
1593
+ /**
1594
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1595
+ */
1596
+ start_date?: string;
1597
+ }
1598
+
1599
+ namespace MandateOptions {
1600
+ type AmountType = 'fixed' | 'maximum';
1601
+
1602
+ type PaymentSchedule =
1603
+ | 'adhoc'
1604
+ | 'annual'
1605
+ | 'daily'
1606
+ | 'fortnightly'
1607
+ | 'monthly'
1608
+ | 'quarterly'
1609
+ | 'semi_annual'
1610
+ | 'weekly';
1611
+
1612
+ type Purpose =
1613
+ | 'dependant_support'
1614
+ | 'government'
1615
+ | 'loan'
1616
+ | 'mortgage'
1617
+ | 'other'
1618
+ | 'pension'
1619
+ | 'personal'
1620
+ | 'retail'
1621
+ | 'salary'
1622
+ | 'tax'
1623
+ | 'utility';
1624
+ }
1407
1625
  }
1408
1626
 
1409
1627
  interface SepaDebit {
@@ -1451,6 +1669,11 @@ declare module 'stripe' {
1451
1669
  */
1452
1670
  filters?: FinancialConnections.Filters;
1453
1671
 
1672
+ /**
1673
+ * Customize manual entry behavior
1674
+ */
1675
+ manual_entry?: FinancialConnections.ManualEntry;
1676
+
1454
1677
  /**
1455
1678
  * 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`.
1456
1679
  */
@@ -1473,19 +1696,39 @@ declare module 'stripe' {
1473
1696
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1474
1697
  */
1475
1698
  account_subcategories?: Array<Filters.AccountSubcategory>;
1699
+
1700
+ /**
1701
+ * ID of the institution to use to filter for selectable accounts.
1702
+ */
1703
+ institution?: string;
1476
1704
  }
1477
1705
 
1478
1706
  namespace Filters {
1479
1707
  type AccountSubcategory = 'checking' | 'savings';
1480
1708
  }
1481
1709
 
1710
+ interface ManualEntry {
1711
+ /**
1712
+ * Settings for configuring manual entry of account details.
1713
+ */
1714
+ mode: ManualEntry.Mode;
1715
+ }
1716
+
1717
+ namespace ManualEntry {
1718
+ type Mode = 'automatic' | 'custom';
1719
+ }
1720
+
1482
1721
  type Permission =
1483
1722
  | 'balances'
1484
1723
  | 'ownership'
1485
1724
  | 'payment_method'
1486
1725
  | 'transactions';
1487
1726
 
1488
- type Prefetch = 'balances' | 'ownership' | 'transactions';
1727
+ type Prefetch =
1728
+ | 'balances'
1729
+ | 'inferred_balances'
1730
+ | 'ownership'
1731
+ | 'transactions';
1489
1732
  }
1490
1733
 
1491
1734
  interface MandateOptions {
@@ -1552,6 +1795,13 @@ declare module 'stripe' {
1552
1795
  */
1553
1796
  customer?: string;
1554
1797
 
1798
+ /**
1799
+ * ID of the Account this SetupIntent belongs to, if one exists.
1800
+ *
1801
+ * 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.
1802
+ */
1803
+ customer_account?: string;
1804
+
1555
1805
  /**
1556
1806
  * An arbitrary string attached to the object. Often useful for displaying to users.
1557
1807
  */
@@ -1705,11 +1955,21 @@ declare module 'stripe' {
1705
1955
  */
1706
1956
  giropay?: PaymentMethodData.Giropay;
1707
1957
 
1958
+ /**
1959
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
1960
+ */
1961
+ gopay?: PaymentMethodData.Gopay;
1962
+
1708
1963
  /**
1709
1964
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
1710
1965
  */
1711
1966
  grabpay?: PaymentMethodData.Grabpay;
1712
1967
 
1968
+ /**
1969
+ * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
1970
+ */
1971
+ id_bank_transfer?: PaymentMethodData.IdBankTransfer;
1972
+
1713
1973
  /**
1714
1974
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
1715
1975
  */
@@ -1745,6 +2005,11 @@ declare module 'stripe' {
1745
2005
  */
1746
2006
  link?: PaymentMethodData.Link;
1747
2007
 
2008
+ /**
2009
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2010
+ */
2011
+ mb_way?: PaymentMethodData.MbWay;
2012
+
1748
2013
  /**
1749
2014
  * 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`.
1750
2015
  */
@@ -1800,6 +2065,11 @@ declare module 'stripe' {
1800
2065
  */
1801
2066
  paypal?: PaymentMethodData.Paypal;
1802
2067
 
2068
+ /**
2069
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2070
+ */
2071
+ payto?: PaymentMethodData.Payto;
2072
+
1803
2073
  /**
1804
2074
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1805
2075
  */
@@ -1810,11 +2080,21 @@ declare module 'stripe' {
1810
2080
  */
1811
2081
  promptpay?: PaymentMethodData.Promptpay;
1812
2082
 
2083
+ /**
2084
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2085
+ */
2086
+ qris?: PaymentMethodData.Qris;
2087
+
1813
2088
  /**
1814
2089
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
1815
2090
  */
1816
2091
  radar_options?: PaymentMethodData.RadarOptions;
1817
2092
 
2093
+ /**
2094
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2095
+ */
2096
+ rechnung?: PaymentMethodData.Rechnung;
2097
+
1818
2098
  /**
1819
2099
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1820
2100
  */
@@ -1835,11 +2115,21 @@ declare module 'stripe' {
1835
2115
  */
1836
2116
  sepa_debit?: PaymentMethodData.SepaDebit;
1837
2117
 
2118
+ /**
2119
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2120
+ */
2121
+ shopeepay?: PaymentMethodData.Shopeepay;
2122
+
1838
2123
  /**
1839
2124
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
1840
2125
  */
1841
2126
  sofort?: PaymentMethodData.Sofort;
1842
2127
 
2128
+ /**
2129
+ * This hash contains details about the Stripe balance payment method.
2130
+ */
2131
+ stripe_balance?: PaymentMethodData.StripeBalance;
2132
+
1843
2133
  /**
1844
2134
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
1845
2135
  */
@@ -2052,8 +2342,21 @@ declare module 'stripe' {
2052
2342
 
2053
2343
  interface Giropay {}
2054
2344
 
2345
+ interface Gopay {}
2346
+
2055
2347
  interface Grabpay {}
2056
2348
 
2349
+ interface IdBankTransfer {
2350
+ /**
2351
+ * Bank where the account is held.
2352
+ */
2353
+ bank?: IdBankTransfer.Bank;
2354
+ }
2355
+
2356
+ namespace IdBankTransfer {
2357
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
2358
+ }
2359
+
2057
2360
  interface Ideal {
2058
2361
  /**
2059
2362
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -2118,6 +2421,8 @@ declare module 'stripe' {
2118
2421
 
2119
2422
  interface Link {}
2120
2423
 
2424
+ interface MbWay {}
2425
+
2121
2426
  interface Mobilepay {}
2122
2427
 
2123
2428
  interface Multibanco {}
@@ -2209,10 +2514,29 @@ declare module 'stripe' {
2209
2514
 
2210
2515
  interface Paypal {}
2211
2516
 
2517
+ interface Payto {
2518
+ /**
2519
+ * The account number for the bank account.
2520
+ */
2521
+ account_number?: string;
2522
+
2523
+ /**
2524
+ * Bank-State-Branch number of the bank account.
2525
+ */
2526
+ bsb_number?: string;
2527
+
2528
+ /**
2529
+ * The PayID alias for the bank account.
2530
+ */
2531
+ pay_id?: string;
2532
+ }
2533
+
2212
2534
  interface Pix {}
2213
2535
 
2214
2536
  interface Promptpay {}
2215
2537
 
2538
+ interface Qris {}
2539
+
2216
2540
  interface RadarOptions {
2217
2541
  /**
2218
2542
  * 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.
@@ -2220,6 +2544,32 @@ declare module 'stripe' {
2220
2544
  session?: string;
2221
2545
  }
2222
2546
 
2547
+ interface Rechnung {
2548
+ /**
2549
+ * Customer's date of birth
2550
+ */
2551
+ dob: Rechnung.Dob;
2552
+ }
2553
+
2554
+ namespace Rechnung {
2555
+ interface Dob {
2556
+ /**
2557
+ * The day of birth, between 1 and 31.
2558
+ */
2559
+ day: number;
2560
+
2561
+ /**
2562
+ * The month of birth, between 1 and 12.
2563
+ */
2564
+ month: number;
2565
+
2566
+ /**
2567
+ * The four-digit year of birth.
2568
+ */
2569
+ year: number;
2570
+ }
2571
+ }
2572
+
2223
2573
  interface RevolutPay {}
2224
2574
 
2225
2575
  interface SamsungPay {}
@@ -2233,6 +2583,8 @@ declare module 'stripe' {
2233
2583
  iban: string;
2234
2584
  }
2235
2585
 
2586
+ interface Shopeepay {}
2587
+
2236
2588
  interface Sofort {
2237
2589
  /**
2238
2590
  * Two-letter ISO code representing the country the bank account is located in.
@@ -2244,6 +2596,22 @@ declare module 'stripe' {
2244
2596
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
2245
2597
  }
2246
2598
 
2599
+ interface StripeBalance {
2600
+ /**
2601
+ * The connected account ID whose Stripe balance to use as the source of payment
2602
+ */
2603
+ account?: string;
2604
+
2605
+ /**
2606
+ * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2607
+ */
2608
+ source_type?: StripeBalance.SourceType;
2609
+ }
2610
+
2611
+ namespace StripeBalance {
2612
+ type SourceType = 'bank_account' | 'card' | 'fpx';
2613
+ }
2614
+
2247
2615
  interface Swish {}
2248
2616
 
2249
2617
  interface Twint {}
@@ -2267,13 +2635,16 @@ declare module 'stripe' {
2267
2635
  | 'eps'
2268
2636
  | 'fpx'
2269
2637
  | 'giropay'
2638
+ | 'gopay'
2270
2639
  | 'grabpay'
2640
+ | 'id_bank_transfer'
2271
2641
  | 'ideal'
2272
2642
  | 'kakao_pay'
2273
2643
  | 'klarna'
2274
2644
  | 'konbini'
2275
2645
  | 'kr_card'
2276
2646
  | 'link'
2647
+ | 'mb_way'
2277
2648
  | 'mobilepay'
2278
2649
  | 'multibanco'
2279
2650
  | 'naver_pay'
@@ -2284,13 +2655,18 @@ declare module 'stripe' {
2284
2655
  | 'payco'
2285
2656
  | 'paynow'
2286
2657
  | 'paypal'
2658
+ | 'payto'
2287
2659
  | 'pix'
2288
2660
  | 'promptpay'
2661
+ | 'qris'
2662
+ | 'rechnung'
2289
2663
  | 'revolut_pay'
2290
2664
  | 'samsung_pay'
2291
2665
  | 'satispay'
2292
2666
  | 'sepa_debit'
2667
+ | 'shopeepay'
2293
2668
  | 'sofort'
2669
+ | 'stripe_balance'
2294
2670
  | 'swish'
2295
2671
  | 'twint'
2296
2672
  | 'us_bank_account'
@@ -2376,6 +2752,11 @@ declare module 'stripe' {
2376
2752
  */
2377
2753
  paypal?: PaymentMethodOptions.Paypal;
2378
2754
 
2755
+ /**
2756
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2757
+ */
2758
+ payto?: PaymentMethodOptions.Payto;
2759
+
2379
2760
  /**
2380
2761
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2381
2762
  */
@@ -2823,6 +3204,86 @@ declare module 'stripe' {
2823
3204
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2824
3205
  */
2825
3206
  billing_agreement_id?: string;
3207
+
3208
+ currency?: string;
3209
+
3210
+ /**
3211
+ * 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.
3212
+ */
3213
+ subsellers?: Array<string>;
3214
+ }
3215
+
3216
+ interface Payto {
3217
+ /**
3218
+ * Additional fields for Mandate creation.
3219
+ */
3220
+ mandate_options?: Payto.MandateOptions;
3221
+ }
3222
+
3223
+ namespace Payto {
3224
+ interface MandateOptions {
3225
+ /**
3226
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
3227
+ */
3228
+ amount?: number;
3229
+
3230
+ /**
3231
+ * 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.
3232
+ */
3233
+ amount_type?: MandateOptions.AmountType;
3234
+
3235
+ /**
3236
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3237
+ */
3238
+ end_date?: string;
3239
+
3240
+ /**
3241
+ * The periodicity at which payments will be collected.
3242
+ */
3243
+ payment_schedule?: MandateOptions.PaymentSchedule;
3244
+
3245
+ /**
3246
+ * 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.
3247
+ */
3248
+ payments_per_period?: number;
3249
+
3250
+ /**
3251
+ * The purpose for which payments are made. Defaults to retail.
3252
+ */
3253
+ purpose?: MandateOptions.Purpose;
3254
+
3255
+ /**
3256
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
3257
+ */
3258
+ start_date?: string;
3259
+ }
3260
+
3261
+ namespace MandateOptions {
3262
+ type AmountType = 'fixed' | 'maximum';
3263
+
3264
+ type PaymentSchedule =
3265
+ | 'adhoc'
3266
+ | 'annual'
3267
+ | 'daily'
3268
+ | 'fortnightly'
3269
+ | 'monthly'
3270
+ | 'quarterly'
3271
+ | 'semi_annual'
3272
+ | 'weekly';
3273
+
3274
+ type Purpose =
3275
+ | 'dependant_support'
3276
+ | 'government'
3277
+ | 'loan'
3278
+ | 'mortgage'
3279
+ | 'other'
3280
+ | 'pension'
3281
+ | 'personal'
3282
+ | 'retail'
3283
+ | 'salary'
3284
+ | 'tax'
3285
+ | 'utility';
3286
+ }
2826
3287
  }
2827
3288
 
2828
3289
  interface SepaDebit {
@@ -2870,6 +3331,11 @@ declare module 'stripe' {
2870
3331
  */
2871
3332
  filters?: FinancialConnections.Filters;
2872
3333
 
3334
+ /**
3335
+ * Customize manual entry behavior
3336
+ */
3337
+ manual_entry?: FinancialConnections.ManualEntry;
3338
+
2873
3339
  /**
2874
3340
  * 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`.
2875
3341
  */
@@ -2892,19 +3358,39 @@ declare module 'stripe' {
2892
3358
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2893
3359
  */
2894
3360
  account_subcategories?: Array<Filters.AccountSubcategory>;
3361
+
3362
+ /**
3363
+ * ID of the institution to use to filter for selectable accounts.
3364
+ */
3365
+ institution?: string;
2895
3366
  }
2896
3367
 
2897
3368
  namespace Filters {
2898
3369
  type AccountSubcategory = 'checking' | 'savings';
2899
3370
  }
2900
3371
 
3372
+ interface ManualEntry {
3373
+ /**
3374
+ * Settings for configuring manual entry of account details.
3375
+ */
3376
+ mode: ManualEntry.Mode;
3377
+ }
3378
+
3379
+ namespace ManualEntry {
3380
+ type Mode = 'automatic' | 'custom';
3381
+ }
3382
+
2901
3383
  type Permission =
2902
3384
  | 'balances'
2903
3385
  | 'ownership'
2904
3386
  | 'payment_method'
2905
3387
  | 'transactions';
2906
3388
 
2907
- type Prefetch = 'balances' | 'ownership' | 'transactions';
3389
+ type Prefetch =
3390
+ | 'balances'
3391
+ | 'inferred_balances'
3392
+ | 'ownership'
3393
+ | 'transactions';
2908
3394
  }
2909
3395
 
2910
3396
  interface MandateOptions {
@@ -2948,6 +3434,11 @@ declare module 'stripe' {
2948
3434
  */
2949
3435
  customer?: string;
2950
3436
 
3437
+ /**
3438
+ * Only return SetupIntents for the account specified by this customer ID.
3439
+ */
3440
+ customer_account?: string;
3441
+
2951
3442
  /**
2952
3443
  * Specifies which fields in the response should be expanded.
2953
3444
  */
@@ -3173,11 +3664,21 @@ declare module 'stripe' {
3173
3664
  */
3174
3665
  giropay?: PaymentMethodData.Giropay;
3175
3666
 
3667
+ /**
3668
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
3669
+ */
3670
+ gopay?: PaymentMethodData.Gopay;
3671
+
3176
3672
  /**
3177
3673
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
3178
3674
  */
3179
3675
  grabpay?: PaymentMethodData.Grabpay;
3180
3676
 
3677
+ /**
3678
+ * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
3679
+ */
3680
+ id_bank_transfer?: PaymentMethodData.IdBankTransfer;
3681
+
3181
3682
  /**
3182
3683
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
3183
3684
  */
@@ -3213,6 +3714,11 @@ declare module 'stripe' {
3213
3714
  */
3214
3715
  link?: PaymentMethodData.Link;
3215
3716
 
3717
+ /**
3718
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
3719
+ */
3720
+ mb_way?: PaymentMethodData.MbWay;
3721
+
3216
3722
  /**
3217
3723
  * 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`.
3218
3724
  */
@@ -3268,6 +3774,11 @@ declare module 'stripe' {
3268
3774
  */
3269
3775
  paypal?: PaymentMethodData.Paypal;
3270
3776
 
3777
+ /**
3778
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
3779
+ */
3780
+ payto?: PaymentMethodData.Payto;
3781
+
3271
3782
  /**
3272
3783
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
3273
3784
  */
@@ -3278,11 +3789,21 @@ declare module 'stripe' {
3278
3789
  */
3279
3790
  promptpay?: PaymentMethodData.Promptpay;
3280
3791
 
3792
+ /**
3793
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
3794
+ */
3795
+ qris?: PaymentMethodData.Qris;
3796
+
3281
3797
  /**
3282
3798
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
3283
3799
  */
3284
3800
  radar_options?: PaymentMethodData.RadarOptions;
3285
3801
 
3802
+ /**
3803
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3804
+ */
3805
+ rechnung?: PaymentMethodData.Rechnung;
3806
+
3286
3807
  /**
3287
3808
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3288
3809
  */
@@ -3303,11 +3824,21 @@ declare module 'stripe' {
3303
3824
  */
3304
3825
  sepa_debit?: PaymentMethodData.SepaDebit;
3305
3826
 
3827
+ /**
3828
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
3829
+ */
3830
+ shopeepay?: PaymentMethodData.Shopeepay;
3831
+
3306
3832
  /**
3307
3833
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
3308
3834
  */
3309
3835
  sofort?: PaymentMethodData.Sofort;
3310
3836
 
3837
+ /**
3838
+ * This hash contains details about the Stripe balance payment method.
3839
+ */
3840
+ stripe_balance?: PaymentMethodData.StripeBalance;
3841
+
3311
3842
  /**
3312
3843
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
3313
3844
  */
@@ -3520,8 +4051,21 @@ declare module 'stripe' {
3520
4051
 
3521
4052
  interface Giropay {}
3522
4053
 
4054
+ interface Gopay {}
4055
+
3523
4056
  interface Grabpay {}
3524
4057
 
4058
+ interface IdBankTransfer {
4059
+ /**
4060
+ * Bank where the account is held.
4061
+ */
4062
+ bank?: IdBankTransfer.Bank;
4063
+ }
4064
+
4065
+ namespace IdBankTransfer {
4066
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
4067
+ }
4068
+
3525
4069
  interface Ideal {
3526
4070
  /**
3527
4071
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -3586,6 +4130,8 @@ declare module 'stripe' {
3586
4130
 
3587
4131
  interface Link {}
3588
4132
 
4133
+ interface MbWay {}
4134
+
3589
4135
  interface Mobilepay {}
3590
4136
 
3591
4137
  interface Multibanco {}
@@ -3677,10 +4223,29 @@ declare module 'stripe' {
3677
4223
 
3678
4224
  interface Paypal {}
3679
4225
 
4226
+ interface Payto {
4227
+ /**
4228
+ * The account number for the bank account.
4229
+ */
4230
+ account_number?: string;
4231
+
4232
+ /**
4233
+ * Bank-State-Branch number of the bank account.
4234
+ */
4235
+ bsb_number?: string;
4236
+
4237
+ /**
4238
+ * The PayID alias for the bank account.
4239
+ */
4240
+ pay_id?: string;
4241
+ }
4242
+
3680
4243
  interface Pix {}
3681
4244
 
3682
4245
  interface Promptpay {}
3683
4246
 
4247
+ interface Qris {}
4248
+
3684
4249
  interface RadarOptions {
3685
4250
  /**
3686
4251
  * 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.
@@ -3688,6 +4253,32 @@ declare module 'stripe' {
3688
4253
  session?: string;
3689
4254
  }
3690
4255
 
4256
+ interface Rechnung {
4257
+ /**
4258
+ * Customer's date of birth
4259
+ */
4260
+ dob: Rechnung.Dob;
4261
+ }
4262
+
4263
+ namespace Rechnung {
4264
+ interface Dob {
4265
+ /**
4266
+ * The day of birth, between 1 and 31.
4267
+ */
4268
+ day: number;
4269
+
4270
+ /**
4271
+ * The month of birth, between 1 and 12.
4272
+ */
4273
+ month: number;
4274
+
4275
+ /**
4276
+ * The four-digit year of birth.
4277
+ */
4278
+ year: number;
4279
+ }
4280
+ }
4281
+
3691
4282
  interface RevolutPay {}
3692
4283
 
3693
4284
  interface SamsungPay {}
@@ -3701,6 +4292,8 @@ declare module 'stripe' {
3701
4292
  iban: string;
3702
4293
  }
3703
4294
 
4295
+ interface Shopeepay {}
4296
+
3704
4297
  interface Sofort {
3705
4298
  /**
3706
4299
  * Two-letter ISO code representing the country the bank account is located in.
@@ -3712,6 +4305,22 @@ declare module 'stripe' {
3712
4305
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
3713
4306
  }
3714
4307
 
4308
+ interface StripeBalance {
4309
+ /**
4310
+ * The connected account ID whose Stripe balance to use as the source of payment
4311
+ */
4312
+ account?: string;
4313
+
4314
+ /**
4315
+ * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
4316
+ */
4317
+ source_type?: StripeBalance.SourceType;
4318
+ }
4319
+
4320
+ namespace StripeBalance {
4321
+ type SourceType = 'bank_account' | 'card' | 'fpx';
4322
+ }
4323
+
3715
4324
  interface Swish {}
3716
4325
 
3717
4326
  interface Twint {}
@@ -3735,13 +4344,16 @@ declare module 'stripe' {
3735
4344
  | 'eps'
3736
4345
  | 'fpx'
3737
4346
  | 'giropay'
4347
+ | 'gopay'
3738
4348
  | 'grabpay'
4349
+ | 'id_bank_transfer'
3739
4350
  | 'ideal'
3740
4351
  | 'kakao_pay'
3741
4352
  | 'klarna'
3742
4353
  | 'konbini'
3743
4354
  | 'kr_card'
3744
4355
  | 'link'
4356
+ | 'mb_way'
3745
4357
  | 'mobilepay'
3746
4358
  | 'multibanco'
3747
4359
  | 'naver_pay'
@@ -3752,13 +4364,18 @@ declare module 'stripe' {
3752
4364
  | 'payco'
3753
4365
  | 'paynow'
3754
4366
  | 'paypal'
4367
+ | 'payto'
3755
4368
  | 'pix'
3756
4369
  | 'promptpay'
4370
+ | 'qris'
4371
+ | 'rechnung'
3757
4372
  | 'revolut_pay'
3758
4373
  | 'samsung_pay'
3759
4374
  | 'satispay'
3760
4375
  | 'sepa_debit'
4376
+ | 'shopeepay'
3761
4377
  | 'sofort'
4378
+ | 'stripe_balance'
3762
4379
  | 'swish'
3763
4380
  | 'twint'
3764
4381
  | 'us_bank_account'
@@ -3844,6 +4461,11 @@ declare module 'stripe' {
3844
4461
  */
3845
4462
  paypal?: PaymentMethodOptions.Paypal;
3846
4463
 
4464
+ /**
4465
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
4466
+ */
4467
+ payto?: PaymentMethodOptions.Payto;
4468
+
3847
4469
  /**
3848
4470
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3849
4471
  */
@@ -4291,6 +4913,86 @@ declare module 'stripe' {
4291
4913
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
4292
4914
  */
4293
4915
  billing_agreement_id?: string;
4916
+
4917
+ currency?: string;
4918
+
4919
+ /**
4920
+ * 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.
4921
+ */
4922
+ subsellers?: Array<string>;
4923
+ }
4924
+
4925
+ interface Payto {
4926
+ /**
4927
+ * Additional fields for Mandate creation.
4928
+ */
4929
+ mandate_options?: Payto.MandateOptions;
4930
+ }
4931
+
4932
+ namespace Payto {
4933
+ interface MandateOptions {
4934
+ /**
4935
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
4936
+ */
4937
+ amount?: number;
4938
+
4939
+ /**
4940
+ * 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.
4941
+ */
4942
+ amount_type?: MandateOptions.AmountType;
4943
+
4944
+ /**
4945
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
4946
+ */
4947
+ end_date?: string;
4948
+
4949
+ /**
4950
+ * The periodicity at which payments will be collected.
4951
+ */
4952
+ payment_schedule?: MandateOptions.PaymentSchedule;
4953
+
4954
+ /**
4955
+ * 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.
4956
+ */
4957
+ payments_per_period?: number;
4958
+
4959
+ /**
4960
+ * The purpose for which payments are made. Defaults to retail.
4961
+ */
4962
+ purpose?: MandateOptions.Purpose;
4963
+
4964
+ /**
4965
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
4966
+ */
4967
+ start_date?: string;
4968
+ }
4969
+
4970
+ namespace MandateOptions {
4971
+ type AmountType = 'fixed' | 'maximum';
4972
+
4973
+ type PaymentSchedule =
4974
+ | 'adhoc'
4975
+ | 'annual'
4976
+ | 'daily'
4977
+ | 'fortnightly'
4978
+ | 'monthly'
4979
+ | 'quarterly'
4980
+ | 'semi_annual'
4981
+ | 'weekly';
4982
+
4983
+ type Purpose =
4984
+ | 'dependant_support'
4985
+ | 'government'
4986
+ | 'loan'
4987
+ | 'mortgage'
4988
+ | 'other'
4989
+ | 'pension'
4990
+ | 'personal'
4991
+ | 'retail'
4992
+ | 'salary'
4993
+ | 'tax'
4994
+ | 'utility';
4995
+ }
4294
4996
  }
4295
4997
 
4296
4998
  interface SepaDebit {
@@ -4338,6 +5040,11 @@ declare module 'stripe' {
4338
5040
  */
4339
5041
  filters?: FinancialConnections.Filters;
4340
5042
 
5043
+ /**
5044
+ * Customize manual entry behavior
5045
+ */
5046
+ manual_entry?: FinancialConnections.ManualEntry;
5047
+
4341
5048
  /**
4342
5049
  * 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`.
4343
5050
  */
@@ -4360,19 +5067,39 @@ declare module 'stripe' {
4360
5067
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
4361
5068
  */
4362
5069
  account_subcategories?: Array<Filters.AccountSubcategory>;
5070
+
5071
+ /**
5072
+ * ID of the institution to use to filter for selectable accounts.
5073
+ */
5074
+ institution?: string;
4363
5075
  }
4364
5076
 
4365
5077
  namespace Filters {
4366
5078
  type AccountSubcategory = 'checking' | 'savings';
4367
5079
  }
4368
5080
 
5081
+ interface ManualEntry {
5082
+ /**
5083
+ * Settings for configuring manual entry of account details.
5084
+ */
5085
+ mode: ManualEntry.Mode;
5086
+ }
5087
+
5088
+ namespace ManualEntry {
5089
+ type Mode = 'automatic' | 'custom';
5090
+ }
5091
+
4369
5092
  type Permission =
4370
5093
  | 'balances'
4371
5094
  | 'ownership'
4372
5095
  | 'payment_method'
4373
5096
  | 'transactions';
4374
5097
 
4375
- type Prefetch = 'balances' | 'ownership' | 'transactions';
5098
+ type Prefetch =
5099
+ | 'balances'
5100
+ | 'inferred_balances'
5101
+ | 'ownership'
5102
+ | 'transactions';
4376
5103
  }
4377
5104
 
4378
5105
  interface MandateOptions {