stripe 18.4.0-beta.2 → 18.4.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 (299) hide show
  1. package/CHANGELOG.md +37 -1293
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -107
  6. package/cjs/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  9. package/cjs/resources/PaymentIntents.js +0 -13
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionSchedules.js +0 -4
  12. package/cjs/resources.js +10 -98
  13. package/cjs/stripe.core.js +2 -1
  14. package/esm/Error.js +0 -93
  15. package/esm/apiVersion.js +2 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  18. package/esm/resources/PaymentIntents.js +0 -13
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources.js +1 -82
  22. package/esm/stripe.core.js +2 -1
  23. package/package.json +1 -1
  24. package/types/AccountLinksResource.d.ts +4 -6
  25. package/types/AccountSessions.d.ts +30 -45
  26. package/types/AccountSessionsResource.d.ts +36 -264
  27. package/types/Accounts.d.ts +2 -213
  28. package/types/AccountsResource.d.ts +3 -547
  29. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  30. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  31. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  32. package/types/Billing/CreditGrants.d.ts +0 -5
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -12
  34. package/types/BillingPortal/Configurations.d.ts +21 -0
  35. package/types/BillingPortal/ConfigurationsResource.d.ts +48 -0
  36. package/types/BillingPortal/Sessions.d.ts +0 -5
  37. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  38. package/types/Capabilities.d.ts +1 -6
  39. package/types/Cards.d.ts +0 -5
  40. package/types/CashBalances.d.ts +0 -5
  41. package/types/Charges.d.ts +10 -171
  42. package/types/ChargesResource.d.ts +0 -1406
  43. package/types/Checkout/Sessions.d.ts +20 -310
  44. package/types/Checkout/SessionsResource.d.ts +21 -326
  45. package/types/ConfirmationTokens.d.ts +3 -128
  46. package/types/Coupons.d.ts +0 -33
  47. package/types/CouponsResource.d.ts +0 -21
  48. package/types/CreditNoteLineItems.d.ts +0 -17
  49. package/types/CreditNotes.d.ts +0 -5
  50. package/types/CreditNotesResource.d.ts +0 -5
  51. package/types/CustomerBalanceTransactions.d.ts +0 -2
  52. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  53. package/types/CustomerSessions.d.ts +0 -5
  54. package/types/CustomerSessionsResource.d.ts +1 -6
  55. package/types/Customers.d.ts +1 -3
  56. package/types/CustomersResource.d.ts +0 -8
  57. package/types/Discounts.d.ts +0 -10
  58. package/types/Disputes.d.ts +1 -8
  59. package/types/Errors.d.ts +2 -81
  60. package/types/EventTypes.d.ts +0 -664
  61. package/types/Events.d.ts +14 -123
  62. package/types/FinancialConnections/Accounts.d.ts +1 -36
  63. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  64. package/types/FinancialConnections/Sessions.d.ts +1 -51
  65. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  66. package/types/Identity/VerificationSessions.d.ts +2 -7
  67. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  68. package/types/InvoiceItems.d.ts +0 -10
  69. package/types/InvoiceItemsResource.d.ts +7 -118
  70. package/types/InvoiceLineItems.d.ts +1 -45
  71. package/types/InvoicePayments.d.ts +0 -5
  72. package/types/InvoicePaymentsResource.d.ts +74 -0
  73. package/types/Invoices.d.ts +3 -133
  74. package/types/InvoicesResource.d.ts +31 -1433
  75. package/types/Issuing/CardholdersResource.d.ts +1 -2
  76. package/types/Issuing/Transactions.d.ts +0 -5
  77. package/types/Issuing/TransactionsResource.d.ts +0 -5
  78. package/types/LineItems.d.ts +0 -49
  79. package/types/Mandates.d.ts +0 -77
  80. package/types/PaymentIntents.d.ts +3 -769
  81. package/types/PaymentIntentsResource.d.ts +4133 -8848
  82. package/types/PaymentLinks.d.ts +5 -6
  83. package/types/PaymentLinksResource.d.ts +102 -15
  84. package/types/PaymentMethodConfigurations.d.ts +0 -180
  85. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  86. package/types/PaymentMethods.d.ts +3 -128
  87. package/types/PaymentMethodsResource.d.ts +3 -168
  88. package/types/Payouts.d.ts +0 -5
  89. package/types/PayoutsResource.d.ts +0 -5
  90. package/types/Prices.d.ts +0 -22
  91. package/types/PricesResource.d.ts +0 -22
  92. package/types/PromotionCodes.d.ts +0 -5
  93. package/types/PromotionCodesResource.d.ts +0 -10
  94. package/types/Quotes.d.ts +1 -594
  95. package/types/QuotesResource.d.ts +281 -2623
  96. package/types/Radar/ValueLists.d.ts +1 -1
  97. package/types/Radar/ValueListsResource.d.ts +1 -1
  98. package/types/Refunds.d.ts +1 -15
  99. package/types/Reporting/ReportRunsResource.d.ts +1 -0
  100. package/types/Reviews.d.ts +2 -2
  101. package/types/SetupAttempts.d.ts +2 -48
  102. package/types/SetupIntents.d.ts +2 -118
  103. package/types/SetupIntentsResource.d.ts +3 -730
  104. package/types/Sources.d.ts +0 -29
  105. package/types/SubscriptionItems.d.ts +0 -21
  106. package/types/SubscriptionItemsResource.d.ts +2 -111
  107. package/types/SubscriptionSchedules.d.ts +0 -205
  108. package/types/SubscriptionSchedulesResource.d.ts +41 -1224
  109. package/types/Subscriptions.d.ts +1 -97
  110. package/types/SubscriptionsResource.d.ts +12 -391
  111. package/types/Tax/Registrations.d.ts +228 -27
  112. package/types/Tax/RegistrationsResource.d.ts +648 -27
  113. package/types/TaxIds.d.ts +0 -10
  114. package/types/TaxIdsResource.d.ts +0 -10
  115. package/types/Terminal/Configurations.d.ts +76 -0
  116. package/types/Terminal/ConfigurationsResource.d.ts +176 -0
  117. package/types/Terminal/Readers.d.ts +0 -20
  118. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  119. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  120. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  121. package/types/Transfers.d.ts +0 -5
  122. package/types/TransfersResource.d.ts +0 -5
  123. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  124. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  125. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  126. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  127. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  128. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  129. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  130. package/types/V2/EventTypes.d.ts +4 -957
  131. package/types/WebhookEndpointsResource.d.ts +2 -79
  132. package/types/index.d.ts +2 -138
  133. package/types/lib.d.ts +2 -11
  134. package/types/test/typescriptTest.ts +3 -3
  135. package/cjs/resources/AccountNotices.js +0 -21
  136. package/cjs/resources/BalanceSettings.js +0 -10
  137. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  138. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  139. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  140. package/cjs/resources/ExternalAccounts.js +0 -23
  141. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  142. package/cjs/resources/FxQuotes.js +0 -15
  143. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  144. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  145. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  146. package/cjs/resources/Margins.js +0 -22
  147. package/cjs/resources/Orders.js +0 -24
  148. package/cjs/resources/PaymentRecords.js +0 -29
  149. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  150. package/cjs/resources/Tax/Associations.js +0 -9
  151. package/cjs/resources/Tax/Forms.js +0 -20
  152. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  153. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  154. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  155. package/cjs/resources/V2/Core/Accounts.js +0 -25
  156. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  157. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  158. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  159. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  160. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  161. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  162. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  163. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  164. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  165. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  166. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  167. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  168. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  169. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  170. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  171. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  172. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -25
  173. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  174. package/esm/resources/AccountNotices.js +0 -18
  175. package/esm/resources/BalanceSettings.js +0 -7
  176. package/esm/resources/Capital/FinancingOffers.js +0 -18
  177. package/esm/resources/Capital/FinancingSummary.js +0 -9
  178. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  179. package/esm/resources/ExternalAccounts.js +0 -20
  180. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  181. package/esm/resources/FxQuotes.js +0 -12
  182. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  183. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  184. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  185. package/esm/resources/Margins.js +0 -19
  186. package/esm/resources/Orders.js +0 -21
  187. package/esm/resources/PaymentRecords.js +0 -26
  188. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  189. package/esm/resources/Tax/Associations.js +0 -6
  190. package/esm/resources/Tax/Forms.js +0 -17
  191. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  192. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  193. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  194. package/esm/resources/V2/Core/Accounts.js +0 -22
  195. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  196. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  197. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  198. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  199. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  200. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  201. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  202. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  203. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  204. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  205. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  206. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  207. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  208. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  209. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  210. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  211. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -22
  212. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  213. package/types/AccountNotices.d.ts +0 -113
  214. package/types/AccountNoticesResource.d.ts +0 -98
  215. package/types/BalanceSettings.d.ts +0 -89
  216. package/types/BalanceSettingsResource.d.ts +0 -108
  217. package/types/Capital/FinancingOffers.d.ts +0 -188
  218. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  219. package/types/Capital/FinancingSummary.d.ts +0 -106
  220. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  221. package/types/Capital/FinancingTransactions.d.ts +0 -135
  222. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  223. package/types/ExternalAccountsResource.d.ts +0 -304
  224. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  225. package/types/FinancialConnections/Institutions.d.ts +0 -98
  226. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  227. package/types/FxQuotes.d.ts +0 -153
  228. package/types/FxQuotesResource.d.ts +0 -130
  229. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  230. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  231. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  232. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  233. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  234. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  235. package/types/Issuing/Settlements.d.ts +0 -113
  236. package/types/Margins.d.ts +0 -56
  237. package/types/MarginsResource.d.ts +0 -114
  238. package/types/Orders.d.ts +0 -1163
  239. package/types/OrdersResource.d.ts +0 -3139
  240. package/types/PaymentAttemptRecords.d.ts +0 -2161
  241. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  242. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
  243. package/types/PaymentRecords.d.ts +0 -2154
  244. package/types/PaymentRecordsResource.d.ts +0 -455
  245. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  246. package/types/Privacy/RedactionJobs.d.ts +0 -111
  247. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  248. package/types/QuoteLines.d.ts +0 -634
  249. package/types/QuotePreviewInvoices.d.ts +0 -1696
  250. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -845
  251. package/types/Tax/Associations.d.ts +0 -82
  252. package/types/Tax/AssociationsResource.d.ts +0 -29
  253. package/types/Tax/Forms.d.ts +0 -220
  254. package/types/Tax/FormsResource.d.ts +0 -107
  255. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  256. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  257. package/types/V2/Core/AccountLinks.d.ts +0 -106
  258. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  259. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3780
  260. package/types/V2/Core/Accounts.d.ts +0 -8791
  261. package/types/V2/Core/AccountsResource.d.ts +0 -10582
  262. package/types/V2/Core/Persons.d.ts +0 -1872
  263. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  264. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  265. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  266. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  267. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  268. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  269. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  270. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  271. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -580
  272. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -326
  273. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
  274. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -289
  275. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  276. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  277. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
  278. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  279. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  280. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  281. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  282. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  283. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  284. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  285. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -151
  286. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  287. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
  288. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  289. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -262
  290. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  291. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  292. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  293. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -155
  294. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  295. package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
  296. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  297. package/types/V2/Payments/OffSessionPayments.d.ts +0 -162
  298. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -159
  299. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -76,11 +76,6 @@ declare module 'stripe' {
76
76
  */
77
77
  customer?: string;
78
78
 
79
- /**
80
- * ID of an existing Account, if one exists. Has the same behavior as `customer`.
81
- */
82
- customer_account?: string;
83
-
84
79
  /**
85
80
  * Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
86
81
  *
@@ -163,6 +158,11 @@ declare module 'stripe' {
163
158
  */
164
159
  optional_items?: Array<SessionCreateParams.OptionalItem>;
165
160
 
161
+ /**
162
+ * Where the user is coming from. This informs the optimizations that are applied to the session. For example, a session originating from a mobile app may behave more like a native app, depending on the platform. This parameter is currently not allowed if `ui_mode` is `custom`.
163
+ */
164
+ origin_context?: SessionCreateParams.OriginContext;
165
+
166
166
  /**
167
167
  * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
168
168
  */
@@ -690,6 +690,11 @@ declare module 'stripe' {
690
690
  amount_tax_display?: Stripe.Emptyable<
691
691
  RenderingOptions.AmountTaxDisplay
692
692
  >;
693
+
694
+ /**
695
+ * ID of the invoice rendering template to use for this invoice.
696
+ */
697
+ template?: string;
693
698
  }
694
699
 
695
700
  namespace RenderingOptions {
@@ -709,11 +714,6 @@ declare module 'stripe' {
709
714
  */
710
715
  dynamic_tax_rates?: Array<string>;
711
716
 
712
- /**
713
- * 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`.
714
- */
715
- metadata?: Stripe.MetadataParam;
716
-
717
717
  /**
718
718
  * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
719
719
  */
@@ -919,6 +919,8 @@ declare module 'stripe' {
919
919
  }
920
920
  }
921
921
 
922
+ type OriginContext = 'mobile_app' | 'web';
923
+
922
924
  interface PaymentIntentData {
923
925
  /**
924
926
  * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
@@ -1222,11 +1224,6 @@ declare module 'stripe' {
1222
1224
  */
1223
1225
  paypal?: PaymentMethodOptions.Paypal;
1224
1226
 
1225
- /**
1226
- * contains details about the PayTo payment method options.
1227
- */
1228
- payto?: PaymentMethodOptions.Payto;
1229
-
1230
1227
  /**
1231
1228
  * contains details about the Pix payment method options.
1232
1229
  */
@@ -1496,11 +1493,6 @@ declare module 'stripe' {
1496
1493
  */
1497
1494
  installments?: Card.Installments;
1498
1495
 
1499
- /**
1500
- * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1501
- */
1502
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1503
-
1504
1496
  /**
1505
1497
  * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
1506
1498
  */
@@ -1562,8 +1554,6 @@ declare module 'stripe' {
1562
1554
  enabled?: boolean;
1563
1555
  }
1564
1556
 
1565
- type RequestDecrementalAuthorization = 'if_available' | 'never';
1566
-
1567
1557
  type RequestExtendedAuthorization = 'if_available' | 'never';
1568
1558
 
1569
1559
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2009,11 +1999,6 @@ declare module 'stripe' {
2009
1999
  */
2010
2000
  reference?: string;
2011
2001
 
2012
- /**
2013
- * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2014
- */
2015
- reference_id?: string;
2016
-
2017
2002
  /**
2018
2003
  * The risk correlation ID for an on-session payment using a saved PayPal payment method.
2019
2004
  */
@@ -2031,11 +2016,6 @@ declare module 'stripe' {
2031
2016
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2032
2017
  */
2033
2018
  setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
2034
-
2035
- /**
2036
- * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2037
- */
2038
- subsellers?: Array<string>;
2039
2019
  }
2040
2020
 
2041
2021
  namespace Paypal {
@@ -2065,11 +2045,11 @@ declare module 'stripe' {
2065
2045
  type SetupFutureUsage = 'none' | 'off_session';
2066
2046
  }
2067
2047
 
2068
- interface Payto {
2048
+ interface Pix {
2069
2049
  /**
2070
- * Additional fields for Mandate creation
2050
+ * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
2071
2051
  */
2072
- mandate_options?: Payto.MandateOptions;
2052
+ expires_after_seconds?: number;
2073
2053
 
2074
2054
  /**
2075
2055
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2080,82 +2060,7 @@ declare module 'stripe' {
2080
2060
  *
2081
2061
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2082
2062
  */
2083
- setup_future_usage?: Payto.SetupFutureUsage;
2084
- }
2085
-
2086
- namespace Payto {
2087
- interface MandateOptions {
2088
- /**
2089
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2090
- */
2091
- amount?: number;
2092
-
2093
- /**
2094
- * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
2095
- */
2096
- amount_type?: MandateOptions.AmountType;
2097
-
2098
- /**
2099
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2100
- */
2101
- end_date?: string;
2102
-
2103
- /**
2104
- * The periodicity at which payments will be collected.
2105
- */
2106
- payment_schedule?: MandateOptions.PaymentSchedule;
2107
-
2108
- /**
2109
- * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2110
- */
2111
- payments_per_period?: number;
2112
-
2113
- /**
2114
- * The purpose for which payments are made. Defaults to retail.
2115
- */
2116
- purpose?: MandateOptions.Purpose;
2117
-
2118
- /**
2119
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2120
- */
2121
- start_date?: string;
2122
- }
2123
-
2124
- namespace MandateOptions {
2125
- type AmountType = 'fixed' | 'maximum';
2126
-
2127
- type PaymentSchedule =
2128
- | 'adhoc'
2129
- | 'annual'
2130
- | 'daily'
2131
- | 'fortnightly'
2132
- | 'monthly'
2133
- | 'quarterly'
2134
- | 'semi_annual'
2135
- | 'weekly';
2136
-
2137
- type Purpose =
2138
- | 'dependant_support'
2139
- | 'government'
2140
- | 'loan'
2141
- | 'mortgage'
2142
- | 'other'
2143
- | 'pension'
2144
- | 'personal'
2145
- | 'retail'
2146
- | 'salary'
2147
- | 'tax'
2148
- | 'utility';
2149
- }
2150
-
2151
- type SetupFutureUsage = 'none' | 'off_session';
2152
- }
2153
-
2154
- interface Pix {
2155
- /**
2156
- * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
2157
- */
2158
- expires_after_seconds?: number;
2063
+ setup_future_usage?: 'none';
2159
2064
  }
2160
2065
 
2161
2066
  interface RevolutPay {
@@ -2284,11 +2189,7 @@ declare module 'stripe' {
2284
2189
  | 'payment_method'
2285
2190
  | 'transactions';
2286
2191
 
2287
- type Prefetch =
2288
- | 'balances'
2289
- | 'inferred_balances'
2290
- | 'ownership'
2291
- | 'transactions';
2192
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2292
2193
  }
2293
2194
 
2294
2195
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
@@ -2344,7 +2245,6 @@ declare module 'stripe' {
2344
2245
  | 'eps'
2345
2246
  | 'fpx'
2346
2247
  | 'giropay'
2347
- | 'gopay'
2348
2248
  | 'grabpay'
2349
2249
  | 'ideal'
2350
2250
  | 'kakao_pay'
@@ -2352,26 +2252,22 @@ declare module 'stripe' {
2352
2252
  | 'konbini'
2353
2253
  | 'kr_card'
2354
2254
  | 'link'
2355
- | 'mb_way'
2356
2255
  | 'mobilepay'
2357
2256
  | 'multibanco'
2358
2257
  | 'naver_pay'
2258
+ | 'nz_bank_account'
2359
2259
  | 'oxxo'
2360
2260
  | 'p24'
2361
2261
  | 'pay_by_bank'
2362
2262
  | 'payco'
2363
2263
  | 'paynow'
2364
2264
  | 'paypal'
2365
- | 'payto'
2366
2265
  | 'pix'
2367
2266
  | 'promptpay'
2368
- | 'qris'
2369
- | 'rechnung'
2370
2267
  | 'revolut_pay'
2371
2268
  | 'samsung_pay'
2372
2269
  | 'satispay'
2373
2270
  | 'sepa_debit'
2374
- | 'shopeepay'
2375
2271
  | 'sofort'
2376
2272
  | 'swish'
2377
2273
  | 'twint'
@@ -2380,20 +2276,6 @@ declare module 'stripe' {
2380
2276
  | 'zip';
2381
2277
 
2382
2278
  interface Permissions {
2383
- /**
2384
- * Permissions for updating the Checkout Session.
2385
- */
2386
- update?: Permissions.Update;
2387
-
2388
- /**
2389
- * Determines which entity is allowed to update the line items.
2390
- *
2391
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2392
- *
2393
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2394
- */
2395
- update_line_items?: Permissions.UpdateLineItems;
2396
-
2397
2279
  /**
2398
2280
  * Determines which entity is allowed to update the shipping details.
2399
2281
  *
@@ -2405,34 +2287,6 @@ declare module 'stripe' {
2405
2287
  }
2406
2288
 
2407
2289
  namespace Permissions {
2408
- interface Update {
2409
- /**
2410
- * Determines which entity is allowed to update the line items.
2411
- *
2412
- * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
2413
- *
2414
- * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
2415
- */
2416
- line_items?: Update.LineItems;
2417
-
2418
- /**
2419
- * Determines which entity is allowed to update the shipping details.
2420
- *
2421
- * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2422
- *
2423
- * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2424
- */
2425
- shipping_details?: Update.ShippingDetails;
2426
- }
2427
-
2428
- namespace Update {
2429
- type LineItems = 'client_only' | 'server_only';
2430
-
2431
- type ShippingDetails = 'client_only' | 'server_only';
2432
- }
2433
-
2434
- type UpdateLineItems = 'client_only' | 'server_only';
2435
-
2436
2290
  type UpdateShippingDetails = 'client_only' | 'server_only';
2437
2291
  }
2438
2292
 
@@ -2954,6 +2808,9 @@ declare module 'stripe' {
2954
2808
 
2955
2809
  namespace SubscriptionData {
2956
2810
  interface BillingMode {
2811
+ /**
2812
+ * Controls the calculation and orchestration of prorations and invoices for subscriptions.
2813
+ */
2957
2814
  type: BillingMode.Type;
2958
2815
  }
2959
2816
 
@@ -3078,23 +2935,6 @@ declare module 'stripe' {
3078
2935
  */
3079
2936
  expand?: Array<string>;
3080
2937
 
3081
- /**
3082
- * A list of items the customer is purchasing.
3083
- *
3084
- * When updating line items, you must retransmit the entire array of line items.
3085
- *
3086
- * To retain an existing line item, specify its `id`.
3087
- *
3088
- * To update an existing line item, specify its `id` along with the new values of the fields to update.
3089
- *
3090
- * To add a new line item, specify one of `price` or `price_data` and `quantity`.
3091
- *
3092
- * To remove an existing line item, omit the line item's ID from the retransmitted array.
3093
- *
3094
- * To reorder a line item, specify it at the desired position in the retransmitted array.
3095
- */
3096
- line_items?: Array<SessionUpdateParams.LineItem>;
3097
-
3098
2938
  /**
3099
2939
  * 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`.
3100
2940
  */
@@ -3164,146 +3004,6 @@ declare module 'stripe' {
3164
3004
  }
3165
3005
  }
3166
3006
 
3167
- interface LineItem {
3168
- /**
3169
- * When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
3170
- */
3171
- adjustable_quantity?: LineItem.AdjustableQuantity;
3172
-
3173
- /**
3174
- * ID of an existing line item.
3175
- */
3176
- id?: string;
3177
-
3178
- /**
3179
- * 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`.
3180
- */
3181
- metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
3182
-
3183
- /**
3184
- * The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
3185
- */
3186
- price?: string;
3187
-
3188
- /**
3189
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
3190
- */
3191
- price_data?: LineItem.PriceData;
3192
-
3193
- /**
3194
- * The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
3195
- */
3196
- quantity?: number;
3197
-
3198
- /**
3199
- * The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
3200
- */
3201
- tax_rates?: Stripe.Emptyable<Array<string>>;
3202
- }
3203
-
3204
- namespace LineItem {
3205
- interface AdjustableQuantity {
3206
- /**
3207
- * Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
3208
- */
3209
- enabled: boolean;
3210
-
3211
- /**
3212
- * The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
3213
- */
3214
- maximum?: number;
3215
-
3216
- /**
3217
- * The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
3218
- */
3219
- minimum?: number;
3220
- }
3221
-
3222
- interface PriceData {
3223
- /**
3224
- * 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).
3225
- */
3226
- currency: string;
3227
-
3228
- /**
3229
- * The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
3230
- */
3231
- product?: string;
3232
-
3233
- /**
3234
- * Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
3235
- */
3236
- product_data?: PriceData.ProductData;
3237
-
3238
- /**
3239
- * The recurring components of a price such as `interval` and `interval_count`.
3240
- */
3241
- recurring?: PriceData.Recurring;
3242
-
3243
- /**
3244
- * Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
3245
- */
3246
- tax_behavior?: PriceData.TaxBehavior;
3247
-
3248
- /**
3249
- * A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
3250
- */
3251
- unit_amount?: number;
3252
-
3253
- /**
3254
- * Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
3255
- */
3256
- unit_amount_decimal?: string;
3257
- }
3258
-
3259
- namespace PriceData {
3260
- interface ProductData {
3261
- /**
3262
- * The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
3263
- */
3264
- description?: string;
3265
-
3266
- /**
3267
- * A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
3268
- */
3269
- images?: Array<string>;
3270
-
3271
- /**
3272
- * 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`.
3273
- */
3274
- metadata?: Stripe.MetadataParam;
3275
-
3276
- /**
3277
- * The product's name, meant to be displayable to the customer.
3278
- */
3279
- name: string;
3280
-
3281
- /**
3282
- * A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
3283
- */
3284
- tax_code?: string;
3285
- }
3286
-
3287
- interface Recurring {
3288
- /**
3289
- * Specifies billing frequency. Either `day`, `week`, `month` or `year`.
3290
- */
3291
- interval: Recurring.Interval;
3292
-
3293
- /**
3294
- * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
3295
- */
3296
- interval_count?: number;
3297
- }
3298
-
3299
- namespace Recurring {
3300
- type Interval = 'day' | 'month' | 'week' | 'year';
3301
- }
3302
-
3303
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3304
- }
3305
- }
3306
-
3307
3007
  interface ShippingOption {
3308
3008
  /**
3309
3009
  * The ID of the Shipping Rate to use for this shipping option.
@@ -3454,11 +3154,6 @@ declare module 'stripe' {
3454
3154
  */
3455
3155
  customer?: string;
3456
3156
 
3457
- /**
3458
- * Only return the Checkout Sessions for the Account specified.
3459
- */
3460
- customer_account?: string;
3461
-
3462
3157
  /**
3463
3158
  * Only return the Checkout Sessions for the Customer details specified.
3464
3159
  */