stripe 18.1.0-beta.3 → 18.1.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 (319) hide show
  1. package/CHANGELOG.md +154 -1208
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +11 -12
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +3 -93
  6. package/cjs/RequestSender.js +5 -9
  7. package/cjs/StripeResource.js +1 -1
  8. package/cjs/Webhooks.js +6 -2
  9. package/cjs/apiVersion.js +1 -1
  10. package/cjs/net/FetchHttpClient.js +3 -4
  11. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  12. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  13. package/cjs/resources/Invoices.js +0 -4
  14. package/cjs/resources/PaymentIntents.js +0 -13
  15. package/cjs/resources/Quotes.js +0 -32
  16. package/cjs/resources/SubscriptionSchedules.js +0 -4
  17. package/cjs/resources/Terminal/Readers.js +0 -12
  18. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  19. package/cjs/resources.js +18 -108
  20. package/cjs/stripe.core.js +2 -4
  21. package/cjs/utils.js +33 -4
  22. package/esm/Error.js +2 -81
  23. package/esm/RequestSender.js +6 -10
  24. package/esm/StripeResource.js +1 -1
  25. package/esm/Webhooks.js +6 -2
  26. package/esm/apiVersion.js +1 -1
  27. package/esm/net/FetchHttpClient.js +3 -4
  28. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  29. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  30. package/esm/resources/Invoices.js +0 -4
  31. package/esm/resources/PaymentIntents.js +0 -13
  32. package/esm/resources/Quotes.js +0 -32
  33. package/esm/resources/SubscriptionSchedules.js +0 -4
  34. package/esm/resources/Terminal/Readers.js +0 -12
  35. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  36. package/esm/resources.js +1 -84
  37. package/esm/stripe.core.js +2 -4
  38. package/esm/utils.js +29 -3
  39. package/package.json +12 -3
  40. package/types/AccountLinksResource.d.ts +1 -5
  41. package/types/AccountSessions.d.ts +0 -45
  42. package/types/AccountSessionsResource.d.ts +0 -300
  43. package/types/Accounts.d.ts +1 -212
  44. package/types/AccountsResource.d.ts +2 -546
  45. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  46. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  47. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  48. package/types/Billing/CreditGrants.d.ts +0 -5
  49. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  50. package/types/BillingPortal/Sessions.d.ts +0 -5
  51. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  52. package/types/Cards.d.ts +0 -5
  53. package/types/CashBalances.d.ts +0 -5
  54. package/types/Charges.d.ts +0 -166
  55. package/types/ChargesResource.d.ts +0 -1314
  56. package/types/Checkout/Sessions.d.ts +13 -306
  57. package/types/Checkout/SessionsResource.d.ts +1 -333
  58. package/types/ConfirmationTokens.d.ts +0 -120
  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 +0 -9
  63. package/types/CreditNotesResource.d.ts +0 -5
  64. package/types/CustomerBalanceTransactions.d.ts +0 -2
  65. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  66. package/types/CustomerSessions.d.ts +0 -5
  67. package/types/CustomerSessionsResource.d.ts +1 -6
  68. package/types/Customers.d.ts +0 -2
  69. package/types/CustomersResource.d.ts +23 -11
  70. package/types/Discounts.d.ts +0 -10
  71. package/types/Errors.d.ts +2 -69
  72. package/types/EventTypes.d.ts +0 -698
  73. package/types/Events.d.ts +1 -100
  74. package/types/FinancialConnections/Accounts.d.ts +1 -31
  75. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  76. package/types/FinancialConnections/Sessions.d.ts +1 -51
  77. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  78. package/types/Identity/VerificationSessions.d.ts +0 -5
  79. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  80. package/types/InvoiceItems.d.ts +0 -10
  81. package/types/InvoiceItemsResource.d.ts +6 -117
  82. package/types/InvoiceLineItems.d.ts +2 -46
  83. package/types/InvoicePayments.d.ts +0 -5
  84. package/types/InvoicePaymentsResource.d.ts +74 -0
  85. package/types/Invoices.d.ts +15 -138
  86. package/types/InvoicesResource.d.ts +15 -1471
  87. package/types/Issuing/CardholdersResource.d.ts +1 -2
  88. package/types/Issuing/Transactions.d.ts +0 -5
  89. package/types/Issuing/TransactionsResource.d.ts +0 -5
  90. package/types/LineItems.d.ts +0 -49
  91. package/types/Mandates.d.ts +0 -77
  92. package/types/PaymentIntents.d.ts +2 -728
  93. package/types/PaymentIntentsResource.d.ts +3955 -8479
  94. package/types/PaymentLinks.d.ts +0 -6
  95. package/types/PaymentLinksResource.d.ts +0 -12
  96. package/types/PaymentMethodConfigurations.d.ts +0 -180
  97. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  98. package/types/PaymentMethods.d.ts +0 -120
  99. package/types/PaymentMethodsResource.d.ts +2 -167
  100. package/types/Payouts.d.ts +0 -5
  101. package/types/PayoutsResource.d.ts +0 -5
  102. package/types/Prices.d.ts +0 -22
  103. package/types/PricesResource.d.ts +0 -22
  104. package/types/Products.d.ts +0 -39
  105. package/types/ProductsResource.d.ts +0 -36
  106. package/types/PromotionCodes.d.ts +0 -5
  107. package/types/PromotionCodesResource.d.ts +0 -10
  108. package/types/Quotes.d.ts +2 -597
  109. package/types/QuotesResource.d.ts +224 -2571
  110. package/types/Refunds.d.ts +0 -14
  111. package/types/SetupAttempts.d.ts +1 -50
  112. package/types/SetupIntents.d.ts +2 -121
  113. package/types/SetupIntentsResource.d.ts +3 -730
  114. package/types/Sources.d.ts +0 -29
  115. package/types/SubscriptionItems.d.ts +0 -23
  116. package/types/SubscriptionItemsResource.d.ts +0 -109
  117. package/types/SubscriptionSchedules.d.ts +0 -205
  118. package/types/SubscriptionSchedulesResource.d.ts +8 -1236
  119. package/types/Subscriptions.d.ts +1 -97
  120. package/types/SubscriptionsResource.d.ts +9 -391
  121. package/types/Tax/Calculations.d.ts +11 -1
  122. package/types/Tax/CalculationsResource.d.ts +11 -1
  123. package/types/Tax/Registrations.d.ts +27 -0
  124. package/types/Tax/RegistrationsResource.d.ts +36 -0
  125. package/types/Tax/Transactions.d.ts +11 -1
  126. package/types/TaxIds.d.ts +11 -11
  127. package/types/TaxIdsResource.d.ts +11 -11
  128. package/types/Terminal/Readers.d.ts +0 -300
  129. package/types/Terminal/ReadersResource.d.ts +0 -220
  130. package/types/TestHelpers/ConfirmationTokensResource.d.ts +7 -127
  131. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  132. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  133. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  134. package/types/Transfers.d.ts +0 -5
  135. package/types/TransfersResource.d.ts +0 -5
  136. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  137. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  138. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  139. package/types/Treasury/OutboundPaymentsResource.d.ts +0 -5
  140. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  141. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  142. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  143. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  144. package/types/V2/EventTypes.d.ts +7 -677
  145. package/types/WebhookEndpointsResource.d.ts +4 -85
  146. package/types/index.d.ts +5 -146
  147. package/types/lib.d.ts +1 -11
  148. package/types/test/typescriptTest.ts +3 -3
  149. package/cjs/resources/AccountNotices.js +0 -21
  150. package/cjs/resources/BalanceSettings.js +0 -10
  151. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  152. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  153. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  154. package/cjs/resources/ExternalAccounts.js +0 -23
  155. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  156. package/cjs/resources/FxQuotes.js +0 -15
  157. package/cjs/resources/GiftCards/Cards.js +0 -23
  158. package/cjs/resources/GiftCards/Transactions.js +0 -33
  159. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  160. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  161. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  162. package/cjs/resources/Margins.js +0 -22
  163. package/cjs/resources/Orders.js +0 -24
  164. package/cjs/resources/PaymentRecords.js +0 -29
  165. package/cjs/resources/Privacy/RedactionJobs.js +0 -46
  166. package/cjs/resources/Tax/Associations.js +0 -9
  167. package/cjs/resources/Tax/Forms.js +0 -20
  168. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  169. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  170. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  171. package/cjs/resources/V2/Core/Accounts.js +0 -25
  172. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  173. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  174. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  175. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
  176. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  177. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  178. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
  179. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  180. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  181. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  182. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  183. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  184. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  185. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  186. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  187. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  188. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  189. package/esm/resources/AccountNotices.js +0 -18
  190. package/esm/resources/BalanceSettings.js +0 -7
  191. package/esm/resources/Capital/FinancingOffers.js +0 -18
  192. package/esm/resources/Capital/FinancingSummary.js +0 -9
  193. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  194. package/esm/resources/ExternalAccounts.js +0 -20
  195. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  196. package/esm/resources/FxQuotes.js +0 -12
  197. package/esm/resources/GiftCards/Cards.js +0 -20
  198. package/esm/resources/GiftCards/Transactions.js +0 -30
  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/PaymentRecords.js +0 -26
  205. package/esm/resources/Privacy/RedactionJobs.js +0 -43
  206. package/esm/resources/Tax/Associations.js +0 -6
  207. package/esm/resources/Tax/Forms.js +0 -17
  208. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  209. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  210. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  211. package/esm/resources/V2/Core/Accounts.js +0 -22
  212. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  213. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  214. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  215. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
  216. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  217. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  218. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
  219. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  220. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  221. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  222. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  223. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  224. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  225. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  226. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  227. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  228. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  229. package/types/AccountNotices.d.ts +0 -113
  230. package/types/AccountNoticesResource.d.ts +0 -98
  231. package/types/BalanceSettings.d.ts +0 -89
  232. package/types/BalanceSettingsResource.d.ts +0 -108
  233. package/types/Billing/MeterErrorReports.d.ts +0 -106
  234. package/types/Capital/FinancingOffers.d.ts +0 -188
  235. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  236. package/types/Capital/FinancingSummary.d.ts +0 -106
  237. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  238. package/types/Capital/FinancingTransactions.d.ts +0 -135
  239. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  240. package/types/ExternalAccountsResource.d.ts +0 -304
  241. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  242. package/types/FinancialConnections/Institutions.d.ts +0 -93
  243. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  244. package/types/FxQuotes.d.ts +0 -153
  245. package/types/FxQuotesResource.d.ts +0 -130
  246. package/types/GiftCards/Cards.d.ts +0 -118
  247. package/types/GiftCards/CardsResource.d.ts +0 -159
  248. package/types/GiftCards/Transactions.d.ts +0 -129
  249. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  250. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  251. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  252. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  253. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  254. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  255. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  256. package/types/Issuing/Settlements.d.ts +0 -113
  257. package/types/Margins.d.ts +0 -56
  258. package/types/MarginsResource.d.ts +0 -114
  259. package/types/Orders.d.ts +0 -1189
  260. package/types/OrdersResource.d.ts +0 -2981
  261. package/types/PaymentAttemptRecords.d.ts +0 -2112
  262. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  263. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -110
  264. package/types/PaymentRecords.d.ts +0 -2105
  265. package/types/PaymentRecordsResource.d.ts +0 -455
  266. package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
  267. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
  268. package/types/Privacy/RedactionJobs.d.ts +0 -43
  269. package/types/Privacy/RedactionJobsResource.d.ts +0 -240
  270. package/types/QuoteLines.d.ts +0 -634
  271. package/types/QuotePreviewInvoices.d.ts +0 -1687
  272. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  273. package/types/Tax/Associations.d.ts +0 -126
  274. package/types/Tax/AssociationsResource.d.ts +0 -29
  275. package/types/Tax/Forms.d.ts +0 -220
  276. package/types/Tax/FormsResource.d.ts +0 -107
  277. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  278. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  279. package/types/V2/Core/AccountLinks.d.ts +0 -101
  280. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  281. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
  282. package/types/V2/Core/Accounts.d.ts +0 -8057
  283. package/types/V2/Core/AccountsResource.d.ts +0 -10184
  284. package/types/V2/Core/Persons.d.ts +0 -1857
  285. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
  286. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  287. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
  288. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  289. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
  290. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
  291. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
  292. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  293. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
  294. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
  295. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
  296. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
  297. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
  298. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  299. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
  300. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
  301. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
  302. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  303. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
  304. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  305. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
  306. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
  307. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
  308. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  309. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
  310. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  311. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
  312. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  313. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
  314. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  315. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
  316. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  317. package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
  318. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  319. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -113,21 +113,11 @@ declare module 'stripe' {
113
113
  */
114
114
  giropay?: PaymentMethodCreateParams.Giropay;
115
115
 
116
- /**
117
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
118
- */
119
- gopay?: PaymentMethodCreateParams.Gopay;
120
-
121
116
  /**
122
117
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
123
118
  */
124
119
  grabpay?: PaymentMethodCreateParams.Grabpay;
125
120
 
126
- /**
127
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
128
- */
129
- id_bank_transfer?: PaymentMethodCreateParams.IdBankTransfer;
130
-
131
121
  /**
132
122
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
133
123
  */
@@ -163,11 +153,6 @@ declare module 'stripe' {
163
153
  */
164
154
  link?: PaymentMethodCreateParams.Link;
165
155
 
166
- /**
167
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
168
- */
169
- mb_way?: PaymentMethodCreateParams.MbWay;
170
-
171
156
  /**
172
157
  * 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`.
173
158
  */
@@ -228,11 +213,6 @@ declare module 'stripe' {
228
213
  */
229
214
  paypal?: PaymentMethodCreateParams.Paypal;
230
215
 
231
- /**
232
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
233
- */
234
- payto?: PaymentMethodCreateParams.Payto;
235
-
236
216
  /**
237
217
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
238
218
  */
@@ -243,21 +223,11 @@ declare module 'stripe' {
243
223
  */
244
224
  promptpay?: PaymentMethodCreateParams.Promptpay;
245
225
 
246
- /**
247
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
248
- */
249
- qris?: PaymentMethodCreateParams.Qris;
250
-
251
226
  /**
252
227
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
253
228
  */
254
229
  radar_options?: PaymentMethodCreateParams.RadarOptions;
255
230
 
256
- /**
257
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
258
- */
259
- rechnung?: PaymentMethodCreateParams.Rechnung;
260
-
261
231
  /**
262
232
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
263
233
  */
@@ -278,21 +248,11 @@ declare module 'stripe' {
278
248
  */
279
249
  sepa_debit?: PaymentMethodCreateParams.SepaDebit;
280
250
 
281
- /**
282
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
283
- */
284
- shopeepay?: PaymentMethodCreateParams.Shopeepay;
285
-
286
251
  /**
287
252
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
288
253
  */
289
254
  sofort?: PaymentMethodCreateParams.Sofort;
290
255
 
291
- /**
292
- * This hash contains details about the Stripe balance payment method.
293
- */
294
- stripe_balance?: PaymentMethodCreateParams.StripeBalance;
295
-
296
256
  /**
297
257
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
298
258
  */
@@ -548,21 +508,8 @@ declare module 'stripe' {
548
508
 
549
509
  interface Giropay {}
550
510
 
551
- interface Gopay {}
552
-
553
511
  interface Grabpay {}
554
512
 
555
- interface IdBankTransfer {
556
- /**
557
- * Bank where the account is held.
558
- */
559
- bank?: IdBankTransfer.Bank;
560
- }
561
-
562
- namespace IdBankTransfer {
563
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
564
- }
565
-
566
513
  interface Ideal {
567
514
  /**
568
515
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -626,8 +573,6 @@ declare module 'stripe' {
626
573
 
627
574
  interface Link {}
628
575
 
629
- interface MbWay {}
630
-
631
576
  interface Mobilepay {}
632
577
 
633
578
  interface Multibanco {}
@@ -719,29 +664,10 @@ declare module 'stripe' {
719
664
 
720
665
  interface Paypal {}
721
666
 
722
- interface Payto {
723
- /**
724
- * The account number for the bank account.
725
- */
726
- account_number?: string;
727
-
728
- /**
729
- * Bank-State-Branch number of the bank account.
730
- */
731
- bsb_number?: string;
732
-
733
- /**
734
- * The PayID alias for the bank account.
735
- */
736
- pay_id?: string;
737
- }
738
-
739
667
  interface Pix {}
740
668
 
741
669
  interface Promptpay {}
742
670
 
743
- interface Qris {}
744
-
745
671
  interface RadarOptions {
746
672
  /**
747
673
  * 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.
@@ -749,32 +675,6 @@ declare module 'stripe' {
749
675
  session?: string;
750
676
  }
751
677
 
752
- interface Rechnung {
753
- /**
754
- * Customer's date of birth
755
- */
756
- dob: Rechnung.Dob;
757
- }
758
-
759
- namespace Rechnung {
760
- interface Dob {
761
- /**
762
- * The day of birth, between 1 and 31.
763
- */
764
- day: number;
765
-
766
- /**
767
- * The month of birth, between 1 and 12.
768
- */
769
- month: number;
770
-
771
- /**
772
- * The four-digit year of birth.
773
- */
774
- year: number;
775
- }
776
- }
777
-
778
678
  interface RevolutPay {}
779
679
 
780
680
  interface SamsungPay {}
@@ -788,8 +688,6 @@ declare module 'stripe' {
788
688
  iban: string;
789
689
  }
790
690
 
791
- interface Shopeepay {}
792
-
793
691
  interface Sofort {
794
692
  /**
795
693
  * Two-letter ISO code representing the country the bank account is located in.
@@ -801,22 +699,6 @@ declare module 'stripe' {
801
699
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
802
700
  }
803
701
 
804
- interface StripeBalance {
805
- /**
806
- * The connected account ID whose Stripe balance to use as the source of payment
807
- */
808
- account?: string;
809
-
810
- /**
811
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
812
- */
813
- source_type?: StripeBalance.SourceType;
814
- }
815
-
816
- namespace StripeBalance {
817
- type SourceType = 'bank_account' | 'card' | 'fpx';
818
- }
819
-
820
702
  interface Swish {}
821
703
 
822
704
  interface Twint {}
@@ -840,16 +722,13 @@ declare module 'stripe' {
840
722
  | 'eps'
841
723
  | 'fpx'
842
724
  | 'giropay'
843
- | 'gopay'
844
725
  | 'grabpay'
845
- | 'id_bank_transfer'
846
726
  | 'ideal'
847
727
  | 'kakao_pay'
848
728
  | 'klarna'
849
729
  | 'konbini'
850
730
  | 'kr_card'
851
731
  | 'link'
852
- | 'mb_way'
853
732
  | 'mobilepay'
854
733
  | 'multibanco'
855
734
  | 'naver_pay'
@@ -860,18 +739,13 @@ declare module 'stripe' {
860
739
  | 'payco'
861
740
  | 'paynow'
862
741
  | 'paypal'
863
- | 'payto'
864
742
  | 'pix'
865
743
  | 'promptpay'
866
- | 'qris'
867
- | 'rechnung'
868
744
  | 'revolut_pay'
869
745
  | 'samsung_pay'
870
746
  | 'satispay'
871
747
  | 'sepa_debit'
872
- | 'shopeepay'
873
748
  | 'sofort'
874
- | 'stripe_balance'
875
749
  | 'swish'
876
750
  | 'twint'
877
751
  | 'us_bank_account'
@@ -959,11 +833,6 @@ declare module 'stripe' {
959
833
  */
960
834
  pay_by_bank?: PaymentMethodUpdateParams.PayByBank;
961
835
 
962
- /**
963
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
964
- */
965
- payto?: PaymentMethodUpdateParams.Payto;
966
-
967
836
  /**
968
837
  * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
969
838
  */
@@ -1034,23 +903,6 @@ declare module 'stripe' {
1034
903
 
1035
904
  interface PayByBank {}
1036
905
 
1037
- interface Payto {
1038
- /**
1039
- * The account number for the bank account.
1040
- */
1041
- account_number?: string;
1042
-
1043
- /**
1044
- * Bank-State-Branch number of the bank account.
1045
- */
1046
- bsb_number?: string;
1047
-
1048
- /**
1049
- * The PayID alias for the bank account.
1050
- */
1051
- pay_id?: string;
1052
- }
1053
-
1054
906
  interface UsBankAccount {
1055
907
  /**
1056
908
  * Bank account holder type.
@@ -1107,16 +959,13 @@ declare module 'stripe' {
1107
959
  | 'eps'
1108
960
  | 'fpx'
1109
961
  | 'giropay'
1110
- | 'gopay'
1111
962
  | 'grabpay'
1112
- | 'id_bank_transfer'
1113
963
  | 'ideal'
1114
964
  | 'kakao_pay'
1115
965
  | 'klarna'
1116
966
  | 'konbini'
1117
967
  | 'kr_card'
1118
968
  | 'link'
1119
- | 'mb_way'
1120
969
  | 'mobilepay'
1121
970
  | 'multibanco'
1122
971
  | 'naver_pay'
@@ -1127,18 +976,13 @@ declare module 'stripe' {
1127
976
  | 'payco'
1128
977
  | 'paynow'
1129
978
  | 'paypal'
1130
- | 'payto'
1131
979
  | 'pix'
1132
980
  | 'promptpay'
1133
- | 'qris'
1134
- | 'rechnung'
1135
981
  | 'revolut_pay'
1136
982
  | 'samsung_pay'
1137
983
  | 'satispay'
1138
984
  | 'sepa_debit'
1139
- | 'shopeepay'
1140
985
  | 'sofort'
1141
- | 'stripe_balance'
1142
986
  | 'swish'
1143
987
  | 'twint'
1144
988
  | 'us_bank_account'
@@ -1150,12 +994,7 @@ declare module 'stripe' {
1150
994
  /**
1151
995
  * The ID of the customer to which to attach the PaymentMethod.
1152
996
  */
1153
- customer?: string;
1154
-
1155
- /**
1156
- * The ID of the account to which to attach the PaymentMethod.
1157
- */
1158
- customer_account?: string;
997
+ customer: string;
1159
998
 
1160
999
  /**
1161
1000
  * Specifies which fields in the response should be expanded.
@@ -1232,11 +1071,7 @@ declare module 'stripe' {
1232
1071
  */
1233
1072
  attach(
1234
1073
  id: string,
1235
- params?: PaymentMethodAttachParams,
1236
- options?: RequestOptions
1237
- ): Promise<Stripe.Response<Stripe.PaymentMethod>>;
1238
- attach(
1239
- id: string,
1074
+ params: PaymentMethodAttachParams,
1240
1075
  options?: RequestOptions
1241
1076
  ): Promise<Stripe.Response<Stripe.PaymentMethod>>;
1242
1077
 
@@ -112,11 +112,6 @@ declare module 'stripe' {
112
112
  */
113
113
  original_payout: string | Stripe.Payout | null;
114
114
 
115
- /**
116
- * ID of the v2 FinancialAccount the funds are sent to.
117
- */
118
- payout_method?: string | null;
119
-
120
115
  /**
121
116
  * If `completed`, you can use the [Balance Transactions API](https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout) to list all balance transactions that are paid out in this payout.
122
117
  */
@@ -38,11 +38,6 @@ declare module 'stripe' {
38
38
  */
39
39
  method?: PayoutCreateParams.Method;
40
40
 
41
- /**
42
- * The ID of a v2 FinancialAccount to send funds to.
43
- */
44
- payout_method?: string;
45
-
46
41
  /**
47
42
  * The balance type of your Stripe balance to draw this payout from. Balances for different payment sources are kept separately. You can find the amounts with the Balances API. One of `bank_account`, `card`, or `fpx`.
48
43
  */
package/types/Prices.d.ts CHANGED
@@ -93,11 +93,6 @@ declare module 'stripe' {
93
93
  */
94
94
  metadata: Stripe.Metadata;
95
95
 
96
- /**
97
- * Subscriptions using this price will be migrated to use the new referenced price.
98
- */
99
- migrate_to?: Price.MigrateTo | null;
100
-
101
96
  /**
102
97
  * A brief description of the price, hidden from customers.
103
98
  */
@@ -244,23 +239,6 @@ declare module 'stripe' {
244
239
  preset: number | null;
245
240
  }
246
241
 
247
- interface MigrateTo {
248
- /**
249
- * The behavior controlling at what point in the subscription lifecycle to migrate the price
250
- */
251
- behavior: 'at_cycle_end';
252
-
253
- /**
254
- * The unix timestamp after at which subscriptions will start to migrate to the new price.
255
- */
256
- effective_after: number;
257
-
258
- /**
259
- * The id of the price being migrated to
260
- */
261
- price: string;
262
- }
263
-
264
242
  interface Recurring {
265
243
  /**
266
244
  * The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
@@ -361,11 +361,6 @@ declare module 'stripe' {
361
361
  */
362
362
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
363
363
 
364
- /**
365
- * If specified, subscriptions using this price will be updated to use the new referenced price.
366
- */
367
- migrate_to?: Stripe.Emptyable<PriceUpdateParams.MigrateTo>;
368
-
369
364
  /**
370
365
  * A brief description of the price, hidden from customers.
371
366
  */
@@ -463,23 +458,6 @@ declare module 'stripe' {
463
458
  }
464
459
  }
465
460
 
466
- interface MigrateTo {
467
- /**
468
- * The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
469
- */
470
- behavior: 'at_cycle_end';
471
-
472
- /**
473
- * The time after which subscriptions should start using the new price.
474
- */
475
- effective_after?: number;
476
-
477
- /**
478
- * The ID of the price object.
479
- */
480
- price: string;
481
- }
482
-
483
461
  type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
484
462
  }
485
463
 
@@ -98,11 +98,6 @@ declare module 'stripe' {
98
98
  */
99
99
  package_dimensions: Product.PackageDimensions | null;
100
100
 
101
- /**
102
- * Provisioning configuration for this product.
103
- */
104
- provisioning?: Product.Provisioning | null;
105
-
106
101
  /**
107
102
  * Whether this product is shipped (i.e., physical goods).
108
103
  */
@@ -169,40 +164,6 @@ declare module 'stripe' {
169
164
  width: number;
170
165
  }
171
166
 
172
- interface Provisioning {
173
- gift_card: Provisioning.GiftCard | null;
174
-
175
- /**
176
- * The type of provisioning, only `gift_card` currently supported.
177
- */
178
- type: 'gift_card';
179
- }
180
-
181
- namespace Provisioning {
182
- interface GiftCard {
183
- fixed_amount: GiftCard.FixedAmount | null;
184
-
185
- /**
186
- * The specific type of gift_card provisioning, only `fixed_amount` currently supported.
187
- */
188
- type: 'fixed_amount';
189
- }
190
-
191
- namespace GiftCard {
192
- interface FixedAmount {
193
- /**
194
- * The initial amount with which the provisioned gift card will be created.
195
- */
196
- amount: number;
197
-
198
- /**
199
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
200
- */
201
- currency: string;
202
- }
203
- }
204
- }
205
-
206
167
  type Type = 'good' | 'service';
207
168
  }
208
169
  }
@@ -53,11 +53,6 @@ declare module 'stripe' {
53
53
  */
54
54
  package_dimensions?: ProductCreateParams.PackageDimensions;
55
55
 
56
- /**
57
- * Provisioning configuration for this product.
58
- */
59
- provisioning?: ProductCreateParams.Provisioning;
60
-
61
56
  /**
62
57
  * Whether this product is shipped (i.e., physical goods).
63
58
  */
@@ -288,37 +283,6 @@ declare module 'stripe' {
288
283
  width: number;
289
284
  }
290
285
 
291
- interface Provisioning {
292
- gift_card?: Provisioning.GiftCard;
293
-
294
- /**
295
- * The type of provisioning, only `gift_card` currently supported.
296
- */
297
- type: 'gift_card';
298
- }
299
-
300
- namespace Provisioning {
301
- interface GiftCard {
302
- fixed_amount?: GiftCard.FixedAmount;
303
-
304
- /**
305
- * The specific type of gift_card provisioning, only `fixed_amount` currently supported.
306
- */
307
- type: 'fixed_amount';
308
- }
309
-
310
- namespace GiftCard {
311
- interface FixedAmount {
312
- /**
313
- * The initial amount with which the provisioned gift card will be created.
314
- */
315
- amount: number;
316
-
317
- currency: string;
318
- }
319
- }
320
- }
321
-
322
286
  type Type = 'good' | 'service';
323
287
  }
324
288
 
@@ -44,11 +44,6 @@ declare module 'stripe' {
44
44
  */
45
45
  customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
46
46
 
47
- /**
48
- * The account that this promotion code can be used by.
49
- */
50
- customer_account?: string | null;
51
-
52
47
  /**
53
48
  * Date at which the promotion code can no longer be redeemed.
54
49
  */
@@ -25,11 +25,6 @@ declare module 'stripe' {
25
25
  */
26
26
  customer?: string;
27
27
 
28
- /**
29
- * The account that this promotion code can be used by. If not set, the promotion code can be used by all accounts.
30
- */
31
- customer_account?: string;
32
-
33
28
  /**
34
29
  * Specifies which fields in the response should be expanded.
35
30
  */
@@ -166,11 +161,6 @@ declare module 'stripe' {
166
161
  */
167
162
  customer?: string;
168
163
 
169
- /**
170
- * Only return promotion codes that are restricted to this account.
171
- */
172
- customer_account?: string;
173
-
174
164
  /**
175
165
  * Specifies which fields in the response should be expanded.
176
166
  */