stripe 19.2.0-beta.1 → 19.2.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 (332) hide show
  1. package/CHANGELOG.md +64 -1433
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -115
  6. package/cjs/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/Mandates.js +0 -5
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/PaymentRecords.js +4 -0
  11. package/cjs/resources/Quotes.js +0 -32
  12. package/cjs/resources/SubscriptionSchedules.js +0 -4
  13. package/cjs/resources/Subscriptions.js +0 -4
  14. package/cjs/resources.js +8 -106
  15. package/cjs/stripe.core.js +1 -1
  16. package/esm/Error.js +0 -100
  17. package/esm/apiVersion.js +2 -1
  18. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  19. package/esm/resources/Mandates.js +0 -5
  20. package/esm/resources/PaymentIntents.js +0 -8
  21. package/esm/resources/PaymentRecords.js +4 -0
  22. package/esm/resources/Quotes.js +0 -32
  23. package/esm/resources/SubscriptionSchedules.js +0 -4
  24. package/esm/resources/Subscriptions.js +0 -4
  25. package/esm/resources.js +0 -93
  26. package/esm/stripe.core.js +1 -1
  27. package/package.json +1 -1
  28. package/types/AccountLinksResource.d.ts +1 -5
  29. package/types/AccountSessions.d.ts +0 -45
  30. package/types/AccountSessionsResource.d.ts +0 -264
  31. package/types/Accounts.d.ts +23 -212
  32. package/types/AccountsResource.d.ts +44 -544
  33. package/types/Billing/AlertTriggereds.d.ts +1 -1
  34. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  35. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  36. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  37. package/types/Billing/CreditGrants.d.ts +0 -5
  38. package/types/Billing/CreditGrantsResource.d.ts +3 -13
  39. package/types/BillingPortal/Configurations.d.ts +1 -1
  40. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  41. package/types/BillingPortal/Sessions.d.ts +0 -5
  42. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  43. package/types/Cards.d.ts +0 -5
  44. package/types/CashBalances.d.ts +0 -5
  45. package/types/Charges.d.ts +1 -172
  46. package/types/ChargesResource.d.ts +0 -1406
  47. package/types/Checkout/Sessions.d.ts +17 -369
  48. package/types/Checkout/SessionsResource.d.ts +23 -635
  49. package/types/ConfirmationTokens.d.ts +1 -125
  50. package/types/Coupons.d.ts +0 -33
  51. package/types/CouponsResource.d.ts +0 -21
  52. package/types/CreditNoteLineItems.d.ts +0 -17
  53. package/types/CreditNotes.d.ts +26 -5
  54. package/types/CreditNotesResource.d.ts +78 -5
  55. package/types/CustomerBalanceTransactions.d.ts +0 -2
  56. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  57. package/types/CustomerSessions.d.ts +120 -5
  58. package/types/CustomerSessionsResource.d.ts +121 -6
  59. package/types/Customers.d.ts +7 -2
  60. package/types/CustomersResource.d.ts +1 -8
  61. package/types/Discounts.d.ts +0 -10
  62. package/types/Disputes.d.ts +0 -40
  63. package/types/DisputesResource.d.ts +0 -11
  64. package/types/Errors.d.ts +0 -85
  65. package/types/EventTypes.d.ts +0 -630
  66. package/types/Events.d.ts +0 -95
  67. package/types/Files.d.ts +1 -0
  68. package/types/FilesResource.d.ts +2 -0
  69. package/types/FinancialConnections/Accounts.d.ts +1 -36
  70. package/types/FinancialConnections/AccountsResource.d.ts +4 -41
  71. package/types/FinancialConnections/Sessions.d.ts +1 -51
  72. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  73. package/types/Identity/VerificationSessions.d.ts +0 -5
  74. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  75. package/types/InvoiceItems.d.ts +0 -10
  76. package/types/InvoiceItemsResource.d.ts +6 -117
  77. package/types/InvoiceLineItems.d.ts +1 -45
  78. package/types/Invoices.d.ts +5 -203
  79. package/types/InvoicesResource.d.ts +4 -1622
  80. package/types/Issuing/CardholdersResource.d.ts +1 -2
  81. package/types/Issuing/Transactions.d.ts +0 -5
  82. package/types/Issuing/TransactionsResource.d.ts +0 -5
  83. package/types/LineItems.d.ts +0 -49
  84. package/types/Mandates.d.ts +1 -135
  85. package/types/MandatesResource.d.ts +0 -31
  86. package/types/PaymentAttemptRecords.d.ts +1 -137
  87. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  88. package/types/PaymentIntentAmountDetailsLineItems.d.ts +17 -7
  89. package/types/PaymentIntents.d.ts +23 -782
  90. package/types/PaymentIntentsResource.d.ts +4783 -9501
  91. package/types/PaymentLinks.d.ts +34 -6
  92. package/types/PaymentLinksResource.d.ts +88 -12
  93. package/types/PaymentMethodConfigurations.d.ts +46 -190
  94. package/types/PaymentMethodConfigurationsResource.d.ts +100 -300
  95. package/types/PaymentMethods.d.ts +34 -130
  96. package/types/PaymentMethodsResource.d.ts +17 -168
  97. package/types/PaymentRecords.d.ts +1 -137
  98. package/types/PaymentRecordsResource.d.ts +89 -0
  99. package/types/PayoutsResource.d.ts +1 -1
  100. package/types/Prices.d.ts +0 -22
  101. package/types/PricesResource.d.ts +0 -22
  102. package/types/PromotionCodes.d.ts +0 -5
  103. package/types/PromotionCodesResource.d.ts +0 -10
  104. package/types/Quotes.d.ts +1 -594
  105. package/types/QuotesResource.d.ts +290 -2635
  106. package/types/Refunds.d.ts +9 -14
  107. package/types/SetupAttempts.d.ts +2 -51
  108. package/types/SetupIntents.d.ts +59 -209
  109. package/types/SetupIntentsResource.d.ts +132 -952
  110. package/types/Sources.d.ts +0 -29
  111. package/types/SubscriptionItems.d.ts +0 -26
  112. package/types/SubscriptionItemsResource.d.ts +0 -109
  113. package/types/SubscriptionSchedules.d.ts +0 -205
  114. package/types/SubscriptionSchedulesResource.d.ts +4 -1232
  115. package/types/Subscriptions.d.ts +1 -262
  116. package/types/SubscriptionsResource.d.ts +8 -745
  117. package/types/Tax/Registrations.d.ts +9 -0
  118. package/types/Tax/RegistrationsResource.d.ts +12 -0
  119. package/types/TaxIds.d.ts +0 -10
  120. package/types/TaxIdsResource.d.ts +0 -10
  121. package/types/Terminal/Configurations.d.ts +19 -9
  122. package/types/Terminal/ConfigurationsResource.d.ts +44 -28
  123. package/types/Terminal/Readers.d.ts +14 -29
  124. package/types/Terminal/ReadersResource.d.ts +30 -30
  125. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  126. package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
  127. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  128. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  129. package/types/TokensResource.d.ts +22 -0
  130. package/types/Transfers.d.ts +0 -5
  131. package/types/TransfersResource.d.ts +0 -5
  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/Core/EventTypes.d.ts +10 -1647
  140. package/types/V2/Core/EventsResource.d.ts +29 -3
  141. package/types/WebhookEndpointsResource.d.ts +2 -75
  142. package/types/apiVersion.d.ts +2 -1
  143. package/types/crypto/crypto.d.ts +1 -1
  144. package/types/index.d.ts +0 -153
  145. package/types/lib.d.ts +0 -10
  146. package/cjs/resources/AccountNotices.js +0 -21
  147. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
  148. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  149. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  150. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  151. package/cjs/resources/ExternalAccounts.js +0 -23
  152. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  153. package/cjs/resources/FxQuotes.js +0 -15
  154. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  155. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  156. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  157. package/cjs/resources/Margins.js +0 -22
  158. package/cjs/resources/Orders.js +0 -24
  159. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  160. package/cjs/resources/Tax/Associations.js +0 -9
  161. package/cjs/resources/Tax/Forms.js +0 -20
  162. package/cjs/resources/Terminal/OnboardingLinks.js +0 -12
  163. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  164. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
  165. package/cjs/resources/V2/Billing/BillSettings.js +0 -27
  166. package/cjs/resources/V2/Billing/Cadences.js +0 -23
  167. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
  168. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
  169. package/cjs/resources/V2/Billing/Profiles.js +0 -19
  170. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  171. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  172. package/cjs/resources/V2/Core/Accounts.js +0 -25
  173. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  174. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  175. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  176. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  177. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  178. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  179. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  180. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  181. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  182. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  183. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  184. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  185. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  186. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  187. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  188. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  189. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
  190. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  191. package/esm/resources/AccountNotices.js +0 -18
  192. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
  193. package/esm/resources/Capital/FinancingOffers.js +0 -18
  194. package/esm/resources/Capital/FinancingSummary.js +0 -9
  195. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  196. package/esm/resources/ExternalAccounts.js +0 -20
  197. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  198. package/esm/resources/FxQuotes.js +0 -12
  199. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  200. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  201. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  202. package/esm/resources/Margins.js +0 -19
  203. package/esm/resources/Orders.js +0 -21
  204. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  205. package/esm/resources/Tax/Associations.js +0 -6
  206. package/esm/resources/Tax/Forms.js +0 -17
  207. package/esm/resources/Terminal/OnboardingLinks.js +0 -9
  208. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  209. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
  210. package/esm/resources/V2/Billing/BillSettings.js +0 -24
  211. package/esm/resources/V2/Billing/Cadences.js +0 -20
  212. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
  213. package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
  214. package/esm/resources/V2/Billing/Profiles.js +0 -16
  215. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  216. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  217. package/esm/resources/V2/Core/Accounts.js +0 -22
  218. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  219. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  220. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  221. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  222. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  223. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  224. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  225. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  226. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  227. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  228. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  229. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  230. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  231. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  232. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  233. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  234. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
  235. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  236. package/types/AccountNotices.d.ts +0 -113
  237. package/types/AccountNoticesResource.d.ts +0 -98
  238. package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
  239. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
  240. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
  241. package/types/Capital/FinancingOffers.d.ts +0 -188
  242. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  243. package/types/Capital/FinancingSummary.d.ts +0 -106
  244. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  245. package/types/Capital/FinancingTransactions.d.ts +0 -135
  246. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  247. package/types/ExternalAccountsResource.d.ts +0 -304
  248. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  249. package/types/FinancialConnections/Institutions.d.ts +0 -98
  250. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  251. package/types/FxQuotes.d.ts +0 -155
  252. package/types/FxQuotesResource.d.ts +0 -130
  253. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  254. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  255. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  256. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  257. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  258. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  259. package/types/Issuing/Settlements.d.ts +0 -113
  260. package/types/Margins.d.ts +0 -56
  261. package/types/MarginsResource.d.ts +0 -114
  262. package/types/Orders.d.ts +0 -1163
  263. package/types/OrdersResource.d.ts +0 -3139
  264. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  265. package/types/Privacy/RedactionJobs.d.ts +0 -111
  266. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  267. package/types/QuoteLines.d.ts +0 -634
  268. package/types/QuotePreviewInvoices.d.ts +0 -1770
  269. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
  270. package/types/Tax/Associations.d.ts +0 -82
  271. package/types/Tax/AssociationsResource.d.ts +0 -29
  272. package/types/Tax/Forms.d.ts +0 -220
  273. package/types/Tax/FormsResource.d.ts +0 -107
  274. package/types/Terminal/OnboardingLinks.d.ts +0 -57
  275. package/types/Terminal/OnboardingLinksResource.d.ts +0 -62
  276. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  277. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  278. package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
  279. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
  280. package/types/V2/Billing/BillSettings.d.ts +0 -120
  281. package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
  282. package/types/V2/Billing/Cadences.d.ts +0 -686
  283. package/types/V2/Billing/CadencesResource.d.ts +0 -487
  284. package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -314
  285. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
  286. package/types/V2/Billing/CollectionSettings.d.ts +0 -337
  287. package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -675
  288. package/types/V2/Billing/Profiles.d.ts +0 -70
  289. package/types/V2/Billing/ProfilesResource.d.ts +0 -150
  290. package/types/V2/Core/AccountLinks.d.ts +0 -168
  291. package/types/V2/Core/AccountLinksResource.d.ts +0 -152
  292. package/types/V2/Core/AccountPersons.d.ts +0 -615
  293. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -1153
  294. package/types/V2/Core/Accounts.d.ts +0 -5919
  295. package/types/V2/Core/AccountsResource.d.ts +0 -4999
  296. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  297. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  298. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  299. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  300. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  301. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  302. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  303. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  304. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
  305. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -147
  306. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -178
  307. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -112
  308. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  309. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  310. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
  311. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  312. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  313. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  314. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  315. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  316. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  317. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  318. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
  319. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
  320. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  321. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  322. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -302
  323. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  324. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  325. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  326. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
  327. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  328. package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
  329. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  330. package/types/V2/Payments/OffSessionPayments.d.ts +0 -326
  331. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -401
  332. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
@@ -64,13 +64,13 @@ declare module 'stripe' {
64
64
 
65
65
  crypto?: PaymentMethod.Crypto;
66
66
 
67
+ custom?: PaymentMethod.Custom;
68
+
67
69
  /**
68
70
  * The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
69
71
  */
70
72
  customer: string | Stripe.Customer | null;
71
73
 
72
- customer_account?: string | null;
73
-
74
74
  customer_balance?: PaymentMethod.CustomerBalance;
75
75
 
76
76
  eps?: PaymentMethod.Eps;
@@ -79,12 +79,8 @@ declare module 'stripe' {
79
79
 
80
80
  giropay?: PaymentMethod.Giropay;
81
81
 
82
- gopay?: PaymentMethod.Gopay;
83
-
84
82
  grabpay?: PaymentMethod.Grabpay;
85
83
 
86
- id_bank_transfer?: PaymentMethod.IdBankTransfer;
87
-
88
84
  ideal?: PaymentMethod.Ideal;
89
85
 
90
86
  interac_present?: PaymentMethod.InteracPresent;
@@ -97,11 +93,6 @@ declare module 'stripe' {
97
93
 
98
94
  kr_card?: PaymentMethod.KrCard;
99
95
 
100
- /**
101
- * The Mandate object of the most recently created Mandate associated with this payment method
102
- */
103
- latest_active_mandate?: Stripe.Mandate | null;
104
-
105
96
  link?: PaymentMethod.Link;
106
97
 
107
98
  /**
@@ -136,23 +127,15 @@ declare module 'stripe' {
136
127
 
137
128
  paypal?: PaymentMethod.Paypal;
138
129
 
139
- paypay?: PaymentMethod.Paypay;
140
-
141
- payto?: PaymentMethod.Payto;
142
-
143
130
  pix?: PaymentMethod.Pix;
144
131
 
145
132
  promptpay?: PaymentMethod.Promptpay;
146
133
 
147
- qris?: PaymentMethod.Qris;
148
-
149
134
  /**
150
135
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
151
136
  */
152
137
  radar_options?: PaymentMethod.RadarOptions;
153
138
 
154
- rechnung?: PaymentMethod.Rechnung;
155
-
156
139
  revolut_pay?: PaymentMethod.RevolutPay;
157
140
 
158
141
  samsung_pay?: PaymentMethod.SamsungPay;
@@ -161,12 +144,8 @@ declare module 'stripe' {
161
144
 
162
145
  sepa_debit?: PaymentMethod.SepaDebit;
163
146
 
164
- shopeepay?: PaymentMethod.Shopeepay;
165
-
166
147
  sofort?: PaymentMethod.Sofort;
167
148
 
168
- stripe_balance?: PaymentMethod.StripeBalance;
169
-
170
149
  swish?: PaymentMethod.Swish;
171
150
 
172
151
  twint?: PaymentMethod.Twint;
@@ -185,11 +164,6 @@ declare module 'stripe' {
185
164
 
186
165
  namespace PaymentMethod {
187
166
  interface AcssDebit {
188
- /**
189
- * Account number of the bank account.
190
- */
191
- account_number?: string | null;
192
-
193
167
  /**
194
168
  * Name of the bank associated with the bank account.
195
169
  */
@@ -913,6 +887,37 @@ declare module 'stripe' {
913
887
 
914
888
  interface Crypto {}
915
889
 
890
+ interface Custom {
891
+ /**
892
+ * Display name of the Dashboard-only CustomPaymentMethodType.
893
+ */
894
+ display_name: string | null;
895
+
896
+ /**
897
+ * Contains information about the Dashboard-only CustomPaymentMethodType logo.
898
+ */
899
+ logo: Custom.Logo | null;
900
+
901
+ /**
902
+ * ID of the Dashboard-only CustomPaymentMethodType. Not expandable.
903
+ */
904
+ type: string;
905
+ }
906
+
907
+ namespace Custom {
908
+ interface Logo {
909
+ /**
910
+ * Content type of the Dashboard-only CustomPaymentMethodType logo.
911
+ */
912
+ content_type: string | null;
913
+
914
+ /**
915
+ * URL of the Dashboard-only CustomPaymentMethodType logo.
916
+ */
917
+ url: string;
918
+ }
919
+ }
920
+
916
921
  interface CustomerBalance {}
917
922
 
918
923
  interface Eps {
@@ -996,24 +1001,8 @@ declare module 'stripe' {
996
1001
 
997
1002
  interface Giropay {}
998
1003
 
999
- interface Gopay {}
1000
-
1001
1004
  interface Grabpay {}
1002
1005
 
1003
- interface IdBankTransfer {
1004
- bank: IdBankTransfer.Bank | null;
1005
-
1006
- bank_code: string | null;
1007
-
1008
- bank_name: string | null;
1009
-
1010
- display_name: string | null;
1011
- }
1012
-
1013
- namespace IdBankTransfer {
1014
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1015
- }
1016
-
1017
1006
  interface Ideal {
1018
1007
  /**
1019
1008
  * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1348,11 +1337,6 @@ declare module 'stripe' {
1348
1337
  */
1349
1338
  country: string | null;
1350
1339
 
1351
- /**
1352
- * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1353
- */
1354
- fingerprint?: string | null;
1355
-
1356
1340
  /**
1357
1341
  * Owner's email. Values are provided by PayPal directly
1358
1342
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1363,39 +1347,12 @@ declare module 'stripe' {
1363
1347
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1364
1348
  */
1365
1349
  payer_id: string | null;
1366
-
1367
- /**
1368
- * Owner's verified email. Values are verified or provided by PayPal directly
1369
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1370
- */
1371
- verified_email?: string | null;
1372
- }
1373
-
1374
- interface Paypay {}
1375
-
1376
- interface Payto {
1377
- /**
1378
- * Bank-State-Branch number of the bank account.
1379
- */
1380
- bsb_number: string | null;
1381
-
1382
- /**
1383
- * Last four digits of the bank account number.
1384
- */
1385
- last4: string | null;
1386
-
1387
- /**
1388
- * The PayID alias for the bank account.
1389
- */
1390
- pay_id: string | null;
1391
1350
  }
1392
1351
 
1393
1352
  interface Pix {}
1394
1353
 
1395
1354
  interface Promptpay {}
1396
1355
 
1397
- interface Qris {}
1398
-
1399
1356
  interface RadarOptions {
1400
1357
  /**
1401
1358
  * 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.
@@ -1403,29 +1360,6 @@ declare module 'stripe' {
1403
1360
  session?: string;
1404
1361
  }
1405
1362
 
1406
- interface Rechnung {
1407
- dob?: Rechnung.Dob;
1408
- }
1409
-
1410
- namespace Rechnung {
1411
- interface Dob {
1412
- /**
1413
- * The day of birth, between 1 and 31.
1414
- */
1415
- day: number;
1416
-
1417
- /**
1418
- * The month of birth, between 1 and 12.
1419
- */
1420
- month: number;
1421
-
1422
- /**
1423
- * The four-digit year of birth.
1424
- */
1425
- year: number;
1426
- }
1427
- }
1428
-
1429
1363
  interface RevolutPay {}
1430
1364
 
1431
1365
  interface SamsungPay {}
@@ -1478,8 +1412,6 @@ declare module 'stripe' {
1478
1412
  }
1479
1413
  }
1480
1414
 
1481
- interface Shopeepay {}
1482
-
1483
1415
  interface Sofort {
1484
1416
  /**
1485
1417
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1487,22 +1419,6 @@ declare module 'stripe' {
1487
1419
  country: string | null;
1488
1420
  }
1489
1421
 
1490
- interface StripeBalance {
1491
- /**
1492
- * The connected account ID whose Stripe balance to use as the source of payment
1493
- */
1494
- account?: string | null;
1495
-
1496
- /**
1497
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1498
- */
1499
- source_type: StripeBalance.SourceType;
1500
- }
1501
-
1502
- namespace StripeBalance {
1503
- type SourceType = 'bank_account' | 'card' | 'fpx';
1504
- }
1505
-
1506
1422
  interface Swish {}
1507
1423
 
1508
1424
  interface Twint {}
@@ -1524,13 +1440,12 @@ declare module 'stripe' {
1524
1440
  | 'card_present'
1525
1441
  | 'cashapp'
1526
1442
  | 'crypto'
1443
+ | 'custom'
1527
1444
  | 'customer_balance'
1528
1445
  | 'eps'
1529
1446
  | 'fpx'
1530
1447
  | 'giropay'
1531
- | 'gopay'
1532
1448
  | 'grabpay'
1533
- | 'id_bank_transfer'
1534
1449
  | 'ideal'
1535
1450
  | 'interac_present'
1536
1451
  | 'kakao_pay'
@@ -1549,19 +1464,13 @@ declare module 'stripe' {
1549
1464
  | 'payco'
1550
1465
  | 'paynow'
1551
1466
  | 'paypal'
1552
- | 'paypay'
1553
- | 'payto'
1554
1467
  | 'pix'
1555
1468
  | 'promptpay'
1556
- | 'qris'
1557
- | 'rechnung'
1558
1469
  | 'revolut_pay'
1559
1470
  | 'samsung_pay'
1560
1471
  | 'satispay'
1561
1472
  | 'sepa_debit'
1562
- | 'shopeepay'
1563
1473
  | 'sofort'
1564
- | 'stripe_balance'
1565
1474
  | 'swish'
1566
1475
  | 'twint'
1567
1476
  | 'us_bank_account'
@@ -1574,11 +1483,6 @@ declare module 'stripe' {
1574
1483
  */
1575
1484
  account_holder_type: UsBankAccount.AccountHolderType | null;
1576
1485
 
1577
- /**
1578
- * Account number of the bank account.
1579
- */
1580
- account_number?: string | null;
1581
-
1582
1486
  /**
1583
1487
  * Account type: checkings or savings. Defaults to checking if omitted.
1584
1488
  */
@@ -88,6 +88,11 @@ declare module 'stripe' {
88
88
  */
89
89
  crypto?: PaymentMethodCreateParams.Crypto;
90
90
 
91
+ /**
92
+ * If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method.
93
+ */
94
+ custom?: PaymentMethodCreateParams.Custom;
95
+
91
96
  /**
92
97
  * The `Customer` to whom the original PaymentMethod is attached.
93
98
  */
@@ -118,21 +123,11 @@ declare module 'stripe' {
118
123
  */
119
124
  giropay?: PaymentMethodCreateParams.Giropay;
120
125
 
121
- /**
122
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
123
- */
124
- gopay?: PaymentMethodCreateParams.Gopay;
125
-
126
126
  /**
127
127
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
128
128
  */
129
129
  grabpay?: PaymentMethodCreateParams.Grabpay;
130
130
 
131
- /**
132
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
133
- */
134
- id_bank_transfer?: PaymentMethodCreateParams.IdBankTransfer;
135
-
136
131
  /**
137
132
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
138
133
  */
@@ -233,16 +228,6 @@ declare module 'stripe' {
233
228
  */
234
229
  paypal?: PaymentMethodCreateParams.Paypal;
235
230
 
236
- /**
237
- * If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
238
- */
239
- paypay?: PaymentMethodCreateParams.Paypay;
240
-
241
- /**
242
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
243
- */
244
- payto?: PaymentMethodCreateParams.Payto;
245
-
246
231
  /**
247
232
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
248
233
  */
@@ -253,21 +238,11 @@ declare module 'stripe' {
253
238
  */
254
239
  promptpay?: PaymentMethodCreateParams.Promptpay;
255
240
 
256
- /**
257
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
258
- */
259
- qris?: PaymentMethodCreateParams.Qris;
260
-
261
241
  /**
262
242
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
263
243
  */
264
244
  radar_options?: PaymentMethodCreateParams.RadarOptions;
265
245
 
266
- /**
267
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
268
- */
269
- rechnung?: PaymentMethodCreateParams.Rechnung;
270
-
271
246
  /**
272
247
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
273
248
  */
@@ -288,21 +263,11 @@ declare module 'stripe' {
288
263
  */
289
264
  sepa_debit?: PaymentMethodCreateParams.SepaDebit;
290
265
 
291
- /**
292
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
293
- */
294
- shopeepay?: PaymentMethodCreateParams.Shopeepay;
295
-
296
266
  /**
297
267
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
298
268
  */
299
269
  sofort?: PaymentMethodCreateParams.Sofort;
300
270
 
301
- /**
302
- * This hash contains details about the Stripe balance payment method.
303
- */
304
- stripe_balance?: PaymentMethodCreateParams.StripeBalance;
305
-
306
271
  /**
307
272
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
308
273
  */
@@ -477,6 +442,13 @@ declare module 'stripe' {
477
442
 
478
443
  interface Crypto {}
479
444
 
445
+ interface Custom {
446
+ /**
447
+ * ID of the Dashboard-only CustomPaymentMethodType. This field is used by Stripe products' internal code to support CPMs.
448
+ */
449
+ type: string;
450
+ }
451
+
480
452
  interface CustomerBalance {}
481
453
 
482
454
  interface Eps {
@@ -560,21 +532,8 @@ declare module 'stripe' {
560
532
 
561
533
  interface Giropay {}
562
534
 
563
- interface Gopay {}
564
-
565
535
  interface Grabpay {}
566
536
 
567
- interface IdBankTransfer {
568
- /**
569
- * Bank where the account is held.
570
- */
571
- bank?: IdBankTransfer.Bank;
572
- }
573
-
574
- namespace IdBankTransfer {
575
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
576
- }
577
-
578
537
  interface Ideal {
579
538
  /**
580
539
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -732,31 +691,10 @@ declare module 'stripe' {
732
691
 
733
692
  interface Paypal {}
734
693
 
735
- interface Paypay {}
736
-
737
- interface Payto {
738
- /**
739
- * The account number for the bank account.
740
- */
741
- account_number?: string;
742
-
743
- /**
744
- * Bank-State-Branch number of the bank account.
745
- */
746
- bsb_number?: string;
747
-
748
- /**
749
- * The PayID alias for the bank account.
750
- */
751
- pay_id?: string;
752
- }
753
-
754
694
  interface Pix {}
755
695
 
756
696
  interface Promptpay {}
757
697
 
758
- interface Qris {}
759
-
760
698
  interface RadarOptions {
761
699
  /**
762
700
  * 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.
@@ -764,32 +702,6 @@ declare module 'stripe' {
764
702
  session?: string;
765
703
  }
766
704
 
767
- interface Rechnung {
768
- /**
769
- * Customer's date of birth
770
- */
771
- dob: Rechnung.Dob;
772
- }
773
-
774
- namespace Rechnung {
775
- interface Dob {
776
- /**
777
- * The day of birth, between 1 and 31.
778
- */
779
- day: number;
780
-
781
- /**
782
- * The month of birth, between 1 and 12.
783
- */
784
- month: number;
785
-
786
- /**
787
- * The four-digit year of birth.
788
- */
789
- year: number;
790
- }
791
- }
792
-
793
705
  interface RevolutPay {}
794
706
 
795
707
  interface SamsungPay {}
@@ -803,8 +715,6 @@ declare module 'stripe' {
803
715
  iban: string;
804
716
  }
805
717
 
806
- interface Shopeepay {}
807
-
808
718
  interface Sofort {
809
719
  /**
810
720
  * Two-letter ISO code representing the country the bank account is located in.
@@ -816,22 +726,6 @@ declare module 'stripe' {
816
726
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
817
727
  }
818
728
 
819
- interface StripeBalance {
820
- /**
821
- * The connected account ID whose Stripe balance to use as the source of payment
822
- */
823
- account?: string;
824
-
825
- /**
826
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
827
- */
828
- source_type?: StripeBalance.SourceType;
829
- }
830
-
831
- namespace StripeBalance {
832
- type SourceType = 'bank_account' | 'card' | 'fpx';
833
- }
834
-
835
729
  interface Swish {}
836
730
 
837
731
  interface Twint {}
@@ -852,13 +746,12 @@ declare module 'stripe' {
852
746
  | 'card'
853
747
  | 'cashapp'
854
748
  | 'crypto'
749
+ | 'custom'
855
750
  | 'customer_balance'
856
751
  | 'eps'
857
752
  | 'fpx'
858
753
  | 'giropay'
859
- | 'gopay'
860
754
  | 'grabpay'
861
- | 'id_bank_transfer'
862
755
  | 'ideal'
863
756
  | 'kakao_pay'
864
757
  | 'klarna'
@@ -876,19 +769,13 @@ declare module 'stripe' {
876
769
  | 'payco'
877
770
  | 'paynow'
878
771
  | 'paypal'
879
- | 'paypay'
880
- | 'payto'
881
772
  | 'pix'
882
773
  | 'promptpay'
883
- | 'qris'
884
- | 'rechnung'
885
774
  | 'revolut_pay'
886
775
  | 'samsung_pay'
887
776
  | 'satispay'
888
777
  | 'sepa_debit'
889
- | 'shopeepay'
890
778
  | 'sofort'
891
- | 'stripe_balance'
892
779
  | 'swish'
893
780
  | 'twint'
894
781
  | 'us_bank_account'
@@ -966,11 +853,6 @@ declare module 'stripe' {
966
853
  */
967
854
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
968
855
 
969
- /**
970
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
971
- */
972
- payto?: PaymentMethodUpdateParams.Payto;
973
-
974
856
  /**
975
857
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
976
858
  */
@@ -1037,23 +919,6 @@ declare module 'stripe' {
1037
919
  }
1038
920
  }
1039
921
 
1040
- interface Payto {
1041
- /**
1042
- * The account number for the bank account.
1043
- */
1044
- account_number?: string;
1045
-
1046
- /**
1047
- * Bank-State-Branch number of the bank account.
1048
- */
1049
- bsb_number?: string;
1050
-
1051
- /**
1052
- * The PayID alias for the bank account.
1053
- */
1054
- pay_id?: string;
1055
- }
1056
-
1057
922
  interface UsBankAccount {
1058
923
  /**
1059
924
  * Bank account holder type.
@@ -1085,7 +950,7 @@ declare module 'stripe' {
1085
950
  expand?: Array<string>;
1086
951
 
1087
952
  /**
1088
- * An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
953
+ * Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload.
1089
954
  */
1090
955
  type?: PaymentMethodListParams.Type;
1091
956
  }
@@ -1107,13 +972,12 @@ declare module 'stripe' {
1107
972
  | 'card'
1108
973
  | 'cashapp'
1109
974
  | 'crypto'
975
+ | 'custom'
1110
976
  | 'customer_balance'
1111
977
  | 'eps'
1112
978
  | 'fpx'
1113
979
  | 'giropay'
1114
- | 'gopay'
1115
980
  | 'grabpay'
1116
- | 'id_bank_transfer'
1117
981
  | 'ideal'
1118
982
  | 'kakao_pay'
1119
983
  | 'klarna'
@@ -1131,19 +995,13 @@ declare module 'stripe' {
1131
995
  | 'payco'
1132
996
  | 'paynow'
1133
997
  | 'paypal'
1134
- | 'paypay'
1135
- | 'payto'
1136
998
  | 'pix'
1137
999
  | 'promptpay'
1138
- | 'qris'
1139
- | 'rechnung'
1140
1000
  | 'revolut_pay'
1141
1001
  | 'samsung_pay'
1142
1002
  | 'satispay'
1143
1003
  | 'sepa_debit'
1144
- | 'shopeepay'
1145
1004
  | 'sofort'
1146
- | 'stripe_balance'
1147
1005
  | 'swish'
1148
1006
  | 'twint'
1149
1007
  | 'us_bank_account'
@@ -1155,12 +1013,7 @@ declare module 'stripe' {
1155
1013
  /**
1156
1014
  * The ID of the customer to which to attach the PaymentMethod.
1157
1015
  */
1158
- customer?: string;
1159
-
1160
- /**
1161
- * The ID of the account to which to attach the PaymentMethod.
1162
- */
1163
- customer_account?: string;
1016
+ customer: string;
1164
1017
 
1165
1018
  /**
1166
1019
  * Specifies which fields in the response should be expanded.
@@ -1237,11 +1090,7 @@ declare module 'stripe' {
1237
1090
  */
1238
1091
  attach(
1239
1092
  id: string,
1240
- params?: PaymentMethodAttachParams,
1241
- options?: RequestOptions
1242
- ): Promise<Stripe.Response<Stripe.PaymentMethod>>;
1243
- attach(
1244
- id: string,
1093
+ params: PaymentMethodAttachParams,
1245
1094
  options?: RequestOptions
1246
1095
  ): Promise<Stripe.Response<Stripe.PaymentMethod>>;
1247
1096