stripe 19.3.0-beta.1 → 19.3.0

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