stripe 20.1.0-beta.1 → 20.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 (398) hide show
  1. package/CHANGELOG.md +49 -1499
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -115
  6. package/cjs/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/Mandates.js +0 -5
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionSchedules.js +0 -4
  12. package/cjs/resources/Subscriptions.js +0 -4
  13. package/cjs/resources.js +2 -88
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Error.js +0 -100
  16. package/esm/apiVersion.js +2 -1
  17. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  18. package/esm/resources/Mandates.js +0 -5
  19. package/esm/resources/PaymentIntents.js +0 -8
  20. package/esm/resources/Quotes.js +0 -32
  21. package/esm/resources/SubscriptionSchedules.js +0 -4
  22. package/esm/resources/Subscriptions.js +0 -4
  23. package/esm/resources.js +0 -81
  24. package/esm/stripe.core.js +1 -1
  25. package/package.json +3 -3
  26. package/types/AccountLinks.d.ts +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +2 -47
  29. package/types/AccountSessionsResource.d.ts +0 -264
  30. package/types/Accounts.d.ts +25 -249
  31. package/types/AccountsResource.d.ts +114 -620
  32. package/types/ApplicationFeesResource.d.ts +2 -2
  33. package/types/Apps/Secrets.d.ts +1 -1
  34. package/types/Balance.d.ts +2 -2
  35. package/types/BalanceSettings.d.ts +1 -1
  36. package/types/BalanceTransactions.d.ts +1 -1
  37. package/types/BankAccounts.d.ts +10 -12
  38. package/types/Billing/AlertTriggereds.d.ts +1 -1
  39. package/types/Billing/Alerts.d.ts +1 -1
  40. package/types/Billing/CreditBalanceSummary.d.ts +1 -1
  41. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  42. package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
  43. package/types/Billing/CreditGrants.d.ts +3 -3
  44. package/types/Billing/CreditGrantsResource.d.ts +3 -3
  45. package/types/Billing/MeterEvents.d.ts +1 -1
  46. package/types/Billing/MeterEventsResource.d.ts +1 -1
  47. package/types/BillingPortal/Configurations.d.ts +10 -3
  48. package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
  49. package/types/BillingPortal/Sessions.d.ts +7 -7
  50. package/types/BillingPortal/SessionsResource.d.ts +7 -7
  51. package/types/Capabilities.d.ts +16 -18
  52. package/types/Cards.d.ts +2 -7
  53. package/types/CashBalances.d.ts +3 -3
  54. package/types/Charges.d.ts +59 -179
  55. package/types/ChargesResource.d.ts +88 -3868
  56. package/types/Checkout/Sessions.d.ts +20 -297
  57. package/types/Checkout/SessionsResource.d.ts +59 -417
  58. package/types/Climate/Orders.d.ts +1 -1
  59. package/types/Climate/OrdersResource.d.ts +2 -2
  60. package/types/ConfirmationTokens.d.ts +8 -109
  61. package/types/Coupons.d.ts +3 -38
  62. package/types/CouponsResource.d.ts +2 -25
  63. package/types/CreditNoteLineItems.d.ts +3 -17
  64. package/types/CreditNotes.d.ts +8 -5
  65. package/types/CreditNotesResource.d.ts +5 -5
  66. package/types/CustomerBalanceTransactions.d.ts +9 -6
  67. package/types/CustomerCashBalanceTransactions.d.ts +13 -10
  68. package/types/CustomerSessions.d.ts +1 -42
  69. package/types/CustomerSessionsResource.d.ts +0 -41
  70. package/types/Customers.d.ts +8 -5
  71. package/types/CustomersResource.d.ts +21 -23
  72. package/types/Discounts.d.ts +6 -6
  73. package/types/Disputes.d.ts +3 -43
  74. package/types/DisputesResource.d.ts +1 -12
  75. package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
  76. package/types/Errors.d.ts +0 -85
  77. package/types/EventTypes.d.ts +0 -630
  78. package/types/Events.d.ts +1 -97
  79. package/types/ExchangeRates.d.ts +2 -2
  80. package/types/FeeRefunds.d.ts +2 -2
  81. package/types/FileLinks.d.ts +1 -1
  82. package/types/FileLinksResource.d.ts +2 -2
  83. package/types/Files.d.ts +4 -4
  84. package/types/FilesResource.d.ts +3 -3
  85. package/types/FinancialConnections/Accounts.d.ts +4 -37
  86. package/types/FinancialConnections/AccountsResource.d.ts +6 -38
  87. package/types/FinancialConnections/Sessions.d.ts +3 -51
  88. package/types/FinancialConnections/SessionsResource.d.ts +4 -41
  89. package/types/Forwarding/Requests.d.ts +1 -1
  90. package/types/Forwarding/RequestsResource.d.ts +1 -1
  91. package/types/FundingInstructions.d.ts +2 -2
  92. package/types/Identity/VerificationReports.d.ts +8 -8
  93. package/types/Identity/VerificationSessions.d.ts +11 -11
  94. package/types/Identity/VerificationSessionsResource.d.ts +18 -12
  95. package/types/InvoiceItems.d.ts +8 -13
  96. package/types/InvoiceItemsResource.d.ts +16 -114
  97. package/types/InvoiceLineItems.d.ts +10 -46
  98. package/types/InvoicePayments.d.ts +1 -1
  99. package/types/InvoiceRenderingTemplates.d.ts +1 -1
  100. package/types/Invoices.d.ts +60 -204
  101. package/types/InvoicesResource.d.ts +132 -1651
  102. package/types/Issuing/Authorizations.d.ts +20 -20
  103. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  104. package/types/Issuing/Cardholders.d.ts +13 -13
  105. package/types/Issuing/CardholdersResource.d.ts +21 -22
  106. package/types/Issuing/Cards.d.ts +10 -10
  107. package/types/Issuing/CardsResource.d.ts +13 -13
  108. package/types/Issuing/Disputes.d.ts +7 -7
  109. package/types/Issuing/DisputesResource.d.ts +5 -5
  110. package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
  111. package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
  112. package/types/Issuing/Tokens.d.ts +1 -1
  113. package/types/Issuing/Transactions.d.ts +12 -17
  114. package/types/Issuing/TransactionsResource.d.ts +1 -6
  115. package/types/LineItems.d.ts +4 -48
  116. package/types/LoginLinks.d.ts +1 -1
  117. package/types/Mandates.d.ts +1 -69
  118. package/types/MandatesResource.d.ts +0 -31
  119. package/types/PaymentAttemptRecords.d.ts +119 -135
  120. package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
  121. package/types/PaymentIntents.d.ts +48 -705
  122. package/types/PaymentIntentsResource.d.ts +6867 -19451
  123. package/types/PaymentLinks.d.ts +7 -12
  124. package/types/PaymentLinksResource.d.ts +28 -38
  125. package/types/PaymentMethodConfigurations.d.ts +4 -184
  126. package/types/PaymentMethodConfigurationsResource.d.ts +76 -326
  127. package/types/PaymentMethodDomains.d.ts +1 -1
  128. package/types/PaymentMethods.d.ts +10 -116
  129. package/types/PaymentMethodsResource.d.ts +7 -116
  130. package/types/PaymentRecords.d.ts +126 -135
  131. package/types/PaymentRecordsResource.d.ts +7 -7
  132. package/types/Payouts.d.ts +7 -7
  133. package/types/PayoutsResource.d.ts +3 -3
  134. package/types/Persons.d.ts +21 -23
  135. package/types/Plans.d.ts +5 -5
  136. package/types/PlansResource.d.ts +6 -6
  137. package/types/Prices.d.ts +6 -28
  138. package/types/PricesResource.d.ts +10 -32
  139. package/types/Products.d.ts +10 -10
  140. package/types/ProductsResource.d.ts +14 -14
  141. package/types/PromotionCodes.d.ts +5 -5
  142. package/types/PromotionCodesResource.d.ts +5 -5
  143. package/types/Quotes.d.ts +14 -602
  144. package/types/QuotesResource.d.ts +298 -2628
  145. package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
  146. package/types/Radar/ValueListItems.d.ts +1 -1
  147. package/types/Radar/ValueLists.d.ts +2 -2
  148. package/types/Radar/ValueListsResource.d.ts +2 -2
  149. package/types/Refunds.d.ts +3 -17
  150. package/types/RefundsResource.d.ts +3 -3
  151. package/types/Reporting/ReportRuns.d.ts +3 -3
  152. package/types/Reporting/ReportRunsResource.d.ts +2 -2
  153. package/types/Reporting/ReportTypes.d.ts +3 -3
  154. package/types/Reviews.d.ts +1 -1
  155. package/types/SetupAttempts.d.ts +22 -60
  156. package/types/SetupIntents.d.ts +22 -157
  157. package/types/SetupIntentsResource.d.ts +50 -673
  158. package/types/ShippingRates.d.ts +3 -3
  159. package/types/ShippingRatesResource.d.ts +3 -3
  160. package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
  161. package/types/SourceMandateNotifications.d.ts +3 -3
  162. package/types/Sources.d.ts +5 -34
  163. package/types/SourcesResource.d.ts +2 -2
  164. package/types/SubscriptionItems.d.ts +7 -33
  165. package/types/SubscriptionItemsResource.d.ts +22 -131
  166. package/types/SubscriptionSchedules.d.ts +9 -209
  167. package/types/SubscriptionSchedulesResource.d.ts +39 -1257
  168. package/types/Subscriptions.d.ts +41 -251
  169. package/types/SubscriptionsResource.d.ts +94 -734
  170. package/types/Tax/Associations.d.ts +3 -3
  171. package/types/Tax/AssociationsResource.d.ts +1 -1
  172. package/types/Tax/CalculationLineItems.d.ts +7 -7
  173. package/types/Tax/Calculations.d.ts +12 -12
  174. package/types/Tax/CalculationsResource.d.ts +7 -7
  175. package/types/Tax/Registrations.d.ts +3 -3
  176. package/types/Tax/Settings.d.ts +1 -1
  177. package/types/Tax/SettingsResource.d.ts +1 -1
  178. package/types/Tax/TransactionLineItems.d.ts +5 -5
  179. package/types/Tax/Transactions.d.ts +9 -9
  180. package/types/Tax/TransactionsResource.d.ts +10 -10
  181. package/types/TaxIds.d.ts +6 -6
  182. package/types/TaxIdsResource.d.ts +4 -4
  183. package/types/TaxRates.d.ts +1 -1
  184. package/types/TaxRatesResource.d.ts +2 -2
  185. package/types/Terminal/Configurations.d.ts +0 -9
  186. package/types/Terminal/ConfigurationsResource.d.ts +0 -28
  187. package/types/Terminal/ConnectionTokens.d.ts +1 -1
  188. package/types/Terminal/Locations.d.ts +2 -2
  189. package/types/Terminal/LocationsResource.d.ts +3 -3
  190. package/types/Terminal/Readers.d.ts +10 -30
  191. package/types/Terminal/ReadersResource.d.ts +7 -7
  192. package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -107
  193. package/types/TestHelpers/CustomersResource.d.ts +2 -2
  194. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
  195. package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
  196. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -27
  197. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -27
  198. package/types/Tokens.d.ts +4 -4
  199. package/types/TokensResource.d.ts +17 -17
  200. package/types/Topups.d.ts +3 -3
  201. package/types/TopupsResource.d.ts +3 -3
  202. package/types/TransferReversals.d.ts +4 -4
  203. package/types/Transfers.d.ts +5 -10
  204. package/types/TransfersResource.d.ts +6 -11
  205. package/types/Treasury/CreditReversals.d.ts +3 -3
  206. package/types/Treasury/CreditReversalsResource.d.ts +1 -1
  207. package/types/Treasury/DebitReversals.d.ts +3 -3
  208. package/types/Treasury/DebitReversalsResource.d.ts +1 -1
  209. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  210. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  211. package/types/Treasury/FinancialAccountsResource.d.ts +2 -39
  212. package/types/Treasury/InboundTransfers.d.ts +4 -4
  213. package/types/Treasury/InboundTransfersResource.d.ts +2 -2
  214. package/types/Treasury/OutboundPayments.d.ts +5 -5
  215. package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
  216. package/types/Treasury/OutboundTransfers.d.ts +4 -30
  217. package/types/Treasury/OutboundTransfersResource.d.ts +3 -29
  218. package/types/Treasury/ReceivedCredits.d.ts +9 -35
  219. package/types/Treasury/ReceivedDebits.d.ts +6 -37
  220. package/types/Treasury/TransactionEntries.d.ts +11 -11
  221. package/types/Treasury/Transactions.d.ts +11 -11
  222. package/types/V2/Core/AccountLinks.d.ts +13 -21
  223. package/types/V2/Core/AccountLinksResource.d.ts +8 -16
  224. package/types/V2/Core/AccountPersons.d.ts +55 -10
  225. package/types/V2/Core/AccountTokensResource.d.ts +129 -24
  226. package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
  227. package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
  228. package/types/V2/Core/Accounts.d.ts +256 -1349
  229. package/types/V2/Core/AccountsResource.d.ts +282 -567
  230. package/types/V2/Core/EventTypes.d.ts +10 -1542
  231. package/types/WebhookEndpoints.d.ts +1 -1
  232. package/types/WebhookEndpointsResource.d.ts +5 -79
  233. package/types/apiVersion.d.ts +2 -1
  234. package/types/index.d.ts +0 -134
  235. package/types/lib.d.ts +0 -10
  236. package/cjs/resources/AccountNotices.js +0 -21
  237. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
  238. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  239. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  240. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  241. package/cjs/resources/ExternalAccounts.js +0 -23
  242. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  243. package/cjs/resources/FxQuotes.js +0 -15
  244. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  245. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  246. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  247. package/cjs/resources/Margins.js +0 -22
  248. package/cjs/resources/Orders.js +0 -24
  249. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  250. package/cjs/resources/Tax/Forms.js +0 -20
  251. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  252. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
  253. package/cjs/resources/V2/Billing/BillSettings.js +0 -27
  254. package/cjs/resources/V2/Billing/Cadences.js +0 -23
  255. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
  256. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
  257. package/cjs/resources/V2/Billing/Profiles.js +0 -19
  258. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -33
  259. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -37
  260. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  261. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -29
  262. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  263. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  264. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  265. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  266. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  267. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  268. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  269. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  270. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  271. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  272. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  273. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  274. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  275. package/esm/resources/AccountNotices.js +0 -18
  276. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
  277. package/esm/resources/Capital/FinancingOffers.js +0 -18
  278. package/esm/resources/Capital/FinancingSummary.js +0 -9
  279. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  280. package/esm/resources/ExternalAccounts.js +0 -20
  281. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  282. package/esm/resources/FxQuotes.js +0 -12
  283. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  284. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  285. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  286. package/esm/resources/Margins.js +0 -19
  287. package/esm/resources/Orders.js +0 -21
  288. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  289. package/esm/resources/Tax/Forms.js +0 -17
  290. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  291. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
  292. package/esm/resources/V2/Billing/BillSettings.js +0 -24
  293. package/esm/resources/V2/Billing/Cadences.js +0 -20
  294. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
  295. package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
  296. package/esm/resources/V2/Billing/Profiles.js +0 -16
  297. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -30
  298. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -34
  299. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  300. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -26
  301. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  302. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  303. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  304. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  305. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  306. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  307. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  308. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  309. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  310. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  311. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  312. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  313. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  314. package/types/AccountNotices.d.ts +0 -113
  315. package/types/AccountNoticesResource.d.ts +0 -98
  316. package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
  317. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
  318. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
  319. package/types/Capital/FinancingOffers.d.ts +0 -188
  320. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  321. package/types/Capital/FinancingSummary.d.ts +0 -106
  322. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  323. package/types/Capital/FinancingTransactions.d.ts +0 -135
  324. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  325. package/types/ExternalAccountsResource.d.ts +0 -304
  326. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  327. package/types/FinancialConnections/Institutions.d.ts +0 -98
  328. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  329. package/types/FxQuotes.d.ts +0 -155
  330. package/types/FxQuotesResource.d.ts +0 -130
  331. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  332. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  333. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  334. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  335. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  336. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  337. package/types/Issuing/Settlements.d.ts +0 -113
  338. package/types/Margins.d.ts +0 -56
  339. package/types/MarginsResource.d.ts +0 -114
  340. package/types/Orders.d.ts +0 -1163
  341. package/types/OrdersResource.d.ts +0 -5505
  342. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  343. package/types/Privacy/RedactionJobs.d.ts +0 -111
  344. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  345. package/types/QuoteLines.d.ts +0 -634
  346. package/types/QuotePreviewInvoices.d.ts +0 -1771
  347. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
  348. package/types/Tax/Forms.d.ts +0 -220
  349. package/types/Tax/FormsResource.d.ts +0 -107
  350. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  351. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  352. package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
  353. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
  354. package/types/V2/Billing/BillSettings.d.ts +0 -120
  355. package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
  356. package/types/V2/Billing/Cadences.d.ts +0 -690
  357. package/types/V2/Billing/CadencesResource.d.ts +0 -487
  358. package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -318
  359. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
  360. package/types/V2/Billing/CollectionSettings.d.ts +0 -341
  361. package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -683
  362. package/types/V2/Billing/Profiles.d.ts +0 -70
  363. package/types/V2/Billing/ProfilesResource.d.ts +0 -150
  364. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  365. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -194
  366. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -116
  367. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -198
  368. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  369. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  370. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  371. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  372. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
  373. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -172
  374. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -175
  375. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -109
  376. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -212
  377. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  378. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
  379. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  380. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  381. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  382. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  383. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  384. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  385. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  386. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
  387. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
  388. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  389. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  390. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -302
  391. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  392. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  393. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  394. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
  395. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  396. package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
  397. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  398. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
package/esm/Error.js CHANGED
@@ -24,34 +24,6 @@ export const generateV1Error = (rawStripeError) => {
24
24
  export const generateV2Error = (rawStripeError) => {
25
25
  switch (rawStripeError.type) {
26
26
  // switchCases: The beginning of the section generated from our OpenAPI spec
27
- case 'already_canceled':
28
- return new AlreadyCanceledError(rawStripeError);
29
- case 'already_exists':
30
- return new AlreadyExistsError(rawStripeError);
31
- case 'blocked_by_stripe':
32
- return new BlockedByStripeError(rawStripeError);
33
- case 'controlled_by_dashboard':
34
- return new ControlledByDashboardError(rawStripeError);
35
- case 'feature_not_enabled':
36
- return new FeatureNotEnabledError(rawStripeError);
37
- case 'financial_account_not_open':
38
- return new FinancialAccountNotOpenError(rawStripeError);
39
- case 'insufficient_funds':
40
- return new InsufficientFundsError(rawStripeError);
41
- case 'invalid_payment_method':
42
- return new InvalidPaymentMethodError(rawStripeError);
43
- case 'invalid_payout_method':
44
- return new InvalidPayoutMethodError(rawStripeError);
45
- case 'non_zero_balance':
46
- return new NonZeroBalanceError(rawStripeError);
47
- case 'not_cancelable':
48
- return new NotCancelableError(rawStripeError);
49
- case 'quota_exceeded':
50
- return new QuotaExceededError(rawStripeError);
51
- case 'rate_limit':
52
- return new RateLimitError(rawStripeError);
53
- case 'recipient_not_notifiable':
54
- return new RecipientNotNotifiableError(rawStripeError);
55
27
  case 'temporary_session_expired':
56
28
  return new TemporarySessionExpiredError(rawStripeError);
57
29
  // switchCases: The end of the section generated from our OpenAPI spec
@@ -205,78 +177,6 @@ export class StripeUnknownError extends StripeError {
205
177
  }
206
178
  }
207
179
  // classDefinitions: The beginning of the section generated from our OpenAPI spec
208
- export class AlreadyCanceledError extends StripeError {
209
- constructor(rawStripeError = {}) {
210
- super(rawStripeError, 'AlreadyCanceledError');
211
- }
212
- }
213
- export class AlreadyExistsError extends StripeError {
214
- constructor(rawStripeError = {}) {
215
- super(rawStripeError, 'AlreadyExistsError');
216
- }
217
- }
218
- export class BlockedByStripeError extends StripeError {
219
- constructor(rawStripeError = {}) {
220
- super(rawStripeError, 'BlockedByStripeError');
221
- }
222
- }
223
- export class ControlledByDashboardError extends StripeError {
224
- constructor(rawStripeError = {}) {
225
- super(rawStripeError, 'ControlledByDashboardError');
226
- }
227
- }
228
- export class FeatureNotEnabledError extends StripeError {
229
- constructor(rawStripeError = {}) {
230
- super(rawStripeError, 'FeatureNotEnabledError');
231
- }
232
- }
233
- export class FinancialAccountNotOpenError extends StripeError {
234
- constructor(rawStripeError = {}) {
235
- super(rawStripeError, 'FinancialAccountNotOpenError');
236
- }
237
- }
238
- export class InsufficientFundsError extends StripeError {
239
- constructor(rawStripeError = {}) {
240
- super(rawStripeError, 'InsufficientFundsError');
241
- }
242
- }
243
- export class InvalidPaymentMethodError extends StripeError {
244
- constructor(rawStripeError) {
245
- super(rawStripeError, 'InvalidPaymentMethodError');
246
- // @ts-ignore
247
- this.invalid_param = this.raw.invalid_param;
248
- }
249
- }
250
- export class InvalidPayoutMethodError extends StripeError {
251
- constructor(rawStripeError = {}) {
252
- super(rawStripeError, 'InvalidPayoutMethodError');
253
- }
254
- }
255
- export class NonZeroBalanceError extends StripeError {
256
- constructor(rawStripeError = {}) {
257
- super(rawStripeError, 'NonZeroBalanceError');
258
- }
259
- }
260
- export class NotCancelableError extends StripeError {
261
- constructor(rawStripeError = {}) {
262
- super(rawStripeError, 'NotCancelableError');
263
- }
264
- }
265
- export class QuotaExceededError extends StripeError {
266
- constructor(rawStripeError = {}) {
267
- super(rawStripeError, 'QuotaExceededError');
268
- }
269
- }
270
- export class RateLimitError extends StripeError {
271
- constructor(rawStripeError = {}) {
272
- super(rawStripeError, 'RateLimitError');
273
- }
274
- }
275
- export class RecipientNotNotifiableError extends StripeError {
276
- constructor(rawStripeError = {}) {
277
- super(rawStripeError, 'RecipientNotNotifiableError');
278
- }
279
- }
280
180
  export class TemporarySessionExpiredError extends StripeError {
281
181
  constructor(rawStripeError = {}) {
282
182
  super(rawStripeError, 'TemporarySessionExpiredError');
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,3 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2025-11-17.preview';
2
+ export const ApiVersion = '2025-12-15.clover';
3
+ export const ApiMajorVersion = 'clover';
@@ -15,11 +15,6 @@ export const Accounts = StripeResource.extend({
15
15
  method: 'POST',
16
16
  fullPath: '/v1/financial_connections/accounts/{account}/disconnect',
17
17
  }),
18
- listInferredBalances: stripeMethod({
19
- method: 'GET',
20
- fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
21
- methodType: 'list',
22
- }),
23
18
  listOwners: stripeMethod({
24
19
  method: 'GET',
25
20
  fullPath: '/v1/financial_connections/accounts/{account}/owners',
@@ -3,9 +3,4 @@ import { StripeResource } from '../StripeResource.js';
3
3
  const stripeMethod = StripeResource.method;
4
4
  export const Mandates = StripeResource.extend({
5
5
  retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/mandates/{mandate}' }),
6
- list: stripeMethod({
7
- method: 'GET',
8
- fullPath: '/v1/mandates',
9
- methodType: 'list',
10
- }),
11
6
  });
@@ -32,10 +32,6 @@ export const PaymentIntents = StripeResource.extend({
32
32
  method: 'POST',
33
33
  fullPath: '/v1/payment_intents/{intent}/confirm',
34
34
  }),
35
- decrementAuthorization: stripeMethod({
36
- method: 'POST',
37
- fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
38
- }),
39
35
  incrementAuthorization: stripeMethod({
40
36
  method: 'POST',
41
37
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
@@ -50,10 +46,6 @@ export const PaymentIntents = StripeResource.extend({
50
46
  fullPath: '/v1/payment_intents/search',
51
47
  methodType: 'search',
52
48
  }),
53
- triggerAction: stripeMethod({
54
- method: 'POST',
55
- fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
56
- }),
57
49
  verifyMicrodeposits: stripeMethod({
58
50
  method: 'POST',
59
51
  fullPath: '/v1/payment_intents/{intent}/verify_microdeposits',
@@ -16,11 +16,6 @@ export const Quotes = StripeResource.extend({
16
16
  method: 'POST',
17
17
  fullPath: '/v1/quotes/{quote}/finalize',
18
18
  }),
19
- listPreviewInvoiceLines: stripeMethod({
20
- method: 'GET',
21
- fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
22
- methodType: 'list',
23
- }),
24
19
  listComputedUpfrontLineItems: stripeMethod({
25
20
  method: 'GET',
26
21
  fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
@@ -31,37 +26,10 @@ export const Quotes = StripeResource.extend({
31
26
  fullPath: '/v1/quotes/{quote}/line_items',
32
27
  methodType: 'list',
33
28
  }),
34
- listLines: stripeMethod({
35
- method: 'GET',
36
- fullPath: '/v1/quotes/{quote}/lines',
37
- methodType: 'list',
38
- }),
39
- listPreviewInvoices: stripeMethod({
40
- method: 'GET',
41
- fullPath: '/v1/quotes/{quote}/preview_invoices',
42
- methodType: 'list',
43
- }),
44
- listPreviewSubscriptionSchedules: stripeMethod({
45
- method: 'GET',
46
- fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
47
- methodType: 'list',
48
- }),
49
- markDraft: stripeMethod({
50
- method: 'POST',
51
- fullPath: '/v1/quotes/{quote}/mark_draft',
52
- }),
53
- markStale: stripeMethod({
54
- method: 'POST',
55
- fullPath: '/v1/quotes/{quote}/mark_stale',
56
- }),
57
29
  pdf: stripeMethod({
58
30
  method: 'GET',
59
31
  fullPath: '/v1/quotes/{quote}/pdf',
60
32
  host: 'files.stripe.com',
61
33
  streaming: true,
62
34
  }),
63
- reestimate: stripeMethod({
64
- method: 'POST',
65
- fullPath: '/v1/quotes/{quote}/reestimate',
66
- }),
67
35
  });
@@ -19,10 +19,6 @@ export const SubscriptionSchedules = StripeResource.extend({
19
19
  fullPath: '/v1/subscription_schedules',
20
20
  methodType: 'list',
21
21
  }),
22
- amend: stripeMethod({
23
- method: 'POST',
24
- fullPath: '/v1/subscription_schedules/{schedule}/amend',
25
- }),
26
22
  cancel: stripeMethod({
27
23
  method: 'POST',
28
24
  fullPath: '/v1/subscription_schedules/{schedule}/cancel',
@@ -16,10 +16,6 @@ export const Subscriptions = StripeResource.extend({
16
16
  fullPath: '/v1/subscriptions',
17
17
  methodType: 'list',
18
18
  }),
19
- attachCadence: stripeMethod({
20
- method: 'POST',
21
- fullPath: '/v1/subscriptions/{subscription}/attach_cadence',
22
- }),
23
19
  cancel: stripeMethod({
24
20
  method: 'DELETE',
25
21
  fullPath: '/v1/subscriptions/{subscription_exposed_id}',
package/esm/resources.js CHANGED
@@ -5,18 +5,14 @@ import { AccountTokens as V2CoreAccountTokens } from './resources/V2/Core/Accoun
5
5
  import { Accounts as FinancialConnectionsAccounts } from './resources/FinancialConnections/Accounts.js';
6
6
  import { Accounts as V2CoreAccounts } from './resources/V2/Core/Accounts.js';
7
7
  import { ActiveEntitlements as EntitlementsActiveEntitlements } from './resources/Entitlements/ActiveEntitlements.js';
8
- import { Adjustments as V2MoneyManagementAdjustments } from './resources/V2/MoneyManagement/Adjustments.js';
9
8
  import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
10
9
  import { Associations as TaxAssociations } from './resources/Tax/Associations.js';
11
10
  import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
12
11
  import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
13
- import { BillSettings as V2BillingBillSettings } from './resources/V2/Billing/BillSettings.js';
14
- import { Cadences as V2BillingCadences } from './resources/V2/Billing/Cadences.js';
15
12
  import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
16
13
  import { Cardholders as IssuingCardholders } from './resources/Issuing/Cardholders.js';
17
14
  import { Cards as IssuingCards } from './resources/Issuing/Cards.js';
18
15
  import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
19
- import { CollectionSettings as V2BillingCollectionSettings } from './resources/V2/Billing/CollectionSettings.js';
20
16
  import { Configurations as BillingPortalConfigurations } from './resources/BillingPortal/Configurations.js';
21
17
  import { Configurations as TerminalConfigurations } from './resources/Terminal/Configurations.js';
22
18
  import { ConfirmationTokens as TestHelpersConfirmationTokens } from './resources/TestHelpers/ConfirmationTokens.js';
@@ -25,29 +21,16 @@ import { CreditBalanceSummary as BillingCreditBalanceSummary } from './resources
25
21
  import { CreditBalanceTransactions as BillingCreditBalanceTransactions } from './resources/Billing/CreditBalanceTransactions.js';
26
22
  import { CreditGrants as BillingCreditGrants } from './resources/Billing/CreditGrants.js';
27
23
  import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
28
- import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
29
24
  import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
30
25
  import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';
31
- import { DisputeSettlementDetails as IssuingDisputeSettlementDetails } from './resources/Issuing/DisputeSettlementDetails.js';
32
26
  import { Disputes as IssuingDisputes } from './resources/Issuing/Disputes.js';
33
27
  import { EarlyFraudWarnings as RadarEarlyFraudWarnings } from './resources/Radar/EarlyFraudWarnings.js';
34
28
  import { EventDestinations as V2CoreEventDestinations } from './resources/V2/Core/EventDestinations.js';
35
29
  import { Events as V2CoreEvents } from './resources/V2/Core/Events.js';
36
30
  import { Features as EntitlementsFeatures } from './resources/Entitlements/Features.js';
37
31
  import { FinancialAccounts as TreasuryFinancialAccounts } from './resources/Treasury/FinancialAccounts.js';
38
- import { FinancialAccounts as V2MoneyManagementFinancialAccounts } from './resources/V2/MoneyManagement/FinancialAccounts.js';
39
- import { FinancialAddresses as V2MoneyManagementFinancialAddresses } from './resources/V2/MoneyManagement/FinancialAddresses.js';
40
- import { FinancialAddresses as V2TestHelpersFinancialAddresses } from './resources/V2/TestHelpers/FinancialAddresses.js';
41
- import { FinancingOffers as CapitalFinancingOffers } from './resources/Capital/FinancingOffers.js';
42
- import { FinancingSummary as CapitalFinancingSummary } from './resources/Capital/FinancingSummary.js';
43
- import { FinancingTransactions as CapitalFinancingTransactions } from './resources/Capital/FinancingTransactions.js';
44
- import { Forms as TaxForms } from './resources/Tax/Forms.js';
45
- import { FraudLiabilityDebits as IssuingFraudLiabilityDebits } from './resources/Issuing/FraudLiabilityDebits.js';
46
- import { GbBankAccounts as V2CoreVaultGbBankAccounts } from './resources/V2/Core/Vault/GbBankAccounts.js';
47
32
  import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
48
33
  import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
49
- import { InboundTransfers as V2MoneyManagementInboundTransfers } from './resources/V2/MoneyManagement/InboundTransfers.js';
50
- import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
51
34
  import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';
52
35
  import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';
53
36
  import { MeterEventAdjustments as V2BillingMeterEventAdjustments } from './resources/V2/Billing/MeterEventAdjustments.js';
@@ -55,35 +38,23 @@ import { MeterEventSession as V2BillingMeterEventSession } from './resources/V2/
55
38
  import { MeterEventStream as V2BillingMeterEventStream } from './resources/V2/Billing/MeterEventStream.js';
56
39
  import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEvents.js';
57
40
  import { MeterEvents as V2BillingMeterEvents } from './resources/V2/Billing/MeterEvents.js';
58
- import { MeterUsage as BillingAnalyticsMeterUsage } from './resources/Billing/Analytics/MeterUsage.js';
59
41
  import { Meters as BillingMeters } from './resources/Billing/Meters.js';
60
42
  import { OnboardingLinks as TerminalOnboardingLinks } from './resources/Terminal/OnboardingLinks.js';
61
43
  import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
62
- import { OutboundPaymentQuotes as V2MoneyManagementOutboundPaymentQuotes } from './resources/V2/MoneyManagement/OutboundPaymentQuotes.js';
63
44
  import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
64
45
  import { OutboundPayments as TreasuryOutboundPayments } from './resources/Treasury/OutboundPayments.js';
65
- import { OutboundPayments as V2MoneyManagementOutboundPayments } from './resources/V2/MoneyManagement/OutboundPayments.js';
66
- import { OutboundSetupIntents as V2MoneyManagementOutboundSetupIntents } from './resources/V2/MoneyManagement/OutboundSetupIntents.js';
67
46
  import { OutboundTransfers as TestHelpersTreasuryOutboundTransfers } from './resources/TestHelpers/Treasury/OutboundTransfers.js';
68
47
  import { OutboundTransfers as TreasuryOutboundTransfers } from './resources/Treasury/OutboundTransfers.js';
69
- import { OutboundTransfers as V2MoneyManagementOutboundTransfers } from './resources/V2/MoneyManagement/OutboundTransfers.js';
70
- import { PayoutMethods as V2MoneyManagementPayoutMethods } from './resources/V2/MoneyManagement/PayoutMethods.js';
71
- import { PayoutMethodsBankAccountSpec as V2MoneyManagementPayoutMethodsBankAccountSpec } from './resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js';
72
48
  import { PersonalizationDesigns as IssuingPersonalizationDesigns } from './resources/Issuing/PersonalizationDesigns.js';
73
49
  import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
74
50
  import { PhysicalBundles as IssuingPhysicalBundles } from './resources/Issuing/PhysicalBundles.js';
75
51
  import { Products as ClimateProducts } from './resources/Climate/Products.js';
76
- import { Profiles as V2BillingProfiles } from './resources/V2/Billing/Profiles.js';
77
- import { ReaderCollectedData as TerminalReaderCollectedData } from './resources/Terminal/ReaderCollectedData.js';
78
52
  import { Readers as TerminalReaders } from './resources/Terminal/Readers.js';
79
53
  import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
80
54
  import { ReceivedCredits as TestHelpersTreasuryReceivedCredits } from './resources/TestHelpers/Treasury/ReceivedCredits.js';
81
55
  import { ReceivedCredits as TreasuryReceivedCredits } from './resources/Treasury/ReceivedCredits.js';
82
- import { ReceivedCredits as V2MoneyManagementReceivedCredits } from './resources/V2/MoneyManagement/ReceivedCredits.js';
83
56
  import { ReceivedDebits as TestHelpersTreasuryReceivedDebits } from './resources/TestHelpers/Treasury/ReceivedDebits.js';
84
57
  import { ReceivedDebits as TreasuryReceivedDebits } from './resources/Treasury/ReceivedDebits.js';
85
- import { ReceivedDebits as V2MoneyManagementReceivedDebits } from './resources/V2/MoneyManagement/ReceivedDebits.js';
86
- import { RedactionJobs as PrivacyRedactionJobs } from './resources/Privacy/RedactionJobs.js';
87
58
  import { Refunds as TestHelpersRefunds } from './resources/TestHelpers/Refunds.js';
88
59
  import { Registrations as TaxRegistrations } from './resources/Tax/Registrations.js';
89
60
  import { ReportRuns as ReportingReportRuns } from './resources/Reporting/ReportRuns.js';
@@ -99,21 +70,17 @@ import { Suppliers as ClimateSuppliers } from './resources/Climate/Suppliers.js'
99
70
  import { TestClocks as TestHelpersTestClocks } from './resources/TestHelpers/TestClocks.js';
100
71
  import { Tokens as IssuingTokens } from './resources/Issuing/Tokens.js';
101
72
  import { TransactionEntries as TreasuryTransactionEntries } from './resources/Treasury/TransactionEntries.js';
102
- import { TransactionEntries as V2MoneyManagementTransactionEntries } from './resources/V2/MoneyManagement/TransactionEntries.js';
103
73
  import { Transactions as FinancialConnectionsTransactions } from './resources/FinancialConnections/Transactions.js';
104
74
  import { Transactions as IssuingTransactions } from './resources/Issuing/Transactions.js';
105
75
  import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js';
106
76
  import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
107
77
  import { Transactions as TreasuryTransactions } from './resources/Treasury/Transactions.js';
108
- import { Transactions as V2MoneyManagementTransactions } from './resources/V2/MoneyManagement/Transactions.js';
109
- import { UsBankAccounts as V2CoreVaultUsBankAccounts } from './resources/V2/Core/Vault/UsBankAccounts.js';
110
78
  import { ValueListItems as RadarValueListItems } from './resources/Radar/ValueListItems.js';
111
79
  import { ValueLists as RadarValueLists } from './resources/Radar/ValueLists.js';
112
80
  import { VerificationReports as IdentityVerificationReports } from './resources/Identity/VerificationReports.js';
113
81
  import { VerificationSessions as IdentityVerificationSessions } from './resources/Identity/VerificationSessions.js';
114
82
  export { Accounts as Account } from './resources/Accounts.js';
115
83
  export { AccountLinks } from './resources/AccountLinks.js';
116
- export { AccountNotices } from './resources/AccountNotices.js';
117
84
  export { AccountSessions } from './resources/AccountSessions.js';
118
85
  export { Accounts } from './resources/Accounts.js';
119
86
  export { ApplePayDomains } from './resources/ApplePayDomains.js';
@@ -132,18 +99,14 @@ export { Disputes } from './resources/Disputes.js';
132
99
  export { EphemeralKeys } from './resources/EphemeralKeys.js';
133
100
  export { Events } from './resources/Events.js';
134
101
  export { ExchangeRates } from './resources/ExchangeRates.js';
135
- export { ExternalAccounts } from './resources/ExternalAccounts.js';
136
102
  export { FileLinks } from './resources/FileLinks.js';
137
103
  export { Files } from './resources/Files.js';
138
- export { FxQuotes } from './resources/FxQuotes.js';
139
104
  export { InvoiceItems } from './resources/InvoiceItems.js';
140
105
  export { InvoicePayments } from './resources/InvoicePayments.js';
141
106
  export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
142
107
  export { Invoices } from './resources/Invoices.js';
143
108
  export { Mandates } from './resources/Mandates.js';
144
- export { Margins } from './resources/Margins.js';
145
109
  export { OAuth } from './resources/OAuth.js';
146
- export { Orders } from './resources/Orders.js';
147
110
  export { PaymentAttemptRecords } from './resources/PaymentAttemptRecords.js';
148
111
  export { PaymentIntents } from './resources/PaymentIntents.js';
149
112
  export { PaymentLinks } from './resources/PaymentLinks.js';
@@ -182,19 +145,11 @@ export const Billing = resourceNamespace('billing', {
182
145
  MeterEventAdjustments: BillingMeterEventAdjustments,
183
146
  MeterEvents: BillingMeterEvents,
184
147
  Meters: BillingMeters,
185
- Analytics: resourceNamespace('analytics', {
186
- MeterUsage: BillingAnalyticsMeterUsage,
187
- }),
188
148
  });
189
149
  export const BillingPortal = resourceNamespace('billingPortal', {
190
150
  Configurations: BillingPortalConfigurations,
191
151
  Sessions: BillingPortalSessions,
192
152
  });
193
- export const Capital = resourceNamespace('capital', {
194
- FinancingOffers: CapitalFinancingOffers,
195
- FinancingSummary: CapitalFinancingSummary,
196
- FinancingTransactions: CapitalFinancingTransactions,
197
- });
198
153
  export const Checkout = resourceNamespace('checkout', {
199
154
  Sessions: CheckoutSessions,
200
155
  });
@@ -209,7 +164,6 @@ export const Entitlements = resourceNamespace('entitlements', {
209
164
  });
210
165
  export const FinancialConnections = resourceNamespace('financialConnections', {
211
166
  Accounts: FinancialConnectionsAccounts,
212
- Institutions: FinancialConnectionsInstitutions,
213
167
  Sessions: FinancialConnectionsSessions,
214
168
  Transactions: FinancialConnectionsTransactions,
215
169
  });
@@ -224,18 +178,12 @@ export const Issuing = resourceNamespace('issuing', {
224
178
  Authorizations: IssuingAuthorizations,
225
179
  Cardholders: IssuingCardholders,
226
180
  Cards: IssuingCards,
227
- CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
228
- DisputeSettlementDetails: IssuingDisputeSettlementDetails,
229
181
  Disputes: IssuingDisputes,
230
- FraudLiabilityDebits: IssuingFraudLiabilityDebits,
231
182
  PersonalizationDesigns: IssuingPersonalizationDesigns,
232
183
  PhysicalBundles: IssuingPhysicalBundles,
233
184
  Tokens: IssuingTokens,
234
185
  Transactions: IssuingTransactions,
235
186
  });
236
- export const Privacy = resourceNamespace('privacy', {
237
- RedactionJobs: PrivacyRedactionJobs,
238
- });
239
187
  export const Radar = resourceNamespace('radar', {
240
188
  EarlyFraudWarnings: RadarEarlyFraudWarnings,
241
189
  ValueListItems: RadarValueListItems,
@@ -251,7 +199,6 @@ export const Sigma = resourceNamespace('sigma', {
251
199
  export const Tax = resourceNamespace('tax', {
252
200
  Associations: TaxAssociations,
253
201
  Calculations: TaxCalculations,
254
- Forms: TaxForms,
255
202
  Registrations: TaxRegistrations,
256
203
  Settings: TaxSettings,
257
204
  Transactions: TaxTransactions,
@@ -261,7 +208,6 @@ export const Terminal = resourceNamespace('terminal', {
261
208
  ConnectionTokens: TerminalConnectionTokens,
262
209
  Locations: TerminalLocations,
263
210
  OnboardingLinks: TerminalOnboardingLinks,
264
- ReaderCollectedData: TerminalReaderCollectedData,
265
211
  Readers: TerminalReaders,
266
212
  });
267
213
  export const TestHelpers = resourceNamespace('testHelpers', {
@@ -300,14 +246,10 @@ export const Treasury = resourceNamespace('treasury', {
300
246
  });
301
247
  export const V2 = resourceNamespace('v2', {
302
248
  Billing: resourceNamespace('billing', {
303
- BillSettings: V2BillingBillSettings,
304
- Cadences: V2BillingCadences,
305
- CollectionSettings: V2BillingCollectionSettings,
306
249
  MeterEventAdjustments: V2BillingMeterEventAdjustments,
307
250
  MeterEventSession: V2BillingMeterEventSession,
308
251
  MeterEventStream: V2BillingMeterEventStream,
309
252
  MeterEvents: V2BillingMeterEvents,
310
- Profiles: V2BillingProfiles,
311
253
  }),
312
254
  Core: resourceNamespace('core', {
313
255
  AccountLinks: V2CoreAccountLinks,
@@ -315,28 +257,5 @@ export const V2 = resourceNamespace('v2', {
315
257
  Accounts: V2CoreAccounts,
316
258
  EventDestinations: V2CoreEventDestinations,
317
259
  Events: V2CoreEvents,
318
- Vault: resourceNamespace('vault', {
319
- GbBankAccounts: V2CoreVaultGbBankAccounts,
320
- UsBankAccounts: V2CoreVaultUsBankAccounts,
321
- }),
322
- }),
323
- MoneyManagement: resourceNamespace('moneyManagement', {
324
- Adjustments: V2MoneyManagementAdjustments,
325
- FinancialAccounts: V2MoneyManagementFinancialAccounts,
326
- FinancialAddresses: V2MoneyManagementFinancialAddresses,
327
- InboundTransfers: V2MoneyManagementInboundTransfers,
328
- OutboundPaymentQuotes: V2MoneyManagementOutboundPaymentQuotes,
329
- OutboundPayments: V2MoneyManagementOutboundPayments,
330
- OutboundSetupIntents: V2MoneyManagementOutboundSetupIntents,
331
- OutboundTransfers: V2MoneyManagementOutboundTransfers,
332
- PayoutMethods: V2MoneyManagementPayoutMethods,
333
- PayoutMethodsBankAccountSpec: V2MoneyManagementPayoutMethodsBankAccountSpec,
334
- ReceivedCredits: V2MoneyManagementReceivedCredits,
335
- ReceivedDebits: V2MoneyManagementReceivedDebits,
336
- TransactionEntries: V2MoneyManagementTransactionEntries,
337
- Transactions: V2MoneyManagementTransactions,
338
- }),
339
- TestHelper: resourceNamespace('testHelper', {
340
- FinancialAddresses: V2TestHelpersFinancialAddresses,
341
260
  }),
342
261
  });
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '20.1.0-beta.1';
37
+ Stripe.PACKAGE_VERSION = '20.1.1';
38
38
  Stripe.API_VERSION = ApiVersion;
39
39
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
40
40
  Stripe.StripeResource = StripeResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "20.1.0-beta.1",
3
+ "version": "20.1.1",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -56,7 +56,7 @@
56
56
  "nanoid": "^3.2.0"
57
57
  },
58
58
  "dependencies": {
59
- "qs": "^6.11.0"
59
+ "qs": "^6.14.1"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@types/node": ">=16"
@@ -98,4 +98,4 @@
98
98
  "require": "./cjs/stripe.cjs.node.js"
99
99
  }
100
100
  }
101
- }
101
+ }
@@ -6,7 +6,7 @@ declare module 'stripe' {
6
6
  * Account Links are the means by which a Connect platform grants a connected account permission to access
7
7
  * Stripe-hosted applications, such as Connect Onboarding.
8
8
  *
9
- * Related guide: [Connect Onboarding](https://stripe.com/docs/connect/custom/hosted-onboarding)
9
+ * Related guide: [Connect Onboarding](https://docs.stripe.com/connect/custom/hosted-onboarding)
10
10
  */
11
11
  interface AccountLink {
12
12
  /**
@@ -62,11 +62,7 @@ declare module 'stripe' {
62
62
  type FutureRequirements = 'include' | 'omit';
63
63
  }
64
64
 
65
- type Type =
66
- | 'account_onboarding'
67
- | 'account_update'
68
- | 'capital_financing_offer'
69
- | 'capital_financing_reporting';
65
+ type Type = 'account_onboarding' | 'account_update';
70
66
  }
71
67
 
72
68
  class AccountLinksResource {
@@ -9,7 +9,7 @@ declare module 'stripe' {
9
9
  * to your user. Do not save AccountSessions to your database as they expire relatively
10
10
  * quickly, and cannot be used more than once.
11
11
  *
12
- * Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
12
+ * Related guide: [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components)
13
13
  */
14
14
  interface AccountSession {
15
15
  /**
@@ -27,7 +27,7 @@ declare module 'stripe' {
27
27
  *
28
28
  * The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
29
29
  *
30
- * Refer to our docs to [setup Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled.
30
+ * Refer to our docs to [setup Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled.
31
31
  */
32
32
  client_secret: string;
33
33
 
@@ -52,12 +52,6 @@ declare module 'stripe' {
52
52
 
53
53
  balances: Components.Balances;
54
54
 
55
- capital_financing?: Components.CapitalFinancing | null;
56
-
57
- capital_financing_application?: Components.CapitalFinancingApplication | null;
58
-
59
- capital_financing_promotion?: Components.CapitalFinancingPromotion | null;
60
-
61
55
  disputes_list: Components.DisputesList;
62
56
 
63
57
  documents: Components.Documents;
@@ -176,45 +170,6 @@ declare module 'stripe' {
176
170
  }
177
171
  }
178
172
 
179
- interface CapitalFinancing {
180
- /**
181
- * Whether the embedded component is enabled.
182
- */
183
- enabled: boolean;
184
-
185
- features: CapitalFinancing.Features;
186
- }
187
-
188
- namespace CapitalFinancing {
189
- interface Features {}
190
- }
191
-
192
- interface CapitalFinancingApplication {
193
- /**
194
- * Whether the embedded component is enabled.
195
- */
196
- enabled: boolean;
197
-
198
- features: CapitalFinancingApplication.Features;
199
- }
200
-
201
- namespace CapitalFinancingApplication {
202
- interface Features {}
203
- }
204
-
205
- interface CapitalFinancingPromotion {
206
- /**
207
- * Whether the embedded component is enabled.
208
- */
209
- enabled: boolean;
210
-
211
- features: CapitalFinancingPromotion.Features;
212
- }
213
-
214
- namespace CapitalFinancingPromotion {
215
- interface Features {}
216
- }
217
-
218
173
  interface DisputesList {
219
174
  /**
220
175
  * Whether the embedded component is enabled.