stripe 18.2.0-beta.1 → 18.2.1

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 (333) hide show
  1. package/CHANGELOG.md +183 -1211
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +11 -12
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -91
  6. package/cjs/RequestSender.js +3 -3
  7. package/cjs/StripeResource.js +1 -1
  8. package/cjs/apiVersion.js +1 -1
  9. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  10. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  11. package/cjs/resources/PaymentIntents.js +0 -13
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -8
  15. package/cjs/resources.js +18 -108
  16. package/cjs/stripe.core.js +1 -1
  17. package/cjs/utils.js +5 -0
  18. package/esm/Error.js +0 -79
  19. package/esm/RequestSender.js +3 -3
  20. package/esm/StripeResource.js +1 -1
  21. package/esm/apiVersion.js +1 -1
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  24. package/esm/resources/PaymentIntents.js +0 -13
  25. package/esm/resources/Quotes.js +0 -32
  26. package/esm/resources/SubscriptionSchedules.js +0 -4
  27. package/esm/resources/Terminal/Readers.js +0 -8
  28. package/esm/resources.js +1 -84
  29. package/esm/stripe.core.js +1 -1
  30. package/esm/utils.js +5 -0
  31. package/package.json +1 -1
  32. package/types/AccountLinksResource.d.ts +1 -5
  33. package/types/AccountSessions.d.ts +52 -32
  34. package/types/AccountSessionsResource.d.ts +23 -246
  35. package/types/Accounts.d.ts +19 -223
  36. package/types/AccountsResource.d.ts +61 -581
  37. package/types/Balance.d.ts +83 -1
  38. package/types/BalanceResource.d.ts +1 -1
  39. package/types/BalanceTransactions.d.ts +10 -0
  40. package/types/BankAccounts.d.ts +3 -3
  41. package/types/Billing/Alerts.d.ts +1 -1
  42. package/types/Billing/AlertsResource.d.ts +2 -2
  43. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  44. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  45. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  46. package/types/Billing/CreditGrants.d.ts +0 -5
  47. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  48. package/types/BillingPortal/Sessions.d.ts +1 -6
  49. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  50. package/types/Capabilities.d.ts +1 -1
  51. package/types/Cards.d.ts +2 -7
  52. package/types/CashBalances.d.ts +0 -5
  53. package/types/Charges.d.ts +20 -166
  54. package/types/ChargesResource.d.ts +4 -1318
  55. package/types/Checkout/Sessions.d.ts +120 -418
  56. package/types/Checkout/SessionsResource.d.ts +118 -448
  57. package/types/ConfirmationTokens.d.ts +4 -129
  58. package/types/CountrySpecs.d.ts +1 -1
  59. package/types/Coupons.d.ts +0 -33
  60. package/types/CouponsResource.d.ts +0 -21
  61. package/types/CreditNoteLineItems.d.ts +0 -17
  62. package/types/CreditNotes.d.ts +11 -10
  63. package/types/CreditNotesResource.d.ts +7 -13
  64. package/types/CustomerBalanceTransactions.d.ts +0 -2
  65. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  66. package/types/CustomerSessions.d.ts +3 -8
  67. package/types/CustomerSessionsResource.d.ts +1 -6
  68. package/types/Customers.d.ts +0 -2
  69. package/types/CustomersResource.d.ts +7 -15
  70. package/types/Discounts.d.ts +0 -10
  71. package/types/Disputes.d.ts +1 -1
  72. package/types/DisputesResource.d.ts +1 -1
  73. package/types/Errors.d.ts +2 -69
  74. package/types/EventTypes.d.ts +17 -698
  75. package/types/Events.d.ts +4 -99
  76. package/types/Files.d.ts +1 -1
  77. package/types/FilesResource.d.ts +1 -1
  78. package/types/FinancialConnections/Accounts.d.ts +1 -31
  79. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  80. package/types/FinancialConnections/Sessions.d.ts +1 -51
  81. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  82. package/types/Identity/VerificationReports.d.ts +17 -0
  83. package/types/Identity/VerificationSessions.d.ts +19 -7
  84. package/types/Identity/VerificationSessionsResource.d.ts +5 -12
  85. package/types/InvoiceItems.d.ts +1 -11
  86. package/types/InvoiceItemsResource.d.ts +6 -117
  87. package/types/InvoiceLineItems.d.ts +2 -46
  88. package/types/InvoicePayments.d.ts +9 -7
  89. package/types/InvoicePaymentsResource.d.ts +74 -0
  90. package/types/Invoices.d.ts +10 -142
  91. package/types/InvoicesResource.d.ts +66 -1469
  92. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  93. package/types/Issuing/CardholdersResource.d.ts +1 -2
  94. package/types/Issuing/CardsResource.d.ts +3 -0
  95. package/types/Issuing/DisputesResource.d.ts +2 -2
  96. package/types/Issuing/Transactions.d.ts +0 -5
  97. package/types/Issuing/TransactionsResource.d.ts +0 -5
  98. package/types/LineItems.d.ts +2 -51
  99. package/types/Mandates.d.ts +0 -77
  100. package/types/PaymentIntents.d.ts +145 -856
  101. package/types/PaymentIntentsResource.d.ts +4307 -8780
  102. package/types/PaymentLinks.d.ts +0 -6
  103. package/types/PaymentLinksResource.d.ts +0 -12
  104. package/types/PaymentMethodConfigurations.d.ts +70 -70
  105. package/types/PaymentMethodConfigurationsResource.d.ts +164 -164
  106. package/types/PaymentMethodDomainsResource.d.ts +1 -1
  107. package/types/PaymentMethods.d.ts +4 -129
  108. package/types/PaymentMethodsResource.d.ts +10 -175
  109. package/types/Payouts.d.ts +2 -7
  110. package/types/PayoutsResource.d.ts +2 -7
  111. package/types/Persons.d.ts +10 -10
  112. package/types/PlansResource.d.ts +1 -1
  113. package/types/Prices.d.ts +0 -22
  114. package/types/PricesResource.d.ts +2 -24
  115. package/types/Products.d.ts +0 -39
  116. package/types/ProductsResource.d.ts +1 -37
  117. package/types/PromotionCodes.d.ts +0 -5
  118. package/types/PromotionCodesResource.d.ts +1 -11
  119. package/types/Quotes.d.ts +7 -609
  120. package/types/QuotesResource.d.ts +224 -2578
  121. package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
  122. package/types/Refunds.d.ts +6 -15
  123. package/types/Reviews.d.ts +1 -1
  124. package/types/SetupAttempts.d.ts +2 -50
  125. package/types/SetupIntents.d.ts +4 -122
  126. package/types/SetupIntentsResource.d.ts +6 -733
  127. package/types/Sources.d.ts +0 -29
  128. package/types/SourcesResource.d.ts +1 -1
  129. package/types/SubscriptionItems.d.ts +8 -17
  130. package/types/SubscriptionItemsResource.d.ts +28 -109
  131. package/types/SubscriptionSchedules.d.ts +47 -213
  132. package/types/SubscriptionSchedulesResource.d.ts +104 -1243
  133. package/types/Subscriptions.d.ts +16 -102
  134. package/types/SubscriptionsResource.d.ts +80 -407
  135. package/types/Tax/CalculationLineItems.d.ts +5 -0
  136. package/types/Tax/CalculationsResource.d.ts +5 -0
  137. package/types/Tax/RegistrationsResource.d.ts +1 -1
  138. package/types/TaxIds.d.ts +0 -10
  139. package/types/TaxIdsResource.d.ts +0 -10
  140. package/types/TaxRates.d.ts +2 -2
  141. package/types/Terminal/LocationsResource.d.ts +1 -1
  142. package/types/Terminal/Readers.d.ts +7 -89
  143. package/types/Terminal/ReadersResource.d.ts +6 -82
  144. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  145. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  146. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  147. package/types/Tokens.d.ts +3 -3
  148. package/types/TokensResource.d.ts +8 -8
  149. package/types/TransferReversals.d.ts +1 -1
  150. package/types/Transfers.d.ts +0 -5
  151. package/types/TransfersResource.d.ts +2 -7
  152. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  153. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  154. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  155. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  156. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  157. package/types/Treasury/ReceivedCredits.d.ts +2 -28
  158. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  159. package/types/V2/EventTypes.d.ts +1 -812
  160. package/types/WebhookEndpointsResource.d.ts +4 -83
  161. package/types/index.d.ts +5 -145
  162. package/types/lib.d.ts +1 -11
  163. package/types/test/typescriptTest.ts +3 -3
  164. package/cjs/resources/AccountNotices.js +0 -21
  165. package/cjs/resources/BalanceSettings.js +0 -10
  166. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  167. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  168. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  169. package/cjs/resources/ExternalAccounts.js +0 -23
  170. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  171. package/cjs/resources/FxQuotes.js +0 -15
  172. package/cjs/resources/GiftCards/Cards.js +0 -23
  173. package/cjs/resources/GiftCards/Transactions.js +0 -33
  174. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  175. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  176. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  177. package/cjs/resources/Margins.js +0 -22
  178. package/cjs/resources/Orders.js +0 -24
  179. package/cjs/resources/PaymentRecords.js +0 -29
  180. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  181. package/cjs/resources/Tax/Associations.js +0 -9
  182. package/cjs/resources/Tax/Forms.js +0 -20
  183. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  184. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  185. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  186. package/cjs/resources/V2/Core/Accounts.js +0 -25
  187. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  188. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  189. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  190. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
  191. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  192. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  193. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  194. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  195. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  196. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  197. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  198. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  199. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  200. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  201. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  202. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  203. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  204. package/esm/resources/AccountNotices.js +0 -18
  205. package/esm/resources/BalanceSettings.js +0 -7
  206. package/esm/resources/Capital/FinancingOffers.js +0 -18
  207. package/esm/resources/Capital/FinancingSummary.js +0 -9
  208. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  209. package/esm/resources/ExternalAccounts.js +0 -20
  210. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  211. package/esm/resources/FxQuotes.js +0 -12
  212. package/esm/resources/GiftCards/Cards.js +0 -20
  213. package/esm/resources/GiftCards/Transactions.js +0 -30
  214. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  215. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  216. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  217. package/esm/resources/Margins.js +0 -19
  218. package/esm/resources/Orders.js +0 -21
  219. package/esm/resources/PaymentRecords.js +0 -26
  220. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  221. package/esm/resources/Tax/Associations.js +0 -6
  222. package/esm/resources/Tax/Forms.js +0 -17
  223. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  224. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  225. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  226. package/esm/resources/V2/Core/Accounts.js +0 -22
  227. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  228. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  229. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  230. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
  231. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  232. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  233. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  234. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  235. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  236. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  237. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  238. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  239. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  240. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  241. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  242. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  243. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  244. package/types/AccountNotices.d.ts +0 -113
  245. package/types/AccountNoticesResource.d.ts +0 -98
  246. package/types/BalanceSettings.d.ts +0 -89
  247. package/types/BalanceSettingsResource.d.ts +0 -108
  248. package/types/Billing/MeterErrorReports.d.ts +0 -106
  249. package/types/Capital/FinancingOffers.d.ts +0 -188
  250. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  251. package/types/Capital/FinancingSummary.d.ts +0 -106
  252. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  253. package/types/Capital/FinancingTransactions.d.ts +0 -135
  254. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  255. package/types/ExternalAccountsResource.d.ts +0 -304
  256. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  257. package/types/FinancialConnections/Institutions.d.ts +0 -93
  258. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  259. package/types/FxQuotes.d.ts +0 -153
  260. package/types/FxQuotesResource.d.ts +0 -130
  261. package/types/GiftCards/Cards.d.ts +0 -118
  262. package/types/GiftCards/CardsResource.d.ts +0 -159
  263. package/types/GiftCards/Transactions.d.ts +0 -129
  264. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  265. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  266. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  267. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  268. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  269. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  270. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  271. package/types/Issuing/Settlements.d.ts +0 -113
  272. package/types/Margins.d.ts +0 -56
  273. package/types/MarginsResource.d.ts +0 -114
  274. package/types/Orders.d.ts +0 -1199
  275. package/types/OrdersResource.d.ts +0 -3001
  276. package/types/PaymentAttemptRecords.d.ts +0 -2112
  277. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  278. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -110
  279. package/types/PaymentRecords.d.ts +0 -2105
  280. package/types/PaymentRecordsResource.d.ts +0 -455
  281. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
  282. package/types/Privacy/RedactionJobs.d.ts +0 -65
  283. package/types/Privacy/RedactionJobsResource.d.ts +0 -218
  284. package/types/QuoteLines.d.ts +0 -634
  285. package/types/QuotePreviewInvoices.d.ts +0 -1697
  286. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -785
  287. package/types/Tax/Associations.d.ts +0 -126
  288. package/types/Tax/AssociationsResource.d.ts +0 -29
  289. package/types/Tax/Forms.d.ts +0 -220
  290. package/types/Tax/FormsResource.d.ts +0 -107
  291. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  292. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  293. package/types/V2/Core/AccountLinks.d.ts +0 -106
  294. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  295. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3770
  296. package/types/V2/Core/Accounts.d.ts +0 -8169
  297. package/types/V2/Core/AccountsResource.d.ts +0 -10203
  298. package/types/V2/Core/Persons.d.ts +0 -1867
  299. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  300. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  301. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  302. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  303. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  304. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  305. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  306. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  307. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -546
  308. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
  309. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
  310. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -288
  311. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  312. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  313. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
  314. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  315. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  316. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  317. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  318. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  319. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  320. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
  321. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -151
  322. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  323. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
  324. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  325. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -285
  326. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  327. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -224
  328. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  329. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -155
  330. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  331. package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
  332. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  333. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -211,8 +211,6 @@ declare module 'stripe' {
211
211
  */
212
212
  customer: string | Stripe.Customer | null;
213
213
 
214
- customer_account?: string | null;
215
-
216
214
  customer_balance?: PaymentMethodPreview.CustomerBalance;
217
215
 
218
216
  eps?: PaymentMethodPreview.Eps;
@@ -221,12 +219,8 @@ declare module 'stripe' {
221
219
 
222
220
  giropay?: PaymentMethodPreview.Giropay;
223
221
 
224
- gopay?: PaymentMethodPreview.Gopay;
225
-
226
222
  grabpay?: PaymentMethodPreview.Grabpay;
227
223
 
228
- id_bank_transfer?: PaymentMethodPreview.IdBankTransfer;
229
-
230
224
  ideal?: PaymentMethodPreview.Ideal;
231
225
 
232
226
  interac_present?: PaymentMethodPreview.InteracPresent;
@@ -241,8 +235,6 @@ declare module 'stripe' {
241
235
 
242
236
  link?: PaymentMethodPreview.Link;
243
237
 
244
- mb_way?: PaymentMethodPreview.MbWay;
245
-
246
238
  mobilepay?: PaymentMethodPreview.Mobilepay;
247
239
 
248
240
  multibanco?: PaymentMethodPreview.Multibanco;
@@ -263,16 +255,10 @@ declare module 'stripe' {
263
255
 
264
256
  paypal?: PaymentMethodPreview.Paypal;
265
257
 
266
- payto?: PaymentMethodPreview.Payto;
267
-
268
258
  pix?: PaymentMethodPreview.Pix;
269
259
 
270
260
  promptpay?: PaymentMethodPreview.Promptpay;
271
261
 
272
- qris?: PaymentMethodPreview.Qris;
273
-
274
- rechnung?: PaymentMethodPreview.Rechnung;
275
-
276
262
  revolut_pay?: PaymentMethodPreview.RevolutPay;
277
263
 
278
264
  samsung_pay?: PaymentMethodPreview.SamsungPay;
@@ -281,12 +267,8 @@ declare module 'stripe' {
281
267
 
282
268
  sepa_debit?: PaymentMethodPreview.SepaDebit;
283
269
 
284
- shopeepay?: PaymentMethodPreview.Shopeepay;
285
-
286
270
  sofort?: PaymentMethodPreview.Sofort;
287
271
 
288
- stripe_balance?: PaymentMethodPreview.StripeBalance;
289
-
290
272
  swish?: PaymentMethodPreview.Swish;
291
273
 
292
274
  twint?: PaymentMethodPreview.Twint;
@@ -305,11 +287,6 @@ declare module 'stripe' {
305
287
 
306
288
  namespace PaymentMethodPreview {
307
289
  interface AcssDebit {
308
- /**
309
- * Account number of the bank account.
310
- */
311
- account_number?: string | null;
312
-
313
290
  /**
314
291
  * Name of the bank associated with the bank account.
315
292
  */
@@ -778,7 +755,7 @@ declare module 'stripe' {
778
755
 
779
756
  interface Networks {
780
757
  /**
781
- * All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
758
+ * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
782
759
  */
783
760
  available: Array<string>;
784
761
 
@@ -978,7 +955,7 @@ declare module 'stripe' {
978
955
  namespace CardPresent {
979
956
  interface Networks {
980
957
  /**
981
- * All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
958
+ * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
982
959
  */
983
960
  available: Array<string>;
984
961
 
@@ -1114,24 +1091,8 @@ declare module 'stripe' {
1114
1091
 
1115
1092
  interface Giropay {}
1116
1093
 
1117
- interface Gopay {}
1118
-
1119
1094
  interface Grabpay {}
1120
1095
 
1121
- interface IdBankTransfer {
1122
- bank: IdBankTransfer.Bank | null;
1123
-
1124
- bank_code: string | null;
1125
-
1126
- bank_name: string | null;
1127
-
1128
- display_name: string | null;
1129
- }
1130
-
1131
- namespace IdBankTransfer {
1132
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1133
- }
1134
-
1135
1096
  interface Ideal {
1136
1097
  /**
1137
1098
  * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1260,7 +1221,7 @@ declare module 'stripe' {
1260
1221
  namespace InteracPresent {
1261
1222
  interface Networks {
1262
1223
  /**
1263
- * All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
1224
+ * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
1264
1225
  */
1265
1226
  available: Array<string>;
1266
1227
 
@@ -1359,8 +1320,6 @@ declare module 'stripe' {
1359
1320
  persistent_token?: string;
1360
1321
  }
1361
1322
 
1362
- interface MbWay {}
1363
-
1364
1323
  interface Mobilepay {}
1365
1324
 
1366
1325
  interface Multibanco {}
@@ -1369,7 +1328,7 @@ declare module 'stripe' {
1369
1328
  /**
1370
1329
  * Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
1371
1330
  */
1372
- buyer_id?: string | null;
1331
+ buyer_id: string | null;
1373
1332
 
1374
1333
  /**
1375
1334
  * Whether to fund this transaction with Naver Pay points or a card.
@@ -1464,11 +1423,6 @@ declare module 'stripe' {
1464
1423
  */
1465
1424
  country: string | null;
1466
1425
 
1467
- /**
1468
- * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1469
- */
1470
- fingerprint?: string | null;
1471
-
1472
1426
  /**
1473
1427
  * Owner's email. Values are provided by PayPal directly
1474
1428
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1479,60 +1433,12 @@ declare module 'stripe' {
1479
1433
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1480
1434
  */
1481
1435
  payer_id: string | null;
1482
-
1483
- /**
1484
- * Owner's verified email. Values are verified or provided by PayPal directly
1485
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1486
- */
1487
- verified_email?: string | null;
1488
- }
1489
-
1490
- interface Payto {
1491
- /**
1492
- * Bank-State-Branch number of the bank account.
1493
- */
1494
- bsb_number: string | null;
1495
-
1496
- /**
1497
- * Last four digits of the bank account number.
1498
- */
1499
- last4: string | null;
1500
-
1501
- /**
1502
- * The PayID alias for the bank account.
1503
- */
1504
- pay_id: string | null;
1505
1436
  }
1506
1437
 
1507
1438
  interface Pix {}
1508
1439
 
1509
1440
  interface Promptpay {}
1510
1441
 
1511
- interface Qris {}
1512
-
1513
- interface Rechnung {
1514
- dob?: Rechnung.Dob;
1515
- }
1516
-
1517
- namespace Rechnung {
1518
- interface Dob {
1519
- /**
1520
- * The day of birth, between 1 and 31.
1521
- */
1522
- day: number;
1523
-
1524
- /**
1525
- * The month of birth, between 1 and 12.
1526
- */
1527
- month: number;
1528
-
1529
- /**
1530
- * The four-digit year of birth.
1531
- */
1532
- year: number;
1533
- }
1534
- }
1535
-
1536
1442
  interface RevolutPay {}
1537
1443
 
1538
1444
  interface SamsungPay {}
@@ -1585,8 +1491,6 @@ declare module 'stripe' {
1585
1491
  }
1586
1492
  }
1587
1493
 
1588
- interface Shopeepay {}
1589
-
1590
1494
  interface Sofort {
1591
1495
  /**
1592
1496
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1594,22 +1498,6 @@ declare module 'stripe' {
1594
1498
  country: string | null;
1595
1499
  }
1596
1500
 
1597
- interface StripeBalance {
1598
- /**
1599
- * The connected account ID whose Stripe balance to use as the source of payment
1600
- */
1601
- account?: string | null;
1602
-
1603
- /**
1604
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1605
- */
1606
- source_type: StripeBalance.SourceType;
1607
- }
1608
-
1609
- namespace StripeBalance {
1610
- type SourceType = 'bank_account' | 'card' | 'fpx';
1611
- }
1612
-
1613
1501
  interface Swish {}
1614
1502
 
1615
1503
  interface Twint {}
@@ -1634,9 +1522,7 @@ declare module 'stripe' {
1634
1522
  | 'eps'
1635
1523
  | 'fpx'
1636
1524
  | 'giropay'
1637
- | 'gopay'
1638
1525
  | 'grabpay'
1639
- | 'id_bank_transfer'
1640
1526
  | 'ideal'
1641
1527
  | 'interac_present'
1642
1528
  | 'kakao_pay'
@@ -1644,7 +1530,6 @@ declare module 'stripe' {
1644
1530
  | 'konbini'
1645
1531
  | 'kr_card'
1646
1532
  | 'link'
1647
- | 'mb_way'
1648
1533
  | 'mobilepay'
1649
1534
  | 'multibanco'
1650
1535
  | 'naver_pay'
@@ -1655,18 +1540,13 @@ declare module 'stripe' {
1655
1540
  | 'payco'
1656
1541
  | 'paynow'
1657
1542
  | 'paypal'
1658
- | 'payto'
1659
1543
  | 'pix'
1660
1544
  | 'promptpay'
1661
- | 'qris'
1662
- | 'rechnung'
1663
1545
  | 'revolut_pay'
1664
1546
  | 'samsung_pay'
1665
1547
  | 'satispay'
1666
1548
  | 'sepa_debit'
1667
- | 'shopeepay'
1668
1549
  | 'sofort'
1669
- | 'stripe_balance'
1670
1550
  | 'swish'
1671
1551
  | 'twint'
1672
1552
  | 'us_bank_account'
@@ -1679,11 +1559,6 @@ declare module 'stripe' {
1679
1559
  */
1680
1560
  account_holder_type: UsBankAccount.AccountHolderType | null;
1681
1561
 
1682
- /**
1683
- * Account number of the bank account.
1684
- */
1685
- account_number?: string | null;
1686
-
1687
1562
  /**
1688
1563
  * Account type: checkings or savings. Defaults to checking if omitted.
1689
1564
  */
@@ -8,7 +8,7 @@ declare module 'stripe' {
8
8
  * Country Specs API makes these rules available to your integration.
9
9
  *
10
10
  * You can also view the information from this API call as [an online
11
- * guide](https://stripe.com/docs/connect/required-verification-information).
11
+ * guide](https://docs.stripe.com/docs/connect/required-verification-information).
12
12
  */
13
13
  interface CountrySpec {
14
14
  /**
@@ -87,21 +87,11 @@ declare module 'stripe' {
87
87
  */
88
88
  redeem_by: number | null;
89
89
 
90
- /**
91
- * Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
92
- */
93
- script?: Coupon.Script | null;
94
-
95
90
  /**
96
91
  * Number of times this coupon has been applied to a customer.
97
92
  */
98
93
  times_redeemed: number;
99
94
 
100
- /**
101
- * One of `amount_off`, `percent_off`, or `script`. Describes the type of coupon logic used to calculate the discount.
102
- */
103
- type?: Coupon.Type | null;
104
-
105
95
  /**
106
96
  * Taking account of the above properties, whether this coupon can still be applied to a customer.
107
97
  */
@@ -124,29 +114,6 @@ declare module 'stripe' {
124
114
  }
125
115
 
126
116
  type Duration = 'forever' | 'once' | 'repeating';
127
-
128
- interface Script {
129
- /**
130
- * The configuration values of the script. The keys and values are specific to the script implementation.
131
- */
132
- configuration: Script.Configuration;
133
-
134
- /**
135
- * The name of the script used to calculate the discount.
136
- */
137
- display_name: string;
138
-
139
- /**
140
- * The script implementation ID for this coupon.
141
- */
142
- id: string;
143
- }
144
-
145
- namespace Script {
146
- interface Configuration {}
147
- }
148
-
149
- type Type = 'amount_off' | 'percent_off' | 'script';
150
117
  }
151
118
 
152
119
  /**
@@ -69,11 +69,6 @@ declare module 'stripe' {
69
69
  * Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeem_by date, the coupon can no longer be applied to new customers.
70
70
  */
71
71
  redeem_by?: number;
72
-
73
- /**
74
- * Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
75
- */
76
- script?: CouponCreateParams.Script;
77
72
  }
78
73
 
79
74
  namespace CouponCreateParams {
@@ -92,22 +87,6 @@ declare module 'stripe' {
92
87
  }
93
88
 
94
89
  type Duration = 'forever' | 'once' | 'repeating';
95
-
96
- interface Script {
97
- /**
98
- * The configuration values of the script. The keys and values are specific to the script implementation.
99
- */
100
- configuration: Script.Configuration;
101
-
102
- /**
103
- * The script implementation ID for this coupon.
104
- */
105
- id: string;
106
- }
107
-
108
- namespace Script {
109
- interface Configuration {}
110
- }
111
90
  }
112
91
 
113
92
  interface CouponRetrieveParams {
@@ -56,11 +56,6 @@ declare module 'stripe' {
56
56
  */
57
57
  quantity: number | null;
58
58
 
59
- /**
60
- * The tax calculation identifiers of the line item.
61
- */
62
- tax_calculation_reference?: CreditNoteLineItem.TaxCalculationReference | null;
63
-
64
59
  /**
65
60
  * The tax rates which apply to the line item.
66
61
  */
@@ -186,18 +181,6 @@ declare module 'stripe' {
186
181
  }
187
182
  }
188
183
 
189
- interface TaxCalculationReference {
190
- /**
191
- * The calculation identifier for tax calculation response.
192
- */
193
- calculation_id: string | null;
194
-
195
- /**
196
- * The calculation identifier for tax calculation response line item.
197
- */
198
- calculation_item_id: string | null;
199
- }
200
-
201
184
  type Type = 'custom_line_item' | 'invoice_line_item';
202
185
  }
203
186
  }
@@ -43,11 +43,6 @@ declare module 'stripe' {
43
43
  */
44
44
  customer: string | Stripe.Customer | Stripe.DeletedCustomer;
45
45
 
46
- /**
47
- * ID of the account.
48
- */
49
- customer_account?: string | null;
50
-
51
46
  /**
52
47
  * Customer balance transaction related to this credit note.
53
48
  */
@@ -111,9 +106,15 @@ declare module 'stripe' {
111
106
  */
112
107
  pdf: string;
113
108
 
114
- post_payment_amount?: number;
109
+ /**
110
+ * The amount of the credit note that was refunded to the customer, credited to the customer's balance, credited outside of Stripe, or any combination thereof.
111
+ */
112
+ post_payment_amount: number;
115
113
 
116
- pre_payment_amount?: number;
114
+ /**
115
+ * The amount of the credit note by which the invoice's `amount_remaining` and `amount_due` were reduced.
116
+ */
117
+ pre_payment_amount: number;
117
118
 
118
119
  /**
119
120
  * The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
@@ -270,9 +271,9 @@ declare module 'stripe' {
270
271
  amount: number;
271
272
 
272
273
  /**
273
- * Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
274
+ * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
274
275
  *
275
- * Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
276
+ * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
276
277
  */
277
278
  rate: Stripe.TaxRate;
278
279
 
@@ -367,7 +368,7 @@ declare module 'stripe' {
367
368
  }
368
369
  }
369
370
 
370
- type Type = 'post_payment' | 'pre_payment';
371
+ type Type = 'mixed' | 'post_payment' | 'pre_payment';
371
372
  }
372
373
  }
373
374
  }
@@ -206,11 +206,6 @@ declare module 'stripe' {
206
206
  */
207
207
  customer?: string;
208
208
 
209
- /**
210
- * Only return credit notes for the account specified by this account ID.
211
- */
212
- customer_account?: string;
213
-
214
209
  /**
215
210
  * Specifies which fields in the response should be expanded.
216
211
  */
@@ -576,20 +571,19 @@ declare module 'stripe' {
576
571
 
577
572
  class CreditNotesResource {
578
573
  /**
579
- * Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces
580
- * its amount_due. For a status=paid invoice, a credit note does not affect its amount_due. Instead, it can result
581
- * in any combination of the following:
574
+ * Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
575
+ * This amount is indicated by the credit note's pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
582
576
  *
583
577
  *
584
- * Refund: create a new refund (using refund_amount) or link an existing refund (using refund).
578
+ * Refunds: create a new refund (using refund_amount) or link existing refunds (using refunds).
585
579
  * Customer balance credit: credit the customer's balance (using credit_amount) which will be automatically applied to their next invoice when it's finalized.
586
580
  * Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
587
581
  *
588
582
  *
589
- * For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts must equal the credit note total.
583
+ * The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
590
584
  *
591
- * You may issue multiple credit notes for an invoice. Each credit note will increment the invoice's pre_payment_credit_notes_amount
592
- * or post_payment_credit_notes_amount depending on its status at the time of credit note creation.
585
+ * You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
586
+ * post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
593
587
  */
594
588
  create(
595
589
  params: CreditNoteCreateParams,
@@ -657,7 +651,7 @@ declare module 'stripe' {
657
651
  ): Promise<Stripe.Response<Stripe.CreditNote>>;
658
652
 
659
653
  /**
660
- * Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
654
+ * Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
661
655
  */
662
656
  voidCreditNote(
663
657
  id: string,
@@ -51,8 +51,6 @@ declare module 'stripe' {
51
51
  */
52
52
  customer: string | Stripe.Customer;
53
53
 
54
- customer_account?: string | null;
55
-
56
54
  /**
57
55
  * An arbitrary string attached to the object. Often useful for displaying to users.
58
56
  */
@@ -38,8 +38,6 @@ declare module 'stripe' {
38
38
  */
39
39
  customer: string | Stripe.Customer;
40
40
 
41
- customer_account?: string | null;
42
-
43
41
  /**
44
42
  * The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
45
43
  */
@@ -6,9 +6,9 @@ declare module 'stripe' {
6
6
  * A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
7
7
  * control over a Customer.
8
8
  *
9
- * Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
10
- * [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
11
- * [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
9
+ * Related guides: [Customer Session with the Payment Element](https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
10
+ * [Customer Session with the Pricing Table](https://docs.stripe.com/payments/checkout/pricing-table#customer-session),
11
+ * [Customer Session with the Buy Button](https://docs.stripe.com/payment-links/buy-button#pass-an-existing-customer).
12
12
  */
13
13
  interface CustomerSession {
14
14
  /**
@@ -38,11 +38,6 @@ declare module 'stripe' {
38
38
  */
39
39
  customer: string | Stripe.Customer;
40
40
 
41
- /**
42
- * The Account that the Customer Session was created for.
43
- */
44
- customer_account?: string | null;
45
-
46
41
  /**
47
42
  * The timestamp at which this Customer Session will expire.
48
43
  */
@@ -11,12 +11,7 @@ declare module 'stripe' {
11
11
  /**
12
12
  * The ID of an existing customer for which to create the Customer Session.
13
13
  */
14
- customer?: string;
15
-
16
- /**
17
- * The ID of an existing Account for which to create the Customer Session.
18
- */
19
- customer_account?: string;
14
+ customer: string;
20
15
 
21
16
  /**
22
17
  * Specifies which fields in the response should be expanded.
@@ -42,8 +42,6 @@ declare module 'stripe' {
42
42
  */
43
43
  currency?: string | null;
44
44
 
45
- customer_account?: string | null;
46
-
47
45
  /**
48
46
  * ID of the default payment source for the customer.
49
47
  *