stripe 18.1.0-beta.2 → 18.1.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 (309) hide show
  1. package/CHANGELOG.md +140 -1185
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +3 -93
  6. package/cjs/RequestSender.js +3 -7
  7. package/cjs/Webhooks.js +6 -2
  8. package/cjs/apiVersion.js +1 -1
  9. package/cjs/net/FetchHttpClient.js +3 -4
  10. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  11. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  12. package/cjs/resources/Invoices.js +0 -17
  13. package/cjs/resources/PaymentIntents.js +0 -8
  14. package/cjs/resources/Quotes.js +0 -32
  15. package/cjs/resources/SubscriptionSchedules.js +0 -4
  16. package/cjs/resources/Terminal/Readers.js +0 -12
  17. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  18. package/cjs/resources.js +18 -106
  19. package/cjs/stripe.core.js +2 -4
  20. package/cjs/utils.js +28 -4
  21. package/esm/Error.js +2 -81
  22. package/esm/RequestSender.js +4 -8
  23. package/esm/Webhooks.js +6 -2
  24. package/esm/apiVersion.js +1 -1
  25. package/esm/net/FetchHttpClient.js +3 -4
  26. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  27. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  28. package/esm/resources/Invoices.js +0 -17
  29. package/esm/resources/PaymentIntents.js +0 -8
  30. package/esm/resources/Quotes.js +0 -32
  31. package/esm/resources/SubscriptionSchedules.js +0 -4
  32. package/esm/resources/Terminal/Readers.js +0 -12
  33. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  34. package/esm/resources.js +1 -83
  35. package/esm/stripe.core.js +2 -4
  36. package/esm/utils.js +24 -3
  37. package/package.json +12 -3
  38. package/types/AccountLinksResource.d.ts +1 -5
  39. package/types/AccountSessions.d.ts +0 -45
  40. package/types/AccountSessionsResource.d.ts +0 -300
  41. package/types/Accounts.d.ts +20 -212
  42. package/types/AccountsResource.d.ts +214 -546
  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 +0 -5
  49. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  50. package/types/Cards.d.ts +0 -5
  51. package/types/CashBalances.d.ts +0 -5
  52. package/types/Charges.d.ts +5 -166
  53. package/types/ChargesResource.d.ts +0 -1294
  54. package/types/Checkout/Sessions.d.ts +13 -306
  55. package/types/Checkout/SessionsResource.d.ts +3 -246
  56. package/types/ConfirmationTokens.d.ts +5 -120
  57. package/types/CreditNoteLineItems.d.ts +0 -17
  58. package/types/CreditNotes.d.ts +0 -9
  59. package/types/CreditNotesResource.d.ts +0 -5
  60. package/types/CustomerBalanceTransactions.d.ts +0 -2
  61. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  62. package/types/CustomerSessions.d.ts +0 -5
  63. package/types/CustomerSessionsResource.d.ts +1 -6
  64. package/types/Customers.d.ts +0 -2
  65. package/types/CustomersResource.d.ts +23 -11
  66. package/types/Discounts.d.ts +0 -10
  67. package/types/Errors.d.ts +2 -69
  68. package/types/EventTypes.d.ts +0 -681
  69. package/types/Events.d.ts +1 -99
  70. package/types/FinancialConnections/Accounts.d.ts +1 -31
  71. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  72. package/types/FinancialConnections/Sessions.d.ts +1 -51
  73. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  74. package/types/Identity/VerificationSessions.d.ts +0 -5
  75. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  76. package/types/InvoiceItems.d.ts +0 -10
  77. package/types/InvoiceItemsResource.d.ts +6 -117
  78. package/types/InvoiceLineItems.d.ts +2 -46
  79. package/types/InvoicePayments.d.ts +0 -5
  80. package/types/InvoicePaymentsResource.d.ts +74 -0
  81. package/types/Invoices.d.ts +16 -138
  82. package/types/InvoicesResource.d.ts +20 -1550
  83. package/types/Issuing/CardholdersResource.d.ts +1 -2
  84. package/types/Issuing/Transactions.d.ts +0 -5
  85. package/types/Issuing/TransactionsResource.d.ts +0 -5
  86. package/types/LineItems.d.ts +0 -49
  87. package/types/Mandates.d.ts +0 -77
  88. package/types/PaymentIntents.d.ts +2 -675
  89. package/types/PaymentIntentsResource.d.ts +3983 -8416
  90. package/types/PaymentLinks.d.ts +0 -6
  91. package/types/PaymentLinksResource.d.ts +0 -12
  92. package/types/PaymentMethodConfigurations.d.ts +4 -148
  93. package/types/PaymentMethodConfigurationsResource.d.ts +10 -210
  94. package/types/PaymentMethods.d.ts +5 -120
  95. package/types/PaymentMethodsResource.d.ts +12 -167
  96. package/types/Payouts.d.ts +0 -5
  97. package/types/PayoutsResource.d.ts +0 -5
  98. package/types/Persons.d.ts +88 -1
  99. package/types/Prices.d.ts +0 -22
  100. package/types/PricesResource.d.ts +0 -22
  101. package/types/Products.d.ts +0 -39
  102. package/types/ProductsResource.d.ts +0 -36
  103. package/types/PromotionCodes.d.ts +0 -5
  104. package/types/PromotionCodesResource.d.ts +0 -10
  105. package/types/Quotes.d.ts +2 -597
  106. package/types/QuotesResource.d.ts +224 -2571
  107. package/types/Refunds.d.ts +10 -14
  108. package/types/SetupAttempts.d.ts +1 -50
  109. package/types/SetupIntents.d.ts +2 -121
  110. package/types/SetupIntentsResource.d.ts +18 -730
  111. package/types/Sources.d.ts +0 -29
  112. package/types/SubscriptionItems.d.ts +0 -23
  113. package/types/SubscriptionItemsResource.d.ts +0 -109
  114. package/types/SubscriptionSchedules.d.ts +0 -205
  115. package/types/SubscriptionSchedulesResource.d.ts +8 -1236
  116. package/types/Subscriptions.d.ts +2 -97
  117. package/types/SubscriptionsResource.d.ts +11 -391
  118. package/types/Tax/Calculations.d.ts +11 -1
  119. package/types/Tax/CalculationsResource.d.ts +11 -1
  120. package/types/Tax/Registrations.d.ts +99 -0
  121. package/types/Tax/RegistrationsResource.d.ts +132 -0
  122. package/types/Tax/Transactions.d.ts +11 -1
  123. package/types/TaxIds.d.ts +11 -11
  124. package/types/TaxIdsResource.d.ts +11 -11
  125. package/types/Terminal/Readers.d.ts +0 -300
  126. package/types/Terminal/ReadersResource.d.ts +0 -220
  127. package/types/TestHelpers/ConfirmationTokensResource.d.ts +12 -127
  128. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  129. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  130. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  131. package/types/TokensResource.d.ts +106 -0
  132. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  133. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  134. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  135. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  136. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  137. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  138. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  139. package/types/V2/EventTypes.d.ts +7 -677
  140. package/types/WebhookEndpointsResource.d.ts +4 -83
  141. package/types/index.d.ts +5 -142
  142. package/types/lib.d.ts +1 -11
  143. package/types/test/typescriptTest.ts +3 -3
  144. package/cjs/resources/AccountNotices.js +0 -21
  145. package/cjs/resources/BalanceSettings.js +0 -10
  146. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  147. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  148. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  149. package/cjs/resources/ExternalAccounts.js +0 -23
  150. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  151. package/cjs/resources/GiftCards/Cards.js +0 -23
  152. package/cjs/resources/GiftCards/Transactions.js +0 -33
  153. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  154. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  155. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  156. package/cjs/resources/Margins.js +0 -22
  157. package/cjs/resources/Orders.js +0 -24
  158. package/cjs/resources/PaymentRecords.js +0 -29
  159. package/cjs/resources/Privacy/RedactionJobs.js +0 -46
  160. package/cjs/resources/Tax/Associations.js +0 -9
  161. package/cjs/resources/Tax/Forms.js +0 -20
  162. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  163. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  164. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  165. package/cjs/resources/V2/Core/Accounts.js +0 -25
  166. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  167. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  168. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  169. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
  170. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  171. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  172. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
  173. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  174. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  175. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  176. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  177. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  178. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  179. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  180. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  181. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  182. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  183. package/esm/resources/AccountNotices.js +0 -18
  184. package/esm/resources/BalanceSettings.js +0 -7
  185. package/esm/resources/Capital/FinancingOffers.js +0 -18
  186. package/esm/resources/Capital/FinancingSummary.js +0 -9
  187. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  188. package/esm/resources/ExternalAccounts.js +0 -20
  189. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  190. package/esm/resources/GiftCards/Cards.js +0 -20
  191. package/esm/resources/GiftCards/Transactions.js +0 -30
  192. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  193. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  194. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  195. package/esm/resources/Margins.js +0 -19
  196. package/esm/resources/Orders.js +0 -21
  197. package/esm/resources/PaymentRecords.js +0 -26
  198. package/esm/resources/Privacy/RedactionJobs.js +0 -43
  199. package/esm/resources/Tax/Associations.js +0 -6
  200. package/esm/resources/Tax/Forms.js +0 -17
  201. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  202. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  203. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  204. package/esm/resources/V2/Core/Accounts.js +0 -22
  205. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  206. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  207. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  208. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
  209. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  210. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  211. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
  212. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  213. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  214. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  215. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  216. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  217. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  218. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  219. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  220. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  221. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  222. package/types/AccountNotices.d.ts +0 -113
  223. package/types/AccountNoticesResource.d.ts +0 -98
  224. package/types/BalanceSettings.d.ts +0 -85
  225. package/types/BalanceSettingsResource.d.ts +0 -108
  226. package/types/Billing/MeterErrorReports.d.ts +0 -106
  227. package/types/Capital/FinancingOffers.d.ts +0 -188
  228. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  229. package/types/Capital/FinancingSummary.d.ts +0 -106
  230. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  231. package/types/Capital/FinancingTransactions.d.ts +0 -135
  232. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  233. package/types/ExternalAccountsResource.d.ts +0 -304
  234. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  235. package/types/FinancialConnections/Institutions.d.ts +0 -93
  236. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  237. package/types/GiftCards/Cards.d.ts +0 -118
  238. package/types/GiftCards/CardsResource.d.ts +0 -159
  239. package/types/GiftCards/Transactions.d.ts +0 -129
  240. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  241. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  242. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  243. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  244. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  245. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  246. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  247. package/types/Issuing/Settlements.d.ts +0 -113
  248. package/types/Margins.d.ts +0 -56
  249. package/types/MarginsResource.d.ts +0 -114
  250. package/types/Orders.d.ts +0 -1189
  251. package/types/OrdersResource.d.ts +0 -2981
  252. package/types/PaymentAttemptRecords.d.ts +0 -2112
  253. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  254. package/types/PaymentRecords.d.ts +0 -2105
  255. package/types/PaymentRecordsResource.d.ts +0 -455
  256. package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
  257. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
  258. package/types/Privacy/RedactionJobs.d.ts +0 -43
  259. package/types/Privacy/RedactionJobsResource.d.ts +0 -240
  260. package/types/QuoteLines.d.ts +0 -634
  261. package/types/QuotePreviewInvoices.d.ts +0 -1686
  262. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  263. package/types/Tax/Associations.d.ts +0 -126
  264. package/types/Tax/AssociationsResource.d.ts +0 -29
  265. package/types/Tax/Forms.d.ts +0 -220
  266. package/types/Tax/FormsResource.d.ts +0 -107
  267. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  268. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  269. package/types/V2/Core/AccountLinks.d.ts +0 -101
  270. package/types/V2/Core/AccountLinksResource.d.ts +0 -90
  271. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
  272. package/types/V2/Core/Accounts.d.ts +0 -8057
  273. package/types/V2/Core/AccountsResource.d.ts +0 -10184
  274. package/types/V2/Core/Persons.d.ts +0 -1857
  275. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
  276. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  277. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
  278. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  279. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
  280. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
  281. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
  282. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  283. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
  284. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
  285. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
  286. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
  287. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
  288. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  289. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
  290. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
  291. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
  292. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  293. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
  294. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  295. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
  296. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
  297. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
  298. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  299. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
  300. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  301. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
  302. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  303. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
  304. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  305. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
  306. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  307. package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
  308. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  309. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
@@ -104,199 +104,6 @@ declare module 'stripe' {
104
104
  expand?: Array<string>;
105
105
  }
106
106
 
107
- interface ReaderCollectInputsParams {
108
- /**
109
- * List of inputs to be collected using the Reader
110
- */
111
- inputs: Array<ReaderCollectInputsParams.Input>;
112
-
113
- /**
114
- * Specifies which fields in the response should be expanded.
115
- */
116
- expand?: Array<string>;
117
-
118
- /**
119
- * 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`.
120
- */
121
- metadata?: Stripe.MetadataParam;
122
- }
123
-
124
- namespace ReaderCollectInputsParams {
125
- interface Input {
126
- /**
127
- * Customize the text which will be displayed while collecting this input
128
- */
129
- custom_text: Input.CustomText;
130
-
131
- /**
132
- * Indicate that this input is required, disabling the skip button
133
- */
134
- required?: boolean;
135
-
136
- /**
137
- * Options for the `selection` input
138
- */
139
- selection?: Input.Selection;
140
-
141
- /**
142
- * List of toggles to be displayed and customization for the toggles
143
- */
144
- toggles?: Array<Input.Toggle>;
145
-
146
- /**
147
- * The type of input to collect
148
- */
149
- type: Input.Type;
150
- }
151
-
152
- namespace Input {
153
- interface CustomText {
154
- /**
155
- * The description which will be displayed when collecting this input
156
- */
157
- description?: string;
158
-
159
- /**
160
- * The skip button text
161
- */
162
- skip_button?: string;
163
-
164
- /**
165
- * The submit button text
166
- */
167
- submit_button?: string;
168
-
169
- /**
170
- * The title which will be displayed when collecting this input
171
- */
172
- title: string;
173
- }
174
-
175
- interface Selection {
176
- /**
177
- * List of choices for the `selection` input
178
- */
179
- choices: Array<Selection.Choice>;
180
- }
181
-
182
- namespace Selection {
183
- interface Choice {
184
- /**
185
- * The unique identifier for this choice
186
- */
187
- id: string;
188
-
189
- /**
190
- * The style of the button which will be shown for this choice
191
- */
192
- style?: Choice.Style;
193
-
194
- /**
195
- * The text which will be shown on the button for this choice
196
- */
197
- text: string;
198
- }
199
-
200
- namespace Choice {
201
- type Style = 'primary' | 'secondary';
202
- }
203
- }
204
-
205
- interface Toggle {
206
- /**
207
- * The default value of the toggle
208
- */
209
- default_value?: Toggle.DefaultValue;
210
-
211
- /**
212
- * The description which will be displayed for the toggle
213
- */
214
- description?: string;
215
-
216
- /**
217
- * The title which will be displayed for the toggle
218
- */
219
- title?: string;
220
- }
221
-
222
- namespace Toggle {
223
- type DefaultValue = 'disabled' | 'enabled';
224
- }
225
-
226
- type Type =
227
- | 'email'
228
- | 'numeric'
229
- | 'phone'
230
- | 'selection'
231
- | 'signature'
232
- | 'text';
233
- }
234
- }
235
-
236
- interface ReaderCollectPaymentMethodParams {
237
- /**
238
- * PaymentIntent ID
239
- */
240
- payment_intent: string;
241
-
242
- /**
243
- * Configuration overrides
244
- */
245
- collect_config?: ReaderCollectPaymentMethodParams.CollectConfig;
246
-
247
- /**
248
- * Specifies which fields in the response should be expanded.
249
- */
250
- expand?: Array<string>;
251
- }
252
-
253
- namespace ReaderCollectPaymentMethodParams {
254
- interface CollectConfig {
255
- /**
256
- * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.
257
- */
258
- allow_redisplay?: CollectConfig.AllowRedisplay;
259
-
260
- /**
261
- * Enables cancel button on transaction screens.
262
- */
263
- enable_customer_cancellation?: boolean;
264
-
265
- /**
266
- * Override showing a tipping selection screen on this transaction.
267
- */
268
- skip_tipping?: boolean;
269
-
270
- /**
271
- * Tipping configuration for this transaction.
272
- */
273
- tipping?: CollectConfig.Tipping;
274
- }
275
-
276
- namespace CollectConfig {
277
- type AllowRedisplay = 'always' | 'limited' | 'unspecified';
278
-
279
- interface Tipping {
280
- /**
281
- * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
282
- */
283
- amount_eligible?: number;
284
- }
285
- }
286
- }
287
-
288
- interface ReaderConfirmPaymentIntentParams {
289
- /**
290
- * PaymentIntent ID
291
- */
292
- payment_intent: string;
293
-
294
- /**
295
- * Specifies which fields in the response should be expanded.
296
- */
297
- expand?: Array<string>;
298
- }
299
-
300
107
  interface ReaderProcessPaymentIntentParams {
301
108
  /**
302
109
  * PaymentIntent ID
@@ -571,33 +378,6 @@ declare module 'stripe' {
571
378
  options?: RequestOptions
572
379
  ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
573
380
 
574
- /**
575
- * Initiates an input collection flow on a Reader.
576
- */
577
- collectInputs(
578
- id: string,
579
- params: ReaderCollectInputsParams,
580
- options?: RequestOptions
581
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
582
-
583
- /**
584
- * Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
585
- */
586
- collectPaymentMethod(
587
- id: string,
588
- params: ReaderCollectPaymentMethodParams,
589
- options?: RequestOptions
590
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
591
-
592
- /**
593
- * Finalizes a payment on a Reader.
594
- */
595
- confirmPaymentIntent(
596
- id: string,
597
- params: ReaderConfirmPaymentIntentParams,
598
- options?: RequestOptions
599
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
600
-
601
381
  /**
602
382
  * Initiates a payment flow on a Reader.
603
383
  */
@@ -19,6 +19,9 @@ declare module 'stripe' {
19
19
  */
20
20
  payment_method_data?: ConfirmationTokenCreateParams.PaymentMethodData;
21
21
 
22
+ /**
23
+ * Payment-method-specific configuration for this ConfirmationToken.
24
+ */
22
25
  payment_method_options?: ConfirmationTokenCreateParams.PaymentMethodOptions;
23
26
 
24
27
  /**
@@ -136,21 +139,11 @@ declare module 'stripe' {
136
139
  */
137
140
  giropay?: PaymentMethodData.Giropay;
138
141
 
139
- /**
140
- * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
141
- */
142
- gopay?: PaymentMethodData.Gopay;
143
-
144
142
  /**
145
143
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
146
144
  */
147
145
  grabpay?: PaymentMethodData.Grabpay;
148
146
 
149
- /**
150
- * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
151
- */
152
- id_bank_transfer?: PaymentMethodData.IdBankTransfer;
153
-
154
147
  /**
155
148
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
156
149
  */
@@ -186,11 +179,6 @@ declare module 'stripe' {
186
179
  */
187
180
  link?: PaymentMethodData.Link;
188
181
 
189
- /**
190
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
191
- */
192
- mb_way?: PaymentMethodData.MbWay;
193
-
194
182
  /**
195
183
  * 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`.
196
184
  */
@@ -246,11 +234,6 @@ declare module 'stripe' {
246
234
  */
247
235
  paypal?: PaymentMethodData.Paypal;
248
236
 
249
- /**
250
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
251
- */
252
- payto?: PaymentMethodData.Payto;
253
-
254
237
  /**
255
238
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
256
239
  */
@@ -261,21 +244,11 @@ declare module 'stripe' {
261
244
  */
262
245
  promptpay?: PaymentMethodData.Promptpay;
263
246
 
264
- /**
265
- * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
266
- */
267
- qris?: PaymentMethodData.Qris;
268
-
269
247
  /**
270
248
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
271
249
  */
272
250
  radar_options?: PaymentMethodData.RadarOptions;
273
251
 
274
- /**
275
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
276
- */
277
- rechnung?: PaymentMethodData.Rechnung;
278
-
279
252
  /**
280
253
  * If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
281
254
  */
@@ -296,21 +269,11 @@ declare module 'stripe' {
296
269
  */
297
270
  sepa_debit?: PaymentMethodData.SepaDebit;
298
271
 
299
- /**
300
- * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
301
- */
302
- shopeepay?: PaymentMethodData.Shopeepay;
303
-
304
272
  /**
305
273
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
306
274
  */
307
275
  sofort?: PaymentMethodData.Sofort;
308
276
 
309
- /**
310
- * This hash contains details about the Stripe balance payment method.
311
- */
312
- stripe_balance?: PaymentMethodData.StripeBalance;
313
-
314
277
  /**
315
278
  * If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
316
279
  */
@@ -420,6 +383,11 @@ declare module 'stripe' {
420
383
  * Billing phone number (including extension).
421
384
  */
422
385
  phone?: Stripe.Emptyable<string>;
386
+
387
+ /**
388
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
389
+ */
390
+ tax_id?: string;
423
391
  }
424
392
 
425
393
  interface Blik {}
@@ -516,21 +484,8 @@ declare module 'stripe' {
516
484
 
517
485
  interface Giropay {}
518
486
 
519
- interface Gopay {}
520
-
521
487
  interface Grabpay {}
522
488
 
523
- interface IdBankTransfer {
524
- /**
525
- * Bank where the account is held.
526
- */
527
- bank?: IdBankTransfer.Bank;
528
- }
529
-
530
- namespace IdBankTransfer {
531
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
532
- }
533
-
534
489
  interface Ideal {
535
490
  /**
536
491
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -594,8 +549,6 @@ declare module 'stripe' {
594
549
 
595
550
  interface Link {}
596
551
 
597
- interface MbWay {}
598
-
599
552
  interface Mobilepay {}
600
553
 
601
554
  interface Multibanco {}
@@ -687,29 +640,10 @@ declare module 'stripe' {
687
640
 
688
641
  interface Paypal {}
689
642
 
690
- interface Payto {
691
- /**
692
- * The account number for the bank account.
693
- */
694
- account_number?: string;
695
-
696
- /**
697
- * Bank-State-Branch number of the bank account.
698
- */
699
- bsb_number?: string;
700
-
701
- /**
702
- * The PayID alias for the bank account.
703
- */
704
- pay_id?: string;
705
- }
706
-
707
643
  interface Pix {}
708
644
 
709
645
  interface Promptpay {}
710
646
 
711
- interface Qris {}
712
-
713
647
  interface RadarOptions {
714
648
  /**
715
649
  * 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.
@@ -717,32 +651,6 @@ declare module 'stripe' {
717
651
  session?: string;
718
652
  }
719
653
 
720
- interface Rechnung {
721
- /**
722
- * Customer's date of birth
723
- */
724
- dob: Rechnung.Dob;
725
- }
726
-
727
- namespace Rechnung {
728
- interface Dob {
729
- /**
730
- * The day of birth, between 1 and 31.
731
- */
732
- day: number;
733
-
734
- /**
735
- * The month of birth, between 1 and 12.
736
- */
737
- month: number;
738
-
739
- /**
740
- * The four-digit year of birth.
741
- */
742
- year: number;
743
- }
744
- }
745
-
746
654
  interface RevolutPay {}
747
655
 
748
656
  interface SamsungPay {}
@@ -756,8 +664,6 @@ declare module 'stripe' {
756
664
  iban: string;
757
665
  }
758
666
 
759
- interface Shopeepay {}
760
-
761
667
  interface Sofort {
762
668
  /**
763
669
  * Two-letter ISO code representing the country the bank account is located in.
@@ -769,22 +675,6 @@ declare module 'stripe' {
769
675
  type Country = 'AT' | 'BE' | 'DE' | 'ES' | 'IT' | 'NL';
770
676
  }
771
677
 
772
- interface StripeBalance {
773
- /**
774
- * The connected account ID whose Stripe balance to use as the source of payment
775
- */
776
- account?: string;
777
-
778
- /**
779
- * The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
780
- */
781
- source_type?: StripeBalance.SourceType;
782
- }
783
-
784
- namespace StripeBalance {
785
- type SourceType = 'bank_account' | 'card' | 'fpx';
786
- }
787
-
788
678
  interface Swish {}
789
679
 
790
680
  interface Twint {}
@@ -807,16 +697,13 @@ declare module 'stripe' {
807
697
  | 'eps'
808
698
  | 'fpx'
809
699
  | 'giropay'
810
- | 'gopay'
811
700
  | 'grabpay'
812
- | 'id_bank_transfer'
813
701
  | 'ideal'
814
702
  | 'kakao_pay'
815
703
  | 'klarna'
816
704
  | 'konbini'
817
705
  | 'kr_card'
818
706
  | 'link'
819
- | 'mb_way'
820
707
  | 'mobilepay'
821
708
  | 'multibanco'
822
709
  | 'naver_pay'
@@ -827,18 +714,13 @@ declare module 'stripe' {
827
714
  | 'payco'
828
715
  | 'paynow'
829
716
  | 'paypal'
830
- | 'payto'
831
717
  | 'pix'
832
718
  | 'promptpay'
833
- | 'qris'
834
- | 'rechnung'
835
719
  | 'revolut_pay'
836
720
  | 'samsung_pay'
837
721
  | 'satispay'
838
722
  | 'sepa_debit'
839
- | 'shopeepay'
840
723
  | 'sofort'
841
- | 'stripe_balance'
842
724
  | 'swish'
843
725
  | 'twint'
844
726
  | 'us_bank_account'
@@ -884,13 +766,16 @@ declare module 'stripe' {
884
766
  }
885
767
 
886
768
  interface PaymentMethodOptions {
769
+ /**
770
+ * Configuration for any card payments confirmed using this ConfirmationToken.
771
+ */
887
772
  card?: PaymentMethodOptions.Card;
888
773
  }
889
774
 
890
775
  namespace PaymentMethodOptions {
891
776
  interface Card {
892
777
  /**
893
- * Installment configuration for payments attempted on this PaymentIntent.
778
+ * Installment configuration for payments confirmed using this ConfirmationToken.
894
779
  */
895
780
  installments?: Card.Installments;
896
781
  }
@@ -50,33 +50,6 @@ declare module 'stripe' {
50
50
  }
51
51
  }
52
52
 
53
- namespace Terminal {
54
- interface ReaderSucceedInputCollectionParams {
55
- /**
56
- * Specifies which fields in the response should be expanded.
57
- */
58
- expand?: Array<string>;
59
-
60
- /**
61
- * This parameter defines the skip behavior for input collection.
62
- */
63
- skip_non_required_inputs?: ReaderSucceedInputCollectionParams.SkipNonRequiredInputs;
64
- }
65
-
66
- namespace ReaderSucceedInputCollectionParams {
67
- type SkipNonRequiredInputs = 'all' | 'none';
68
- }
69
- }
70
-
71
- namespace Terminal {
72
- interface ReaderTimeoutInputCollectionParams {
73
- /**
74
- * Specifies which fields in the response should be expanded.
75
- */
76
- expand?: Array<string>;
77
- }
78
- }
79
-
80
53
  namespace Terminal {
81
54
  class ReadersResource {
82
55
  /**
@@ -91,32 +64,6 @@ declare module 'stripe' {
91
64
  id: string,
92
65
  options?: RequestOptions
93
66
  ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
94
-
95
- /**
96
- * Use this endpoint to trigger a successful input collection on a simulated reader.
97
- */
98
- succeedInputCollection(
99
- id: string,
100
- params?: ReaderSucceedInputCollectionParams,
101
- options?: RequestOptions
102
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
103
- succeedInputCollection(
104
- id: string,
105
- options?: RequestOptions
106
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
107
-
108
- /**
109
- * Use this endpoint to complete an input collection with a timeout error on a simulated reader.
110
- */
111
- timeoutInputCollection(
112
- id: string,
113
- params?: ReaderTimeoutInputCollectionParams,
114
- options?: RequestOptions
115
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
116
- timeoutInputCollection(
117
- id: string,
118
- options?: RequestOptions
119
- ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
120
67
  }
121
68
  }
122
69
  }
@@ -39,11 +39,6 @@ declare module 'stripe' {
39
39
  * Initiating payment method details for the object.
40
40
  */
41
41
  initiating_payment_method_details?: ReceivedCreditCreateParams.InitiatingPaymentMethodDetails;
42
-
43
- /**
44
- * Details about the network used for the ReceivedCredit.
45
- */
46
- network_details?: ReceivedCreditCreateParams.NetworkDetails;
47
42
  }
48
43
 
49
44
  namespace ReceivedCreditCreateParams {
@@ -79,27 +74,6 @@ declare module 'stripe' {
79
74
  }
80
75
 
81
76
  type Network = 'ach' | 'us_domestic_wire';
82
-
83
- interface NetworkDetails {
84
- /**
85
- * Optional fields for `ach`.
86
- */
87
- ach?: NetworkDetails.Ach;
88
-
89
- /**
90
- * The type of flow that originated the ReceivedCredit.
91
- */
92
- type: 'ach';
93
- }
94
-
95
- namespace NetworkDetails {
96
- interface Ach {
97
- /**
98
- * ACH Addenda record
99
- */
100
- addenda?: string;
101
- }
102
- }
103
77
  }
104
78
  }
105
79
 
@@ -39,11 +39,6 @@ declare module 'stripe' {
39
39
  * Initiating payment method details for the object.
40
40
  */
41
41
  initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;
42
-
43
- /**
44
- * Details about the network used for the ReceivedDebit.
45
- */
46
- network_details?: ReceivedDebitCreateParams.NetworkDetails;
47
42
  }
48
43
 
49
44
  namespace ReceivedDebitCreateParams {
@@ -77,27 +72,6 @@ declare module 'stripe' {
77
72
  routing_number?: string;
78
73
  }
79
74
  }
80
-
81
- interface NetworkDetails {
82
- /**
83
- * Optional fields for `ach`.
84
- */
85
- ach?: NetworkDetails.Ach;
86
-
87
- /**
88
- * The type of flow that originated the ReceivedDebit.
89
- */
90
- type: 'ach';
91
- }
92
-
93
- namespace NetworkDetails {
94
- interface Ach {
95
- /**
96
- * Addenda record data associated with this ReceivedDebit.
97
- */
98
- addenda?: string;
99
- }
100
- }
101
75
  }
102
76
  }
103
77