stripe 19.1.0 → 19.2.0-alpha.2

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 (415) hide show
  1. package/CHANGELOG.md +1568 -11
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +1 -0
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +115 -1
  6. package/cjs/apiVersion.js +2 -3
  7. package/cjs/resources/AccountNotices.js +21 -0
  8. package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -0
  9. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  10. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  11. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  12. package/cjs/resources/ExternalAccounts.js +23 -0
  13. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  14. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  15. package/cjs/resources/FxQuotes.js +15 -0
  16. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  17. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  18. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  19. package/cjs/resources/Mandates.js +5 -0
  20. package/cjs/resources/Margins.js +22 -0
  21. package/cjs/resources/Orders.js +24 -0
  22. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  23. package/cjs/resources/PaymentIntents.js +13 -0
  24. package/cjs/resources/PaymentMethods.js +4 -0
  25. package/cjs/resources/PaymentRecords.js +33 -0
  26. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  27. package/cjs/resources/Quotes.js +32 -0
  28. package/cjs/resources/SubscriptionSchedules.js +4 -0
  29. package/cjs/resources/Subscriptions.js +4 -0
  30. package/cjs/resources/Tax/Associations.js +9 -0
  31. package/cjs/resources/Tax/Forms.js +20 -0
  32. package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
  33. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  34. package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
  35. package/cjs/resources/V2/Billing/BillSettings.js +27 -0
  36. package/cjs/resources/V2/Billing/Cadences.js +23 -0
  37. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
  38. package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
  39. package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
  40. package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
  41. package/cjs/resources/V2/Billing/Intents.js +36 -0
  42. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
  43. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
  44. package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
  45. package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
  46. package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
  47. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +21 -0
  48. package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
  49. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
  50. package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
  51. package/cjs/resources/V2/Billing/Profiles.js +19 -0
  52. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
  53. package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
  54. package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
  55. package/cjs/resources/V2/Billing/RateCards.js +29 -0
  56. package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
  57. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  58. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  59. package/cjs/resources/V2/Core/Accounts.js +25 -0
  60. package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
  61. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  62. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  63. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  64. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +25 -0
  65. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  66. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  67. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  68. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  69. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  70. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  71. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  72. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  73. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  74. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  75. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
  76. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  77. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  78. package/cjs/resources/V2/Payments/OffSessionPayments.js +29 -0
  79. package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
  80. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  81. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
  82. package/cjs/resources.js +140 -8
  83. package/cjs/stripe.core.js +1 -1
  84. package/esm/Error.js +100 -0
  85. package/esm/apiVersion.js +1 -2
  86. package/esm/resources/AccountNotices.js +18 -0
  87. package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
  88. package/esm/resources/Capital/FinancingOffers.js +18 -0
  89. package/esm/resources/Capital/FinancingSummary.js +9 -0
  90. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  91. package/esm/resources/ExternalAccounts.js +20 -0
  92. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  93. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  94. package/esm/resources/FxQuotes.js +12 -0
  95. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  96. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  97. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  98. package/esm/resources/Mandates.js +5 -0
  99. package/esm/resources/Margins.js +19 -0
  100. package/esm/resources/Orders.js +21 -0
  101. package/esm/resources/PaymentAttemptRecords.js +14 -0
  102. package/esm/resources/PaymentIntents.js +13 -0
  103. package/esm/resources/PaymentMethods.js +4 -0
  104. package/esm/resources/PaymentRecords.js +30 -0
  105. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  106. package/esm/resources/Quotes.js +32 -0
  107. package/esm/resources/SubscriptionSchedules.js +4 -0
  108. package/esm/resources/Subscriptions.js +4 -0
  109. package/esm/resources/Tax/Associations.js +6 -0
  110. package/esm/resources/Tax/Forms.js +17 -0
  111. package/esm/resources/Terminal/OnboardingLinks.js +9 -0
  112. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  113. package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
  114. package/esm/resources/V2/Billing/BillSettings.js +24 -0
  115. package/esm/resources/V2/Billing/Cadences.js +20 -0
  116. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
  117. package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
  118. package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
  119. package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
  120. package/esm/resources/V2/Billing/Intents.js +33 -0
  121. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
  122. package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
  123. package/esm/resources/V2/Billing/LicenseFees.js +24 -0
  124. package/esm/resources/V2/Billing/LicensedItems.js +22 -0
  125. package/esm/resources/V2/Billing/MeteredItems.js +19 -0
  126. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +18 -0
  127. package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
  128. package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
  129. package/esm/resources/V2/Billing/PricingPlans.js +26 -0
  130. package/esm/resources/V2/Billing/Profiles.js +16 -0
  131. package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
  132. package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
  133. package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
  134. package/esm/resources/V2/Billing/RateCards.js +26 -0
  135. package/esm/resources/V2/Billing/ServiceActions.js +17 -0
  136. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  137. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  138. package/esm/resources/V2/Core/Accounts.js +22 -0
  139. package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
  140. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  141. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  142. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  143. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +22 -0
  144. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  145. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  146. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  147. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  148. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  149. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  150. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  151. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  152. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  153. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  154. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
  155. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  156. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  157. package/esm/resources/V2/Payments/OffSessionPayments.js +26 -0
  158. package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
  159. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  160. package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
  161. package/esm/resources.js +125 -0
  162. package/esm/stripe.core.js +1 -1
  163. package/package.json +1 -1
  164. package/types/AccountLinksResource.d.ts +5 -1
  165. package/types/AccountNotices.d.ts +113 -0
  166. package/types/AccountNoticesResource.d.ts +98 -0
  167. package/types/AccountSessions.d.ts +45 -0
  168. package/types/AccountSessionsResource.d.ts +264 -0
  169. package/types/Accounts.d.ts +212 -1
  170. package/types/AccountsResource.d.ts +544 -0
  171. package/types/Billing/AlertTriggereds.d.ts +16 -1
  172. package/types/Billing/Alerts.d.ts +116 -1
  173. package/types/Billing/AlertsResource.d.ts +149 -2
  174. package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
  175. package/types/Billing/Analytics/MeterUsageResource.d.ts +689 -0
  176. package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -0
  177. package/types/Billing/CreditBalanceSummary.d.ts +123 -2
  178. package/types/Billing/CreditBalanceSummaryResource.d.ts +20 -3
  179. package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
  180. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  181. package/types/Billing/CreditGrants.d.ts +76 -1
  182. package/types/Billing/CreditGrantsResource.d.ts +43 -2
  183. package/types/BillingPortal/Sessions.d.ts +5 -0
  184. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  185. package/types/Capital/FinancingOffers.d.ts +188 -0
  186. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  187. package/types/Capital/FinancingSummary.d.ts +106 -0
  188. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  189. package/types/Capital/FinancingTransactions.d.ts +135 -0
  190. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  191. package/types/Cards.d.ts +19 -0
  192. package/types/CashBalances.d.ts +5 -0
  193. package/types/Charges.d.ts +180 -0
  194. package/types/ChargesResource.d.ts +1406 -0
  195. package/types/Checkout/Sessions.d.ts +427 -2
  196. package/types/Checkout/SessionsResource.d.ts +684 -2
  197. package/types/ConfirmationTokens.d.ts +139 -0
  198. package/types/Coupons.d.ts +33 -0
  199. package/types/CouponsResource.d.ts +21 -0
  200. package/types/CreditNoteLineItems.d.ts +17 -0
  201. package/types/CreditNotes.d.ts +31 -0
  202. package/types/CreditNotesResource.d.ts +83 -0
  203. package/types/CustomerBalanceTransactions.d.ts +2 -0
  204. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  205. package/types/CustomerSessions.d.ts +5 -0
  206. package/types/CustomerSessionsResource.d.ts +6 -1
  207. package/types/Customers.d.ts +2 -0
  208. package/types/CustomersResource.d.ts +8 -0
  209. package/types/Discounts.d.ts +10 -0
  210. package/types/Disputes.d.ts +40 -0
  211. package/types/DisputesResource.d.ts +11 -0
  212. package/types/Errors.d.ts +85 -0
  213. package/types/EventTypes.d.ts +664 -0
  214. package/types/Events.d.ts +97 -0
  215. package/types/ExternalAccountsResource.d.ts +304 -0
  216. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  217. package/types/FinancialConnections/Accounts.d.ts +36 -1
  218. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  219. package/types/FinancialConnections/Institutions.d.ts +98 -0
  220. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  221. package/types/FinancialConnections/Sessions.d.ts +51 -1
  222. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  223. package/types/FxQuotes.d.ts +155 -0
  224. package/types/FxQuotesResource.d.ts +130 -0
  225. package/types/Identity/VerificationSessions.d.ts +5 -0
  226. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  227. package/types/InvoiceItems.d.ts +114 -2
  228. package/types/InvoiceItemsResource.d.ts +117 -6
  229. package/types/InvoiceLineItems.d.ts +158 -3
  230. package/types/InvoicePayments.d.ts +5 -0
  231. package/types/InvoicePaymentsResource.d.ts +10 -1
  232. package/types/Invoices.d.ts +204 -4
  233. package/types/InvoicesResource.d.ts +1652 -22
  234. package/types/Issuing/CardholdersResource.d.ts +2 -1
  235. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  236. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  237. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  238. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  239. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  240. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  241. package/types/Issuing/Settlements.d.ts +113 -0
  242. package/types/Issuing/Transactions.d.ts +5 -0
  243. package/types/Issuing/TransactionsResource.d.ts +5 -0
  244. package/types/LineItems.d.ts +49 -0
  245. package/types/Mandates.d.ts +135 -1
  246. package/types/MandatesResource.d.ts +31 -0
  247. package/types/Margins.d.ts +56 -0
  248. package/types/MarginsResource.d.ts +114 -0
  249. package/types/Orders.d.ts +1163 -0
  250. package/types/OrdersResource.d.ts +3139 -0
  251. package/types/PaymentAttemptRecords.d.ts +2360 -0
  252. package/types/PaymentAttemptRecordsResource.d.ts +52 -0
  253. package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
  254. package/types/PaymentIntents.d.ts +840 -3
  255. package/types/PaymentIntentsResource.d.ts +11825 -5923
  256. package/types/PaymentLinks.d.ts +7 -0
  257. package/types/PaymentLinksResource.d.ts +14 -0
  258. package/types/PaymentMethodBalances.d.ts +63 -0
  259. package/types/PaymentMethodConfigurations.d.ts +216 -0
  260. package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
  261. package/types/PaymentMethods.d.ts +144 -0
  262. package/types/PaymentMethodsResource.d.ts +187 -2
  263. package/types/PaymentRecords.d.ts +2353 -0
  264. package/types/PaymentRecordsResource.d.ts +559 -0
  265. package/types/Prices.d.ts +22 -0
  266. package/types/PricesResource.d.ts +22 -0
  267. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  268. package/types/Privacy/RedactionJobs.d.ts +111 -0
  269. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  270. package/types/PromotionCodes.d.ts +5 -0
  271. package/types/PromotionCodesResource.d.ts +10 -0
  272. package/types/QuoteLines.d.ts +634 -0
  273. package/types/QuotePreviewInvoices.d.ts +1770 -0
  274. package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
  275. package/types/Quotes.d.ts +594 -1
  276. package/types/QuotesResource.d.ts +2588 -243
  277. package/types/Refunds.d.ts +14 -0
  278. package/types/SetupAttempts.d.ts +51 -1
  279. package/types/SetupIntents.d.ts +231 -2
  280. package/types/SetupIntentsResource.d.ts +1028 -4
  281. package/types/Sources.d.ts +29 -0
  282. package/types/SubscriptionItems.d.ts +26 -0
  283. package/types/SubscriptionItemsResource.d.ts +109 -0
  284. package/types/SubscriptionSchedules.d.ts +205 -0
  285. package/types/SubscriptionSchedulesResource.d.ts +1233 -5
  286. package/types/Subscriptions.d.ts +263 -1
  287. package/types/SubscriptionsResource.d.ts +747 -8
  288. package/types/Tax/Associations.d.ts +82 -0
  289. package/types/Tax/AssociationsResource.d.ts +29 -0
  290. package/types/Tax/Forms.d.ts +220 -0
  291. package/types/Tax/FormsResource.d.ts +107 -0
  292. package/types/TaxIds.d.ts +10 -0
  293. package/types/TaxIdsResource.d.ts +10 -0
  294. package/types/Terminal/Configurations.d.ts +9 -0
  295. package/types/Terminal/ConfigurationsResource.d.ts +28 -0
  296. package/types/Terminal/OnboardingLinks.d.ts +57 -0
  297. package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
  298. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  299. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  300. package/types/Terminal/Readers.d.ts +20 -0
  301. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  302. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  303. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  304. package/types/Transfers.d.ts +5 -0
  305. package/types/TransfersResource.d.ts +5 -0
  306. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  307. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  308. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  309. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  310. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  311. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  312. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  313. package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
  314. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
  315. package/types/V2/Billing/BillSettings.d.ts +120 -0
  316. package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
  317. package/types/V2/Billing/Cadences.d.ts +731 -0
  318. package/types/V2/Billing/CadencesResource.d.ts +516 -0
  319. package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
  320. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
  321. package/types/V2/Billing/CollectionSettings.d.ts +337 -0
  322. package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
  323. package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
  324. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
  325. package/types/V2/Billing/IntentActions.d.ts +459 -0
  326. package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
  327. package/types/V2/Billing/Intents.d.ts +117 -0
  328. package/types/V2/Billing/IntentsResource.d.ts +575 -0
  329. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
  330. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
  331. package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
  332. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
  333. package/types/V2/Billing/LicenseFees.d.ts +164 -0
  334. package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
  335. package/types/V2/Billing/LicensedItems.d.ts +73 -0
  336. package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
  337. package/types/V2/Billing/MeteredItems.d.ts +101 -0
  338. package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
  339. package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
  340. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
  341. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +118 -0
  342. package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
  343. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
  344. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
  345. package/types/V2/Billing/PricingPlans.d.ts +84 -0
  346. package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
  347. package/types/V2/Billing/Profiles.d.ts +70 -0
  348. package/types/V2/Billing/ProfilesResource.d.ts +150 -0
  349. package/types/V2/Billing/RateCardRates.d.ts +144 -0
  350. package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
  351. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
  352. package/types/V2/Billing/RateCardVersions.d.ts +39 -0
  353. package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
  354. package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
  355. package/types/V2/Billing/RateCards.d.ts +98 -0
  356. package/types/V2/Billing/RateCardsResource.d.ts +162 -0
  357. package/types/V2/Billing/ServiceActions.d.ts +274 -0
  358. package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
  359. package/types/V2/Core/AccountLinks.d.ts +168 -0
  360. package/types/V2/Core/AccountLinksResource.d.ts +152 -0
  361. package/types/V2/Core/AccountPersons.d.ts +615 -0
  362. package/types/V2/Core/Accounts/PersonsResource.d.ts +1153 -0
  363. package/types/V2/Core/Accounts.d.ts +6816 -0
  364. package/types/V2/Core/AccountsResource.d.ts +6000 -0
  365. package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
  366. package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
  367. package/types/V2/Core/EventTypes.d.ts +8489 -10
  368. package/types/V2/Core/Events.d.ts +12 -0
  369. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  370. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  371. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  372. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  373. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  374. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  375. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  376. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  377. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +148 -0
  378. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +147 -0
  379. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
  380. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +126 -0
  381. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  382. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  383. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +170 -0
  384. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  385. package/types/V2/MoneyManagement/OutboundPayments.d.ts +283 -0
  386. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +247 -0
  387. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  388. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +330 -0
  389. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +256 -0
  390. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +213 -0
  391. package/types/V2/MoneyManagement/PayoutMethods.d.ts +201 -0
  392. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
  393. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  394. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  395. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +302 -0
  396. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  397. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +181 -0
  398. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  399. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
  400. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
  401. package/types/V2/MoneyManagement/TransactionEntries.d.ts +162 -0
  402. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  403. package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
  404. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  405. package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
  406. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
  407. package/types/V2/Tax/AutomaticRules.d.ts +53 -0
  408. package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
  409. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +73 -0
  410. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +48 -0
  411. package/types/WebhookEndpointsResource.d.ts +78 -0
  412. package/types/Webhooks.d.ts +2 -0
  413. package/types/apiVersion.d.ts +1 -2
  414. package/types/index.d.ts +219 -0
  415. package/types/lib.d.ts +10 -0
@@ -188,6 +188,11 @@ declare module 'stripe' {
188
188
  */
189
189
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
190
190
 
191
+ /**
192
+ * Provides industry-specific information about the charge.
193
+ */
194
+ payment_details?: ChargeUpdateParams.PaymentDetails;
195
+
191
196
  /**
192
197
  * This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
193
198
  */
@@ -216,6 +221,704 @@ declare module 'stripe' {
216
221
  type UserReport = 'fraudulent' | 'safe';
217
222
  }
218
223
 
224
+ interface PaymentDetails {
225
+ /**
226
+ * Car rental details for this PaymentIntent.
227
+ */
228
+ car_rental?: PaymentDetails.CarRental;
229
+
230
+ /**
231
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
232
+ */
233
+ customer_reference?: Stripe.Emptyable<string>;
234
+
235
+ /**
236
+ * Event details for this PaymentIntent
237
+ */
238
+ event_details?: PaymentDetails.EventDetails;
239
+
240
+ /**
241
+ * Flight reservation details for this PaymentIntent
242
+ */
243
+ flight?: PaymentDetails.Flight;
244
+
245
+ /**
246
+ * Lodging reservation details for this PaymentIntent
247
+ */
248
+ lodging?: PaymentDetails.Lodging;
249
+
250
+ /**
251
+ * A unique value assigned by the business to identify the transaction.
252
+ */
253
+ order_reference?: Stripe.Emptyable<string>;
254
+
255
+ /**
256
+ * Subscription details for this PaymentIntent
257
+ */
258
+ subscription?: PaymentDetails.Subscription;
259
+ }
260
+
261
+ namespace PaymentDetails {
262
+ interface CarRental {
263
+ /**
264
+ * Affiliate details for this purchase.
265
+ */
266
+ affiliate?: CarRental.Affiliate;
267
+
268
+ /**
269
+ * The booking number associated with the car rental.
270
+ */
271
+ booking_number: string;
272
+
273
+ /**
274
+ * Class code of the car.
275
+ */
276
+ car_class_code?: string;
277
+
278
+ /**
279
+ * Make of the car.
280
+ */
281
+ car_make?: string;
282
+
283
+ /**
284
+ * Model of the car.
285
+ */
286
+ car_model?: string;
287
+
288
+ /**
289
+ * The name of the rental car company.
290
+ */
291
+ company?: string;
292
+
293
+ /**
294
+ * The customer service phone number of the car rental company.
295
+ */
296
+ customer_service_phone_number?: string;
297
+
298
+ /**
299
+ * Number of days the car is being rented.
300
+ */
301
+ days_rented: number;
302
+
303
+ /**
304
+ * Delivery details for this purchase.
305
+ */
306
+ delivery?: CarRental.Delivery;
307
+
308
+ /**
309
+ * The details of the distance traveled during the rental period.
310
+ */
311
+ distance?: CarRental.Distance;
312
+
313
+ /**
314
+ * The details of the passengers in the travel reservation
315
+ */
316
+ drivers?: Array<CarRental.Driver>;
317
+
318
+ /**
319
+ * List of additional charges being billed.
320
+ */
321
+ extra_charges?: Array<CarRental.ExtraCharge>;
322
+
323
+ /**
324
+ * Indicates if the customer did not keep nor cancel their booking.
325
+ */
326
+ no_show?: boolean;
327
+
328
+ /**
329
+ * Car pick-up address.
330
+ */
331
+ pickup_address?: Stripe.AddressParam;
332
+
333
+ /**
334
+ * Car pick-up time. Measured in seconds since the Unix epoch.
335
+ */
336
+ pickup_at: number;
337
+
338
+ /**
339
+ * Name of the pickup location.
340
+ */
341
+ pickup_location_name?: string;
342
+
343
+ /**
344
+ * Rental rate.
345
+ */
346
+ rate_amount?: number;
347
+
348
+ /**
349
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
350
+ */
351
+ rate_interval?: CarRental.RateInterval;
352
+
353
+ /**
354
+ * The name of the person or entity renting the car.
355
+ */
356
+ renter_name?: string;
357
+
358
+ /**
359
+ * Car return address.
360
+ */
361
+ return_address?: Stripe.AddressParam;
362
+
363
+ /**
364
+ * Car return time. Measured in seconds since the Unix epoch.
365
+ */
366
+ return_at: number;
367
+
368
+ /**
369
+ * Name of the return location.
370
+ */
371
+ return_location_name?: string;
372
+
373
+ /**
374
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
375
+ */
376
+ tax_exempt?: boolean;
377
+
378
+ /**
379
+ * The vehicle identification number.
380
+ */
381
+ vehicle_identification_number?: string;
382
+ }
383
+
384
+ namespace CarRental {
385
+ interface Affiliate {
386
+ /**
387
+ * The name of the affiliate that originated the purchase.
388
+ */
389
+ name: string;
390
+ }
391
+
392
+ interface Delivery {
393
+ /**
394
+ * The delivery method for the payment
395
+ */
396
+ mode?: Delivery.Mode;
397
+
398
+ /**
399
+ * Details of the recipient.
400
+ */
401
+ recipient?: Delivery.Recipient;
402
+ }
403
+
404
+ namespace Delivery {
405
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
406
+
407
+ interface Recipient {
408
+ /**
409
+ * The email of the recipient the ticket is delivered to.
410
+ */
411
+ email?: string;
412
+
413
+ /**
414
+ * The name of the recipient the ticket is delivered to.
415
+ */
416
+ name?: string;
417
+
418
+ /**
419
+ * The phone number of the recipient the ticket is delivered to.
420
+ */
421
+ phone?: string;
422
+ }
423
+ }
424
+
425
+ interface Distance {
426
+ /**
427
+ * Distance traveled.
428
+ */
429
+ amount?: number;
430
+
431
+ /**
432
+ * Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
433
+ */
434
+ unit?: Distance.Unit;
435
+ }
436
+
437
+ namespace Distance {
438
+ type Unit = 'kilometers' | 'miles';
439
+ }
440
+
441
+ interface Driver {
442
+ /**
443
+ * Driver's identification number.
444
+ */
445
+ driver_identification_number?: string;
446
+
447
+ /**
448
+ * Driver's tax number.
449
+ */
450
+ driver_tax_number?: string;
451
+
452
+ /**
453
+ * Full name of the person or entity on the car reservation.
454
+ */
455
+ name: string;
456
+ }
457
+
458
+ type ExtraCharge =
459
+ | 'extra_mileage'
460
+ | 'gas'
461
+ | 'late_return'
462
+ | 'one_way_service'
463
+ | 'parking_violation';
464
+
465
+ type RateInterval = 'day' | 'month' | 'week';
466
+ }
467
+
468
+ interface EventDetails {
469
+ /**
470
+ * Indicates if the tickets are digitally checked when entering the venue.
471
+ */
472
+ access_controlled_venue?: boolean;
473
+
474
+ /**
475
+ * The event location's address.
476
+ */
477
+ address?: Stripe.AddressParam;
478
+
479
+ /**
480
+ * Affiliate details for this purchase.
481
+ */
482
+ affiliate?: EventDetails.Affiliate;
483
+
484
+ /**
485
+ * The name of the company
486
+ */
487
+ company?: string;
488
+
489
+ /**
490
+ * Delivery details for this purchase.
491
+ */
492
+ delivery?: EventDetails.Delivery;
493
+
494
+ /**
495
+ * Event end time. Measured in seconds since the Unix epoch.
496
+ */
497
+ ends_at?: number;
498
+
499
+ /**
500
+ * Type of the event entertainment (concert, sports event etc)
501
+ */
502
+ genre?: string;
503
+
504
+ /**
505
+ * The name of the event.
506
+ */
507
+ name: string;
508
+
509
+ /**
510
+ * Event start time. Measured in seconds since the Unix epoch.
511
+ */
512
+ starts_at?: number;
513
+ }
514
+
515
+ namespace EventDetails {
516
+ interface Affiliate {
517
+ /**
518
+ * The name of the affiliate that originated the purchase.
519
+ */
520
+ name: string;
521
+ }
522
+
523
+ interface Delivery {
524
+ /**
525
+ * The delivery method for the payment
526
+ */
527
+ mode?: Delivery.Mode;
528
+
529
+ /**
530
+ * Details of the recipient.
531
+ */
532
+ recipient?: Delivery.Recipient;
533
+ }
534
+
535
+ namespace Delivery {
536
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
537
+
538
+ interface Recipient {
539
+ /**
540
+ * The email of the recipient the ticket is delivered to.
541
+ */
542
+ email?: string;
543
+
544
+ /**
545
+ * The name of the recipient the ticket is delivered to.
546
+ */
547
+ name?: string;
548
+
549
+ /**
550
+ * The phone number of the recipient the ticket is delivered to.
551
+ */
552
+ phone?: string;
553
+ }
554
+ }
555
+ }
556
+
557
+ interface Flight {
558
+ /**
559
+ * Affiliate details for this purchase.
560
+ */
561
+ affiliate?: Flight.Affiliate;
562
+
563
+ /**
564
+ * The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
565
+ */
566
+ agency_number?: string;
567
+
568
+ /**
569
+ * The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
570
+ */
571
+ carrier?: string;
572
+
573
+ /**
574
+ * Delivery details for this purchase.
575
+ */
576
+ delivery?: Flight.Delivery;
577
+
578
+ /**
579
+ * The name of the person or entity on the reservation.
580
+ */
581
+ passenger_name?: string;
582
+
583
+ /**
584
+ * The details of the passengers in the travel reservation.
585
+ */
586
+ passengers?: Array<Flight.Passenger>;
587
+
588
+ /**
589
+ * The individual flight segments associated with the trip.
590
+ */
591
+ segments: Array<Flight.Segment>;
592
+
593
+ /**
594
+ * The ticket number associated with the travel reservation.
595
+ */
596
+ ticket_number?: string;
597
+ }
598
+
599
+ namespace Flight {
600
+ interface Affiliate {
601
+ /**
602
+ * The name of the affiliate that originated the purchase.
603
+ */
604
+ name: string;
605
+ }
606
+
607
+ interface Delivery {
608
+ /**
609
+ * The delivery method for the payment
610
+ */
611
+ mode?: Delivery.Mode;
612
+
613
+ /**
614
+ * Details of the recipient.
615
+ */
616
+ recipient?: Delivery.Recipient;
617
+ }
618
+
619
+ namespace Delivery {
620
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
621
+
622
+ interface Recipient {
623
+ /**
624
+ * The email of the recipient the ticket is delivered to.
625
+ */
626
+ email?: string;
627
+
628
+ /**
629
+ * The name of the recipient the ticket is delivered to.
630
+ */
631
+ name?: string;
632
+
633
+ /**
634
+ * The phone number of the recipient the ticket is delivered to.
635
+ */
636
+ phone?: string;
637
+ }
638
+ }
639
+
640
+ interface Passenger {
641
+ /**
642
+ * Full name of the person or entity on the flight reservation.
643
+ */
644
+ name: string;
645
+ }
646
+
647
+ interface Segment {
648
+ /**
649
+ * The flight segment amount.
650
+ */
651
+ amount?: number;
652
+
653
+ /**
654
+ * The International Air Transport Association (IATA) airport code for the arrival airport.
655
+ */
656
+ arrival_airport?: string;
657
+
658
+ /**
659
+ * The arrival time for the flight segment. Measured in seconds since the Unix epoch.
660
+ */
661
+ arrives_at?: number;
662
+
663
+ /**
664
+ * The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
665
+ */
666
+ carrier?: string;
667
+
668
+ /**
669
+ * The departure time for the flight segment. Measured in seconds since the Unix epoch.
670
+ */
671
+ departs_at: number;
672
+
673
+ /**
674
+ * The International Air Transport Association (IATA) airport code for the departure airport.
675
+ */
676
+ departure_airport?: string;
677
+
678
+ /**
679
+ * The flight number associated with the segment
680
+ */
681
+ flight_number?: string;
682
+
683
+ /**
684
+ * The fare class for the segment.
685
+ */
686
+ service_class?: Segment.ServiceClass;
687
+ }
688
+
689
+ namespace Segment {
690
+ type ServiceClass =
691
+ | 'business'
692
+ | 'economy'
693
+ | 'first'
694
+ | 'premium_economy';
695
+ }
696
+ }
697
+
698
+ interface Lodging {
699
+ /**
700
+ * The lodging location's address.
701
+ */
702
+ address?: Stripe.AddressParam;
703
+
704
+ /**
705
+ * The number of adults on the booking
706
+ */
707
+ adults?: number;
708
+
709
+ /**
710
+ * Affiliate details for this purchase.
711
+ */
712
+ affiliate?: Lodging.Affiliate;
713
+
714
+ /**
715
+ * The booking number associated with the lodging reservation.
716
+ */
717
+ booking_number?: string;
718
+
719
+ /**
720
+ * The lodging category
721
+ */
722
+ category?: Lodging.Category;
723
+
724
+ /**
725
+ * Lodging check-in time. Measured in seconds since the Unix epoch.
726
+ */
727
+ checkin_at: number;
728
+
729
+ /**
730
+ * Lodging check-out time. Measured in seconds since the Unix epoch.
731
+ */
732
+ checkout_at: number;
733
+
734
+ /**
735
+ * The customer service phone number of the lodging company.
736
+ */
737
+ customer_service_phone_number?: string;
738
+
739
+ /**
740
+ * The daily lodging room rate.
741
+ */
742
+ daily_room_rate_amount?: number;
743
+
744
+ /**
745
+ * Delivery details for this purchase.
746
+ */
747
+ delivery?: Lodging.Delivery;
748
+
749
+ /**
750
+ * List of additional charges being billed.
751
+ */
752
+ extra_charges?: Array<Lodging.ExtraCharge>;
753
+
754
+ /**
755
+ * Indicates whether the lodging location is compliant with the Fire Safety Act.
756
+ */
757
+ fire_safety_act_compliance?: boolean;
758
+
759
+ /**
760
+ * The name of the lodging location.
761
+ */
762
+ name?: string;
763
+
764
+ /**
765
+ * Indicates if the customer did not keep their booking while failing to cancel the reservation.
766
+ */
767
+ no_show?: boolean;
768
+
769
+ /**
770
+ * The number of rooms on the booking
771
+ */
772
+ number_of_rooms?: number;
773
+
774
+ /**
775
+ * The details of the passengers in the travel reservation
776
+ */
777
+ passengers?: Array<Lodging.Passenger>;
778
+
779
+ /**
780
+ * The phone number of the lodging location.
781
+ */
782
+ property_phone_number?: string;
783
+
784
+ /**
785
+ * The room class for this purchase.
786
+ */
787
+ room_class?: string;
788
+
789
+ /**
790
+ * The number of room nights
791
+ */
792
+ room_nights?: number;
793
+
794
+ /**
795
+ * The total tax amount associating with the room reservation.
796
+ */
797
+ total_room_tax_amount?: number;
798
+
799
+ /**
800
+ * The total tax amount
801
+ */
802
+ total_tax_amount?: number;
803
+ }
804
+
805
+ namespace Lodging {
806
+ interface Affiliate {
807
+ /**
808
+ * The name of the affiliate that originated the purchase.
809
+ */
810
+ name: string;
811
+ }
812
+
813
+ type Category = 'hotel' | 'vacation_rental';
814
+
815
+ interface Delivery {
816
+ /**
817
+ * The delivery method for the payment
818
+ */
819
+ mode?: Delivery.Mode;
820
+
821
+ /**
822
+ * Details of the recipient.
823
+ */
824
+ recipient?: Delivery.Recipient;
825
+ }
826
+
827
+ namespace Delivery {
828
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
829
+
830
+ interface Recipient {
831
+ /**
832
+ * The email of the recipient the ticket is delivered to.
833
+ */
834
+ email?: string;
835
+
836
+ /**
837
+ * The name of the recipient the ticket is delivered to.
838
+ */
839
+ name?: string;
840
+
841
+ /**
842
+ * The phone number of the recipient the ticket is delivered to.
843
+ */
844
+ phone?: string;
845
+ }
846
+ }
847
+
848
+ type ExtraCharge =
849
+ | 'gift_shop'
850
+ | 'laundry'
851
+ | 'mini_bar'
852
+ | 'other'
853
+ | 'restaurant'
854
+ | 'telephone';
855
+
856
+ interface Passenger {
857
+ /**
858
+ * Full name of the person or entity on the lodging reservation.
859
+ */
860
+ name: string;
861
+ }
862
+ }
863
+
864
+ interface Subscription {
865
+ /**
866
+ * Affiliate details for this purchase.
867
+ */
868
+ affiliate?: Subscription.Affiliate;
869
+
870
+ /**
871
+ * Info whether the subscription will be auto renewed upon expiry.
872
+ */
873
+ auto_renewal?: boolean;
874
+
875
+ /**
876
+ * Subscription billing details for this purchase.
877
+ */
878
+ billing_interval?: Subscription.BillingInterval;
879
+
880
+ /**
881
+ * Subscription end time. Measured in seconds since the Unix epoch.
882
+ */
883
+ ends_at?: number;
884
+
885
+ /**
886
+ * Name of the product on subscription. e.g. Apple Music Subscription
887
+ */
888
+ name: string;
889
+
890
+ /**
891
+ * Subscription start time. Measured in seconds since the Unix epoch.
892
+ */
893
+ starts_at?: number;
894
+ }
895
+
896
+ namespace Subscription {
897
+ interface Affiliate {
898
+ /**
899
+ * The name of the affiliate that originated the purchase.
900
+ */
901
+ name: string;
902
+ }
903
+
904
+ interface BillingInterval {
905
+ /**
906
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
907
+ */
908
+ count: number;
909
+
910
+ /**
911
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
912
+ */
913
+ interval: BillingInterval.Interval;
914
+ }
915
+
916
+ namespace BillingInterval {
917
+ type Interval = 'day' | 'month' | 'week' | 'year';
918
+ }
919
+ }
920
+ }
921
+
219
922
  interface Shipping {
220
923
  /**
221
924
  * Shipping address.
@@ -292,6 +995,11 @@ declare module 'stripe' {
292
995
  */
293
996
  expand?: Array<string>;
294
997
 
998
+ /**
999
+ * Provides industry-specific information about the charge.
1000
+ */
1001
+ payment_details?: ChargeCaptureParams.PaymentDetails;
1002
+
295
1003
  /**
296
1004
  * The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
297
1005
  */
@@ -321,6 +1029,704 @@ declare module 'stripe' {
321
1029
  }
322
1030
 
323
1031
  namespace ChargeCaptureParams {
1032
+ interface PaymentDetails {
1033
+ /**
1034
+ * Car rental details for this PaymentIntent.
1035
+ */
1036
+ car_rental?: PaymentDetails.CarRental;
1037
+
1038
+ /**
1039
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1040
+ */
1041
+ customer_reference?: Stripe.Emptyable<string>;
1042
+
1043
+ /**
1044
+ * Event details for this PaymentIntent
1045
+ */
1046
+ event_details?: PaymentDetails.EventDetails;
1047
+
1048
+ /**
1049
+ * Flight reservation details for this PaymentIntent
1050
+ */
1051
+ flight?: PaymentDetails.Flight;
1052
+
1053
+ /**
1054
+ * Lodging reservation details for this PaymentIntent
1055
+ */
1056
+ lodging?: PaymentDetails.Lodging;
1057
+
1058
+ /**
1059
+ * A unique value assigned by the business to identify the transaction.
1060
+ */
1061
+ order_reference?: Stripe.Emptyable<string>;
1062
+
1063
+ /**
1064
+ * Subscription details for this PaymentIntent
1065
+ */
1066
+ subscription?: PaymentDetails.Subscription;
1067
+ }
1068
+
1069
+ namespace PaymentDetails {
1070
+ interface CarRental {
1071
+ /**
1072
+ * Affiliate details for this purchase.
1073
+ */
1074
+ affiliate?: CarRental.Affiliate;
1075
+
1076
+ /**
1077
+ * The booking number associated with the car rental.
1078
+ */
1079
+ booking_number: string;
1080
+
1081
+ /**
1082
+ * Class code of the car.
1083
+ */
1084
+ car_class_code?: string;
1085
+
1086
+ /**
1087
+ * Make of the car.
1088
+ */
1089
+ car_make?: string;
1090
+
1091
+ /**
1092
+ * Model of the car.
1093
+ */
1094
+ car_model?: string;
1095
+
1096
+ /**
1097
+ * The name of the rental car company.
1098
+ */
1099
+ company?: string;
1100
+
1101
+ /**
1102
+ * The customer service phone number of the car rental company.
1103
+ */
1104
+ customer_service_phone_number?: string;
1105
+
1106
+ /**
1107
+ * Number of days the car is being rented.
1108
+ */
1109
+ days_rented: number;
1110
+
1111
+ /**
1112
+ * Delivery details for this purchase.
1113
+ */
1114
+ delivery?: CarRental.Delivery;
1115
+
1116
+ /**
1117
+ * The details of the distance traveled during the rental period.
1118
+ */
1119
+ distance?: CarRental.Distance;
1120
+
1121
+ /**
1122
+ * The details of the passengers in the travel reservation
1123
+ */
1124
+ drivers?: Array<CarRental.Driver>;
1125
+
1126
+ /**
1127
+ * List of additional charges being billed.
1128
+ */
1129
+ extra_charges?: Array<CarRental.ExtraCharge>;
1130
+
1131
+ /**
1132
+ * Indicates if the customer did not keep nor cancel their booking.
1133
+ */
1134
+ no_show?: boolean;
1135
+
1136
+ /**
1137
+ * Car pick-up address.
1138
+ */
1139
+ pickup_address?: Stripe.AddressParam;
1140
+
1141
+ /**
1142
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1143
+ */
1144
+ pickup_at: number;
1145
+
1146
+ /**
1147
+ * Name of the pickup location.
1148
+ */
1149
+ pickup_location_name?: string;
1150
+
1151
+ /**
1152
+ * Rental rate.
1153
+ */
1154
+ rate_amount?: number;
1155
+
1156
+ /**
1157
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1158
+ */
1159
+ rate_interval?: CarRental.RateInterval;
1160
+
1161
+ /**
1162
+ * The name of the person or entity renting the car.
1163
+ */
1164
+ renter_name?: string;
1165
+
1166
+ /**
1167
+ * Car return address.
1168
+ */
1169
+ return_address?: Stripe.AddressParam;
1170
+
1171
+ /**
1172
+ * Car return time. Measured in seconds since the Unix epoch.
1173
+ */
1174
+ return_at: number;
1175
+
1176
+ /**
1177
+ * Name of the return location.
1178
+ */
1179
+ return_location_name?: string;
1180
+
1181
+ /**
1182
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1183
+ */
1184
+ tax_exempt?: boolean;
1185
+
1186
+ /**
1187
+ * The vehicle identification number.
1188
+ */
1189
+ vehicle_identification_number?: string;
1190
+ }
1191
+
1192
+ namespace CarRental {
1193
+ interface Affiliate {
1194
+ /**
1195
+ * The name of the affiliate that originated the purchase.
1196
+ */
1197
+ name: string;
1198
+ }
1199
+
1200
+ interface Delivery {
1201
+ /**
1202
+ * The delivery method for the payment
1203
+ */
1204
+ mode?: Delivery.Mode;
1205
+
1206
+ /**
1207
+ * Details of the recipient.
1208
+ */
1209
+ recipient?: Delivery.Recipient;
1210
+ }
1211
+
1212
+ namespace Delivery {
1213
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1214
+
1215
+ interface Recipient {
1216
+ /**
1217
+ * The email of the recipient the ticket is delivered to.
1218
+ */
1219
+ email?: string;
1220
+
1221
+ /**
1222
+ * The name of the recipient the ticket is delivered to.
1223
+ */
1224
+ name?: string;
1225
+
1226
+ /**
1227
+ * The phone number of the recipient the ticket is delivered to.
1228
+ */
1229
+ phone?: string;
1230
+ }
1231
+ }
1232
+
1233
+ interface Distance {
1234
+ /**
1235
+ * Distance traveled.
1236
+ */
1237
+ amount?: number;
1238
+
1239
+ /**
1240
+ * Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
1241
+ */
1242
+ unit?: Distance.Unit;
1243
+ }
1244
+
1245
+ namespace Distance {
1246
+ type Unit = 'kilometers' | 'miles';
1247
+ }
1248
+
1249
+ interface Driver {
1250
+ /**
1251
+ * Driver's identification number.
1252
+ */
1253
+ driver_identification_number?: string;
1254
+
1255
+ /**
1256
+ * Driver's tax number.
1257
+ */
1258
+ driver_tax_number?: string;
1259
+
1260
+ /**
1261
+ * Full name of the person or entity on the car reservation.
1262
+ */
1263
+ name: string;
1264
+ }
1265
+
1266
+ type ExtraCharge =
1267
+ | 'extra_mileage'
1268
+ | 'gas'
1269
+ | 'late_return'
1270
+ | 'one_way_service'
1271
+ | 'parking_violation';
1272
+
1273
+ type RateInterval = 'day' | 'month' | 'week';
1274
+ }
1275
+
1276
+ interface EventDetails {
1277
+ /**
1278
+ * Indicates if the tickets are digitally checked when entering the venue.
1279
+ */
1280
+ access_controlled_venue?: boolean;
1281
+
1282
+ /**
1283
+ * The event location's address.
1284
+ */
1285
+ address?: Stripe.AddressParam;
1286
+
1287
+ /**
1288
+ * Affiliate details for this purchase.
1289
+ */
1290
+ affiliate?: EventDetails.Affiliate;
1291
+
1292
+ /**
1293
+ * The name of the company
1294
+ */
1295
+ company?: string;
1296
+
1297
+ /**
1298
+ * Delivery details for this purchase.
1299
+ */
1300
+ delivery?: EventDetails.Delivery;
1301
+
1302
+ /**
1303
+ * Event end time. Measured in seconds since the Unix epoch.
1304
+ */
1305
+ ends_at?: number;
1306
+
1307
+ /**
1308
+ * Type of the event entertainment (concert, sports event etc)
1309
+ */
1310
+ genre?: string;
1311
+
1312
+ /**
1313
+ * The name of the event.
1314
+ */
1315
+ name: string;
1316
+
1317
+ /**
1318
+ * Event start time. Measured in seconds since the Unix epoch.
1319
+ */
1320
+ starts_at?: number;
1321
+ }
1322
+
1323
+ namespace EventDetails {
1324
+ interface Affiliate {
1325
+ /**
1326
+ * The name of the affiliate that originated the purchase.
1327
+ */
1328
+ name: string;
1329
+ }
1330
+
1331
+ interface Delivery {
1332
+ /**
1333
+ * The delivery method for the payment
1334
+ */
1335
+ mode?: Delivery.Mode;
1336
+
1337
+ /**
1338
+ * Details of the recipient.
1339
+ */
1340
+ recipient?: Delivery.Recipient;
1341
+ }
1342
+
1343
+ namespace Delivery {
1344
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1345
+
1346
+ interface Recipient {
1347
+ /**
1348
+ * The email of the recipient the ticket is delivered to.
1349
+ */
1350
+ email?: string;
1351
+
1352
+ /**
1353
+ * The name of the recipient the ticket is delivered to.
1354
+ */
1355
+ name?: string;
1356
+
1357
+ /**
1358
+ * The phone number of the recipient the ticket is delivered to.
1359
+ */
1360
+ phone?: string;
1361
+ }
1362
+ }
1363
+ }
1364
+
1365
+ interface Flight {
1366
+ /**
1367
+ * Affiliate details for this purchase.
1368
+ */
1369
+ affiliate?: Flight.Affiliate;
1370
+
1371
+ /**
1372
+ * The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1373
+ */
1374
+ agency_number?: string;
1375
+
1376
+ /**
1377
+ * The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1378
+ */
1379
+ carrier?: string;
1380
+
1381
+ /**
1382
+ * Delivery details for this purchase.
1383
+ */
1384
+ delivery?: Flight.Delivery;
1385
+
1386
+ /**
1387
+ * The name of the person or entity on the reservation.
1388
+ */
1389
+ passenger_name?: string;
1390
+
1391
+ /**
1392
+ * The details of the passengers in the travel reservation.
1393
+ */
1394
+ passengers?: Array<Flight.Passenger>;
1395
+
1396
+ /**
1397
+ * The individual flight segments associated with the trip.
1398
+ */
1399
+ segments: Array<Flight.Segment>;
1400
+
1401
+ /**
1402
+ * The ticket number associated with the travel reservation.
1403
+ */
1404
+ ticket_number?: string;
1405
+ }
1406
+
1407
+ namespace Flight {
1408
+ interface Affiliate {
1409
+ /**
1410
+ * The name of the affiliate that originated the purchase.
1411
+ */
1412
+ name: string;
1413
+ }
1414
+
1415
+ interface Delivery {
1416
+ /**
1417
+ * The delivery method for the payment
1418
+ */
1419
+ mode?: Delivery.Mode;
1420
+
1421
+ /**
1422
+ * Details of the recipient.
1423
+ */
1424
+ recipient?: Delivery.Recipient;
1425
+ }
1426
+
1427
+ namespace Delivery {
1428
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1429
+
1430
+ interface Recipient {
1431
+ /**
1432
+ * The email of the recipient the ticket is delivered to.
1433
+ */
1434
+ email?: string;
1435
+
1436
+ /**
1437
+ * The name of the recipient the ticket is delivered to.
1438
+ */
1439
+ name?: string;
1440
+
1441
+ /**
1442
+ * The phone number of the recipient the ticket is delivered to.
1443
+ */
1444
+ phone?: string;
1445
+ }
1446
+ }
1447
+
1448
+ interface Passenger {
1449
+ /**
1450
+ * Full name of the person or entity on the flight reservation.
1451
+ */
1452
+ name: string;
1453
+ }
1454
+
1455
+ interface Segment {
1456
+ /**
1457
+ * The flight segment amount.
1458
+ */
1459
+ amount?: number;
1460
+
1461
+ /**
1462
+ * The International Air Transport Association (IATA) airport code for the arrival airport.
1463
+ */
1464
+ arrival_airport?: string;
1465
+
1466
+ /**
1467
+ * The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1468
+ */
1469
+ arrives_at?: number;
1470
+
1471
+ /**
1472
+ * The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1473
+ */
1474
+ carrier?: string;
1475
+
1476
+ /**
1477
+ * The departure time for the flight segment. Measured in seconds since the Unix epoch.
1478
+ */
1479
+ departs_at: number;
1480
+
1481
+ /**
1482
+ * The International Air Transport Association (IATA) airport code for the departure airport.
1483
+ */
1484
+ departure_airport?: string;
1485
+
1486
+ /**
1487
+ * The flight number associated with the segment
1488
+ */
1489
+ flight_number?: string;
1490
+
1491
+ /**
1492
+ * The fare class for the segment.
1493
+ */
1494
+ service_class?: Segment.ServiceClass;
1495
+ }
1496
+
1497
+ namespace Segment {
1498
+ type ServiceClass =
1499
+ | 'business'
1500
+ | 'economy'
1501
+ | 'first'
1502
+ | 'premium_economy';
1503
+ }
1504
+ }
1505
+
1506
+ interface Lodging {
1507
+ /**
1508
+ * The lodging location's address.
1509
+ */
1510
+ address?: Stripe.AddressParam;
1511
+
1512
+ /**
1513
+ * The number of adults on the booking
1514
+ */
1515
+ adults?: number;
1516
+
1517
+ /**
1518
+ * Affiliate details for this purchase.
1519
+ */
1520
+ affiliate?: Lodging.Affiliate;
1521
+
1522
+ /**
1523
+ * The booking number associated with the lodging reservation.
1524
+ */
1525
+ booking_number?: string;
1526
+
1527
+ /**
1528
+ * The lodging category
1529
+ */
1530
+ category?: Lodging.Category;
1531
+
1532
+ /**
1533
+ * Lodging check-in time. Measured in seconds since the Unix epoch.
1534
+ */
1535
+ checkin_at: number;
1536
+
1537
+ /**
1538
+ * Lodging check-out time. Measured in seconds since the Unix epoch.
1539
+ */
1540
+ checkout_at: number;
1541
+
1542
+ /**
1543
+ * The customer service phone number of the lodging company.
1544
+ */
1545
+ customer_service_phone_number?: string;
1546
+
1547
+ /**
1548
+ * The daily lodging room rate.
1549
+ */
1550
+ daily_room_rate_amount?: number;
1551
+
1552
+ /**
1553
+ * Delivery details for this purchase.
1554
+ */
1555
+ delivery?: Lodging.Delivery;
1556
+
1557
+ /**
1558
+ * List of additional charges being billed.
1559
+ */
1560
+ extra_charges?: Array<Lodging.ExtraCharge>;
1561
+
1562
+ /**
1563
+ * Indicates whether the lodging location is compliant with the Fire Safety Act.
1564
+ */
1565
+ fire_safety_act_compliance?: boolean;
1566
+
1567
+ /**
1568
+ * The name of the lodging location.
1569
+ */
1570
+ name?: string;
1571
+
1572
+ /**
1573
+ * Indicates if the customer did not keep their booking while failing to cancel the reservation.
1574
+ */
1575
+ no_show?: boolean;
1576
+
1577
+ /**
1578
+ * The number of rooms on the booking
1579
+ */
1580
+ number_of_rooms?: number;
1581
+
1582
+ /**
1583
+ * The details of the passengers in the travel reservation
1584
+ */
1585
+ passengers?: Array<Lodging.Passenger>;
1586
+
1587
+ /**
1588
+ * The phone number of the lodging location.
1589
+ */
1590
+ property_phone_number?: string;
1591
+
1592
+ /**
1593
+ * The room class for this purchase.
1594
+ */
1595
+ room_class?: string;
1596
+
1597
+ /**
1598
+ * The number of room nights
1599
+ */
1600
+ room_nights?: number;
1601
+
1602
+ /**
1603
+ * The total tax amount associating with the room reservation.
1604
+ */
1605
+ total_room_tax_amount?: number;
1606
+
1607
+ /**
1608
+ * The total tax amount
1609
+ */
1610
+ total_tax_amount?: number;
1611
+ }
1612
+
1613
+ namespace Lodging {
1614
+ interface Affiliate {
1615
+ /**
1616
+ * The name of the affiliate that originated the purchase.
1617
+ */
1618
+ name: string;
1619
+ }
1620
+
1621
+ type Category = 'hotel' | 'vacation_rental';
1622
+
1623
+ interface Delivery {
1624
+ /**
1625
+ * The delivery method for the payment
1626
+ */
1627
+ mode?: Delivery.Mode;
1628
+
1629
+ /**
1630
+ * Details of the recipient.
1631
+ */
1632
+ recipient?: Delivery.Recipient;
1633
+ }
1634
+
1635
+ namespace Delivery {
1636
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1637
+
1638
+ interface Recipient {
1639
+ /**
1640
+ * The email of the recipient the ticket is delivered to.
1641
+ */
1642
+ email?: string;
1643
+
1644
+ /**
1645
+ * The name of the recipient the ticket is delivered to.
1646
+ */
1647
+ name?: string;
1648
+
1649
+ /**
1650
+ * The phone number of the recipient the ticket is delivered to.
1651
+ */
1652
+ phone?: string;
1653
+ }
1654
+ }
1655
+
1656
+ type ExtraCharge =
1657
+ | 'gift_shop'
1658
+ | 'laundry'
1659
+ | 'mini_bar'
1660
+ | 'other'
1661
+ | 'restaurant'
1662
+ | 'telephone';
1663
+
1664
+ interface Passenger {
1665
+ /**
1666
+ * Full name of the person or entity on the lodging reservation.
1667
+ */
1668
+ name: string;
1669
+ }
1670
+ }
1671
+
1672
+ interface Subscription {
1673
+ /**
1674
+ * Affiliate details for this purchase.
1675
+ */
1676
+ affiliate?: Subscription.Affiliate;
1677
+
1678
+ /**
1679
+ * Info whether the subscription will be auto renewed upon expiry.
1680
+ */
1681
+ auto_renewal?: boolean;
1682
+
1683
+ /**
1684
+ * Subscription billing details for this purchase.
1685
+ */
1686
+ billing_interval?: Subscription.BillingInterval;
1687
+
1688
+ /**
1689
+ * Subscription end time. Measured in seconds since the Unix epoch.
1690
+ */
1691
+ ends_at?: number;
1692
+
1693
+ /**
1694
+ * Name of the product on subscription. e.g. Apple Music Subscription
1695
+ */
1696
+ name: string;
1697
+
1698
+ /**
1699
+ * Subscription start time. Measured in seconds since the Unix epoch.
1700
+ */
1701
+ starts_at?: number;
1702
+ }
1703
+
1704
+ namespace Subscription {
1705
+ interface Affiliate {
1706
+ /**
1707
+ * The name of the affiliate that originated the purchase.
1708
+ */
1709
+ name: string;
1710
+ }
1711
+
1712
+ interface BillingInterval {
1713
+ /**
1714
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1715
+ */
1716
+ count: number;
1717
+
1718
+ /**
1719
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1720
+ */
1721
+ interval: BillingInterval.Interval;
1722
+ }
1723
+
1724
+ namespace BillingInterval {
1725
+ type Interval = 'day' | 'month' | 'week' | 'year';
1726
+ }
1727
+ }
1728
+ }
1729
+
324
1730
  interface TransferData {
325
1731
  /**
326
1732
  * The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.