stripe 23.1.0 → 23.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (773) hide show
  1. package/CHANGELOG.md +1914 -4850
  2. package/README.md +42 -58
  3. package/VERSION +1 -1
  4. package/cjs/Error.d.ts +6 -0
  5. package/cjs/Error.js +17 -1
  6. package/cjs/Error.js.map +1 -1
  7. package/cjs/StripeEventNotificationHandler.js +54 -0
  8. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  9. package/cjs/Types.d.ts +4 -2
  10. package/cjs/Types.js.map +1 -1
  11. package/cjs/apiVersion.d.ts +2 -2
  12. package/cjs/apiVersion.js +2 -2
  13. package/cjs/apiVersion.js.map +1 -1
  14. package/cjs/resources/AccountLinks.d.ts +1 -1
  15. package/cjs/resources/AccountNotices.d.ts +140 -0
  16. package/cjs/resources/AccountNotices.js +29 -0
  17. package/cjs/resources/AccountNotices.js.map +1 -0
  18. package/cjs/resources/AccountSessions.d.ts +226 -0
  19. package/cjs/resources/AccountSessions.js.map +1 -1
  20. package/cjs/resources/Accounts.d.ts +625 -3
  21. package/cjs/resources/Accounts.js +14 -0
  22. package/cjs/resources/Accounts.js.map +1 -1
  23. package/cjs/resources/Balance.d.ts +67 -0
  24. package/cjs/resources/BalanceSettings.d.ts +18 -0
  25. package/cjs/resources/BankAccounts.d.ts +2 -2
  26. package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
  27. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
  28. package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
  29. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  30. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  31. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
  32. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  33. package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
  34. package/cjs/resources/Billing/Analytics/index.js +13 -0
  35. package/cjs/resources/Billing/Analytics/index.js.map +1 -0
  36. package/cjs/resources/Billing/index.d.ts +3 -0
  37. package/cjs/resources/Billing/index.js +2 -0
  38. package/cjs/resources/Billing/index.js.map +1 -1
  39. package/cjs/resources/Capabilities.d.ts +2 -2
  40. package/cjs/resources/Capital/FinancingOffers.d.ts +194 -0
  41. package/cjs/resources/Capital/FinancingOffers.js +30 -0
  42. package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
  43. package/cjs/resources/Capital/FinancingSummary.d.ts +102 -0
  44. package/cjs/resources/Capital/FinancingSummary.js +15 -0
  45. package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
  46. package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
  47. package/cjs/resources/Capital/FinancingTransactions.js +24 -0
  48. package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
  49. package/cjs/resources/Capital/index.d.ts +25 -0
  50. package/cjs/resources/Capital/index.js +17 -0
  51. package/cjs/resources/Capital/index.js.map +1 -0
  52. package/cjs/resources/Cards.d.ts +17 -0
  53. package/cjs/resources/Charges.d.ts +3077 -70
  54. package/cjs/resources/Checkout/Sessions.d.ts +351 -4
  55. package/cjs/resources/ConfirmationTokens.d.ts +67 -1
  56. package/cjs/resources/Coupons.d.ts +53 -0
  57. package/cjs/resources/Coupons.js +13 -0
  58. package/cjs/resources/Coupons.js.map +1 -1
  59. package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
  60. package/cjs/resources/CreditNotes.d.ts +1 -1
  61. package/cjs/resources/CustomerSessions.d.ts +68 -0
  62. package/cjs/resources/Customers.d.ts +20 -1
  63. package/cjs/resources/Customers.js +14 -0
  64. package/cjs/resources/Customers.js.map +1 -1
  65. package/cjs/resources/Disputes.d.ts +14 -0
  66. package/cjs/resources/Events.d.ts +614 -3
  67. package/cjs/resources/ExternalAccounts.d.ts +212 -1
  68. package/cjs/resources/ExternalAccounts.js +44 -0
  69. package/cjs/resources/ExternalAccounts.js.map +1 -1
  70. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  71. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
  72. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  73. package/cjs/resources/FinancialConnections/Accounts.d.ts +69 -4
  74. package/cjs/resources/FinancialConnections/Accounts.js +8 -0
  75. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  76. package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
  77. package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
  78. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
  79. package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
  80. package/cjs/resources/FinancialConnections/Institutions.js +23 -0
  81. package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
  82. package/cjs/resources/FinancialConnections/Sessions.d.ts +124 -9
  83. package/cjs/resources/FinancialConnections/index.d.ts +21 -9
  84. package/cjs/resources/FinancialConnections/index.js +4 -0
  85. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  86. package/cjs/resources/FxQuotes.d.ts +216 -0
  87. package/cjs/resources/FxQuotes.js +29 -0
  88. package/cjs/resources/FxQuotes.js.map +1 -0
  89. package/cjs/resources/InvoiceItems.d.ts +85 -0
  90. package/cjs/resources/InvoiceItems.js.map +1 -1
  91. package/cjs/resources/InvoiceLineItems.d.ts +40 -2
  92. package/cjs/resources/Invoices.d.ts +1257 -10
  93. package/cjs/resources/Invoices.js +41 -0
  94. package/cjs/resources/Invoices.js.map +1 -1
  95. package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
  96. package/cjs/resources/Issuing/Cardholders.d.ts +19 -1
  97. package/cjs/resources/Issuing/Cards.d.ts +13 -0
  98. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  99. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
  100. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  101. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  102. package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
  103. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  104. package/cjs/resources/Issuing/Disputes.d.ts +13 -0
  105. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  106. package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
  107. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  108. package/cjs/resources/Issuing/Settlements.d.ts +83 -0
  109. package/cjs/resources/Issuing/Settlements.js +4 -0
  110. package/cjs/resources/Issuing/Settlements.js.map +1 -0
  111. package/cjs/resources/Issuing/Transactions.d.ts +22 -0
  112. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  113. package/cjs/resources/Issuing/index.d.ts +47 -22
  114. package/cjs/resources/Issuing/index.js +6 -0
  115. package/cjs/resources/Issuing/index.js.map +1 -1
  116. package/cjs/resources/LineItems.d.ts +29 -2
  117. package/cjs/resources/Mandates.d.ts +36 -2
  118. package/cjs/resources/Mandates.js +8 -0
  119. package/cjs/resources/Mandates.js.map +1 -1
  120. package/cjs/resources/Margins.d.ts +115 -0
  121. package/cjs/resources/Margins.js +35 -0
  122. package/cjs/resources/Margins.js.map +1 -0
  123. package/cjs/resources/Orders.d.ts +4696 -0
  124. package/cjs/resources/Orders.js +457 -0
  125. package/cjs/resources/Orders.js.map +1 -0
  126. package/cjs/resources/PaymentAttemptRecords.d.ts +82 -0
  127. package/cjs/resources/PaymentIntents.d.ts +13832 -2816
  128. package/cjs/resources/PaymentIntents.js +27 -0
  129. package/cjs/resources/PaymentIntents.js.map +1 -1
  130. package/cjs/resources/PaymentLinks.d.ts +3 -3
  131. package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
  132. package/cjs/resources/PaymentMethods.d.ts +181 -3
  133. package/cjs/resources/PaymentMethods.js.map +1 -1
  134. package/cjs/resources/PaymentPlans.d.ts +427 -0
  135. package/cjs/resources/PaymentPlans.js +35 -0
  136. package/cjs/resources/PaymentPlans.js.map +1 -0
  137. package/cjs/resources/PaymentRecords.d.ts +82 -0
  138. package/cjs/resources/Persons.d.ts +2 -2
  139. package/cjs/resources/Prices.d.ts +36 -0
  140. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  141. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
  142. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  143. package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
  144. package/cjs/resources/Privacy/RedactionJobs.js +73 -0
  145. package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
  146. package/cjs/resources/Privacy/index.d.ts +22 -0
  147. package/cjs/resources/Privacy/index.js +13 -0
  148. package/cjs/resources/Privacy/index.js.map +1 -0
  149. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  150. package/cjs/resources/PromotionCodes.d.ts +12 -0
  151. package/cjs/resources/PromotionCodes.js +27 -0
  152. package/cjs/resources/PromotionCodes.js.map +1 -1
  153. package/cjs/resources/QuoteLines.d.ts +507 -0
  154. package/cjs/resources/QuoteLines.js +4 -0
  155. package/cjs/resources/QuoteLines.js.map +1 -0
  156. package/cjs/resources/QuotePreviewInvoices.d.ts +1170 -0
  157. package/cjs/resources/QuotePreviewInvoices.js +4 -0
  158. package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
  159. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
  160. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
  161. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  162. package/cjs/resources/Quotes.d.ts +2266 -57
  163. package/cjs/resources/Quotes.js +1184 -16
  164. package/cjs/resources/Quotes.js.map +1 -1
  165. package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
  166. package/cjs/resources/Radar/BillingEvaluations.js +15 -0
  167. package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
  168. package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
  169. package/cjs/resources/Radar/ValueListItems.d.ts +31 -1
  170. package/cjs/resources/Radar/index.d.ts +21 -16
  171. package/cjs/resources/Radar/index.js +2 -0
  172. package/cjs/resources/Radar/index.js.map +1 -1
  173. package/cjs/resources/Refunds.d.ts +11 -0
  174. package/cjs/resources/Reserve/Holds.d.ts +53 -1
  175. package/cjs/resources/Reserve/Holds.js +19 -0
  176. package/cjs/resources/Reserve/Holds.js.map +1 -1
  177. package/cjs/resources/Reserve/Plans.d.ts +41 -1
  178. package/cjs/resources/Reserve/Plans.js +19 -0
  179. package/cjs/resources/Reserve/Plans.js.map +1 -1
  180. package/cjs/resources/Reserve/Releases.d.ts +41 -1
  181. package/cjs/resources/Reserve/Releases.js +19 -0
  182. package/cjs/resources/Reserve/Releases.js.map +1 -1
  183. package/cjs/resources/Reserve/index.d.ts +18 -6
  184. package/cjs/resources/Reserve/index.js +9 -0
  185. package/cjs/resources/Reserve/index.js.map +1 -1
  186. package/cjs/resources/SetupAttempts.d.ts +26 -1
  187. package/cjs/resources/SetupIntents.d.ts +394 -11
  188. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +418 -0
  189. package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
  190. package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
  191. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +330 -0
  192. package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
  193. package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
  194. package/cjs/resources/SharedPayment/index.d.ts +19 -0
  195. package/cjs/resources/SharedPayment/index.js +15 -0
  196. package/cjs/resources/SharedPayment/index.js.map +1 -0
  197. package/cjs/resources/Sources.d.ts +29 -1
  198. package/cjs/resources/SubscriptionItems.d.ts +114 -0
  199. package/cjs/resources/SubscriptionSchedules.d.ts +1157 -5
  200. package/cjs/resources/SubscriptionSchedules.js +6 -0
  201. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  202. package/cjs/resources/Subscriptions.d.ts +388 -6
  203. package/cjs/resources/Subscriptions.js +42 -0
  204. package/cjs/resources/Subscriptions.js.map +1 -1
  205. package/cjs/resources/Tax/Forms.d.ts +228 -0
  206. package/cjs/resources/Tax/Forms.js +32 -0
  207. package/cjs/resources/Tax/Forms.js.map +1 -0
  208. package/cjs/resources/Tax/Registrations.d.ts +25 -2
  209. package/cjs/resources/Tax/index.d.ts +24 -17
  210. package/cjs/resources/Tax/index.js +2 -0
  211. package/cjs/resources/Tax/index.js.map +1 -1
  212. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  213. package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
  214. package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
  215. package/cjs/resources/Terminal/Readers.d.ts +17 -1
  216. package/cjs/resources/Terminal/index.d.ts +5 -0
  217. package/cjs/resources/Terminal/index.js +2 -0
  218. package/cjs/resources/Terminal/index.js.map +1 -1
  219. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
  220. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  221. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
  222. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  223. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  224. package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
  225. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  226. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  227. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  228. package/cjs/resources/TestHelpers/index.d.ts +3 -0
  229. package/cjs/resources/TestHelpers/index.js +6 -4
  230. package/cjs/resources/TestHelpers/index.js.map +1 -1
  231. package/cjs/resources/Tokens.d.ts +15 -0
  232. package/cjs/resources/Transfers.d.ts +8 -0
  233. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  234. package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
  235. package/cjs/resources/Treasury/OutboundPayments.d.ts +26 -0
  236. package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
  237. package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
  238. package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
  239. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  240. package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
  241. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  242. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  243. package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
  244. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  245. package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
  246. package/cjs/resources/V2/Billing/BillSettings.js +41 -0
  247. package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
  248. package/cjs/resources/V2/Billing/Cadences.d.ts +958 -0
  249. package/cjs/resources/V2/Billing/Cadences.js +198 -0
  250. package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
  251. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  252. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
  253. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  254. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  255. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
  256. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  257. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  258. package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
  259. package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
  260. package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
  261. package/cjs/resources/V2/Billing/Profiles.js +35 -0
  262. package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
  263. package/cjs/resources/V2/Billing/index.d.ts +45 -6
  264. package/cjs/resources/V2/Billing/index.js +8 -0
  265. package/cjs/resources/V2/Billing/index.js.map +1 -1
  266. package/cjs/resources/V2/Core/AccountTokens.d.ts +28 -1
  267. package/cjs/resources/V2/Core/Accounts.d.ts +1465 -71
  268. package/cjs/resources/V2/Core/ApprovalRequests.d.ts +378 -0
  269. package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
  270. package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
  271. package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
  272. package/cjs/resources/V2/Core/BatchJobs.js +252 -0
  273. package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
  274. package/cjs/resources/V2/Core/Events.d.ts +1009 -5
  275. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  276. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  277. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  278. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  279. package/cjs/resources/V2/Core/index.d.ts +24 -9
  280. package/cjs/resources/V2/Core/index.js +4 -0
  281. package/cjs/resources/V2/Core/index.js.map +1 -1
  282. package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
  283. package/cjs/resources/V2/Data/QueryRuns.js +51 -0
  284. package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
  285. package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
  286. package/cjs/resources/V2/Data/ReportRuns.js +53 -0
  287. package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
  288. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
  289. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
  290. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  291. package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
  292. package/cjs/resources/V2/Data/Reporting/index.js +13 -0
  293. package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
  294. package/cjs/resources/V2/Data/Reports.d.ts +140 -0
  295. package/cjs/resources/V2/Data/Reports.js +25 -0
  296. package/cjs/resources/V2/Data/Reports.js.map +1 -0
  297. package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
  298. package/cjs/resources/V2/Data/Schemas.js +23 -0
  299. package/cjs/resources/V2/Data/Schemas.js.map +1 -0
  300. package/cjs/resources/V2/Data/index.d.ts +34 -0
  301. package/cjs/resources/V2/Data/index.js +21 -0
  302. package/cjs/resources/V2/Data/index.js.map +1 -0
  303. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  304. package/cjs/resources/V2/EventMisc.js +2 -0
  305. package/cjs/resources/V2/EventMisc.js.map +1 -0
  306. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  307. package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
  308. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  309. package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
  310. package/cjs/resources/V2/Extend/Workflows.js +30 -0
  311. package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
  312. package/cjs/resources/V2/Extend/index.d.ts +20 -0
  313. package/cjs/resources/V2/Extend/index.js +15 -0
  314. package/cjs/resources/V2/Extend/index.js.map +1 -0
  315. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +377 -0
  316. package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
  317. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
  318. package/cjs/resources/V2/Iam/index.d.ts +13 -0
  319. package/cjs/resources/V2/Iam/index.js +13 -0
  320. package/cjs/resources/V2/Iam/index.js.map +1 -0
  321. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
  322. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
  323. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
  324. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  325. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  326. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
  327. package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  328. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
  329. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
  330. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
  331. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  332. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
  333. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
  334. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
  335. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
  336. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  337. package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
  338. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
  339. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  340. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  341. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
  342. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
  343. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
  344. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  345. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  346. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
  347. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
  348. package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  349. package/cjs/resources/V2/MoneyManagement/index.d.ts +63 -37
  350. package/cjs/resources/V2/MoneyManagement/index.js +6 -0
  351. package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
  352. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  353. package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
  354. package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
  355. package/cjs/resources/V2/Network/index.d.ts +13 -0
  356. package/cjs/resources/V2/Network/index.js +13 -0
  357. package/cjs/resources/V2/Network/index.js.map +1 -0
  358. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  359. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
  360. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  361. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  362. package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
  363. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  364. package/cjs/resources/V2/Signals/AccountActivities.d.ts +432 -0
  365. package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
  366. package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
  367. package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
  368. package/cjs/resources/V2/Signals/AccountEvaluations.js +59 -0
  369. package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  370. package/cjs/resources/V2/Signals/AccountSignals.d.ts +196 -0
  371. package/cjs/resources/V2/Signals/AccountSignals.js +66 -0
  372. package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
  373. package/cjs/resources/V2/Signals/index.d.ts +26 -0
  374. package/cjs/resources/V2/Signals/index.js +17 -0
  375. package/cjs/resources/V2/Signals/index.js.map +1 -0
  376. package/cjs/resources/V2/index.d.ts +18 -0
  377. package/cjs/resources/V2/index.js +16 -4
  378. package/cjs/resources/V2/index.js.map +1 -1
  379. package/cjs/resources/WebhookEndpoints.d.ts +2 -2
  380. package/cjs/resources.d.ts +10 -0
  381. package/cjs/resources.js +126 -8
  382. package/cjs/resources.js.map +1 -1
  383. package/cjs/stripe.cjs.node.d.ts +6674 -138
  384. package/cjs/stripe.cjs.node.js.map +1 -1
  385. package/cjs/stripe.core.d.ts +60 -26
  386. package/cjs/stripe.core.js +55 -36
  387. package/cjs/stripe.core.js.map +1 -1
  388. package/esm/Error.d.ts +6 -0
  389. package/esm/Error.js +14 -0
  390. package/esm/Error.js.map +1 -1
  391. package/esm/StripeEventNotificationHandler.js +54 -0
  392. package/esm/StripeEventNotificationHandler.js.map +1 -1
  393. package/esm/Types.d.ts +4 -2
  394. package/esm/Types.js.map +1 -1
  395. package/esm/apiVersion.d.ts +2 -2
  396. package/esm/apiVersion.js +2 -2
  397. package/esm/apiVersion.js.map +1 -1
  398. package/esm/resources/AccountLinks.d.ts +1 -1
  399. package/esm/resources/AccountNotices.d.ts +140 -0
  400. package/esm/resources/AccountNotices.js +25 -0
  401. package/esm/resources/AccountNotices.js.map +1 -0
  402. package/esm/resources/AccountSessions.d.ts +226 -0
  403. package/esm/resources/AccountSessions.js.map +1 -1
  404. package/esm/resources/Accounts.d.ts +625 -3
  405. package/esm/resources/Accounts.js +14 -0
  406. package/esm/resources/Accounts.js.map +1 -1
  407. package/esm/resources/Balance.d.ts +67 -0
  408. package/esm/resources/BalanceSettings.d.ts +18 -0
  409. package/esm/resources/BankAccounts.d.ts +2 -2
  410. package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
  411. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
  412. package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
  413. package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
  414. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
  415. package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
  416. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
  417. package/esm/resources/Billing/Analytics/index.d.ts +15 -0
  418. package/esm/resources/Billing/Analytics/index.js +9 -0
  419. package/esm/resources/Billing/Analytics/index.js.map +1 -0
  420. package/esm/resources/Billing/index.d.ts +3 -0
  421. package/esm/resources/Billing/index.js +2 -0
  422. package/esm/resources/Billing/index.js.map +1 -1
  423. package/esm/resources/Capabilities.d.ts +2 -2
  424. package/esm/resources/Capital/FinancingOffers.d.ts +194 -0
  425. package/esm/resources/Capital/FinancingOffers.js +26 -0
  426. package/esm/resources/Capital/FinancingOffers.js.map +1 -0
  427. package/esm/resources/Capital/FinancingSummary.d.ts +102 -0
  428. package/esm/resources/Capital/FinancingSummary.js +11 -0
  429. package/esm/resources/Capital/FinancingSummary.js.map +1 -0
  430. package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
  431. package/esm/resources/Capital/FinancingTransactions.js +20 -0
  432. package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
  433. package/esm/resources/Capital/index.d.ts +25 -0
  434. package/esm/resources/Capital/index.js +13 -0
  435. package/esm/resources/Capital/index.js.map +1 -0
  436. package/esm/resources/Cards.d.ts +17 -0
  437. package/esm/resources/Charges.d.ts +3077 -70
  438. package/esm/resources/Checkout/Sessions.d.ts +351 -4
  439. package/esm/resources/ConfirmationTokens.d.ts +67 -1
  440. package/esm/resources/Coupons.d.ts +53 -0
  441. package/esm/resources/Coupons.js +13 -0
  442. package/esm/resources/Coupons.js.map +1 -1
  443. package/esm/resources/CreditNoteLineItems.d.ts +15 -1
  444. package/esm/resources/CreditNotes.d.ts +1 -1
  445. package/esm/resources/CustomerSessions.d.ts +68 -0
  446. package/esm/resources/Customers.d.ts +20 -1
  447. package/esm/resources/Customers.js +14 -0
  448. package/esm/resources/Customers.js.map +1 -1
  449. package/esm/resources/Disputes.d.ts +14 -0
  450. package/esm/resources/Events.d.ts +614 -3
  451. package/esm/resources/ExternalAccounts.d.ts +212 -1
  452. package/esm/resources/ExternalAccounts.js +42 -1
  453. package/esm/resources/ExternalAccounts.js.map +1 -1
  454. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
  455. package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
  456. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
  457. package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
  458. package/esm/resources/FinancialConnections/Accounts.js +8 -0
  459. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  460. package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
  461. package/esm/resources/FinancialConnections/Authorizations.js +9 -1
  462. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
  463. package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
  464. package/esm/resources/FinancialConnections/Institutions.js +19 -0
  465. package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
  466. package/esm/resources/FinancialConnections/Sessions.d.ts +124 -9
  467. package/esm/resources/FinancialConnections/index.d.ts +21 -9
  468. package/esm/resources/FinancialConnections/index.js +4 -0
  469. package/esm/resources/FinancialConnections/index.js.map +1 -1
  470. package/esm/resources/FxQuotes.d.ts +216 -0
  471. package/esm/resources/FxQuotes.js +25 -0
  472. package/esm/resources/FxQuotes.js.map +1 -0
  473. package/esm/resources/InvoiceItems.d.ts +85 -0
  474. package/esm/resources/InvoiceItems.js.map +1 -1
  475. package/esm/resources/InvoiceLineItems.d.ts +40 -2
  476. package/esm/resources/Invoices.d.ts +1257 -10
  477. package/esm/resources/Invoices.js +41 -0
  478. package/esm/resources/Invoices.js.map +1 -1
  479. package/esm/resources/Issuing/Authorizations.d.ts +13 -0
  480. package/esm/resources/Issuing/Cardholders.d.ts +19 -1
  481. package/esm/resources/Issuing/Cards.d.ts +13 -0
  482. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
  483. package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
  484. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
  485. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
  486. package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
  487. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
  488. package/esm/resources/Issuing/Disputes.d.ts +13 -0
  489. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
  490. package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
  491. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
  492. package/esm/resources/Issuing/Settlements.d.ts +83 -0
  493. package/esm/resources/Issuing/Settlements.js +3 -0
  494. package/esm/resources/Issuing/Settlements.js.map +1 -0
  495. package/esm/resources/Issuing/Transactions.d.ts +22 -0
  496. package/esm/resources/Issuing/Transactions.js.map +1 -1
  497. package/esm/resources/Issuing/index.d.ts +47 -22
  498. package/esm/resources/Issuing/index.js +6 -0
  499. package/esm/resources/Issuing/index.js.map +1 -1
  500. package/esm/resources/LineItems.d.ts +29 -2
  501. package/esm/resources/Mandates.d.ts +36 -2
  502. package/esm/resources/Mandates.js +8 -0
  503. package/esm/resources/Mandates.js.map +1 -1
  504. package/esm/resources/Margins.d.ts +115 -0
  505. package/esm/resources/Margins.js +31 -0
  506. package/esm/resources/Margins.js.map +1 -0
  507. package/esm/resources/Orders.d.ts +4696 -0
  508. package/esm/resources/Orders.js +453 -0
  509. package/esm/resources/Orders.js.map +1 -0
  510. package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
  511. package/esm/resources/PaymentIntents.d.ts +13832 -2816
  512. package/esm/resources/PaymentIntents.js +27 -0
  513. package/esm/resources/PaymentIntents.js.map +1 -1
  514. package/esm/resources/PaymentLinks.d.ts +3 -3
  515. package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
  516. package/esm/resources/PaymentMethods.d.ts +181 -3
  517. package/esm/resources/PaymentMethods.js.map +1 -1
  518. package/esm/resources/PaymentPlans.d.ts +427 -0
  519. package/esm/resources/PaymentPlans.js +31 -0
  520. package/esm/resources/PaymentPlans.js.map +1 -0
  521. package/esm/resources/PaymentRecords.d.ts +82 -0
  522. package/esm/resources/Persons.d.ts +2 -2
  523. package/esm/resources/Prices.d.ts +36 -0
  524. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
  525. package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
  526. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
  527. package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
  528. package/esm/resources/Privacy/RedactionJobs.js +69 -0
  529. package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
  530. package/esm/resources/Privacy/index.d.ts +22 -0
  531. package/esm/resources/Privacy/index.js +9 -0
  532. package/esm/resources/Privacy/index.js.map +1 -0
  533. package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
  534. package/esm/resources/PromotionCodes.d.ts +12 -0
  535. package/esm/resources/PromotionCodes.js +27 -0
  536. package/esm/resources/PromotionCodes.js.map +1 -1
  537. package/esm/resources/QuoteLines.d.ts +507 -0
  538. package/esm/resources/QuoteLines.js +3 -0
  539. package/esm/resources/QuoteLines.js.map +1 -0
  540. package/esm/resources/QuotePreviewInvoices.d.ts +1170 -0
  541. package/esm/resources/QuotePreviewInvoices.js +3 -0
  542. package/esm/resources/QuotePreviewInvoices.js.map +1 -0
  543. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
  544. package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
  545. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
  546. package/esm/resources/Quotes.d.ts +2266 -57
  547. package/esm/resources/Quotes.js +1184 -16
  548. package/esm/resources/Quotes.js.map +1 -1
  549. package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
  550. package/esm/resources/Radar/BillingEvaluations.js +11 -0
  551. package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
  552. package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
  553. package/esm/resources/Radar/ValueListItems.d.ts +31 -1
  554. package/esm/resources/Radar/index.d.ts +21 -16
  555. package/esm/resources/Radar/index.js +2 -0
  556. package/esm/resources/Radar/index.js.map +1 -1
  557. package/esm/resources/Refunds.d.ts +11 -0
  558. package/esm/resources/Reserve/Holds.d.ts +53 -1
  559. package/esm/resources/Reserve/Holds.js +17 -1
  560. package/esm/resources/Reserve/Holds.js.map +1 -1
  561. package/esm/resources/Reserve/Plans.d.ts +41 -1
  562. package/esm/resources/Reserve/Plans.js +17 -1
  563. package/esm/resources/Reserve/Plans.js.map +1 -1
  564. package/esm/resources/Reserve/Releases.d.ts +41 -1
  565. package/esm/resources/Reserve/Releases.js +17 -1
  566. package/esm/resources/Reserve/Releases.js.map +1 -1
  567. package/esm/resources/Reserve/index.d.ts +18 -6
  568. package/esm/resources/Reserve/index.js +9 -0
  569. package/esm/resources/Reserve/index.js.map +1 -1
  570. package/esm/resources/SetupAttempts.d.ts +26 -1
  571. package/esm/resources/SetupIntents.d.ts +394 -11
  572. package/esm/resources/SharedPayment/GrantedTokens.d.ts +418 -0
  573. package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
  574. package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
  575. package/esm/resources/SharedPayment/IssuedTokens.d.ts +330 -0
  576. package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
  577. package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
  578. package/esm/resources/SharedPayment/index.d.ts +19 -0
  579. package/esm/resources/SharedPayment/index.js +11 -0
  580. package/esm/resources/SharedPayment/index.js.map +1 -0
  581. package/esm/resources/Sources.d.ts +29 -1
  582. package/esm/resources/SubscriptionItems.d.ts +114 -0
  583. package/esm/resources/SubscriptionSchedules.d.ts +1157 -5
  584. package/esm/resources/SubscriptionSchedules.js +6 -0
  585. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  586. package/esm/resources/Subscriptions.d.ts +388 -6
  587. package/esm/resources/Subscriptions.js +42 -0
  588. package/esm/resources/Subscriptions.js.map +1 -1
  589. package/esm/resources/Tax/Forms.d.ts +228 -0
  590. package/esm/resources/Tax/Forms.js +28 -0
  591. package/esm/resources/Tax/Forms.js.map +1 -0
  592. package/esm/resources/Tax/Registrations.d.ts +25 -2
  593. package/esm/resources/Tax/index.d.ts +24 -17
  594. package/esm/resources/Tax/index.js +2 -0
  595. package/esm/resources/Tax/index.js.map +1 -1
  596. package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
  597. package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
  598. package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
  599. package/esm/resources/Terminal/Readers.d.ts +17 -1
  600. package/esm/resources/Terminal/index.d.ts +5 -0
  601. package/esm/resources/Terminal/index.js +2 -0
  602. package/esm/resources/Terminal/index.js.map +1 -1
  603. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
  604. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
  605. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
  606. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
  607. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
  608. package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
  609. package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
  610. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
  611. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
  612. package/esm/resources/TestHelpers/index.d.ts +3 -0
  613. package/esm/resources/TestHelpers/index.js +2 -0
  614. package/esm/resources/TestHelpers/index.js.map +1 -1
  615. package/esm/resources/Tokens.d.ts +15 -0
  616. package/esm/resources/Transfers.d.ts +8 -0
  617. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
  618. package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
  619. package/esm/resources/Treasury/OutboundPayments.d.ts +26 -0
  620. package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
  621. package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
  622. package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
  623. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
  624. package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
  625. package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
  626. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
  627. package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
  628. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
  629. package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
  630. package/esm/resources/V2/Billing/BillSettings.js +37 -0
  631. package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
  632. package/esm/resources/V2/Billing/Cadences.d.ts +958 -0
  633. package/esm/resources/V2/Billing/Cadences.js +194 -0
  634. package/esm/resources/V2/Billing/Cadences.js.map +1 -0
  635. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
  636. package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
  637. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
  638. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
  639. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
  640. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
  641. package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
  642. package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
  643. package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
  644. package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
  645. package/esm/resources/V2/Billing/Profiles.js +31 -0
  646. package/esm/resources/V2/Billing/Profiles.js.map +1 -0
  647. package/esm/resources/V2/Billing/index.d.ts +45 -6
  648. package/esm/resources/V2/Billing/index.js +8 -0
  649. package/esm/resources/V2/Billing/index.js.map +1 -1
  650. package/esm/resources/V2/Core/AccountTokens.d.ts +28 -1
  651. package/esm/resources/V2/Core/Accounts.d.ts +1465 -71
  652. package/esm/resources/V2/Core/ApprovalRequests.d.ts +378 -0
  653. package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
  654. package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
  655. package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
  656. package/esm/resources/V2/Core/BatchJobs.js +248 -0
  657. package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
  658. package/esm/resources/V2/Core/Events.d.ts +1009 -5
  659. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
  660. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  661. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
  662. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  663. package/esm/resources/V2/Core/index.d.ts +24 -9
  664. package/esm/resources/V2/Core/index.js +4 -0
  665. package/esm/resources/V2/Core/index.js.map +1 -1
  666. package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
  667. package/esm/resources/V2/Data/QueryRuns.js +47 -0
  668. package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
  669. package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
  670. package/esm/resources/V2/Data/ReportRuns.js +49 -0
  671. package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
  672. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
  673. package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
  674. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  675. package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
  676. package/esm/resources/V2/Data/Reporting/index.js +9 -0
  677. package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
  678. package/esm/resources/V2/Data/Reports.d.ts +140 -0
  679. package/esm/resources/V2/Data/Reports.js +21 -0
  680. package/esm/resources/V2/Data/Reports.js.map +1 -0
  681. package/esm/resources/V2/Data/Schemas.d.ts +161 -0
  682. package/esm/resources/V2/Data/Schemas.js +19 -0
  683. package/esm/resources/V2/Data/Schemas.js.map +1 -0
  684. package/esm/resources/V2/Data/index.d.ts +34 -0
  685. package/esm/resources/V2/Data/index.js +17 -0
  686. package/esm/resources/V2/Data/index.js.map +1 -0
  687. package/esm/resources/V2/EventMisc.d.ts +0 -0
  688. package/esm/resources/V2/EventMisc.js +2 -0
  689. package/esm/resources/V2/EventMisc.js.map +1 -0
  690. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
  691. package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
  692. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  693. package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
  694. package/esm/resources/V2/Extend/Workflows.js +26 -0
  695. package/esm/resources/V2/Extend/Workflows.js.map +1 -0
  696. package/esm/resources/V2/Extend/index.d.ts +20 -0
  697. package/esm/resources/V2/Extend/index.js +11 -0
  698. package/esm/resources/V2/Extend/index.js.map +1 -0
  699. package/esm/resources/V2/Iam/ActivityLogs.d.ts +377 -0
  700. package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
  701. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
  702. package/esm/resources/V2/Iam/index.d.ts +13 -0
  703. package/esm/resources/V2/Iam/index.js +9 -0
  704. package/esm/resources/V2/Iam/index.js.map +1 -0
  705. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
  706. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
  707. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
  708. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
  709. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
  710. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
  711. package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
  712. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
  713. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
  714. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
  715. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
  716. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
  717. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
  718. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
  719. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
  720. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
  721. package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
  722. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
  723. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
  724. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  725. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
  726. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
  727. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
  728. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
  729. package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
  730. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
  731. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
  732. package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
  733. package/esm/resources/V2/MoneyManagement/index.d.ts +63 -37
  734. package/esm/resources/V2/MoneyManagement/index.js +6 -0
  735. package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
  736. package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
  737. package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
  738. package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
  739. package/esm/resources/V2/Network/index.d.ts +13 -0
  740. package/esm/resources/V2/Network/index.js +9 -0
  741. package/esm/resources/V2/Network/index.js.map +1 -0
  742. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
  743. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
  744. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  745. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  746. package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
  747. package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  748. package/esm/resources/V2/Signals/AccountActivities.d.ts +432 -0
  749. package/esm/resources/V2/Signals/AccountActivities.js +23 -0
  750. package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
  751. package/esm/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
  752. package/esm/resources/V2/Signals/AccountEvaluations.js +55 -0
  753. package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
  754. package/esm/resources/V2/Signals/AccountSignals.d.ts +196 -0
  755. package/esm/resources/V2/Signals/AccountSignals.js +62 -0
  756. package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
  757. package/esm/resources/V2/Signals/index.d.ts +26 -0
  758. package/esm/resources/V2/Signals/index.js +13 -0
  759. package/esm/resources/V2/Signals/index.js.map +1 -0
  760. package/esm/resources/V2/index.d.ts +18 -0
  761. package/esm/resources/V2/index.js +12 -0
  762. package/esm/resources/V2/index.js.map +1 -1
  763. package/esm/resources/WebhookEndpoints.d.ts +2 -2
  764. package/esm/resources.d.ts +10 -0
  765. package/esm/resources.js +112 -0
  766. package/esm/resources.js.map +1 -1
  767. package/esm/stripe.core.d.ts +60 -26
  768. package/esm/stripe.core.js +21 -2
  769. package/esm/stripe.core.js.map +1 -1
  770. package/esm/stripe.esm.node.d.ts +60 -26
  771. package/esm/stripe.esm.node.js +21 -2
  772. package/esm/stripe.esm.node.js.map +1 -1
  773. package/package.json +1 -1
@@ -11,7 +11,7 @@ import { CustomerSource } from './CustomerSources.js';
11
11
  import { Transfer } from './Transfers.js';
12
12
  import { PaymentMethod } from './PaymentMethods.js';
13
13
  import { Mandate } from './Mandates.js';
14
- import { Emptyable, MetadataParam, AddressParam, OtherString, PaginationParams, RangeQueryParam, Metadata, Address } from '../shared.js';
14
+ import { Emptyable, MetadataParam, AddressParam, OtherString, Address, PaginationParams, RangeQueryParam, Metadata } from '../shared.js';
15
15
  import { RequestOptions, ApiListPromise, Response, ApiList, ApiSearchResultPromise } from '../lib.js';
16
16
  export declare class ChargeResource extends StripeResource {
17
17
  /**
@@ -178,6 +178,10 @@ export interface Charge {
178
178
  * This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
179
179
  */
180
180
  receipt_url: string | null;
181
+ /**
182
+ * Redaction status of this charge. If not null, this charge is associated to a redaction job.
183
+ */
184
+ redaction?: Charge.Redaction | null;
181
185
  /**
182
186
  * Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
183
187
  */
@@ -336,7 +340,9 @@ export declare namespace Charge {
336
340
  eps?: PaymentMethodDetails.Eps;
337
341
  fpx?: PaymentMethodDetails.Fpx;
338
342
  giropay?: PaymentMethodDetails.Giropay;
343
+ gopay?: PaymentMethodDetails.Gopay;
339
344
  grabpay?: PaymentMethodDetails.Grabpay;
345
+ id_bank_transfer?: PaymentMethodDetails.IdBankTransfer;
340
346
  ideal?: PaymentMethodDetails.Ideal;
341
347
  interac_present?: PaymentMethodDetails.InteracPresent;
342
348
  kakao_pay?: PaymentMethodDetails.KakaoPay;
@@ -359,6 +365,8 @@ export declare namespace Charge {
359
365
  payto?: PaymentMethodDetails.Payto;
360
366
  pix?: PaymentMethodDetails.Pix;
361
367
  promptpay?: PaymentMethodDetails.Promptpay;
368
+ qris?: PaymentMethodDetails.Qris;
369
+ rechnung?: PaymentMethodDetails.Rechnung;
362
370
  revolut_pay?: PaymentMethodDetails.RevolutPay;
363
371
  samsung_pay?: PaymentMethodDetails.SamsungPay;
364
372
  satispay?: PaymentMethodDetails.Satispay;
@@ -366,8 +374,10 @@ export declare namespace Charge {
366
374
  sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
367
375
  sepa_debit?: PaymentMethodDetails.SepaDebit;
368
376
  sequra?: PaymentMethodDetails.Sequra;
377
+ shopeepay?: PaymentMethodDetails.Shopeepay;
369
378
  sofort?: PaymentMethodDetails.Sofort;
370
379
  stripe_account?: PaymentMethodDetails.StripeAccount;
380
+ stripe_balance?: PaymentMethodDetails.StripeBalance;
371
381
  sunbit?: PaymentMethodDetails.Sunbit;
372
382
  swish?: PaymentMethodDetails.Swish;
373
383
  twint?: PaymentMethodDetails.Twint;
@@ -381,6 +391,7 @@ export declare namespace Charge {
381
391
  us_bank_account?: PaymentMethodDetails.UsBankAccount;
382
392
  wechat?: PaymentMethodDetails.Wechat;
383
393
  wechat_pay?: PaymentMethodDetails.WechatPay;
394
+ wero?: PaymentMethodDetails.Wero;
384
395
  zip?: PaymentMethodDetails.Zip;
385
396
  }
386
397
  interface PresentmentDetails {
@@ -399,6 +410,12 @@ export declare namespace Charge {
399
410
  */
400
411
  session?: string;
401
412
  }
413
+ interface Redaction {
414
+ /**
415
+ * Indicates whether this object and its related objects have been redacted or not.
416
+ */
417
+ status: Redaction.Status;
418
+ }
402
419
  interface Shipping {
403
420
  address?: Address;
404
421
  /**
@@ -696,6 +713,10 @@ export declare namespace Charge {
696
713
  * The authorized amount.
697
714
  */
698
715
  amount_authorized: number | null;
716
+ /**
717
+ * The latest amount intended to be authorized by this charge.
718
+ */
719
+ amount_requested?: number | null;
699
720
  /**
700
721
  * Authorization code on the charge.
701
722
  */
@@ -716,6 +737,7 @@ export declare namespace Charge {
716
737
  * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
717
738
  */
718
739
  country: string | null;
740
+ decremental_authorization?: Card.DecrementalAuthorization;
719
741
  /**
720
742
  * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
721
743
  */
@@ -784,6 +806,7 @@ export declare namespace Charge {
784
806
  */
785
807
  network_transaction_id: string | null;
786
808
  overcapture?: Card.Overcapture;
809
+ partial_authorization?: Card.PartialAuthorization;
787
810
  /**
788
811
  * Status of a card based on the card issuer.
789
812
  */
@@ -998,12 +1021,36 @@ export declare namespace Charge {
998
1021
  */
999
1022
  verified_name: string | null;
1000
1023
  }
1024
+ interface Gopay {
1025
+ }
1001
1026
  interface Grabpay {
1002
1027
  /**
1003
1028
  * Unique transaction id generated by GrabPay
1004
1029
  */
1005
1030
  transaction_id: string | null;
1006
1031
  }
1032
+ interface IdBankTransfer {
1033
+ /**
1034
+ * Account number of the bank account to transfer funds to.
1035
+ */
1036
+ account_number: string;
1037
+ /**
1038
+ * Bank where the account is located.
1039
+ */
1040
+ bank: IdBankTransfer.Bank;
1041
+ /**
1042
+ * Local bank code of the bank.
1043
+ */
1044
+ bank_code?: string;
1045
+ /**
1046
+ * Name of the bank associated with the bank account.
1047
+ */
1048
+ bank_name?: string;
1049
+ /**
1050
+ * Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
1051
+ */
1052
+ display_name?: string;
1053
+ }
1007
1054
  interface Ideal {
1008
1055
  /**
1009
1056
  * The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1317,10 +1364,32 @@ export declare namespace Charge {
1317
1364
  * The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
1318
1365
  */
1319
1366
  seller_protection: Paypal.SellerProtection | null;
1367
+ /**
1368
+ * The shipping address for the customer, as supplied by the merchant at the point of payment
1369
+ * execution. This shipping address will not be updated if the merchant updates the shipping
1370
+ * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1371
+ */
1372
+ shipping?: Address | null;
1320
1373
  /**
1321
1374
  * A unique ID generated by PayPal for this transaction.
1322
1375
  */
1323
1376
  transaction_id: string | null;
1377
+ /**
1378
+ * The shipping address for the customer, as supplied by the merchant at the point of payment
1379
+ * execution. This shipping address will not be updated if the merchant updates the shipping
1380
+ * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1381
+ */
1382
+ verified_address?: Address | null;
1383
+ /**
1384
+ * Owner's verified email. Values are verified or provided by PayPal directly
1385
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1386
+ */
1387
+ verified_email?: string | null;
1388
+ /**
1389
+ * Owner's verified full name. Values are verified or provided by PayPal directly
1390
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1391
+ */
1392
+ verified_name?: string | null;
1324
1393
  }
1325
1394
  interface Paypay {
1326
1395
  }
@@ -1362,6 +1431,14 @@ export declare namespace Charge {
1362
1431
  */
1363
1432
  reference: string | null;
1364
1433
  }
1434
+ interface Qris {
1435
+ }
1436
+ interface Rechnung {
1437
+ /**
1438
+ * Payment portal URL.
1439
+ */
1440
+ payment_portal_url: string | null;
1441
+ }
1365
1442
  interface RevolutPay {
1366
1443
  funding?: RevolutPay.Funding;
1367
1444
  /**
@@ -1441,6 +1518,8 @@ export declare namespace Charge {
1441
1518
  */
1442
1519
  transaction_id: string | null;
1443
1520
  }
1521
+ interface Shopeepay {
1522
+ }
1444
1523
  interface Sofort {
1445
1524
  /**
1446
1525
  * Bank code of bank associated with the bank account.
@@ -1483,6 +1562,12 @@ export declare namespace Charge {
1483
1562
  }
1484
1563
  interface StripeAccount {
1485
1564
  }
1565
+ interface StripeBalance {
1566
+ /**
1567
+ * The connected account ID whose Stripe balance to use as the source of payment
1568
+ */
1569
+ account?: string | null;
1570
+ }
1486
1571
  interface Sunbit {
1487
1572
  /**
1488
1573
  * The Sunbit transaction ID associated with this payment.
@@ -1573,6 +1658,8 @@ export declare namespace Charge {
1573
1658
  */
1574
1659
  transaction_id: string | null;
1575
1660
  }
1661
+ interface Wero {
1662
+ }
1576
1663
  interface Zip {
1577
1664
  }
1578
1665
  namespace AchDebit {
@@ -1600,6 +1687,10 @@ export declare namespace Charge {
1600
1687
  * Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
1601
1688
  */
1602
1689
  brand: string | null;
1690
+ /**
1691
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
1692
+ */
1693
+ brand_product?: string | null;
1603
1694
  /**
1604
1695
  * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
1605
1696
  */
@@ -1641,6 +1732,12 @@ export declare namespace Charge {
1641
1732
  */
1642
1733
  cvc_check: string | null;
1643
1734
  }
1735
+ interface DecrementalAuthorization {
1736
+ /**
1737
+ * Indicates whether or not the decremental authorization feature is supported.
1738
+ */
1739
+ status: DecrementalAuthorization.Status;
1740
+ }
1644
1741
  interface ExtendedAuthorization {
1645
1742
  /**
1646
1743
  * Indicates whether or not the capture window is extended beyond the standard authorization.
@@ -1681,6 +1778,12 @@ export declare namespace Charge {
1681
1778
  */
1682
1779
  status: Overcapture.Status;
1683
1780
  }
1781
+ interface PartialAuthorization {
1782
+ /**
1783
+ * Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
1784
+ */
1785
+ status: PartialAuthorization.Status;
1786
+ }
1684
1787
  type RegulatedStatus = 'regulated' | 'unregulated' | OtherString;
1685
1788
  type SetupCredentialUsage = 'installment' | 'recurring' | 'unscheduled' | OtherString;
1686
1789
  type StoredCredentialUsage = 'installment' | 'recurring' | 'unscheduled' | OtherString;
@@ -1740,6 +1843,9 @@ export declare namespace Charge {
1740
1843
  type: Wallet.Type;
1741
1844
  visa_checkout?: Wallet.VisaCheckout;
1742
1845
  }
1846
+ namespace DecrementalAuthorization {
1847
+ type Status = 'available' | 'unavailable' | OtherString;
1848
+ }
1743
1849
  namespace ExtendedAuthorization {
1744
1850
  type Status = 'disabled' | 'enabled' | OtherString;
1745
1851
  }
@@ -1772,6 +1878,9 @@ export declare namespace Charge {
1772
1878
  namespace Overcapture {
1773
1879
  type Status = 'available' | 'unavailable' | OtherString;
1774
1880
  }
1881
+ namespace PartialAuthorization {
1882
+ type Status = 'declined' | 'fully_authorized' | 'not_requested' | 'partially_authorized' | OtherString;
1883
+ }
1775
1884
  namespace ThreeDSecure {
1776
1885
  type AuthenticationFlow = 'challenge' | 'frictionless' | OtherString;
1777
1886
  type ElectronicCommerceIndicator = '01' | '02' | '05' | '06' | '07' | OtherString;
@@ -1908,6 +2017,9 @@ export declare namespace Charge {
1908
2017
  type AccountHolderType = 'company' | 'individual' | OtherString;
1909
2018
  type Bank = 'affin_bank' | 'agrobank' | 'alliance_bank' | 'ambank' | 'bank_islam' | 'bank_muamalat' | 'bank_of_china' | 'bank_rakyat' | 'bnp_paribas' | 'bsn' | 'cimb' | 'citibank' | 'deutsche_bank' | 'hong_leong_bank' | 'hsbc' | 'kfh' | 'maybank2e' | 'maybank2u' | 'mbsb_bank' | 'ocbc' | 'pb_enterprise' | 'public_bank' | 'rhb' | 'standard_chartered' | 'uob' | OtherString;
1910
2019
  }
2020
+ namespace IdBankTransfer {
2021
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'mandiri' | 'permata' | OtherString;
2022
+ }
1911
2023
  namespace Ideal {
1912
2024
  type Bank = 'abn_amro' | 'adyen' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'mollie' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe' | OtherString;
1913
2025
  type Bic = 'ABNANL2A' | 'ADYBNL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MLLENL2A' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U' | OtherString;
@@ -2043,6 +2155,10 @@ export declare namespace Charge {
2043
2155
  * Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
2044
2156
  */
2045
2157
  brand: string | null;
2158
+ /**
2159
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
2160
+ */
2161
+ brand_product?: string | null;
2046
2162
  /**
2047
2163
  * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
2048
2164
  */
@@ -2074,6 +2190,9 @@ export declare namespace Charge {
2074
2190
  type AccountType = 'checking' | 'savings' | OtherString;
2075
2191
  }
2076
2192
  }
2193
+ namespace Redaction {
2194
+ type Status = 'processing' | 'redacted' | 'validated' | OtherString;
2195
+ }
2077
2196
  }
2078
2197
  export interface ChargeCreateParams {
2079
2198
  /**
@@ -2230,6 +2349,10 @@ export interface ChargeUpdateParams {
2230
2349
  * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2231
2350
  */
2232
2351
  metadata?: Emptyable<MetadataParam>;
2352
+ /**
2353
+ * Provides industry-specific information about the charge.
2354
+ */
2355
+ payment_details?: ChargeUpdateParams.PaymentDetails;
2233
2356
  /**
2234
2357
  * 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.
2235
2358
  */
@@ -2250,6 +2373,52 @@ export declare namespace ChargeUpdateParams {
2250
2373
  */
2251
2374
  user_report: Emptyable<FraudDetails.UserReport>;
2252
2375
  }
2376
+ interface PaymentDetails {
2377
+ /**
2378
+ * Car rental details for this PaymentIntent.
2379
+ */
2380
+ car_rental?: PaymentDetails.CarRental;
2381
+ /**
2382
+ * Car rental data for this PaymentIntent.
2383
+ */
2384
+ car_rental_data?: Emptyable<Array<PaymentDetails.CarRentalDatum>>;
2385
+ /**
2386
+ * A unique value to identify the customer. This field is available only for card payments.
2387
+ *
2388
+ * This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
2389
+ */
2390
+ customer_reference?: Emptyable<string>;
2391
+ /**
2392
+ * Event details for this PaymentIntent
2393
+ */
2394
+ event_details?: PaymentDetails.EventDetails;
2395
+ /**
2396
+ * Flight reservation details for this PaymentIntent
2397
+ */
2398
+ flight?: PaymentDetails.Flight;
2399
+ /**
2400
+ * Flight data for this PaymentIntent.
2401
+ */
2402
+ flight_data?: Emptyable<Array<PaymentDetails.FlightDatum>>;
2403
+ /**
2404
+ * Lodging reservation details for this PaymentIntent
2405
+ */
2406
+ lodging?: PaymentDetails.Lodging;
2407
+ /**
2408
+ * Lodging data for this PaymentIntent.
2409
+ */
2410
+ lodging_data?: Emptyable<Array<PaymentDetails.LodgingDatum>>;
2411
+ /**
2412
+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
2413
+ *
2414
+ * 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.
2415
+ */
2416
+ order_reference?: Emptyable<string>;
2417
+ /**
2418
+ * Subscription details for this PaymentIntent
2419
+ */
2420
+ subscription?: PaymentDetails.Subscription;
2421
+ }
2253
2422
  interface Shipping {
2254
2423
  /**
2255
2424
  * Shipping address.
@@ -2275,75 +2444,2913 @@ export declare namespace ChargeUpdateParams {
2275
2444
  namespace FraudDetails {
2276
2445
  type UserReport = 'fraudulent' | 'safe' | OtherString;
2277
2446
  }
2278
- }
2279
- export interface ChargeListParams extends PaginationParams {
2280
- /**
2281
- * Only return charges that were created during the given date interval.
2282
- */
2283
- created?: RangeQueryParam | number;
2284
- /**
2285
- * Only return charges for the customer specified by this customer ID.
2286
- */
2287
- customer?: string;
2288
- /**
2289
- * Specifies which fields in the response should be expanded.
2290
- */
2291
- expand?: Array<string>;
2292
- /**
2293
- * Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID.
2294
- */
2295
- payment_intent?: string;
2296
- /**
2297
- * Only return charges for this transfer group, limited to 100.
2298
- */
2299
- transfer_group?: string;
2300
- }
2301
- export interface ChargeCaptureParams {
2302
- /**
2303
- * The amount to capture, which must be less than or equal to the original amount.
2304
- */
2305
- amount?: number;
2306
- /**
2307
- * An application fee to add on to this charge.
2308
- */
2309
- application_fee?: number;
2310
- /**
2311
- * An application fee amount to add on to this charge, which must be less than or equal to the original amount.
2312
- */
2313
- application_fee_amount?: number;
2314
- /**
2315
- * Specifies which fields in the response should be expanded.
2316
- */
2317
- expand?: Array<string>;
2318
- /**
2319
- * 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 are only sent for payments in live mode.
2320
- */
2321
- receipt_email?: string;
2322
- /**
2323
- * For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
2324
- *
2325
- * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
2326
- */
2327
- statement_descriptor?: string;
2328
- /**
2329
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
2330
- */
2331
- statement_descriptor_suffix?: string;
2332
- /**
2333
- * An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
2334
- */
2335
- transfer_data?: ChargeCaptureParams.TransferData;
2336
- /**
2337
- * A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.
2338
- */
2339
- transfer_group?: string;
2340
- }
2341
- export declare namespace ChargeCaptureParams {
2342
- interface TransferData {
2343
- /**
2344
- * The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
2345
- */
2346
- amount?: number;
2447
+ namespace PaymentDetails {
2448
+ interface CarRental {
2449
+ /**
2450
+ * Affiliate details for this purchase.
2451
+ */
2452
+ affiliate?: CarRental.Affiliate;
2453
+ /**
2454
+ * The booking number associated with the car rental.
2455
+ */
2456
+ booking_number: string;
2457
+ /**
2458
+ * Class code of the car.
2459
+ */
2460
+ car_class_code?: string;
2461
+ /**
2462
+ * Make of the car.
2463
+ */
2464
+ car_make?: string;
2465
+ /**
2466
+ * Model of the car.
2467
+ */
2468
+ car_model?: string;
2469
+ /**
2470
+ * The name of the rental car company.
2471
+ */
2472
+ company?: string;
2473
+ /**
2474
+ * The customer service phone number of the car rental company.
2475
+ */
2476
+ customer_service_phone_number?: string;
2477
+ /**
2478
+ * Number of days the car is being rented.
2479
+ */
2480
+ days_rented: number;
2481
+ /**
2482
+ * Delivery details for this purchase.
2483
+ */
2484
+ delivery?: CarRental.Delivery;
2485
+ /**
2486
+ * The details of the distance traveled during the rental period.
2487
+ */
2488
+ distance?: CarRental.Distance;
2489
+ /**
2490
+ * The details of the passengers in the travel reservation
2491
+ */
2492
+ drivers?: Array<CarRental.Driver>;
2493
+ /**
2494
+ * List of additional charges being billed.
2495
+ */
2496
+ extra_charges?: Array<CarRental.ExtraCharge>;
2497
+ /**
2498
+ * Indicates if the customer did not keep nor cancel their booking.
2499
+ */
2500
+ no_show?: boolean;
2501
+ /**
2502
+ * Car pick-up address.
2503
+ */
2504
+ pickup_address?: AddressParam;
2505
+ /**
2506
+ * Car pick-up time. Measured in seconds since the Unix epoch.
2507
+ */
2508
+ pickup_at: number;
2509
+ /**
2510
+ * Name of the pickup location.
2511
+ */
2512
+ pickup_location_name?: string;
2513
+ /**
2514
+ * Rental rate.
2515
+ */
2516
+ rate_amount?: number;
2517
+ /**
2518
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
2519
+ */
2520
+ rate_interval?: CarRental.RateInterval;
2521
+ /**
2522
+ * The name of the person or entity renting the car.
2523
+ */
2524
+ renter_name?: string;
2525
+ /**
2526
+ * Car return address.
2527
+ */
2528
+ return_address?: AddressParam;
2529
+ /**
2530
+ * Car return time. Measured in seconds since the Unix epoch.
2531
+ */
2532
+ return_at: number;
2533
+ /**
2534
+ * Name of the return location.
2535
+ */
2536
+ return_location_name?: string;
2537
+ /**
2538
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
2539
+ */
2540
+ tax_exempt?: boolean;
2541
+ /**
2542
+ * The vehicle identification number.
2543
+ */
2544
+ vehicle_identification_number?: string;
2545
+ }
2546
+ interface CarRentalDatum {
2547
+ /**
2548
+ * Affiliate (such as travel agency) details for the rental.
2549
+ */
2550
+ affiliate?: CarRentalDatum.Affiliate;
2551
+ /**
2552
+ * Booking confirmation number for the car rental.
2553
+ */
2554
+ booking_number?: string;
2555
+ /**
2556
+ * Name of the car rental company.
2557
+ */
2558
+ carrier_name?: string;
2559
+ /**
2560
+ * Customer service phone number for the car rental company.
2561
+ */
2562
+ customer_service_phone_number?: string;
2563
+ /**
2564
+ * Number of days the car is being rented.
2565
+ */
2566
+ days_rented?: number;
2567
+ /**
2568
+ * Distance details for the rental.
2569
+ */
2570
+ distance?: CarRentalDatum.Distance;
2571
+ /**
2572
+ * List of drivers for the rental.
2573
+ */
2574
+ drivers?: Array<CarRentalDatum.Driver>;
2575
+ /**
2576
+ * Drop-off location details.
2577
+ */
2578
+ drop_off: CarRentalDatum.DropOff;
2579
+ /**
2580
+ * Insurance details for the rental.
2581
+ */
2582
+ insurances?: Array<CarRentalDatum.Insurance>;
2583
+ /**
2584
+ * Indicates if the customer was a no-show.
2585
+ */
2586
+ no_show_indicator?: boolean;
2587
+ /**
2588
+ * Pickup location details.
2589
+ */
2590
+ pickup: CarRentalDatum.Pickup;
2591
+ /**
2592
+ * Name of the person renting the vehicle.
2593
+ */
2594
+ renter_name?: string;
2595
+ /**
2596
+ * Total cost breakdown for the rental.
2597
+ */
2598
+ total: CarRentalDatum.Total;
2599
+ /**
2600
+ * Vehicle details for the rental.
2601
+ */
2602
+ vehicle?: CarRentalDatum.Vehicle;
2603
+ }
2604
+ interface EventDetails {
2605
+ /**
2606
+ * Indicates if the tickets are digitally checked when entering the venue.
2607
+ */
2608
+ access_controlled_venue?: boolean;
2609
+ /**
2610
+ * The event location's address.
2611
+ */
2612
+ address?: AddressParam;
2613
+ /**
2614
+ * Affiliate details for this purchase.
2615
+ */
2616
+ affiliate?: EventDetails.Affiliate;
2617
+ /**
2618
+ * The name of the company
2619
+ */
2620
+ company?: string;
2621
+ /**
2622
+ * Delivery details for this purchase.
2623
+ */
2624
+ delivery?: EventDetails.Delivery;
2625
+ /**
2626
+ * Event end time. Measured in seconds since the Unix epoch.
2627
+ */
2628
+ ends_at?: number;
2629
+ /**
2630
+ * Type of the event entertainment (concert, sports event etc)
2631
+ */
2632
+ genre?: string;
2633
+ /**
2634
+ * The name of the event.
2635
+ */
2636
+ name: string;
2637
+ /**
2638
+ * Event start time. Measured in seconds since the Unix epoch.
2639
+ */
2640
+ starts_at?: number;
2641
+ }
2642
+ interface Flight {
2643
+ /**
2644
+ * Affiliate details for this purchase.
2645
+ */
2646
+ affiliate?: Flight.Affiliate;
2647
+ /**
2648
+ * The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
2649
+ */
2650
+ agency_number?: string;
2651
+ /**
2652
+ * The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
2653
+ */
2654
+ carrier?: string;
2655
+ /**
2656
+ * Delivery details for this purchase.
2657
+ */
2658
+ delivery?: Flight.Delivery;
2659
+ /**
2660
+ * The name of the person or entity on the reservation.
2661
+ */
2662
+ passenger_name?: string;
2663
+ /**
2664
+ * The details of the passengers in the travel reservation.
2665
+ */
2666
+ passengers?: Array<Flight.Passenger>;
2667
+ /**
2668
+ * The individual flight segments associated with the trip.
2669
+ */
2670
+ segments: Array<Flight.Segment>;
2671
+ /**
2672
+ * The ticket number associated with the travel reservation.
2673
+ */
2674
+ ticket_number?: string;
2675
+ }
2676
+ interface FlightDatum {
2677
+ /**
2678
+ * Affiliate details if applicable.
2679
+ */
2680
+ affiliate?: FlightDatum.Affiliate;
2681
+ /**
2682
+ * Reservation reference.
2683
+ */
2684
+ booking_number?: string;
2685
+ /**
2686
+ * Computerized reservation system used to make the reservation and purchase the ticket.
2687
+ */
2688
+ computerized_reservation_system?: string;
2689
+ /**
2690
+ * Ticket restrictions.
2691
+ */
2692
+ endorsements_and_restrictions?: string;
2693
+ /**
2694
+ * List of insurances.
2695
+ */
2696
+ insurances?: Array<FlightDatum.Insurance>;
2697
+ /**
2698
+ * List of passengers.
2699
+ */
2700
+ passengers?: Array<FlightDatum.Passenger>;
2701
+ /**
2702
+ * List of flight segments.
2703
+ */
2704
+ segments: Array<FlightDatum.Segment>;
2705
+ /**
2706
+ * Electronic ticket indicator.
2707
+ */
2708
+ ticket_electronically_issued_indicator?: boolean;
2709
+ /**
2710
+ * Total cost breakdown.
2711
+ */
2712
+ total: FlightDatum.Total;
2713
+ /**
2714
+ * Type of flight transaction.
2715
+ */
2716
+ transaction_type?: FlightDatum.TransactionType;
2717
+ }
2718
+ interface Lodging {
2719
+ /**
2720
+ * The lodging location's address.
2721
+ */
2722
+ address?: AddressParam;
2723
+ /**
2724
+ * The number of adults on the booking
2725
+ */
2726
+ adults?: number;
2727
+ /**
2728
+ * Affiliate details for this purchase.
2729
+ */
2730
+ affiliate?: Lodging.Affiliate;
2731
+ /**
2732
+ * The booking number associated with the lodging reservation.
2733
+ */
2734
+ booking_number?: string;
2735
+ /**
2736
+ * The lodging category
2737
+ */
2738
+ category?: Lodging.Category;
2739
+ /**
2740
+ * Lodging check-in time. Measured in seconds since the Unix epoch.
2741
+ */
2742
+ checkin_at: number;
2743
+ /**
2744
+ * Lodging check-out time. Measured in seconds since the Unix epoch.
2745
+ */
2746
+ checkout_at: number;
2747
+ /**
2748
+ * The customer service phone number of the lodging company.
2749
+ */
2750
+ customer_service_phone_number?: string;
2751
+ /**
2752
+ * The daily lodging room rate.
2753
+ */
2754
+ daily_room_rate_amount?: number;
2755
+ /**
2756
+ * Delivery details for this purchase.
2757
+ */
2758
+ delivery?: Lodging.Delivery;
2759
+ /**
2760
+ * List of additional charges being billed.
2761
+ */
2762
+ extra_charges?: Array<Lodging.ExtraCharge>;
2763
+ /**
2764
+ * Indicates whether the lodging location is compliant with the Fire Safety Act.
2765
+ */
2766
+ fire_safety_act_compliance?: boolean;
2767
+ /**
2768
+ * The name of the lodging location.
2769
+ */
2770
+ name?: string;
2771
+ /**
2772
+ * Indicates if the customer did not keep their booking while failing to cancel the reservation.
2773
+ */
2774
+ no_show?: boolean;
2775
+ /**
2776
+ * The number of rooms on the booking
2777
+ */
2778
+ number_of_rooms?: number;
2779
+ /**
2780
+ * The details of the passengers in the travel reservation
2781
+ */
2782
+ passengers?: Array<Lodging.Passenger>;
2783
+ /**
2784
+ * The phone number of the lodging location.
2785
+ */
2786
+ property_phone_number?: string;
2787
+ /**
2788
+ * The room class for this purchase.
2789
+ */
2790
+ room_class?: string;
2791
+ /**
2792
+ * The number of room nights
2793
+ */
2794
+ room_nights?: number;
2795
+ /**
2796
+ * The total tax amount associating with the room reservation.
2797
+ */
2798
+ total_room_tax_amount?: number;
2799
+ /**
2800
+ * The total tax amount
2801
+ */
2802
+ total_tax_amount?: number;
2803
+ }
2804
+ interface LodgingDatum {
2805
+ /**
2806
+ * Accommodation details for the lodging.
2807
+ */
2808
+ accommodation?: LodgingDatum.Accommodation;
2809
+ /**
2810
+ * Affiliate details if applicable.
2811
+ */
2812
+ affiliate?: LodgingDatum.Affiliate;
2813
+ /**
2814
+ * Booking confirmation number for the lodging.
2815
+ */
2816
+ booking_number?: string;
2817
+ /**
2818
+ * Check-in date.
2819
+ */
2820
+ checkin_at: number;
2821
+ /**
2822
+ * Check-out date.
2823
+ */
2824
+ checkout_at: number;
2825
+ /**
2826
+ * Customer service phone number for the lodging company.
2827
+ */
2828
+ customer_service_phone_number?: string;
2829
+ /**
2830
+ * Whether the lodging is compliant with any hotel fire safety regulations.
2831
+ */
2832
+ fire_safety_act_compliance_indicator?: boolean;
2833
+ /**
2834
+ * List of guests for the lodging.
2835
+ */
2836
+ guests?: Array<LodgingDatum.Guest>;
2837
+ /**
2838
+ * Host details for the lodging.
2839
+ */
2840
+ host?: LodgingDatum.Host;
2841
+ /**
2842
+ * List of insurances for the lodging.
2843
+ */
2844
+ insurances?: Array<LodgingDatum.Insurance>;
2845
+ /**
2846
+ * Whether the renter is a no-show.
2847
+ */
2848
+ no_show_indicator?: boolean;
2849
+ /**
2850
+ * Renter ID number for the lodging.
2851
+ */
2852
+ renter_id_number?: string;
2853
+ /**
2854
+ * Renter name for the lodging.
2855
+ */
2856
+ renter_name?: string;
2857
+ /**
2858
+ * Total details for the lodging.
2859
+ */
2860
+ total: LodgingDatum.Total;
2861
+ }
2862
+ interface Subscription {
2863
+ /**
2864
+ * Affiliate details for this purchase.
2865
+ */
2866
+ affiliate?: Subscription.Affiliate;
2867
+ /**
2868
+ * Info whether the subscription will be auto renewed upon expiry.
2869
+ */
2870
+ auto_renewal?: boolean;
2871
+ /**
2872
+ * Subscription billing details for this purchase.
2873
+ */
2874
+ billing_interval?: Subscription.BillingInterval;
2875
+ /**
2876
+ * Subscription end time. Measured in seconds since the Unix epoch.
2877
+ */
2878
+ ends_at?: number;
2879
+ /**
2880
+ * Name of the product on subscription. e.g. Apple Music Subscription
2881
+ */
2882
+ name: string;
2883
+ /**
2884
+ * Subscription start time. Measured in seconds since the Unix epoch.
2885
+ */
2886
+ starts_at?: number;
2887
+ }
2888
+ namespace CarRental {
2889
+ interface Affiliate {
2890
+ /**
2891
+ * The name of the affiliate that originated the purchase.
2892
+ */
2893
+ name: string;
2894
+ }
2895
+ interface Delivery {
2896
+ /**
2897
+ * The delivery method for the payment
2898
+ */
2899
+ mode?: Delivery.Mode;
2900
+ /**
2901
+ * Details of the recipient.
2902
+ */
2903
+ recipient?: Delivery.Recipient;
2904
+ }
2905
+ interface Distance {
2906
+ /**
2907
+ * Distance traveled.
2908
+ */
2909
+ amount?: number;
2910
+ /**
2911
+ * Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
2912
+ */
2913
+ unit?: Distance.Unit;
2914
+ }
2915
+ interface Driver {
2916
+ /**
2917
+ * Driver's identification number.
2918
+ */
2919
+ driver_identification_number?: string;
2920
+ /**
2921
+ * Driver's tax number.
2922
+ */
2923
+ driver_tax_number?: string;
2924
+ /**
2925
+ * Full name of the person or entity on the car reservation.
2926
+ */
2927
+ name: string;
2928
+ }
2929
+ type ExtraCharge = 'extra_mileage' | 'gas' | 'late_return' | 'one_way_service' | 'parking_violation' | OtherString;
2930
+ type RateInterval = 'day' | 'month' | 'week' | OtherString;
2931
+ namespace Delivery {
2932
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
2933
+ interface Recipient {
2934
+ /**
2935
+ * The email of the recipient the ticket is delivered to.
2936
+ */
2937
+ email?: string;
2938
+ /**
2939
+ * The name of the recipient the ticket is delivered to.
2940
+ */
2941
+ name?: string;
2942
+ /**
2943
+ * The phone number of the recipient the ticket is delivered to.
2944
+ */
2945
+ phone?: string;
2946
+ }
2947
+ }
2948
+ namespace Distance {
2949
+ type Unit = 'kilometers' | 'miles' | OtherString;
2950
+ }
2951
+ }
2952
+ namespace CarRentalDatum {
2953
+ interface Affiliate {
2954
+ /**
2955
+ * Affiliate partner code.
2956
+ */
2957
+ code?: string;
2958
+ /**
2959
+ * Name of affiliate partner.
2960
+ */
2961
+ name?: string;
2962
+ }
2963
+ interface Distance {
2964
+ /**
2965
+ * Distance traveled.
2966
+ */
2967
+ amount: number;
2968
+ /**
2969
+ * Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
2970
+ */
2971
+ unit: Distance.Unit;
2972
+ }
2973
+ interface Driver {
2974
+ /**
2975
+ * Driver's date of birth.
2976
+ */
2977
+ date_of_birth?: Driver.DateOfBirth;
2978
+ /**
2979
+ * Driver's identification number.
2980
+ */
2981
+ driver_identification_number?: string;
2982
+ /**
2983
+ * Driver's tax number.
2984
+ */
2985
+ driver_tax_number?: string;
2986
+ /**
2987
+ * Driver's full name.
2988
+ */
2989
+ name: string;
2990
+ }
2991
+ interface DropOff {
2992
+ /**
2993
+ * Address of the rental location.
2994
+ */
2995
+ address: DropOff.Address;
2996
+ /**
2997
+ * Location name.
2998
+ */
2999
+ location_name?: string;
3000
+ /**
3001
+ * Timestamp for the location.
3002
+ */
3003
+ time: number;
3004
+ }
3005
+ interface Insurance {
3006
+ /**
3007
+ * Amount of the insurance coverage in cents.
3008
+ */
3009
+ amount: number;
3010
+ /**
3011
+ * Currency of the insurance amount.
3012
+ */
3013
+ currency?: string;
3014
+ /**
3015
+ * Name of the insurance company.
3016
+ */
3017
+ insurance_company_name?: string;
3018
+ /**
3019
+ * Type of insurance coverage.
3020
+ */
3021
+ insurance_type: Insurance.InsuranceType;
3022
+ }
3023
+ interface Pickup {
3024
+ /**
3025
+ * Address of the rental location.
3026
+ */
3027
+ address: Pickup.Address;
3028
+ /**
3029
+ * Location name.
3030
+ */
3031
+ location_name?: string;
3032
+ /**
3033
+ * Timestamp for the location.
3034
+ */
3035
+ time: number;
3036
+ }
3037
+ interface Total {
3038
+ /**
3039
+ * Total amount in cents.
3040
+ */
3041
+ amount: number;
3042
+ /**
3043
+ * Currency of the amount.
3044
+ */
3045
+ currency?: string;
3046
+ /**
3047
+ * Discount details for the rental.
3048
+ */
3049
+ discounts?: Total.Discounts;
3050
+ /**
3051
+ * Additional charges for the rental.
3052
+ */
3053
+ extra_charges?: Array<Total.ExtraCharge>;
3054
+ /**
3055
+ * Rate per unit for the rental.
3056
+ */
3057
+ rate_per_unit?: number;
3058
+ /**
3059
+ * Unit of measurement for the rate.
3060
+ */
3061
+ rate_unit?: Total.RateUnit;
3062
+ /**
3063
+ * Tax breakdown for the rental.
3064
+ */
3065
+ tax?: Total.Tax;
3066
+ }
3067
+ interface Vehicle {
3068
+ /**
3069
+ * Make of the rental vehicle.
3070
+ */
3071
+ make?: string;
3072
+ /**
3073
+ * Model of the rental vehicle.
3074
+ */
3075
+ model?: string;
3076
+ /**
3077
+ * Odometer reading at the time of rental.
3078
+ */
3079
+ odometer?: number;
3080
+ /**
3081
+ * Type of the rental vehicle.
3082
+ */
3083
+ type?: Vehicle.Type;
3084
+ /**
3085
+ * Class of the rental vehicle.
3086
+ */
3087
+ vehicle_class?: Vehicle.VehicleClass;
3088
+ /**
3089
+ * Vehicle identification number (VIN).
3090
+ */
3091
+ vehicle_identification_number?: string;
3092
+ }
3093
+ namespace Distance {
3094
+ type Unit = 'kilometers' | 'miles' | OtherString;
3095
+ }
3096
+ namespace Driver {
3097
+ interface DateOfBirth {
3098
+ /**
3099
+ * Day of birth (1-31).
3100
+ */
3101
+ day: number;
3102
+ /**
3103
+ * Month of birth (1-12).
3104
+ */
3105
+ month: number;
3106
+ /**
3107
+ * Year of birth (must be greater than 1900).
3108
+ */
3109
+ year: number;
3110
+ }
3111
+ }
3112
+ namespace DropOff {
3113
+ interface Address {
3114
+ /**
3115
+ * City, district, suburb, town, or village.
3116
+ */
3117
+ city: string;
3118
+ /**
3119
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3120
+ */
3121
+ country: string;
3122
+ /**
3123
+ * Address line 1, such as the street, PO Box, or company name.
3124
+ */
3125
+ line1: string;
3126
+ /**
3127
+ * Address line 2, such as the apartment, suite, unit, or building.
3128
+ */
3129
+ line2?: string;
3130
+ /**
3131
+ * ZIP or postal code.
3132
+ */
3133
+ postal_code: string;
3134
+ /**
3135
+ * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3136
+ */
3137
+ state?: string;
3138
+ }
3139
+ }
3140
+ namespace Insurance {
3141
+ type InsuranceType = 'liability_supplement' | 'loss_damage_waiver' | 'other' | 'partial_damage_waiver' | 'personal_accident' | 'personal_effects' | OtherString;
3142
+ }
3143
+ namespace Pickup {
3144
+ interface Address {
3145
+ /**
3146
+ * City, district, suburb, town, or village.
3147
+ */
3148
+ city: string;
3149
+ /**
3150
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3151
+ */
3152
+ country: string;
3153
+ /**
3154
+ * Address line 1, such as the street, PO Box, or company name.
3155
+ */
3156
+ line1: string;
3157
+ /**
3158
+ * Address line 2, such as the apartment, suite, unit, or building.
3159
+ */
3160
+ line2?: string;
3161
+ /**
3162
+ * ZIP or postal code.
3163
+ */
3164
+ postal_code: string;
3165
+ /**
3166
+ * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3167
+ */
3168
+ state?: string;
3169
+ }
3170
+ }
3171
+ namespace Total {
3172
+ interface Discounts {
3173
+ /**
3174
+ * Corporate client discount code.
3175
+ */
3176
+ corporate_client_code?: string;
3177
+ /**
3178
+ * Coupon code applied to the rental.
3179
+ */
3180
+ coupon?: string;
3181
+ /**
3182
+ * Maximum number of free miles or kilometers included.
3183
+ */
3184
+ maximum_free_miles_or_kilometers?: number;
3185
+ }
3186
+ interface ExtraCharge {
3187
+ /**
3188
+ * Amount of the extra charge in cents.
3189
+ */
3190
+ amount: number;
3191
+ /**
3192
+ * Type of extra charge.
3193
+ */
3194
+ type: ExtraCharge.Type;
3195
+ }
3196
+ type RateUnit = 'days' | 'kilometers' | 'miles' | 'months' | 'weeks' | OtherString;
3197
+ interface Tax {
3198
+ /**
3199
+ * Indicates if the transaction is tax exempt.
3200
+ */
3201
+ tax_exempt_indicator?: boolean;
3202
+ /**
3203
+ * Array of tax details.
3204
+ */
3205
+ tax_items?: Array<Tax.TaxItem>;
3206
+ }
3207
+ namespace ExtraCharge {
3208
+ type Type = 'extra_mileage' | 'gas' | 'gps' | 'late_charge' | 'one_way_drop_off' | 'other' | 'parking' | 'phone' | 'regular_mileage' | 'towing' | OtherString;
3209
+ }
3210
+ namespace Tax {
3211
+ interface TaxItem {
3212
+ /**
3213
+ * Tax amount.
3214
+ */
3215
+ amount?: number;
3216
+ /**
3217
+ * Tax rate applied.
3218
+ */
3219
+ rate?: number;
3220
+ /**
3221
+ * Type of tax applied.
3222
+ */
3223
+ type?: string;
3224
+ }
3225
+ }
3226
+ }
3227
+ namespace Vehicle {
3228
+ type Type = 'cargo_van' | 'compact' | 'economy' | 'exotic' | 'exotic_suv' | 'fifteen_passenger_van' | 'four_wheel_drive' | 'full_size' | 'intermediate' | 'large_suv' | 'large_truck' | 'luxury' | 'medium_suv' | 'midsize' | 'mini' | 'minivan' | 'miscellaneous' | 'moped' | 'moving_van' | 'premium' | 'regular' | 'small_medium_truck' | 'small_suv' | 'special' | 'standard' | 'stretch' | 'subcompact' | 'taxi' | 'twelve_foot_truck' | 'twelve_passenger_van' | 'twenty_foot_truck' | 'twenty_four_foot_truck' | 'twenty_six_foot_truck' | 'unique' | OtherString;
3229
+ type VehicleClass = 'business' | 'economy' | 'first_class' | 'premium_economy' | OtherString;
3230
+ }
3231
+ }
3232
+ namespace EventDetails {
3233
+ interface Affiliate {
3234
+ /**
3235
+ * The name of the affiliate that originated the purchase.
3236
+ */
3237
+ name: string;
3238
+ }
3239
+ interface Delivery {
3240
+ /**
3241
+ * The delivery method for the payment
3242
+ */
3243
+ mode?: Delivery.Mode;
3244
+ /**
3245
+ * Details of the recipient.
3246
+ */
3247
+ recipient?: Delivery.Recipient;
3248
+ }
3249
+ namespace Delivery {
3250
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
3251
+ interface Recipient {
3252
+ /**
3253
+ * The email of the recipient the ticket is delivered to.
3254
+ */
3255
+ email?: string;
3256
+ /**
3257
+ * The name of the recipient the ticket is delivered to.
3258
+ */
3259
+ name?: string;
3260
+ /**
3261
+ * The phone number of the recipient the ticket is delivered to.
3262
+ */
3263
+ phone?: string;
3264
+ }
3265
+ }
3266
+ }
3267
+ namespace Flight {
3268
+ interface Affiliate {
3269
+ /**
3270
+ * The name of the affiliate that originated the purchase.
3271
+ */
3272
+ name: string;
3273
+ }
3274
+ interface Delivery {
3275
+ /**
3276
+ * The delivery method for the payment
3277
+ */
3278
+ mode?: Delivery.Mode;
3279
+ /**
3280
+ * Details of the recipient.
3281
+ */
3282
+ recipient?: Delivery.Recipient;
3283
+ }
3284
+ interface Passenger {
3285
+ /**
3286
+ * Full name of the person or entity on the flight reservation.
3287
+ */
3288
+ name: string;
3289
+ }
3290
+ interface Segment {
3291
+ /**
3292
+ * The flight segment amount.
3293
+ */
3294
+ amount?: number;
3295
+ /**
3296
+ * The International Air Transport Association (IATA) airport code for the arrival airport.
3297
+ */
3298
+ arrival_airport?: string;
3299
+ /**
3300
+ * The arrival time for the flight segment. Measured in seconds since the Unix epoch.
3301
+ */
3302
+ arrives_at?: number;
3303
+ /**
3304
+ * The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
3305
+ */
3306
+ carrier?: string;
3307
+ /**
3308
+ * The departure time for the flight segment. Measured in seconds since the Unix epoch.
3309
+ */
3310
+ departs_at: number;
3311
+ /**
3312
+ * The International Air Transport Association (IATA) airport code for the departure airport.
3313
+ */
3314
+ departure_airport?: string;
3315
+ /**
3316
+ * The flight number associated with the segment
3317
+ */
3318
+ flight_number?: string;
3319
+ /**
3320
+ * The fare class for the segment.
3321
+ */
3322
+ service_class?: Segment.ServiceClass;
3323
+ }
3324
+ namespace Delivery {
3325
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
3326
+ interface Recipient {
3327
+ /**
3328
+ * The email of the recipient the ticket is delivered to.
3329
+ */
3330
+ email?: string;
3331
+ /**
3332
+ * The name of the recipient the ticket is delivered to.
3333
+ */
3334
+ name?: string;
3335
+ /**
3336
+ * The phone number of the recipient the ticket is delivered to.
3337
+ */
3338
+ phone?: string;
3339
+ }
3340
+ }
3341
+ namespace Segment {
3342
+ type ServiceClass = 'business' | 'economy' | 'first' | 'premium_economy' | OtherString;
3343
+ }
3344
+ }
3345
+ namespace FlightDatum {
3346
+ interface Affiliate {
3347
+ /**
3348
+ * Affiliate partner code.
3349
+ */
3350
+ code?: string;
3351
+ /**
3352
+ * Name of affiliate partner.
3353
+ */
3354
+ name?: string;
3355
+ /**
3356
+ * Code provided by the company to a travel agent authorizing ticket issuance.
3357
+ */
3358
+ travel_authorization_code?: string;
3359
+ }
3360
+ interface Insurance {
3361
+ /**
3362
+ * Insurance cost.
3363
+ */
3364
+ amount: number;
3365
+ /**
3366
+ * Insurance currency.
3367
+ */
3368
+ currency?: string;
3369
+ /**
3370
+ * Insurance company name.
3371
+ */
3372
+ insurance_company_name?: string;
3373
+ /**
3374
+ * Type of insurance.
3375
+ */
3376
+ insurance_type: Insurance.InsuranceType;
3377
+ }
3378
+ interface Passenger {
3379
+ /**
3380
+ * Passenger's full name.
3381
+ */
3382
+ name: string;
3383
+ }
3384
+ interface Segment {
3385
+ /**
3386
+ * Segment fare amount.
3387
+ */
3388
+ amount?: number;
3389
+ /**
3390
+ * Arrival details.
3391
+ */
3392
+ arrival: Segment.Arrival;
3393
+ /**
3394
+ * Airline carrier code.
3395
+ */
3396
+ carrier_code: string;
3397
+ /**
3398
+ * Carrier name.
3399
+ */
3400
+ carrier_name?: string;
3401
+ /**
3402
+ * Segment currency.
3403
+ */
3404
+ currency?: string;
3405
+ /**
3406
+ * Departure details.
3407
+ */
3408
+ departure: Segment.Departure;
3409
+ /**
3410
+ * Exchange ticket number.
3411
+ */
3412
+ exchange_ticket_number?: string;
3413
+ /**
3414
+ * Fare basis code.
3415
+ */
3416
+ fare_basis_code?: string;
3417
+ /**
3418
+ * Additional fees.
3419
+ */
3420
+ fees?: number;
3421
+ /**
3422
+ * Flight number.
3423
+ */
3424
+ flight_number?: string;
3425
+ /**
3426
+ * Stopover indicator.
3427
+ */
3428
+ is_stop_over_indicator?: boolean;
3429
+ /**
3430
+ * Refundable ticket indicator.
3431
+ */
3432
+ refundable?: boolean;
3433
+ /**
3434
+ * Class of service.
3435
+ */
3436
+ service_class: Segment.ServiceClass;
3437
+ /**
3438
+ * Tax amount for segment.
3439
+ */
3440
+ tax_amount?: number;
3441
+ /**
3442
+ * Ticket number.
3443
+ */
3444
+ ticket_number?: string;
3445
+ }
3446
+ interface Total {
3447
+ /**
3448
+ * Total flight amount.
3449
+ */
3450
+ amount: number;
3451
+ /**
3452
+ * Reason for credit.
3453
+ */
3454
+ credit_reason?: Total.CreditReason;
3455
+ /**
3456
+ * Total currency.
3457
+ */
3458
+ currency?: string;
3459
+ /**
3460
+ * Discount details.
3461
+ */
3462
+ discounts?: Total.Discounts;
3463
+ /**
3464
+ * Additional charges.
3465
+ */
3466
+ extra_charges?: Array<Total.ExtraCharge>;
3467
+ /**
3468
+ * Tax breakdown.
3469
+ */
3470
+ tax?: Total.Tax;
3471
+ }
3472
+ type TransactionType = 'exchange_ticket' | 'miscellaneous' | 'refund' | 'ticket_purchase' | OtherString;
3473
+ namespace Insurance {
3474
+ type InsuranceType = 'baggage' | 'bankruptcy' | 'cancelation' | 'emergency' | 'medical' | OtherString;
3475
+ }
3476
+ namespace Segment {
3477
+ interface Arrival {
3478
+ /**
3479
+ * Arrival airport IATA code.
3480
+ */
3481
+ airport: string;
3482
+ /**
3483
+ * Arrival date/time.
3484
+ */
3485
+ arrives_at?: number;
3486
+ /**
3487
+ * Arrival city.
3488
+ */
3489
+ city?: string;
3490
+ /**
3491
+ * Arrival country.
3492
+ */
3493
+ country?: string;
3494
+ }
3495
+ interface Departure {
3496
+ /**
3497
+ * Departure airport IATA code.
3498
+ */
3499
+ airport: string;
3500
+ /**
3501
+ * Departure city.
3502
+ */
3503
+ city?: string;
3504
+ /**
3505
+ * Departure country.
3506
+ */
3507
+ country?: string;
3508
+ /**
3509
+ * Departure date/time.
3510
+ */
3511
+ departs_at: number;
3512
+ }
3513
+ type ServiceClass = 'business' | 'economy' | 'first_class' | 'premium_economy' | OtherString;
3514
+ }
3515
+ namespace Total {
3516
+ type CreditReason = 'other' | 'partial_ticket_refund' | 'passenger_transport_ancillary_cancellation' | 'ticket_and_ancillary_cancellation' | 'ticket_cancellation' | OtherString;
3517
+ interface Discounts {
3518
+ /**
3519
+ * Corporate client discount code.
3520
+ */
3521
+ corporate_client_code?: string;
3522
+ }
3523
+ interface ExtraCharge {
3524
+ /**
3525
+ * Amount of additional charges.
3526
+ */
3527
+ amount?: number;
3528
+ /**
3529
+ * Type of additional charges.
3530
+ */
3531
+ type?: ExtraCharge.Type;
3532
+ }
3533
+ interface Tax {
3534
+ /**
3535
+ * Array of tax details.
3536
+ */
3537
+ tax_items?: Array<Tax.TaxItem>;
3538
+ }
3539
+ namespace ExtraCharge {
3540
+ type Type = 'additional_fees' | 'ancillary_service_charges' | 'exchange_fee' | OtherString;
3541
+ }
3542
+ namespace Tax {
3543
+ interface TaxItem {
3544
+ /**
3545
+ * Tax amount.
3546
+ */
3547
+ amount?: number;
3548
+ /**
3549
+ * Tax rate.
3550
+ */
3551
+ rate?: number;
3552
+ /**
3553
+ * Type of tax.
3554
+ */
3555
+ type?: string;
3556
+ }
3557
+ }
3558
+ }
3559
+ }
3560
+ namespace Lodging {
3561
+ interface Affiliate {
3562
+ /**
3563
+ * The name of the affiliate that originated the purchase.
3564
+ */
3565
+ name: string;
3566
+ }
3567
+ type Category = 'hotel' | 'vacation_rental' | OtherString;
3568
+ interface Delivery {
3569
+ /**
3570
+ * The delivery method for the payment
3571
+ */
3572
+ mode?: Delivery.Mode;
3573
+ /**
3574
+ * Details of the recipient.
3575
+ */
3576
+ recipient?: Delivery.Recipient;
3577
+ }
3578
+ type ExtraCharge = 'gift_shop' | 'laundry' | 'mini_bar' | 'other' | 'restaurant' | 'telephone' | OtherString;
3579
+ interface Passenger {
3580
+ /**
3581
+ * Full name of the person or entity on the lodging reservation.
3582
+ */
3583
+ name: string;
3584
+ }
3585
+ namespace Delivery {
3586
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
3587
+ interface Recipient {
3588
+ /**
3589
+ * The email of the recipient the ticket is delivered to.
3590
+ */
3591
+ email?: string;
3592
+ /**
3593
+ * The name of the recipient the ticket is delivered to.
3594
+ */
3595
+ name?: string;
3596
+ /**
3597
+ * The phone number of the recipient the ticket is delivered to.
3598
+ */
3599
+ phone?: string;
3600
+ }
3601
+ }
3602
+ }
3603
+ namespace LodgingDatum {
3604
+ interface Accommodation {
3605
+ /**
3606
+ * Type of accommodation.
3607
+ */
3608
+ accommodation_type?: Accommodation.AccommodationType;
3609
+ /**
3610
+ * Bed type.
3611
+ */
3612
+ bed_type?: string;
3613
+ /**
3614
+ * Daily accommodation rate in cents.
3615
+ */
3616
+ daily_rate_amount?: number;
3617
+ /**
3618
+ * Number of nights.
3619
+ */
3620
+ nights?: number;
3621
+ /**
3622
+ * Number of rooms, cabanas, apartments, and so on.
3623
+ */
3624
+ number_of_rooms?: number;
3625
+ /**
3626
+ * Rate type.
3627
+ */
3628
+ rate_type?: string;
3629
+ /**
3630
+ * Whether smoking is allowed.
3631
+ */
3632
+ smoking_indicator?: boolean;
3633
+ }
3634
+ interface Affiliate {
3635
+ /**
3636
+ * Affiliate partner code.
3637
+ */
3638
+ code?: string;
3639
+ /**
3640
+ * Affiliate partner name.
3641
+ */
3642
+ name?: string;
3643
+ }
3644
+ interface Guest {
3645
+ /**
3646
+ * Guest's full name.
3647
+ */
3648
+ name: string;
3649
+ }
3650
+ interface Host {
3651
+ /**
3652
+ * Address of the host.
3653
+ */
3654
+ address?: Host.Address;
3655
+ /**
3656
+ * Host's country of domicile.
3657
+ */
3658
+ country_of_domicile?: string;
3659
+ /**
3660
+ * Reference number for the host.
3661
+ */
3662
+ host_reference?: string;
3663
+ /**
3664
+ * Type of host.
3665
+ */
3666
+ host_type?: Host.HostType;
3667
+ /**
3668
+ * Name of the lodging property or host.
3669
+ */
3670
+ name?: string;
3671
+ /**
3672
+ * Total number of reservations for the host.
3673
+ */
3674
+ number_of_reservations?: number;
3675
+ /**
3676
+ * Property phone number.
3677
+ */
3678
+ property_phone_number?: string;
3679
+ /**
3680
+ * Host's registration date.
3681
+ */
3682
+ registered_at?: number;
3683
+ }
3684
+ interface Insurance {
3685
+ /**
3686
+ * Price of the insurance coverage in cents.
3687
+ */
3688
+ amount: number;
3689
+ /**
3690
+ * Currency of the insurance amount.
3691
+ */
3692
+ currency?: string;
3693
+ /**
3694
+ * Name of the insurance company.
3695
+ */
3696
+ insurance_company_name?: string;
3697
+ /**
3698
+ * Type of insurance coverage.
3699
+ */
3700
+ insurance_type: Insurance.InsuranceType;
3701
+ }
3702
+ interface Total {
3703
+ /**
3704
+ * Total price of the lodging reservation in cents.
3705
+ */
3706
+ amount: number;
3707
+ /**
3708
+ * Cash advances in cents.
3709
+ */
3710
+ cash_advances?: number;
3711
+ /**
3712
+ * Currency of the total amount.
3713
+ */
3714
+ currency?: string;
3715
+ /**
3716
+ * Discount details for the lodging.
3717
+ */
3718
+ discounts?: Total.Discounts;
3719
+ /**
3720
+ * Additional charges for the lodging.
3721
+ */
3722
+ extra_charges?: Array<Total.ExtraCharge>;
3723
+ /**
3724
+ * Prepaid amount in cents.
3725
+ */
3726
+ prepaid_amount?: number;
3727
+ /**
3728
+ * Tax breakdown for the lodging reservation.
3729
+ */
3730
+ tax?: Total.Tax;
3731
+ }
3732
+ namespace Accommodation {
3733
+ type AccommodationType = 'apartment' | 'cabana' | 'house' | 'penthouse' | 'room' | 'standard' | 'suite' | 'villa' | OtherString;
3734
+ }
3735
+ namespace Host {
3736
+ interface Address {
3737
+ /**
3738
+ * City, district, suburb, town, or village.
3739
+ */
3740
+ city: string;
3741
+ /**
3742
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3743
+ */
3744
+ country: string;
3745
+ /**
3746
+ * Address line 1, such as the street, PO Box, or company name.
3747
+ */
3748
+ line1: string;
3749
+ /**
3750
+ * Address line 2, such as the apartment, suite, unit, or building.
3751
+ */
3752
+ line2?: string;
3753
+ /**
3754
+ * ZIP or postal code.
3755
+ */
3756
+ postal_code: string;
3757
+ /**
3758
+ * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
3759
+ */
3760
+ state?: string;
3761
+ }
3762
+ type HostType = 'hostel' | 'hotel' | 'owner' | 'rental_agency' | OtherString;
3763
+ }
3764
+ namespace Insurance {
3765
+ type InsuranceType = 'bankruptcy' | 'cancelation' | 'emergency' | 'medical' | OtherString;
3766
+ }
3767
+ namespace Total {
3768
+ interface Discounts {
3769
+ /**
3770
+ * Corporate client discount code.
3771
+ */
3772
+ corporate_client_code?: string;
3773
+ /**
3774
+ * Coupon code.
3775
+ */
3776
+ coupon?: string;
3777
+ }
3778
+ interface ExtraCharge {
3779
+ /**
3780
+ * Amount of the extra charge in cents.
3781
+ */
3782
+ amount?: number;
3783
+ /**
3784
+ * Type of extra charge.
3785
+ */
3786
+ type?: ExtraCharge.Type;
3787
+ }
3788
+ interface Tax {
3789
+ /**
3790
+ * Indicates whether the transaction is tax exempt.
3791
+ */
3792
+ tax_exempt_indicator?: boolean;
3793
+ /**
3794
+ * Tax details.
3795
+ */
3796
+ tax_items?: Array<Tax.TaxItem>;
3797
+ }
3798
+ namespace ExtraCharge {
3799
+ type Type = 'gift_shop' | 'laundry' | 'mini_bar' | 'other' | 'phone' | 'restaurant' | OtherString;
3800
+ }
3801
+ namespace Tax {
3802
+ interface TaxItem {
3803
+ /**
3804
+ * Tax amount in cents.
3805
+ */
3806
+ amount?: number;
3807
+ /**
3808
+ * Tax rate.
3809
+ */
3810
+ rate?: number;
3811
+ /**
3812
+ * Type of tax applied.
3813
+ */
3814
+ type?: string;
3815
+ }
3816
+ }
3817
+ }
3818
+ }
3819
+ namespace Subscription {
3820
+ interface Affiliate {
3821
+ /**
3822
+ * The name of the affiliate that originated the purchase.
3823
+ */
3824
+ name: string;
3825
+ }
3826
+ interface BillingInterval {
3827
+ /**
3828
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3829
+ */
3830
+ count: number;
3831
+ /**
3832
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3833
+ */
3834
+ interval: BillingInterval.Interval;
3835
+ }
3836
+ namespace BillingInterval {
3837
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
3838
+ }
3839
+ }
3840
+ }
3841
+ }
3842
+ export interface ChargeListParams extends PaginationParams {
3843
+ /**
3844
+ * Only return charges that were created during the given date interval.
3845
+ */
3846
+ created?: RangeQueryParam | number;
3847
+ /**
3848
+ * Only return charges for the customer specified by this customer ID.
3849
+ */
3850
+ customer?: string;
3851
+ /**
3852
+ * Specifies which fields in the response should be expanded.
3853
+ */
3854
+ expand?: Array<string>;
3855
+ /**
3856
+ * Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID.
3857
+ */
3858
+ payment_intent?: string;
3859
+ /**
3860
+ * Only return charges for this transfer group, limited to 100.
3861
+ */
3862
+ transfer_group?: string;
3863
+ }
3864
+ export interface ChargeCaptureParams {
3865
+ /**
3866
+ * The amount to capture, which must be less than or equal to the original amount.
3867
+ */
3868
+ amount?: number;
3869
+ /**
3870
+ * An application fee to add on to this charge.
3871
+ */
3872
+ application_fee?: number;
3873
+ /**
3874
+ * An application fee amount to add on to this charge, which must be less than or equal to the original amount.
3875
+ */
3876
+ application_fee_amount?: number;
3877
+ /**
3878
+ * Specifies which fields in the response should be expanded.
3879
+ */
3880
+ expand?: Array<string>;
3881
+ /**
3882
+ * Provides industry-specific information about the charge.
3883
+ */
3884
+ payment_details?: ChargeCaptureParams.PaymentDetails;
3885
+ /**
3886
+ * 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 are only sent for payments in live mode.
3887
+ */
3888
+ receipt_email?: string;
3889
+ /**
3890
+ * For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
3891
+ *
3892
+ * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
3893
+ */
3894
+ statement_descriptor?: string;
3895
+ /**
3896
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
3897
+ */
3898
+ statement_descriptor_suffix?: string;
3899
+ /**
3900
+ * An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
3901
+ */
3902
+ transfer_data?: ChargeCaptureParams.TransferData;
3903
+ /**
3904
+ * A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.
3905
+ */
3906
+ transfer_group?: string;
3907
+ }
3908
+ export declare namespace ChargeCaptureParams {
3909
+ interface PaymentDetails {
3910
+ /**
3911
+ * Car rental details for this PaymentIntent.
3912
+ */
3913
+ car_rental?: PaymentDetails.CarRental;
3914
+ /**
3915
+ * Car rental data for this PaymentIntent.
3916
+ */
3917
+ car_rental_data?: Emptyable<Array<PaymentDetails.CarRentalDatum>>;
3918
+ /**
3919
+ * A unique value to identify the customer. This field is available only for card payments.
3920
+ *
3921
+ * This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
3922
+ */
3923
+ customer_reference?: Emptyable<string>;
3924
+ /**
3925
+ * Event details for this PaymentIntent
3926
+ */
3927
+ event_details?: PaymentDetails.EventDetails;
3928
+ /**
3929
+ * Flight reservation details for this PaymentIntent
3930
+ */
3931
+ flight?: PaymentDetails.Flight;
3932
+ /**
3933
+ * Flight data for this PaymentIntent.
3934
+ */
3935
+ flight_data?: Emptyable<Array<PaymentDetails.FlightDatum>>;
3936
+ /**
3937
+ * Lodging reservation details for this PaymentIntent
3938
+ */
3939
+ lodging?: PaymentDetails.Lodging;
3940
+ /**
3941
+ * Lodging data for this PaymentIntent.
3942
+ */
3943
+ lodging_data?: Emptyable<Array<PaymentDetails.LodgingDatum>>;
3944
+ /**
3945
+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
3946
+ *
3947
+ * 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.
3948
+ */
3949
+ order_reference?: Emptyable<string>;
3950
+ /**
3951
+ * Subscription details for this PaymentIntent
3952
+ */
3953
+ subscription?: PaymentDetails.Subscription;
3954
+ }
3955
+ interface TransferData {
3956
+ /**
3957
+ * The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
3958
+ */
3959
+ amount?: number;
3960
+ }
3961
+ namespace PaymentDetails {
3962
+ interface CarRental {
3963
+ /**
3964
+ * Affiliate details for this purchase.
3965
+ */
3966
+ affiliate?: CarRental.Affiliate;
3967
+ /**
3968
+ * The booking number associated with the car rental.
3969
+ */
3970
+ booking_number: string;
3971
+ /**
3972
+ * Class code of the car.
3973
+ */
3974
+ car_class_code?: string;
3975
+ /**
3976
+ * Make of the car.
3977
+ */
3978
+ car_make?: string;
3979
+ /**
3980
+ * Model of the car.
3981
+ */
3982
+ car_model?: string;
3983
+ /**
3984
+ * The name of the rental car company.
3985
+ */
3986
+ company?: string;
3987
+ /**
3988
+ * The customer service phone number of the car rental company.
3989
+ */
3990
+ customer_service_phone_number?: string;
3991
+ /**
3992
+ * Number of days the car is being rented.
3993
+ */
3994
+ days_rented: number;
3995
+ /**
3996
+ * Delivery details for this purchase.
3997
+ */
3998
+ delivery?: CarRental.Delivery;
3999
+ /**
4000
+ * The details of the distance traveled during the rental period.
4001
+ */
4002
+ distance?: CarRental.Distance;
4003
+ /**
4004
+ * The details of the passengers in the travel reservation
4005
+ */
4006
+ drivers?: Array<CarRental.Driver>;
4007
+ /**
4008
+ * List of additional charges being billed.
4009
+ */
4010
+ extra_charges?: Array<CarRental.ExtraCharge>;
4011
+ /**
4012
+ * Indicates if the customer did not keep nor cancel their booking.
4013
+ */
4014
+ no_show?: boolean;
4015
+ /**
4016
+ * Car pick-up address.
4017
+ */
4018
+ pickup_address?: AddressParam;
4019
+ /**
4020
+ * Car pick-up time. Measured in seconds since the Unix epoch.
4021
+ */
4022
+ pickup_at: number;
4023
+ /**
4024
+ * Name of the pickup location.
4025
+ */
4026
+ pickup_location_name?: string;
4027
+ /**
4028
+ * Rental rate.
4029
+ */
4030
+ rate_amount?: number;
4031
+ /**
4032
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
4033
+ */
4034
+ rate_interval?: CarRental.RateInterval;
4035
+ /**
4036
+ * The name of the person or entity renting the car.
4037
+ */
4038
+ renter_name?: string;
4039
+ /**
4040
+ * Car return address.
4041
+ */
4042
+ return_address?: AddressParam;
4043
+ /**
4044
+ * Car return time. Measured in seconds since the Unix epoch.
4045
+ */
4046
+ return_at: number;
4047
+ /**
4048
+ * Name of the return location.
4049
+ */
4050
+ return_location_name?: string;
4051
+ /**
4052
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
4053
+ */
4054
+ tax_exempt?: boolean;
4055
+ /**
4056
+ * The vehicle identification number.
4057
+ */
4058
+ vehicle_identification_number?: string;
4059
+ }
4060
+ interface CarRentalDatum {
4061
+ /**
4062
+ * Affiliate (such as travel agency) details for the rental.
4063
+ */
4064
+ affiliate?: CarRentalDatum.Affiliate;
4065
+ /**
4066
+ * Booking confirmation number for the car rental.
4067
+ */
4068
+ booking_number?: string;
4069
+ /**
4070
+ * Name of the car rental company.
4071
+ */
4072
+ carrier_name?: string;
4073
+ /**
4074
+ * Customer service phone number for the car rental company.
4075
+ */
4076
+ customer_service_phone_number?: string;
4077
+ /**
4078
+ * Number of days the car is being rented.
4079
+ */
4080
+ days_rented?: number;
4081
+ /**
4082
+ * Distance details for the rental.
4083
+ */
4084
+ distance?: CarRentalDatum.Distance;
4085
+ /**
4086
+ * List of drivers for the rental.
4087
+ */
4088
+ drivers?: Array<CarRentalDatum.Driver>;
4089
+ /**
4090
+ * Drop-off location details.
4091
+ */
4092
+ drop_off: CarRentalDatum.DropOff;
4093
+ /**
4094
+ * Insurance details for the rental.
4095
+ */
4096
+ insurances?: Array<CarRentalDatum.Insurance>;
4097
+ /**
4098
+ * Indicates if the customer was a no-show.
4099
+ */
4100
+ no_show_indicator?: boolean;
4101
+ /**
4102
+ * Pickup location details.
4103
+ */
4104
+ pickup: CarRentalDatum.Pickup;
4105
+ /**
4106
+ * Name of the person renting the vehicle.
4107
+ */
4108
+ renter_name?: string;
4109
+ /**
4110
+ * Total cost breakdown for the rental.
4111
+ */
4112
+ total: CarRentalDatum.Total;
4113
+ /**
4114
+ * Vehicle details for the rental.
4115
+ */
4116
+ vehicle?: CarRentalDatum.Vehicle;
4117
+ }
4118
+ interface EventDetails {
4119
+ /**
4120
+ * Indicates if the tickets are digitally checked when entering the venue.
4121
+ */
4122
+ access_controlled_venue?: boolean;
4123
+ /**
4124
+ * The event location's address.
4125
+ */
4126
+ address?: AddressParam;
4127
+ /**
4128
+ * Affiliate details for this purchase.
4129
+ */
4130
+ affiliate?: EventDetails.Affiliate;
4131
+ /**
4132
+ * The name of the company
4133
+ */
4134
+ company?: string;
4135
+ /**
4136
+ * Delivery details for this purchase.
4137
+ */
4138
+ delivery?: EventDetails.Delivery;
4139
+ /**
4140
+ * Event end time. Measured in seconds since the Unix epoch.
4141
+ */
4142
+ ends_at?: number;
4143
+ /**
4144
+ * Type of the event entertainment (concert, sports event etc)
4145
+ */
4146
+ genre?: string;
4147
+ /**
4148
+ * The name of the event.
4149
+ */
4150
+ name: string;
4151
+ /**
4152
+ * Event start time. Measured in seconds since the Unix epoch.
4153
+ */
4154
+ starts_at?: number;
4155
+ }
4156
+ interface Flight {
4157
+ /**
4158
+ * Affiliate details for this purchase.
4159
+ */
4160
+ affiliate?: Flight.Affiliate;
4161
+ /**
4162
+ * The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
4163
+ */
4164
+ agency_number?: string;
4165
+ /**
4166
+ * The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
4167
+ */
4168
+ carrier?: string;
4169
+ /**
4170
+ * Delivery details for this purchase.
4171
+ */
4172
+ delivery?: Flight.Delivery;
4173
+ /**
4174
+ * The name of the person or entity on the reservation.
4175
+ */
4176
+ passenger_name?: string;
4177
+ /**
4178
+ * The details of the passengers in the travel reservation.
4179
+ */
4180
+ passengers?: Array<Flight.Passenger>;
4181
+ /**
4182
+ * The individual flight segments associated with the trip.
4183
+ */
4184
+ segments: Array<Flight.Segment>;
4185
+ /**
4186
+ * The ticket number associated with the travel reservation.
4187
+ */
4188
+ ticket_number?: string;
4189
+ }
4190
+ interface FlightDatum {
4191
+ /**
4192
+ * Affiliate details if applicable.
4193
+ */
4194
+ affiliate?: FlightDatum.Affiliate;
4195
+ /**
4196
+ * Reservation reference.
4197
+ */
4198
+ booking_number?: string;
4199
+ /**
4200
+ * Computerized reservation system used to make the reservation and purchase the ticket.
4201
+ */
4202
+ computerized_reservation_system?: string;
4203
+ /**
4204
+ * Ticket restrictions.
4205
+ */
4206
+ endorsements_and_restrictions?: string;
4207
+ /**
4208
+ * List of insurances.
4209
+ */
4210
+ insurances?: Array<FlightDatum.Insurance>;
4211
+ /**
4212
+ * List of passengers.
4213
+ */
4214
+ passengers?: Array<FlightDatum.Passenger>;
4215
+ /**
4216
+ * List of flight segments.
4217
+ */
4218
+ segments: Array<FlightDatum.Segment>;
4219
+ /**
4220
+ * Electronic ticket indicator.
4221
+ */
4222
+ ticket_electronically_issued_indicator?: boolean;
4223
+ /**
4224
+ * Total cost breakdown.
4225
+ */
4226
+ total: FlightDatum.Total;
4227
+ /**
4228
+ * Type of flight transaction.
4229
+ */
4230
+ transaction_type?: FlightDatum.TransactionType;
4231
+ }
4232
+ interface Lodging {
4233
+ /**
4234
+ * The lodging location's address.
4235
+ */
4236
+ address?: AddressParam;
4237
+ /**
4238
+ * The number of adults on the booking
4239
+ */
4240
+ adults?: number;
4241
+ /**
4242
+ * Affiliate details for this purchase.
4243
+ */
4244
+ affiliate?: Lodging.Affiliate;
4245
+ /**
4246
+ * The booking number associated with the lodging reservation.
4247
+ */
4248
+ booking_number?: string;
4249
+ /**
4250
+ * The lodging category
4251
+ */
4252
+ category?: Lodging.Category;
4253
+ /**
4254
+ * Lodging check-in time. Measured in seconds since the Unix epoch.
4255
+ */
4256
+ checkin_at: number;
4257
+ /**
4258
+ * Lodging check-out time. Measured in seconds since the Unix epoch.
4259
+ */
4260
+ checkout_at: number;
4261
+ /**
4262
+ * The customer service phone number of the lodging company.
4263
+ */
4264
+ customer_service_phone_number?: string;
4265
+ /**
4266
+ * The daily lodging room rate.
4267
+ */
4268
+ daily_room_rate_amount?: number;
4269
+ /**
4270
+ * Delivery details for this purchase.
4271
+ */
4272
+ delivery?: Lodging.Delivery;
4273
+ /**
4274
+ * List of additional charges being billed.
4275
+ */
4276
+ extra_charges?: Array<Lodging.ExtraCharge>;
4277
+ /**
4278
+ * Indicates whether the lodging location is compliant with the Fire Safety Act.
4279
+ */
4280
+ fire_safety_act_compliance?: boolean;
4281
+ /**
4282
+ * The name of the lodging location.
4283
+ */
4284
+ name?: string;
4285
+ /**
4286
+ * Indicates if the customer did not keep their booking while failing to cancel the reservation.
4287
+ */
4288
+ no_show?: boolean;
4289
+ /**
4290
+ * The number of rooms on the booking
4291
+ */
4292
+ number_of_rooms?: number;
4293
+ /**
4294
+ * The details of the passengers in the travel reservation
4295
+ */
4296
+ passengers?: Array<Lodging.Passenger>;
4297
+ /**
4298
+ * The phone number of the lodging location.
4299
+ */
4300
+ property_phone_number?: string;
4301
+ /**
4302
+ * The room class for this purchase.
4303
+ */
4304
+ room_class?: string;
4305
+ /**
4306
+ * The number of room nights
4307
+ */
4308
+ room_nights?: number;
4309
+ /**
4310
+ * The total tax amount associating with the room reservation.
4311
+ */
4312
+ total_room_tax_amount?: number;
4313
+ /**
4314
+ * The total tax amount
4315
+ */
4316
+ total_tax_amount?: number;
4317
+ }
4318
+ interface LodgingDatum {
4319
+ /**
4320
+ * Accommodation details for the lodging.
4321
+ */
4322
+ accommodation?: LodgingDatum.Accommodation;
4323
+ /**
4324
+ * Affiliate details if applicable.
4325
+ */
4326
+ affiliate?: LodgingDatum.Affiliate;
4327
+ /**
4328
+ * Booking confirmation number for the lodging.
4329
+ */
4330
+ booking_number?: string;
4331
+ /**
4332
+ * Check-in date.
4333
+ */
4334
+ checkin_at: number;
4335
+ /**
4336
+ * Check-out date.
4337
+ */
4338
+ checkout_at: number;
4339
+ /**
4340
+ * Customer service phone number for the lodging company.
4341
+ */
4342
+ customer_service_phone_number?: string;
4343
+ /**
4344
+ * Whether the lodging is compliant with any hotel fire safety regulations.
4345
+ */
4346
+ fire_safety_act_compliance_indicator?: boolean;
4347
+ /**
4348
+ * List of guests for the lodging.
4349
+ */
4350
+ guests?: Array<LodgingDatum.Guest>;
4351
+ /**
4352
+ * Host details for the lodging.
4353
+ */
4354
+ host?: LodgingDatum.Host;
4355
+ /**
4356
+ * List of insurances for the lodging.
4357
+ */
4358
+ insurances?: Array<LodgingDatum.Insurance>;
4359
+ /**
4360
+ * Whether the renter is a no-show.
4361
+ */
4362
+ no_show_indicator?: boolean;
4363
+ /**
4364
+ * Renter ID number for the lodging.
4365
+ */
4366
+ renter_id_number?: string;
4367
+ /**
4368
+ * Renter name for the lodging.
4369
+ */
4370
+ renter_name?: string;
4371
+ /**
4372
+ * Total details for the lodging.
4373
+ */
4374
+ total: LodgingDatum.Total;
4375
+ }
4376
+ interface Subscription {
4377
+ /**
4378
+ * Affiliate details for this purchase.
4379
+ */
4380
+ affiliate?: Subscription.Affiliate;
4381
+ /**
4382
+ * Info whether the subscription will be auto renewed upon expiry.
4383
+ */
4384
+ auto_renewal?: boolean;
4385
+ /**
4386
+ * Subscription billing details for this purchase.
4387
+ */
4388
+ billing_interval?: Subscription.BillingInterval;
4389
+ /**
4390
+ * Subscription end time. Measured in seconds since the Unix epoch.
4391
+ */
4392
+ ends_at?: number;
4393
+ /**
4394
+ * Name of the product on subscription. e.g. Apple Music Subscription
4395
+ */
4396
+ name: string;
4397
+ /**
4398
+ * Subscription start time. Measured in seconds since the Unix epoch.
4399
+ */
4400
+ starts_at?: number;
4401
+ }
4402
+ namespace CarRental {
4403
+ interface Affiliate {
4404
+ /**
4405
+ * The name of the affiliate that originated the purchase.
4406
+ */
4407
+ name: string;
4408
+ }
4409
+ interface Delivery {
4410
+ /**
4411
+ * The delivery method for the payment
4412
+ */
4413
+ mode?: Delivery.Mode;
4414
+ /**
4415
+ * Details of the recipient.
4416
+ */
4417
+ recipient?: Delivery.Recipient;
4418
+ }
4419
+ interface Distance {
4420
+ /**
4421
+ * Distance traveled.
4422
+ */
4423
+ amount?: number;
4424
+ /**
4425
+ * Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
4426
+ */
4427
+ unit?: Distance.Unit;
4428
+ }
4429
+ interface Driver {
4430
+ /**
4431
+ * Driver's identification number.
4432
+ */
4433
+ driver_identification_number?: string;
4434
+ /**
4435
+ * Driver's tax number.
4436
+ */
4437
+ driver_tax_number?: string;
4438
+ /**
4439
+ * Full name of the person or entity on the car reservation.
4440
+ */
4441
+ name: string;
4442
+ }
4443
+ type ExtraCharge = 'extra_mileage' | 'gas' | 'late_return' | 'one_way_service' | 'parking_violation' | OtherString;
4444
+ type RateInterval = 'day' | 'month' | 'week' | OtherString;
4445
+ namespace Delivery {
4446
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
4447
+ interface Recipient {
4448
+ /**
4449
+ * The email of the recipient the ticket is delivered to.
4450
+ */
4451
+ email?: string;
4452
+ /**
4453
+ * The name of the recipient the ticket is delivered to.
4454
+ */
4455
+ name?: string;
4456
+ /**
4457
+ * The phone number of the recipient the ticket is delivered to.
4458
+ */
4459
+ phone?: string;
4460
+ }
4461
+ }
4462
+ namespace Distance {
4463
+ type Unit = 'kilometers' | 'miles' | OtherString;
4464
+ }
4465
+ }
4466
+ namespace CarRentalDatum {
4467
+ interface Affiliate {
4468
+ /**
4469
+ * Affiliate partner code.
4470
+ */
4471
+ code?: string;
4472
+ /**
4473
+ * Name of affiliate partner.
4474
+ */
4475
+ name?: string;
4476
+ }
4477
+ interface Distance {
4478
+ /**
4479
+ * Distance traveled.
4480
+ */
4481
+ amount: number;
4482
+ /**
4483
+ * Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
4484
+ */
4485
+ unit: Distance.Unit;
4486
+ }
4487
+ interface Driver {
4488
+ /**
4489
+ * Driver's date of birth.
4490
+ */
4491
+ date_of_birth?: Driver.DateOfBirth;
4492
+ /**
4493
+ * Driver's identification number.
4494
+ */
4495
+ driver_identification_number?: string;
4496
+ /**
4497
+ * Driver's tax number.
4498
+ */
4499
+ driver_tax_number?: string;
4500
+ /**
4501
+ * Driver's full name.
4502
+ */
4503
+ name: string;
4504
+ }
4505
+ interface DropOff {
4506
+ /**
4507
+ * Address of the rental location.
4508
+ */
4509
+ address: DropOff.Address;
4510
+ /**
4511
+ * Location name.
4512
+ */
4513
+ location_name?: string;
4514
+ /**
4515
+ * Timestamp for the location.
4516
+ */
4517
+ time: number;
4518
+ }
4519
+ interface Insurance {
4520
+ /**
4521
+ * Amount of the insurance coverage in cents.
4522
+ */
4523
+ amount: number;
4524
+ /**
4525
+ * Currency of the insurance amount.
4526
+ */
4527
+ currency?: string;
4528
+ /**
4529
+ * Name of the insurance company.
4530
+ */
4531
+ insurance_company_name?: string;
4532
+ /**
4533
+ * Type of insurance coverage.
4534
+ */
4535
+ insurance_type: Insurance.InsuranceType;
4536
+ }
4537
+ interface Pickup {
4538
+ /**
4539
+ * Address of the rental location.
4540
+ */
4541
+ address: Pickup.Address;
4542
+ /**
4543
+ * Location name.
4544
+ */
4545
+ location_name?: string;
4546
+ /**
4547
+ * Timestamp for the location.
4548
+ */
4549
+ time: number;
4550
+ }
4551
+ interface Total {
4552
+ /**
4553
+ * Total amount in cents.
4554
+ */
4555
+ amount: number;
4556
+ /**
4557
+ * Currency of the amount.
4558
+ */
4559
+ currency?: string;
4560
+ /**
4561
+ * Discount details for the rental.
4562
+ */
4563
+ discounts?: Total.Discounts;
4564
+ /**
4565
+ * Additional charges for the rental.
4566
+ */
4567
+ extra_charges?: Array<Total.ExtraCharge>;
4568
+ /**
4569
+ * Rate per unit for the rental.
4570
+ */
4571
+ rate_per_unit?: number;
4572
+ /**
4573
+ * Unit of measurement for the rate.
4574
+ */
4575
+ rate_unit?: Total.RateUnit;
4576
+ /**
4577
+ * Tax breakdown for the rental.
4578
+ */
4579
+ tax?: Total.Tax;
4580
+ }
4581
+ interface Vehicle {
4582
+ /**
4583
+ * Make of the rental vehicle.
4584
+ */
4585
+ make?: string;
4586
+ /**
4587
+ * Model of the rental vehicle.
4588
+ */
4589
+ model?: string;
4590
+ /**
4591
+ * Odometer reading at the time of rental.
4592
+ */
4593
+ odometer?: number;
4594
+ /**
4595
+ * Type of the rental vehicle.
4596
+ */
4597
+ type?: Vehicle.Type;
4598
+ /**
4599
+ * Class of the rental vehicle.
4600
+ */
4601
+ vehicle_class?: Vehicle.VehicleClass;
4602
+ /**
4603
+ * Vehicle identification number (VIN).
4604
+ */
4605
+ vehicle_identification_number?: string;
4606
+ }
4607
+ namespace Distance {
4608
+ type Unit = 'kilometers' | 'miles' | OtherString;
4609
+ }
4610
+ namespace Driver {
4611
+ interface DateOfBirth {
4612
+ /**
4613
+ * Day of birth (1-31).
4614
+ */
4615
+ day: number;
4616
+ /**
4617
+ * Month of birth (1-12).
4618
+ */
4619
+ month: number;
4620
+ /**
4621
+ * Year of birth (must be greater than 1900).
4622
+ */
4623
+ year: number;
4624
+ }
4625
+ }
4626
+ namespace DropOff {
4627
+ interface Address {
4628
+ /**
4629
+ * City, district, suburb, town, or village.
4630
+ */
4631
+ city: string;
4632
+ /**
4633
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
4634
+ */
4635
+ country: string;
4636
+ /**
4637
+ * Address line 1, such as the street, PO Box, or company name.
4638
+ */
4639
+ line1: string;
4640
+ /**
4641
+ * Address line 2, such as the apartment, suite, unit, or building.
4642
+ */
4643
+ line2?: string;
4644
+ /**
4645
+ * ZIP or postal code.
4646
+ */
4647
+ postal_code: string;
4648
+ /**
4649
+ * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
4650
+ */
4651
+ state?: string;
4652
+ }
4653
+ }
4654
+ namespace Insurance {
4655
+ type InsuranceType = 'liability_supplement' | 'loss_damage_waiver' | 'other' | 'partial_damage_waiver' | 'personal_accident' | 'personal_effects' | OtherString;
4656
+ }
4657
+ namespace Pickup {
4658
+ interface Address {
4659
+ /**
4660
+ * City, district, suburb, town, or village.
4661
+ */
4662
+ city: string;
4663
+ /**
4664
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
4665
+ */
4666
+ country: string;
4667
+ /**
4668
+ * Address line 1, such as the street, PO Box, or company name.
4669
+ */
4670
+ line1: string;
4671
+ /**
4672
+ * Address line 2, such as the apartment, suite, unit, or building.
4673
+ */
4674
+ line2?: string;
4675
+ /**
4676
+ * ZIP or postal code.
4677
+ */
4678
+ postal_code: string;
4679
+ /**
4680
+ * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
4681
+ */
4682
+ state?: string;
4683
+ }
4684
+ }
4685
+ namespace Total {
4686
+ interface Discounts {
4687
+ /**
4688
+ * Corporate client discount code.
4689
+ */
4690
+ corporate_client_code?: string;
4691
+ /**
4692
+ * Coupon code applied to the rental.
4693
+ */
4694
+ coupon?: string;
4695
+ /**
4696
+ * Maximum number of free miles or kilometers included.
4697
+ */
4698
+ maximum_free_miles_or_kilometers?: number;
4699
+ }
4700
+ interface ExtraCharge {
4701
+ /**
4702
+ * Amount of the extra charge in cents.
4703
+ */
4704
+ amount: number;
4705
+ /**
4706
+ * Type of extra charge.
4707
+ */
4708
+ type: ExtraCharge.Type;
4709
+ }
4710
+ type RateUnit = 'days' | 'kilometers' | 'miles' | 'months' | 'weeks' | OtherString;
4711
+ interface Tax {
4712
+ /**
4713
+ * Indicates if the transaction is tax exempt.
4714
+ */
4715
+ tax_exempt_indicator?: boolean;
4716
+ /**
4717
+ * Array of tax details.
4718
+ */
4719
+ tax_items?: Array<Tax.TaxItem>;
4720
+ }
4721
+ namespace ExtraCharge {
4722
+ type Type = 'extra_mileage' | 'gas' | 'gps' | 'late_charge' | 'one_way_drop_off' | 'other' | 'parking' | 'phone' | 'regular_mileage' | 'towing' | OtherString;
4723
+ }
4724
+ namespace Tax {
4725
+ interface TaxItem {
4726
+ /**
4727
+ * Tax amount.
4728
+ */
4729
+ amount?: number;
4730
+ /**
4731
+ * Tax rate applied.
4732
+ */
4733
+ rate?: number;
4734
+ /**
4735
+ * Type of tax applied.
4736
+ */
4737
+ type?: string;
4738
+ }
4739
+ }
4740
+ }
4741
+ namespace Vehicle {
4742
+ type Type = 'cargo_van' | 'compact' | 'economy' | 'exotic' | 'exotic_suv' | 'fifteen_passenger_van' | 'four_wheel_drive' | 'full_size' | 'intermediate' | 'large_suv' | 'large_truck' | 'luxury' | 'medium_suv' | 'midsize' | 'mini' | 'minivan' | 'miscellaneous' | 'moped' | 'moving_van' | 'premium' | 'regular' | 'small_medium_truck' | 'small_suv' | 'special' | 'standard' | 'stretch' | 'subcompact' | 'taxi' | 'twelve_foot_truck' | 'twelve_passenger_van' | 'twenty_foot_truck' | 'twenty_four_foot_truck' | 'twenty_six_foot_truck' | 'unique' | OtherString;
4743
+ type VehicleClass = 'business' | 'economy' | 'first_class' | 'premium_economy' | OtherString;
4744
+ }
4745
+ }
4746
+ namespace EventDetails {
4747
+ interface Affiliate {
4748
+ /**
4749
+ * The name of the affiliate that originated the purchase.
4750
+ */
4751
+ name: string;
4752
+ }
4753
+ interface Delivery {
4754
+ /**
4755
+ * The delivery method for the payment
4756
+ */
4757
+ mode?: Delivery.Mode;
4758
+ /**
4759
+ * Details of the recipient.
4760
+ */
4761
+ recipient?: Delivery.Recipient;
4762
+ }
4763
+ namespace Delivery {
4764
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
4765
+ interface Recipient {
4766
+ /**
4767
+ * The email of the recipient the ticket is delivered to.
4768
+ */
4769
+ email?: string;
4770
+ /**
4771
+ * The name of the recipient the ticket is delivered to.
4772
+ */
4773
+ name?: string;
4774
+ /**
4775
+ * The phone number of the recipient the ticket is delivered to.
4776
+ */
4777
+ phone?: string;
4778
+ }
4779
+ }
4780
+ }
4781
+ namespace Flight {
4782
+ interface Affiliate {
4783
+ /**
4784
+ * The name of the affiliate that originated the purchase.
4785
+ */
4786
+ name: string;
4787
+ }
4788
+ interface Delivery {
4789
+ /**
4790
+ * The delivery method for the payment
4791
+ */
4792
+ mode?: Delivery.Mode;
4793
+ /**
4794
+ * Details of the recipient.
4795
+ */
4796
+ recipient?: Delivery.Recipient;
4797
+ }
4798
+ interface Passenger {
4799
+ /**
4800
+ * Full name of the person or entity on the flight reservation.
4801
+ */
4802
+ name: string;
4803
+ }
4804
+ interface Segment {
4805
+ /**
4806
+ * The flight segment amount.
4807
+ */
4808
+ amount?: number;
4809
+ /**
4810
+ * The International Air Transport Association (IATA) airport code for the arrival airport.
4811
+ */
4812
+ arrival_airport?: string;
4813
+ /**
4814
+ * The arrival time for the flight segment. Measured in seconds since the Unix epoch.
4815
+ */
4816
+ arrives_at?: number;
4817
+ /**
4818
+ * The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
4819
+ */
4820
+ carrier?: string;
4821
+ /**
4822
+ * The departure time for the flight segment. Measured in seconds since the Unix epoch.
4823
+ */
4824
+ departs_at: number;
4825
+ /**
4826
+ * The International Air Transport Association (IATA) airport code for the departure airport.
4827
+ */
4828
+ departure_airport?: string;
4829
+ /**
4830
+ * The flight number associated with the segment
4831
+ */
4832
+ flight_number?: string;
4833
+ /**
4834
+ * The fare class for the segment.
4835
+ */
4836
+ service_class?: Segment.ServiceClass;
4837
+ }
4838
+ namespace Delivery {
4839
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
4840
+ interface Recipient {
4841
+ /**
4842
+ * The email of the recipient the ticket is delivered to.
4843
+ */
4844
+ email?: string;
4845
+ /**
4846
+ * The name of the recipient the ticket is delivered to.
4847
+ */
4848
+ name?: string;
4849
+ /**
4850
+ * The phone number of the recipient the ticket is delivered to.
4851
+ */
4852
+ phone?: string;
4853
+ }
4854
+ }
4855
+ namespace Segment {
4856
+ type ServiceClass = 'business' | 'economy' | 'first' | 'premium_economy' | OtherString;
4857
+ }
4858
+ }
4859
+ namespace FlightDatum {
4860
+ interface Affiliate {
4861
+ /**
4862
+ * Affiliate partner code.
4863
+ */
4864
+ code?: string;
4865
+ /**
4866
+ * Name of affiliate partner.
4867
+ */
4868
+ name?: string;
4869
+ /**
4870
+ * Code provided by the company to a travel agent authorizing ticket issuance.
4871
+ */
4872
+ travel_authorization_code?: string;
4873
+ }
4874
+ interface Insurance {
4875
+ /**
4876
+ * Insurance cost.
4877
+ */
4878
+ amount: number;
4879
+ /**
4880
+ * Insurance currency.
4881
+ */
4882
+ currency?: string;
4883
+ /**
4884
+ * Insurance company name.
4885
+ */
4886
+ insurance_company_name?: string;
4887
+ /**
4888
+ * Type of insurance.
4889
+ */
4890
+ insurance_type: Insurance.InsuranceType;
4891
+ }
4892
+ interface Passenger {
4893
+ /**
4894
+ * Passenger's full name.
4895
+ */
4896
+ name: string;
4897
+ }
4898
+ interface Segment {
4899
+ /**
4900
+ * Segment fare amount.
4901
+ */
4902
+ amount?: number;
4903
+ /**
4904
+ * Arrival details.
4905
+ */
4906
+ arrival: Segment.Arrival;
4907
+ /**
4908
+ * Airline carrier code.
4909
+ */
4910
+ carrier_code: string;
4911
+ /**
4912
+ * Carrier name.
4913
+ */
4914
+ carrier_name?: string;
4915
+ /**
4916
+ * Segment currency.
4917
+ */
4918
+ currency?: string;
4919
+ /**
4920
+ * Departure details.
4921
+ */
4922
+ departure: Segment.Departure;
4923
+ /**
4924
+ * Exchange ticket number.
4925
+ */
4926
+ exchange_ticket_number?: string;
4927
+ /**
4928
+ * Fare basis code.
4929
+ */
4930
+ fare_basis_code?: string;
4931
+ /**
4932
+ * Additional fees.
4933
+ */
4934
+ fees?: number;
4935
+ /**
4936
+ * Flight number.
4937
+ */
4938
+ flight_number?: string;
4939
+ /**
4940
+ * Stopover indicator.
4941
+ */
4942
+ is_stop_over_indicator?: boolean;
4943
+ /**
4944
+ * Refundable ticket indicator.
4945
+ */
4946
+ refundable?: boolean;
4947
+ /**
4948
+ * Class of service.
4949
+ */
4950
+ service_class: Segment.ServiceClass;
4951
+ /**
4952
+ * Tax amount for segment.
4953
+ */
4954
+ tax_amount?: number;
4955
+ /**
4956
+ * Ticket number.
4957
+ */
4958
+ ticket_number?: string;
4959
+ }
4960
+ interface Total {
4961
+ /**
4962
+ * Total flight amount.
4963
+ */
4964
+ amount: number;
4965
+ /**
4966
+ * Reason for credit.
4967
+ */
4968
+ credit_reason?: Total.CreditReason;
4969
+ /**
4970
+ * Total currency.
4971
+ */
4972
+ currency?: string;
4973
+ /**
4974
+ * Discount details.
4975
+ */
4976
+ discounts?: Total.Discounts;
4977
+ /**
4978
+ * Additional charges.
4979
+ */
4980
+ extra_charges?: Array<Total.ExtraCharge>;
4981
+ /**
4982
+ * Tax breakdown.
4983
+ */
4984
+ tax?: Total.Tax;
4985
+ }
4986
+ type TransactionType = 'exchange_ticket' | 'miscellaneous' | 'refund' | 'ticket_purchase' | OtherString;
4987
+ namespace Insurance {
4988
+ type InsuranceType = 'baggage' | 'bankruptcy' | 'cancelation' | 'emergency' | 'medical' | OtherString;
4989
+ }
4990
+ namespace Segment {
4991
+ interface Arrival {
4992
+ /**
4993
+ * Arrival airport IATA code.
4994
+ */
4995
+ airport: string;
4996
+ /**
4997
+ * Arrival date/time.
4998
+ */
4999
+ arrives_at?: number;
5000
+ /**
5001
+ * Arrival city.
5002
+ */
5003
+ city?: string;
5004
+ /**
5005
+ * Arrival country.
5006
+ */
5007
+ country?: string;
5008
+ }
5009
+ interface Departure {
5010
+ /**
5011
+ * Departure airport IATA code.
5012
+ */
5013
+ airport: string;
5014
+ /**
5015
+ * Departure city.
5016
+ */
5017
+ city?: string;
5018
+ /**
5019
+ * Departure country.
5020
+ */
5021
+ country?: string;
5022
+ /**
5023
+ * Departure date/time.
5024
+ */
5025
+ departs_at: number;
5026
+ }
5027
+ type ServiceClass = 'business' | 'economy' | 'first_class' | 'premium_economy' | OtherString;
5028
+ }
5029
+ namespace Total {
5030
+ type CreditReason = 'other' | 'partial_ticket_refund' | 'passenger_transport_ancillary_cancellation' | 'ticket_and_ancillary_cancellation' | 'ticket_cancellation' | OtherString;
5031
+ interface Discounts {
5032
+ /**
5033
+ * Corporate client discount code.
5034
+ */
5035
+ corporate_client_code?: string;
5036
+ }
5037
+ interface ExtraCharge {
5038
+ /**
5039
+ * Amount of additional charges.
5040
+ */
5041
+ amount?: number;
5042
+ /**
5043
+ * Type of additional charges.
5044
+ */
5045
+ type?: ExtraCharge.Type;
5046
+ }
5047
+ interface Tax {
5048
+ /**
5049
+ * Array of tax details.
5050
+ */
5051
+ tax_items?: Array<Tax.TaxItem>;
5052
+ }
5053
+ namespace ExtraCharge {
5054
+ type Type = 'additional_fees' | 'ancillary_service_charges' | 'exchange_fee' | OtherString;
5055
+ }
5056
+ namespace Tax {
5057
+ interface TaxItem {
5058
+ /**
5059
+ * Tax amount.
5060
+ */
5061
+ amount?: number;
5062
+ /**
5063
+ * Tax rate.
5064
+ */
5065
+ rate?: number;
5066
+ /**
5067
+ * Type of tax.
5068
+ */
5069
+ type?: string;
5070
+ }
5071
+ }
5072
+ }
5073
+ }
5074
+ namespace Lodging {
5075
+ interface Affiliate {
5076
+ /**
5077
+ * The name of the affiliate that originated the purchase.
5078
+ */
5079
+ name: string;
5080
+ }
5081
+ type Category = 'hotel' | 'vacation_rental' | OtherString;
5082
+ interface Delivery {
5083
+ /**
5084
+ * The delivery method for the payment
5085
+ */
5086
+ mode?: Delivery.Mode;
5087
+ /**
5088
+ * Details of the recipient.
5089
+ */
5090
+ recipient?: Delivery.Recipient;
5091
+ }
5092
+ type ExtraCharge = 'gift_shop' | 'laundry' | 'mini_bar' | 'other' | 'restaurant' | 'telephone' | OtherString;
5093
+ interface Passenger {
5094
+ /**
5095
+ * Full name of the person or entity on the lodging reservation.
5096
+ */
5097
+ name: string;
5098
+ }
5099
+ namespace Delivery {
5100
+ type Mode = 'email' | 'phone' | 'pickup' | 'post' | OtherString;
5101
+ interface Recipient {
5102
+ /**
5103
+ * The email of the recipient the ticket is delivered to.
5104
+ */
5105
+ email?: string;
5106
+ /**
5107
+ * The name of the recipient the ticket is delivered to.
5108
+ */
5109
+ name?: string;
5110
+ /**
5111
+ * The phone number of the recipient the ticket is delivered to.
5112
+ */
5113
+ phone?: string;
5114
+ }
5115
+ }
5116
+ }
5117
+ namespace LodgingDatum {
5118
+ interface Accommodation {
5119
+ /**
5120
+ * Type of accommodation.
5121
+ */
5122
+ accommodation_type?: Accommodation.AccommodationType;
5123
+ /**
5124
+ * Bed type.
5125
+ */
5126
+ bed_type?: string;
5127
+ /**
5128
+ * Daily accommodation rate in cents.
5129
+ */
5130
+ daily_rate_amount?: number;
5131
+ /**
5132
+ * Number of nights.
5133
+ */
5134
+ nights?: number;
5135
+ /**
5136
+ * Number of rooms, cabanas, apartments, and so on.
5137
+ */
5138
+ number_of_rooms?: number;
5139
+ /**
5140
+ * Rate type.
5141
+ */
5142
+ rate_type?: string;
5143
+ /**
5144
+ * Whether smoking is allowed.
5145
+ */
5146
+ smoking_indicator?: boolean;
5147
+ }
5148
+ interface Affiliate {
5149
+ /**
5150
+ * Affiliate partner code.
5151
+ */
5152
+ code?: string;
5153
+ /**
5154
+ * Affiliate partner name.
5155
+ */
5156
+ name?: string;
5157
+ }
5158
+ interface Guest {
5159
+ /**
5160
+ * Guest's full name.
5161
+ */
5162
+ name: string;
5163
+ }
5164
+ interface Host {
5165
+ /**
5166
+ * Address of the host.
5167
+ */
5168
+ address?: Host.Address;
5169
+ /**
5170
+ * Host's country of domicile.
5171
+ */
5172
+ country_of_domicile?: string;
5173
+ /**
5174
+ * Reference number for the host.
5175
+ */
5176
+ host_reference?: string;
5177
+ /**
5178
+ * Type of host.
5179
+ */
5180
+ host_type?: Host.HostType;
5181
+ /**
5182
+ * Name of the lodging property or host.
5183
+ */
5184
+ name?: string;
5185
+ /**
5186
+ * Total number of reservations for the host.
5187
+ */
5188
+ number_of_reservations?: number;
5189
+ /**
5190
+ * Property phone number.
5191
+ */
5192
+ property_phone_number?: string;
5193
+ /**
5194
+ * Host's registration date.
5195
+ */
5196
+ registered_at?: number;
5197
+ }
5198
+ interface Insurance {
5199
+ /**
5200
+ * Price of the insurance coverage in cents.
5201
+ */
5202
+ amount: number;
5203
+ /**
5204
+ * Currency of the insurance amount.
5205
+ */
5206
+ currency?: string;
5207
+ /**
5208
+ * Name of the insurance company.
5209
+ */
5210
+ insurance_company_name?: string;
5211
+ /**
5212
+ * Type of insurance coverage.
5213
+ */
5214
+ insurance_type: Insurance.InsuranceType;
5215
+ }
5216
+ interface Total {
5217
+ /**
5218
+ * Total price of the lodging reservation in cents.
5219
+ */
5220
+ amount: number;
5221
+ /**
5222
+ * Cash advances in cents.
5223
+ */
5224
+ cash_advances?: number;
5225
+ /**
5226
+ * Currency of the total amount.
5227
+ */
5228
+ currency?: string;
5229
+ /**
5230
+ * Discount details for the lodging.
5231
+ */
5232
+ discounts?: Total.Discounts;
5233
+ /**
5234
+ * Additional charges for the lodging.
5235
+ */
5236
+ extra_charges?: Array<Total.ExtraCharge>;
5237
+ /**
5238
+ * Prepaid amount in cents.
5239
+ */
5240
+ prepaid_amount?: number;
5241
+ /**
5242
+ * Tax breakdown for the lodging reservation.
5243
+ */
5244
+ tax?: Total.Tax;
5245
+ }
5246
+ namespace Accommodation {
5247
+ type AccommodationType = 'apartment' | 'cabana' | 'house' | 'penthouse' | 'room' | 'standard' | 'suite' | 'villa' | OtherString;
5248
+ }
5249
+ namespace Host {
5250
+ interface Address {
5251
+ /**
5252
+ * City, district, suburb, town, or village.
5253
+ */
5254
+ city: string;
5255
+ /**
5256
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
5257
+ */
5258
+ country: string;
5259
+ /**
5260
+ * Address line 1, such as the street, PO Box, or company name.
5261
+ */
5262
+ line1: string;
5263
+ /**
5264
+ * Address line 2, such as the apartment, suite, unit, or building.
5265
+ */
5266
+ line2?: string;
5267
+ /**
5268
+ * ZIP or postal code.
5269
+ */
5270
+ postal_code: string;
5271
+ /**
5272
+ * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
5273
+ */
5274
+ state?: string;
5275
+ }
5276
+ type HostType = 'hostel' | 'hotel' | 'owner' | 'rental_agency' | OtherString;
5277
+ }
5278
+ namespace Insurance {
5279
+ type InsuranceType = 'bankruptcy' | 'cancelation' | 'emergency' | 'medical' | OtherString;
5280
+ }
5281
+ namespace Total {
5282
+ interface Discounts {
5283
+ /**
5284
+ * Corporate client discount code.
5285
+ */
5286
+ corporate_client_code?: string;
5287
+ /**
5288
+ * Coupon code.
5289
+ */
5290
+ coupon?: string;
5291
+ }
5292
+ interface ExtraCharge {
5293
+ /**
5294
+ * Amount of the extra charge in cents.
5295
+ */
5296
+ amount?: number;
5297
+ /**
5298
+ * Type of extra charge.
5299
+ */
5300
+ type?: ExtraCharge.Type;
5301
+ }
5302
+ interface Tax {
5303
+ /**
5304
+ * Indicates whether the transaction is tax exempt.
5305
+ */
5306
+ tax_exempt_indicator?: boolean;
5307
+ /**
5308
+ * Tax details.
5309
+ */
5310
+ tax_items?: Array<Tax.TaxItem>;
5311
+ }
5312
+ namespace ExtraCharge {
5313
+ type Type = 'gift_shop' | 'laundry' | 'mini_bar' | 'other' | 'phone' | 'restaurant' | OtherString;
5314
+ }
5315
+ namespace Tax {
5316
+ interface TaxItem {
5317
+ /**
5318
+ * Tax amount in cents.
5319
+ */
5320
+ amount?: number;
5321
+ /**
5322
+ * Tax rate.
5323
+ */
5324
+ rate?: number;
5325
+ /**
5326
+ * Type of tax applied.
5327
+ */
5328
+ type?: string;
5329
+ }
5330
+ }
5331
+ }
5332
+ }
5333
+ namespace Subscription {
5334
+ interface Affiliate {
5335
+ /**
5336
+ * The name of the affiliate that originated the purchase.
5337
+ */
5338
+ name: string;
5339
+ }
5340
+ interface BillingInterval {
5341
+ /**
5342
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
5343
+ */
5344
+ count: number;
5345
+ /**
5346
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
5347
+ */
5348
+ interval: BillingInterval.Interval;
5349
+ }
5350
+ namespace BillingInterval {
5351
+ type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
5352
+ }
5353
+ }
2347
5354
  }
2348
5355
  }
2349
5356
  export interface ChargeSearchParams {