stripe 18.5.0-beta.2 → 18.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/CHANGELOG.md +33 -1327
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +5 -4
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +1 -107
  6. package/cjs/apiVersion.js +3 -2
  7. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  8. package/cjs/resources/PaymentIntents.js +0 -13
  9. package/cjs/resources/Quotes.js +0 -32
  10. package/cjs/resources/SubscriptionSchedules.js +0 -4
  11. package/cjs/resources.js +32 -126
  12. package/cjs/stripe.core.js +1 -1
  13. package/esm/Error.js +0 -93
  14. package/esm/apiVersion.js +2 -1
  15. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  16. package/esm/resources/PaymentIntents.js +0 -13
  17. package/esm/resources/Quotes.js +0 -32
  18. package/esm/resources/SubscriptionSchedules.js +0 -4
  19. package/esm/resources.js +5 -91
  20. package/esm/stripe.core.js +1 -1
  21. package/package.json +1 -1
  22. package/types/AccountLinksResource.d.ts +1 -5
  23. package/types/AccountSessions.d.ts +45 -45
  24. package/types/AccountSessionsResource.d.ts +51 -252
  25. package/types/Accounts.d.ts +3 -214
  26. package/types/AccountsResource.d.ts +0 -544
  27. package/types/Balance.d.ts +2 -7
  28. package/types/Billing/CreditBalanceSummary.d.ts +0 -5
  29. package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
  30. package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
  31. package/types/Billing/CreditGrants.d.ts +0 -5
  32. package/types/Billing/CreditGrantsResource.d.ts +1 -11
  33. package/types/Billing/Meters.d.ts +1 -1
  34. package/types/Billing/MetersResource.d.ts +1 -1
  35. package/types/BillingPortal/Configurations.d.ts +5 -0
  36. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  37. package/types/BillingPortal/Sessions.d.ts +0 -5
  38. package/types/BillingPortal/SessionsResource.d.ts +4 -12
  39. package/types/Cards.d.ts +0 -5
  40. package/types/CashBalances.d.ts +0 -5
  41. package/types/Charges.d.ts +76 -171
  42. package/types/ChargesResource.d.ts +0 -1406
  43. package/types/Checkout/Sessions.d.ts +9 -313
  44. package/types/Checkout/SessionsResource.d.ts +10 -414
  45. package/types/ConfirmationTokens.d.ts +0 -125
  46. package/types/Coupons.d.ts +0 -33
  47. package/types/CouponsResource.d.ts +0 -21
  48. package/types/CreditNoteLineItems.d.ts +0 -17
  49. package/types/CreditNotes.d.ts +0 -5
  50. package/types/CreditNotesResource.d.ts +3 -8
  51. package/types/CustomerBalanceTransactions.d.ts +0 -2
  52. package/types/CustomerCashBalanceTransactions.d.ts +0 -2
  53. package/types/CustomerSessions.d.ts +0 -5
  54. package/types/CustomerSessionsResource.d.ts +1 -6
  55. package/types/Customers.d.ts +0 -2
  56. package/types/CustomersResource.d.ts +0 -8
  57. package/types/Discounts.d.ts +0 -10
  58. package/types/Disputes.d.ts +7 -31
  59. package/types/Errors.d.ts +2 -81
  60. package/types/EventTypes.d.ts +0 -664
  61. package/types/Events.d.ts +0 -97
  62. package/types/FileLinksResource.d.ts +1 -1
  63. package/types/Files.d.ts +1 -0
  64. package/types/FilesResource.d.ts +3 -1
  65. package/types/FinancialConnections/Accounts.d.ts +1 -36
  66. package/types/FinancialConnections/AccountsResource.d.ts +3 -40
  67. package/types/FinancialConnections/Sessions.d.ts +1 -51
  68. package/types/FinancialConnections/SessionsResource.d.ts +1 -43
  69. package/types/Identity/VerificationSessions.d.ts +0 -5
  70. package/types/Identity/VerificationSessionsResource.d.ts +0 -7
  71. package/types/InvoiceItems.d.ts +0 -10
  72. package/types/InvoiceItemsResource.d.ts +6 -117
  73. package/types/InvoiceLineItems.d.ts +1 -45
  74. package/types/InvoicePayments.d.ts +0 -5
  75. package/types/InvoicePaymentsResource.d.ts +1 -7
  76. package/types/Invoices.d.ts +6 -172
  77. package/types/InvoicesResource.d.ts +61 -1513
  78. package/types/Issuing/CardholdersResource.d.ts +1 -2
  79. package/types/Issuing/CardsResource.d.ts +10 -0
  80. package/types/Issuing/Transactions.d.ts +0 -5
  81. package/types/Issuing/TransactionsResource.d.ts +0 -5
  82. package/types/LineItems.d.ts +0 -49
  83. package/types/Mandates.d.ts +0 -77
  84. package/types/PaymentIntents.d.ts +63 -762
  85. package/types/PaymentIntentsResource.d.ts +5567 -11125
  86. package/types/PaymentLinks.d.ts +0 -6
  87. package/types/PaymentLinksResource.d.ts +1 -13
  88. package/types/PaymentMethodConfigurations.d.ts +0 -180
  89. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  90. package/types/PaymentMethods.d.ts +0 -125
  91. package/types/PaymentMethodsResource.d.ts +2 -167
  92. package/types/Payouts.d.ts +1 -1
  93. package/types/Prices.d.ts +0 -22
  94. package/types/PricesResource.d.ts +0 -22
  95. package/types/PromotionCodes.d.ts +5 -7
  96. package/types/PromotionCodesResource.d.ts +0 -10
  97. package/types/Quotes.d.ts +1 -594
  98. package/types/QuotesResource.d.ts +281 -2626
  99. package/types/Refunds.d.ts +0 -14
  100. package/types/SetupAttempts.d.ts +4 -48
  101. package/types/SetupIntents.d.ts +5 -119
  102. package/types/SetupIntentsResource.d.ts +3 -730
  103. package/types/Sources.d.ts +0 -29
  104. package/types/SubscriptionItems.d.ts +0 -21
  105. package/types/SubscriptionItemsResource.d.ts +0 -109
  106. package/types/SubscriptionSchedules.d.ts +39 -197
  107. package/types/SubscriptionSchedulesResource.d.ts +83 -1199
  108. package/types/Subscriptions.d.ts +1 -135
  109. package/types/SubscriptionsResource.d.ts +97 -449
  110. package/types/TaxIds.d.ts +0 -10
  111. package/types/TaxIdsResource.d.ts +0 -10
  112. package/types/Terminal/Configurations.d.ts +19 -0
  113. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  114. package/types/Terminal/Readers.d.ts +0 -20
  115. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
  116. package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
  117. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  118. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  119. package/types/Transfers.d.ts +0 -5
  120. package/types/TransfersResource.d.ts +0 -5
  121. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  122. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  123. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  124. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  125. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  126. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  127. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  128. package/types/V2/EventTypes.d.ts +4 -964
  129. package/types/WebhookEndpointsResource.d.ts +2 -79
  130. package/types/index.d.ts +2 -147
  131. package/types/lib.d.ts +1 -11
  132. package/types/test/typescriptTest.ts +3 -3
  133. package/cjs/resources/AccountNotices.js +0 -21
  134. package/cjs/resources/BalanceSettings.js +0 -10
  135. package/cjs/resources/Billing/MeterUsage.js +0 -12
  136. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  137. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  138. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  139. package/cjs/resources/ExternalAccounts.js +0 -23
  140. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  141. package/cjs/resources/FxQuotes.js +0 -15
  142. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  143. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  144. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  145. package/cjs/resources/Margins.js +0 -22
  146. package/cjs/resources/Orders.js +0 -24
  147. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  148. package/cjs/resources/PaymentRecords.js +0 -29
  149. package/cjs/resources/Privacy/RedactionJobs.js +0 -42
  150. package/cjs/resources/Tax/Associations.js +0 -9
  151. package/cjs/resources/Tax/Forms.js +0 -20
  152. package/cjs/resources/Terminal/OnboardingLinks.js +0 -12
  153. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  154. package/cjs/resources/V2/Core/AccountLinks.js +0 -9
  155. package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
  156. package/cjs/resources/V2/Core/Accounts.js +0 -25
  157. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
  158. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
  159. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
  160. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
  161. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
  162. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
  163. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
  164. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
  165. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
  166. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
  167. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
  168. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
  169. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
  170. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
  171. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
  172. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
  173. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -25
  174. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
  175. package/esm/resources/AccountNotices.js +0 -18
  176. package/esm/resources/BalanceSettings.js +0 -7
  177. package/esm/resources/Billing/MeterUsage.js +0 -9
  178. package/esm/resources/Capital/FinancingOffers.js +0 -18
  179. package/esm/resources/Capital/FinancingSummary.js +0 -9
  180. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  181. package/esm/resources/ExternalAccounts.js +0 -20
  182. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  183. package/esm/resources/FxQuotes.js +0 -12
  184. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  185. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  186. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  187. package/esm/resources/Margins.js +0 -19
  188. package/esm/resources/Orders.js +0 -21
  189. package/esm/resources/PaymentAttemptRecords.js +0 -14
  190. package/esm/resources/PaymentRecords.js +0 -26
  191. package/esm/resources/Privacy/RedactionJobs.js +0 -39
  192. package/esm/resources/Tax/Associations.js +0 -6
  193. package/esm/resources/Tax/Forms.js +0 -17
  194. package/esm/resources/Terminal/OnboardingLinks.js +0 -9
  195. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  196. package/esm/resources/V2/Core/AccountLinks.js +0 -6
  197. package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
  198. package/esm/resources/V2/Core/Accounts.js +0 -22
  199. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
  200. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
  201. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
  202. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
  203. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
  204. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
  205. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
  206. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
  207. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
  208. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
  209. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
  210. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
  211. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
  212. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
  213. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
  214. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
  215. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -22
  216. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
  217. package/types/AccountNotices.d.ts +0 -113
  218. package/types/AccountNoticesResource.d.ts +0 -98
  219. package/types/BalanceSettings.d.ts +0 -91
  220. package/types/BalanceSettingsResource.d.ts +0 -110
  221. package/types/Billing/MeterUsage.d.ts +0 -32
  222. package/types/Billing/MeterUsageResource.d.ts +0 -685
  223. package/types/Billing/MeterUsageRows.d.ts +0 -49
  224. package/types/Capital/FinancingOffers.d.ts +0 -188
  225. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  226. package/types/Capital/FinancingSummary.d.ts +0 -106
  227. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  228. package/types/Capital/FinancingTransactions.d.ts +0 -135
  229. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  230. package/types/ExternalAccountsResource.d.ts +0 -304
  231. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  232. package/types/FinancialConnections/Institutions.d.ts +0 -98
  233. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  234. package/types/FxQuotes.d.ts +0 -155
  235. package/types/FxQuotesResource.d.ts +0 -130
  236. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  237. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  238. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
  239. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  240. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  241. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  242. package/types/Issuing/Settlements.d.ts +0 -113
  243. package/types/Margins.d.ts +0 -56
  244. package/types/MarginsResource.d.ts +0 -114
  245. package/types/Orders.d.ts +0 -1163
  246. package/types/OrdersResource.d.ts +0 -3139
  247. package/types/PaymentAttemptRecords.d.ts +0 -2166
  248. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  249. package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
  250. package/types/PaymentRecords.d.ts +0 -2159
  251. package/types/PaymentRecordsResource.d.ts +0 -455
  252. package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
  253. package/types/Privacy/RedactionJobs.d.ts +0 -111
  254. package/types/Privacy/RedactionJobsResource.d.ts +0 -230
  255. package/types/QuoteLines.d.ts +0 -634
  256. package/types/QuotePreviewInvoices.d.ts +0 -1734
  257. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -845
  258. package/types/Tax/Associations.d.ts +0 -82
  259. package/types/Tax/AssociationsResource.d.ts +0 -29
  260. package/types/Tax/Forms.d.ts +0 -220
  261. package/types/Tax/FormsResource.d.ts +0 -107
  262. package/types/Terminal/OnboardingLinks.d.ts +0 -57
  263. package/types/Terminal/OnboardingLinksResource.d.ts +0 -62
  264. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  265. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  266. package/types/V2/Core/AccountLinks.d.ts +0 -168
  267. package/types/V2/Core/AccountLinksResource.d.ts +0 -152
  268. package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3780
  269. package/types/V2/Core/Accounts.d.ts +0 -8813
  270. package/types/V2/Core/AccountsResource.d.ts +0 -10626
  271. package/types/V2/Core/Persons.d.ts +0 -1872
  272. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
  273. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
  274. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
  275. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
  276. package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
  277. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
  278. package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
  279. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
  280. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -580
  281. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -326
  282. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
  283. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -289
  284. package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
  285. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
  286. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
  287. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
  288. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
  289. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
  290. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
  291. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
  292. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
  293. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
  294. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
  295. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
  296. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
  297. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
  298. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -262
  299. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
  300. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
  301. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
  302. package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -155
  303. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
  304. package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
  305. package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
  306. package/types/V2/Payments/OffSessionPayments.d.ts +0 -179
  307. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -174
  308. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
@@ -3,469 +3,12 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe.V2 {
5
5
  export type Event =
6
- | Stripe.Events.V2CoreAccountIncludingRequirementsUpdatedEvent
7
- | Stripe.Events.V2CoreAccountLinkReturnedEvent
8
- | Stripe.Events.V2CoreAccountClosedEvent
9
- | Stripe.Events.V2CoreAccountCreatedEvent
10
- | Stripe.Events.V2CoreAccountUpdatedEvent
11
- | Stripe.Events.V2CoreAccountIncludingDefaultsUpdatedEvent
12
- | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
13
- | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
14
- | Stripe.Events.V2CoreAccountIncludingIdentityUpdatedEvent
15
- | Stripe.Events.V2CoreAccountPersonCreatedEvent
16
- | Stripe.Events.V2CoreAccountPersonDeletedEvent
17
- | Stripe.Events.V2CoreAccountPersonUpdatedEvent
18
- | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
19
- | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
20
- | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
21
- | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
22
- | Stripe.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
23
- | Stripe.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEvent
24
- | Stripe.Events.V2MoneyManagementAdjustmentCreatedEvent
25
6
  | Stripe.Events.V1BillingMeterErrorReportTriggeredEvent
26
7
  | Stripe.Events.V1BillingMeterNoMeterFoundEvent
27
- | Stripe.Events.V2MoneyManagementFinancialAccountCreatedEvent
28
- | Stripe.Events.V2MoneyManagementFinancialAccountUpdatedEvent
29
- | Stripe.Events.V2MoneyManagementFinancialAddressActivatedEvent
30
- | Stripe.Events.V2MoneyManagementFinancialAddressFailedEvent
31
- | Stripe.Events.V2MoneyManagementInboundTransferAvailableEvent
32
- | Stripe.Events.V2MoneyManagementInboundTransferBankDebitFailedEvent
33
- | Stripe.Events.V2MoneyManagementInboundTransferBankDebitProcessingEvent
34
- | Stripe.Events.V2MoneyManagementInboundTransferBankDebitQueuedEvent
35
- | Stripe.Events.V2MoneyManagementInboundTransferBankDebitReturnedEvent
36
- | Stripe.Events.V2MoneyManagementInboundTransferBankDebitSucceededEvent
37
- | Stripe.Events.V2CoreEventDestinationPingEvent
38
- | Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent
39
- | Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent
40
- | Stripe.Events.V2PaymentsOffSessionPaymentCanceledEvent
41
- | Stripe.Events.V2PaymentsOffSessionPaymentCreatedEvent
42
- | Stripe.Events.V2PaymentsOffSessionPaymentFailedEvent
43
- | Stripe.Events.V2PaymentsOffSessionPaymentSucceededEvent
44
- | Stripe.Events.V2MoneyManagementOutboundPaymentCanceledEvent
45
- | Stripe.Events.V2MoneyManagementOutboundPaymentCreatedEvent
46
- | Stripe.Events.V2MoneyManagementOutboundPaymentFailedEvent
47
- | Stripe.Events.V2MoneyManagementOutboundPaymentPostedEvent
48
- | Stripe.Events.V2MoneyManagementOutboundPaymentReturnedEvent
49
- | Stripe.Events.V2MoneyManagementOutboundPaymentUpdatedEvent
50
- | Stripe.Events.V2MoneyManagementOutboundTransferCanceledEvent
51
- | Stripe.Events.V2MoneyManagementOutboundTransferCreatedEvent
52
- | Stripe.Events.V2MoneyManagementOutboundTransferFailedEvent
53
- | Stripe.Events.V2MoneyManagementOutboundTransferPostedEvent
54
- | Stripe.Events.V2MoneyManagementOutboundTransferReturnedEvent
55
- | Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEvent
56
- | Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEvent
57
- | Stripe.Events.V2MoneyManagementReceivedCreditAvailableEvent
58
- | Stripe.Events.V2MoneyManagementReceivedCreditFailedEvent
59
- | Stripe.Events.V2MoneyManagementReceivedCreditReturnedEvent
60
- | Stripe.Events.V2MoneyManagementReceivedCreditSucceededEvent
61
- | Stripe.Events.V2MoneyManagementReceivedDebitCanceledEvent
62
- | Stripe.Events.V2MoneyManagementReceivedDebitFailedEvent
63
- | Stripe.Events.V2MoneyManagementReceivedDebitPendingEvent
64
- | Stripe.Events.V2MoneyManagementReceivedDebitSucceededEvent
65
- | Stripe.Events.V2MoneyManagementReceivedDebitUpdatedEvent
66
- | Stripe.Events.V2MoneyManagementTransactionCreatedEvent
67
- | Stripe.Events.V2MoneyManagementTransactionUpdatedEvent;
8
+ | Stripe.Events.V2CoreEventDestinationPingEvent;
68
9
  }
69
10
 
70
11
  namespace Stripe.Events {
71
- /**
72
- * Occurs when an Account's requirements are updated.
73
- */
74
- export interface V2CoreAccountIncludingRequirementsUpdatedEvent
75
- extends V2.EventBase {
76
- type: 'v2.core.account[requirements].updated';
77
- // Object containing the reference to API resource relevant to the event.
78
- related_object: Event.RelatedObject;
79
- // Retrieves the object associated with the event.
80
- fetchRelatedObject(): Promise<V2.Core.Account>;
81
- }
82
-
83
- /**
84
- * Occurs when the generated AccountLink is completed.
85
- */
86
- export interface V2CoreAccountLinkReturnedEvent extends V2.EventBase {
87
- type: 'v2.core.account_link.returned';
88
- // Retrieves data specific to this event.
89
- data: V2CoreAccountLinkReturnedEvent.Data;
90
- }
91
-
92
- namespace V2CoreAccountLinkReturnedEvent {
93
- export interface Data {
94
- /**
95
- * The ID of the v2 account.
96
- */
97
- account_id: string;
98
-
99
- /**
100
- * Configurations on the Account that was onboarded via the account link.
101
- */
102
- configurations: Array<Data.Configuration>;
103
-
104
- /**
105
- * Open Enum. The use case type of the account link that has been completed.
106
- */
107
- use_case: Data.UseCase;
108
- }
109
-
110
- namespace Data {
111
- export type Configuration =
112
- | 'customer'
113
- | 'merchant'
114
- | 'recipient'
115
- | 'storer';
116
-
117
- export type UseCase = 'account_onboarding' | 'account_update';
118
- }
119
- }
120
-
121
- /**
122
- * This event occurs when an account is closed.
123
- */
124
- export interface V2CoreAccountClosedEvent extends V2.EventBase {
125
- type: 'v2.core.account.closed';
126
- // Object containing the reference to API resource relevant to the event.
127
- related_object: Event.RelatedObject;
128
- // Retrieves the object associated with the event.
129
- fetchRelatedObject(): Promise<V2.Core.Account>;
130
- }
131
-
132
- /**
133
- * Occurs when an Account is created.
134
- */
135
- export interface V2CoreAccountCreatedEvent extends V2.EventBase {
136
- type: 'v2.core.account.created';
137
- // Object containing the reference to API resource relevant to the event.
138
- related_object: Event.RelatedObject;
139
- // Retrieves the object associated with the event.
140
- fetchRelatedObject(): Promise<V2.Core.Account>;
141
- }
142
-
143
- /**
144
- * Occurs when an Account is updated.
145
- */
146
- export interface V2CoreAccountUpdatedEvent extends V2.EventBase {
147
- type: 'v2.core.account.updated';
148
- // Object containing the reference to API resource relevant to the event.
149
- related_object: Event.RelatedObject;
150
- // Retrieves the object associated with the event.
151
- fetchRelatedObject(): Promise<V2.Core.Account>;
152
- }
153
-
154
- /**
155
- * This event occurs when account defaults are created or updated.
156
- */
157
- export interface V2CoreAccountIncludingDefaultsUpdatedEvent
158
- extends V2.EventBase {
159
- type: 'v2.core.account[defaults].updated';
160
- // Object containing the reference to API resource relevant to the event.
161
- related_object: Event.RelatedObject;
162
- // Retrieves the object associated with the event.
163
- fetchRelatedObject(): Promise<V2.Core.Account>;
164
- }
165
-
166
- /**
167
- * Occurs when the status of an Account's customer configuration capability is updated.
168
- */
169
- export interface V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
170
- extends V2.EventBase {
171
- type: 'v2.core.account[configuration.customer].capability_status_updated';
172
- // Retrieves data specific to this event.
173
- data: V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.Data;
174
- // Object containing the reference to API resource relevant to the event.
175
- related_object: Event.RelatedObject;
176
- // Retrieves the object associated with the event.
177
- fetchRelatedObject(): Promise<V2.Core.Account>;
178
- }
179
-
180
- namespace V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent {
181
- export interface Data {
182
- /**
183
- * Open Enum. The capability which had its status updated.
184
- */
185
- updated_capability: 'automatic_indirect_tax';
186
- }
187
- }
188
-
189
- /**
190
- * Occurs when an Account's customer configuration is updated.
191
- */
192
- export interface V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
193
- extends V2.EventBase {
194
- type: 'v2.core.account[configuration.customer].updated';
195
- // Object containing the reference to API resource relevant to the event.
196
- related_object: Event.RelatedObject;
197
- // Retrieves the object associated with the event.
198
- fetchRelatedObject(): Promise<V2.Core.Account>;
199
- }
200
-
201
- /**
202
- * Occurs when an Identity is updated.
203
- */
204
- export interface V2CoreAccountIncludingIdentityUpdatedEvent
205
- extends V2.EventBase {
206
- type: 'v2.core.account[identity].updated';
207
- // Object containing the reference to API resource relevant to the event.
208
- related_object: Event.RelatedObject;
209
- // Retrieves the object associated with the event.
210
- fetchRelatedObject(): Promise<V2.Core.Account>;
211
- }
212
-
213
- /**
214
- * Occurs when a Person is created.
215
- */
216
- export interface V2CoreAccountPersonCreatedEvent extends V2.EventBase {
217
- type: 'v2.core.account_person.created';
218
- // Retrieves data specific to this event.
219
- data: V2CoreAccountPersonCreatedEvent.Data;
220
- // Object containing the reference to API resource relevant to the event.
221
- related_object: Event.RelatedObject;
222
- // Retrieves the object associated with the event.
223
- fetchRelatedObject(): Promise<V2.Core.Person>;
224
- }
225
-
226
- namespace V2CoreAccountPersonCreatedEvent {
227
- export interface Data {
228
- /**
229
- * The ID of the v2 account.
230
- */
231
- account_id: string;
232
- }
233
- }
234
-
235
- /**
236
- * Occurs when a Person is deleted.
237
- */
238
- export interface V2CoreAccountPersonDeletedEvent extends V2.EventBase {
239
- type: 'v2.core.account_person.deleted';
240
- // Retrieves data specific to this event.
241
- data: V2CoreAccountPersonDeletedEvent.Data;
242
- // Object containing the reference to API resource relevant to the event.
243
- related_object: Event.RelatedObject;
244
- // Retrieves the object associated with the event.
245
- fetchRelatedObject(): Promise<V2.Core.Person>;
246
- }
247
-
248
- namespace V2CoreAccountPersonDeletedEvent {
249
- export interface Data {
250
- /**
251
- * The ID of the v2 account.
252
- */
253
- account_id: string;
254
- }
255
- }
256
-
257
- /**
258
- * Occurs when a Person is updated.
259
- */
260
- export interface V2CoreAccountPersonUpdatedEvent extends V2.EventBase {
261
- type: 'v2.core.account_person.updated';
262
- // Retrieves data specific to this event.
263
- data: V2CoreAccountPersonUpdatedEvent.Data;
264
- // Object containing the reference to API resource relevant to the event.
265
- related_object: Event.RelatedObject;
266
- // Retrieves the object associated with the event.
267
- fetchRelatedObject(): Promise<V2.Core.Person>;
268
- }
269
-
270
- namespace V2CoreAccountPersonUpdatedEvent {
271
- export interface Data {
272
- /**
273
- * The ID of the v2 account.
274
- */
275
- account_id: string;
276
- }
277
- }
278
-
279
- /**
280
- * Occurs when the status of an Account's merchant configuration capability is updated.
281
- */
282
- export interface V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
283
- extends V2.EventBase {
284
- type: 'v2.core.account[configuration.merchant].capability_status_updated';
285
- // Retrieves data specific to this event.
286
- data: V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.Data;
287
- // Object containing the reference to API resource relevant to the event.
288
- related_object: Event.RelatedObject;
289
- // Retrieves the object associated with the event.
290
- fetchRelatedObject(): Promise<V2.Core.Account>;
291
- }
292
-
293
- namespace V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent {
294
- export interface Data {
295
- /**
296
- * Open Enum. The capability which had its status updated.
297
- */
298
- updated_capability: Data.UpdatedCapability;
299
- }
300
-
301
- namespace Data {
302
- export type UpdatedCapability =
303
- | 'ach_debit_payments'
304
- | 'acss_debit_payments'
305
- | 'affirm_payments'
306
- | 'afterpay_clearpay_payments'
307
- | 'alma_payments'
308
- | 'amazon_pay_payments'
309
- | 'au_becs_debit_payments'
310
- | 'bacs_debit_payments'
311
- | 'bancontact_payments'
312
- | 'blik_payments'
313
- | 'boleto_payments'
314
- | 'card_payments'
315
- | 'cartes_bancaires_payments'
316
- | 'cashapp_payments'
317
- | 'eps_payments'
318
- | 'fpx_payments'
319
- | 'gb_bank_transfer_payments'
320
- | 'grabpay_payments'
321
- | 'ideal_payments'
322
- | 'jcb_payments'
323
- | 'jp_bank_transfer_payments'
324
- | 'kakao_pay_payments'
325
- | 'klarna_payments'
326
- | 'konbini_payments'
327
- | 'kr_card_payments'
328
- | 'link_payments'
329
- | 'mobilepay_payments'
330
- | 'multibanco_payments'
331
- | 'mx_bank_transfer_payments'
332
- | 'naver_pay_payments'
333
- | 'oxxo_payments'
334
- | 'p24_payments'
335
- | 'payco_payments'
336
- | 'paynow_payments'
337
- | 'stripe_balance.payouts'
338
- | 'pay_by_bank_payments'
339
- | 'promptpay_payments'
340
- | 'revolut_pay_payments'
341
- | 'samsung_pay_payments'
342
- | 'sepa_bank_transfer_payments'
343
- | 'sepa_debit_payments'
344
- | 'swish_payments'
345
- | 'twint_payments'
346
- | 'us_bank_transfer_payments'
347
- | 'zip_payments';
348
- }
349
- }
350
-
351
- /**
352
- * Occurs when an Account's merchant configuration is updated.
353
- */
354
- export interface V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
355
- extends V2.EventBase {
356
- type: 'v2.core.account[configuration.merchant].updated';
357
- // Object containing the reference to API resource relevant to the event.
358
- related_object: Event.RelatedObject;
359
- // Retrieves the object associated with the event.
360
- fetchRelatedObject(): Promise<V2.Core.Account>;
361
- }
362
-
363
- /**
364
- * Occurs when the status of an Account's recipient configuration capability is updated.
365
- */
366
- export interface V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
367
- extends V2.EventBase {
368
- type: 'v2.core.account[configuration.recipient].capability_status_updated';
369
- // Retrieves data specific to this event.
370
- data: V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.Data;
371
- // Object containing the reference to API resource relevant to the event.
372
- related_object: Event.RelatedObject;
373
- // Retrieves the object associated with the event.
374
- fetchRelatedObject(): Promise<V2.Core.Account>;
375
- }
376
-
377
- namespace V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent {
378
- export interface Data {
379
- /**
380
- * Open Enum. The capability which had its status updated.
381
- */
382
- updated_capability: Data.UpdatedCapability;
383
- }
384
-
385
- namespace Data {
386
- export type UpdatedCapability =
387
- | 'bank_accounts.local'
388
- | 'bank_accounts.wire'
389
- | 'cards'
390
- | 'stripe_balance.payouts'
391
- | 'stripe_balance.stripe_transfers'
392
- | 'stripe.transfers';
393
- }
394
- }
395
-
396
- /**
397
- * Occurs when a Recipient's configuration is updated.
398
- */
399
- export interface V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
400
- extends V2.EventBase {
401
- type: 'v2.core.account[configuration.recipient].updated';
402
- // Object containing the reference to API resource relevant to the event.
403
- related_object: Event.RelatedObject;
404
- // Retrieves the object associated with the event.
405
- fetchRelatedObject(): Promise<V2.Core.Account>;
406
- }
407
-
408
- /**
409
- * Occurs when the status of an Account's storer configuration capability is updated.
410
- */
411
- export interface V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
412
- extends V2.EventBase {
413
- type: 'v2.core.account[configuration.storer].capability_status_updated';
414
- // Retrieves data specific to this event.
415
- data: V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.Data;
416
- // Object containing the reference to API resource relevant to the event.
417
- related_object: Event.RelatedObject;
418
- // Retrieves the object associated with the event.
419
- fetchRelatedObject(): Promise<V2.Core.Account>;
420
- }
421
-
422
- namespace V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent {
423
- export interface Data {
424
- /**
425
- * Open Enum. The capability which had its status updated.
426
- */
427
- updated_capability: Data.UpdatedCapability;
428
- }
429
-
430
- namespace Data {
431
- export type UpdatedCapability =
432
- | 'financial_addressses.bank_accounts'
433
- | 'holds_currencies.eur'
434
- | 'holds_currencies.gbp'
435
- | 'holds_currencies.usd'
436
- | 'inbound_transfers.bank_accounts'
437
- | 'outbound_payments.bank_accounts'
438
- | 'outbound_payments.cards'
439
- | 'outbound_payments.financial_accounts'
440
- | 'outbound_transfers.bank_accounts'
441
- | 'outbound_transfers.financial_accounts';
442
- }
443
- }
444
-
445
- /**
446
- * Occurs when a Storer's configuration is updated.
447
- */
448
- export interface V2CoreAccountIncludingConfigurationStorerUpdatedEvent
449
- extends V2.EventBase {
450
- type: 'v2.core.account[configuration.storer].updated';
451
- // Object containing the reference to API resource relevant to the event.
452
- related_object: Event.RelatedObject;
453
- // Retrieves the object associated with the event.
454
- fetchRelatedObject(): Promise<V2.Core.Account>;
455
- }
456
-
457
- /**
458
- * Occurs when an Adjustment is created.
459
- */
460
- export interface V2MoneyManagementAdjustmentCreatedEvent
461
- extends V2.EventBase {
462
- type: 'v2.money_management.adjustment.created';
463
- // Object containing the reference to API resource relevant to the event.
464
- related_object: Event.RelatedObject;
465
- // Retrieves the object associated with the event.
466
- fetchRelatedObject(): Promise<V2.MoneyManagement.Adjustment>;
467
- }
468
-
469
12
  /**
470
13
  * Occurs when a Meter has invalid async usage events.
471
14
  */
@@ -672,517 +215,14 @@ declare module 'stripe' {
672
215
  }
673
216
 
674
217
  /**
675
- * Occurs when a FinancialAccount is created.
676
- */
677
- export interface V2MoneyManagementFinancialAccountCreatedEvent
678
- extends V2.EventBase {
679
- type: 'v2.money_management.financial_account.created';
680
- // Object containing the reference to API resource relevant to the event.
681
- related_object: Event.RelatedObject;
682
- // Retrieves the object associated with the event.
683
- fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
684
- }
685
-
686
- /**
687
- * Occurs when a FinancialAccount is updated.
688
- */
689
- export interface V2MoneyManagementFinancialAccountUpdatedEvent
690
- extends V2.EventBase {
691
- type: 'v2.money_management.financial_account.updated';
692
- // Object containing the reference to API resource relevant to the event.
693
- related_object: Event.RelatedObject;
694
- // Retrieves the object associated with the event.
695
- fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
696
- }
697
-
698
- /**
699
- * Occurs when a FinancialAddress is activated and is ready to receive funds.
700
- */
701
- export interface V2MoneyManagementFinancialAddressActivatedEvent
702
- extends V2.EventBase {
703
- type: 'v2.money_management.financial_address.activated';
704
- // Object containing the reference to API resource relevant to the event.
705
- related_object: Event.RelatedObject;
706
- // Retrieves the object associated with the event.
707
- fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
708
- }
709
-
710
- /**
711
- * Occurs when a FinancialAddress fails to activate and can not receive funds.
712
- */
713
- export interface V2MoneyManagementFinancialAddressFailedEvent
714
- extends V2.EventBase {
715
- type: 'v2.money_management.financial_address.failed';
716
- // Object containing the reference to API resource relevant to the event.
717
- related_object: Event.RelatedObject;
718
- // Retrieves the object associated with the event.
719
- fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
720
- }
721
-
722
- /**
723
- * Occurs when an InboundTransfer's funds are made available.
218
+ * A ping event used to test the connection to an EventDestination.
724
219
  */
725
- export interface V2MoneyManagementInboundTransferAvailableEvent
726
- extends V2.EventBase {
727
- type: 'v2.money_management.inbound_transfer.available';
728
- // Retrieves data specific to this event.
729
- data: V2MoneyManagementInboundTransferAvailableEvent.Data;
730
- // Object containing the reference to API resource relevant to the event.
731
- related_object: Event.RelatedObject;
732
- // Retrieves the object associated with the event.
733
- fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
734
- }
735
-
736
- namespace V2MoneyManagementInboundTransferAvailableEvent {
737
- export interface Data {
738
- /**
739
- * The transaction ID of the received credit.
740
- */
741
- transaction_id: string;
742
- }
743
- }
744
-
745
- /**
746
- * Occurs when an InboundTransfer fails.
747
- */
748
- export interface V2MoneyManagementInboundTransferBankDebitFailedEvent
749
- extends V2.EventBase {
750
- type: 'v2.money_management.inbound_transfer.bank_debit_failed';
751
- // Object containing the reference to API resource relevant to the event.
752
- related_object: Event.RelatedObject;
753
- // Retrieves the object associated with the event.
754
- fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
755
- }
756
-
757
- /**
758
- * Occurs when an InboundTransfer starts processing.
759
- */
760
- export interface V2MoneyManagementInboundTransferBankDebitProcessingEvent
761
- extends V2.EventBase {
762
- type: 'v2.money_management.inbound_transfer.bank_debit_processing';
763
- // Object containing the reference to API resource relevant to the event.
764
- related_object: Event.RelatedObject;
765
- // Retrieves the object associated with the event.
766
- fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
767
- }
768
-
769
- /**
770
- * Occurs when an InboundTransfer is queued.
771
- */
772
- export interface V2MoneyManagementInboundTransferBankDebitQueuedEvent
773
- extends V2.EventBase {
774
- type: 'v2.money_management.inbound_transfer.bank_debit_queued';
775
- // Object containing the reference to API resource relevant to the event.
776
- related_object: Event.RelatedObject;
777
- // Retrieves the object associated with the event.
778
- fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
779
- }
780
-
781
- /**
782
- * Occurs when an InboundTransfer is returned.
783
- */
784
- export interface V2MoneyManagementInboundTransferBankDebitReturnedEvent
785
- extends V2.EventBase {
786
- type: 'v2.money_management.inbound_transfer.bank_debit_returned';
787
- // Object containing the reference to API resource relevant to the event.
788
- related_object: Event.RelatedObject;
789
- // Retrieves the object associated with the event.
790
- fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
791
- }
792
-
793
- /**
794
- * Occurs when an InboundTransfer succeeds.
795
- */
796
- export interface V2MoneyManagementInboundTransferBankDebitSucceededEvent
797
- extends V2.EventBase {
798
- type: 'v2.money_management.inbound_transfer.bank_debit_succeeded';
799
- // Object containing the reference to API resource relevant to the event.
800
- related_object: Event.RelatedObject;
801
- // Retrieves the object associated with the event.
802
- fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
803
- }
804
-
805
- /**
806
- * A ping event used to test the connection to an EventDestination.
807
- */
808
- export interface V2CoreEventDestinationPingEvent extends V2.EventBase {
809
- type: 'v2.core.event_destination.ping';
220
+ export interface V2CoreEventDestinationPingEvent extends V2.EventBase {
221
+ type: 'v2.core.event_destination.ping';
810
222
  // Object containing the reference to API resource relevant to the event.
811
223
  related_object: Event.RelatedObject;
812
224
  // Retrieves the object associated with the event.
813
225
  fetchRelatedObject(): Promise<V2.EventDestination>;
814
226
  }
815
-
816
- /**
817
- * Sent after a failed authorization if there are still retries available on the OffSessionPayment.
818
- */
819
- export interface V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent
820
- extends V2.EventBase {
821
- type: 'v2.payments.off_session_payment.authorization_attempt_failed';
822
- // Object containing the reference to API resource relevant to the event.
823
- related_object: Event.RelatedObject;
824
- // Retrieves the object associated with the event.
825
- fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
826
- }
827
-
828
- /**
829
- * Sent when our internal scheduling system kicks off an attempt at authorization, whether it's a
830
- * retry or an initial authorization.
831
- */
832
- export interface V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent
833
- extends V2.EventBase {
834
- type: 'v2.payments.off_session_payment.authorization_attempt_started';
835
- // Object containing the reference to API resource relevant to the event.
836
- related_object: Event.RelatedObject;
837
- // Retrieves the object associated with the event.
838
- fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
839
- }
840
-
841
- /**
842
- * Sent immediately following a user's call to the Off-Session Payments cancel endpoint.
843
- */
844
- export interface V2PaymentsOffSessionPaymentCanceledEvent
845
- extends V2.EventBase {
846
- type: 'v2.payments.off_session_payment.canceled';
847
- // Object containing the reference to API resource relevant to the event.
848
- related_object: Event.RelatedObject;
849
- // Retrieves the object associated with the event.
850
- fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
851
- }
852
-
853
- /**
854
- * Sent immediately following a user's call to the Off-Session Payments create endpoint.
855
- */
856
- export interface V2PaymentsOffSessionPaymentCreatedEvent
857
- extends V2.EventBase {
858
- type: 'v2.payments.off_session_payment.created';
859
- // Object containing the reference to API resource relevant to the event.
860
- related_object: Event.RelatedObject;
861
- // Retrieves the object associated with the event.
862
- fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
863
- }
864
-
865
- /**
866
- * Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
867
- */
868
- export interface V2PaymentsOffSessionPaymentFailedEvent
869
- extends V2.EventBase {
870
- type: 'v2.payments.off_session_payment.failed';
871
- // Object containing the reference to API resource relevant to the event.
872
- related_object: Event.RelatedObject;
873
- // Retrieves the object associated with the event.
874
- fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
875
- }
876
-
877
- /**
878
- * Sent immediately after a successful authorization.
879
- */
880
- export interface V2PaymentsOffSessionPaymentSucceededEvent
881
- extends V2.EventBase {
882
- type: 'v2.payments.off_session_payment.succeeded';
883
- // Object containing the reference to API resource relevant to the event.
884
- related_object: Event.RelatedObject;
885
- // Retrieves the object associated with the event.
886
- fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
887
- }
888
-
889
- /**
890
- * Occurs when an OutboundPayment transitions into the canceled state.
891
- */
892
- export interface V2MoneyManagementOutboundPaymentCanceledEvent
893
- extends V2.EventBase {
894
- type: 'v2.money_management.outbound_payment.canceled';
895
- // Object containing the reference to API resource relevant to the event.
896
- related_object: Event.RelatedObject;
897
- // Retrieves the object associated with the event.
898
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
899
- }
900
-
901
- /**
902
- * Occurs when an OutboundPayment is created.
903
- */
904
- export interface V2MoneyManagementOutboundPaymentCreatedEvent
905
- extends V2.EventBase {
906
- type: 'v2.money_management.outbound_payment.created';
907
- // Object containing the reference to API resource relevant to the event.
908
- related_object: Event.RelatedObject;
909
- // Retrieves the object associated with the event.
910
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
911
- }
912
-
913
- /**
914
- * Occurs when an OutboundPayment transitions into the failed state.
915
- */
916
- export interface V2MoneyManagementOutboundPaymentFailedEvent
917
- extends V2.EventBase {
918
- type: 'v2.money_management.outbound_payment.failed';
919
- // Object containing the reference to API resource relevant to the event.
920
- related_object: Event.RelatedObject;
921
- // Retrieves the object associated with the event.
922
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
923
- }
924
-
925
- /**
926
- * Occurs when an OutboundPayment transitions into the posted state.
927
- */
928
- export interface V2MoneyManagementOutboundPaymentPostedEvent
929
- extends V2.EventBase {
930
- type: 'v2.money_management.outbound_payment.posted';
931
- // Object containing the reference to API resource relevant to the event.
932
- related_object: Event.RelatedObject;
933
- // Retrieves the object associated with the event.
934
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
935
- }
936
-
937
- /**
938
- * Occurs when an OutboundPayment transitions into the returned state.
939
- */
940
- export interface V2MoneyManagementOutboundPaymentReturnedEvent
941
- extends V2.EventBase {
942
- type: 'v2.money_management.outbound_payment.returned';
943
- // Object containing the reference to API resource relevant to the event.
944
- related_object: Event.RelatedObject;
945
- // Retrieves the object associated with the event.
946
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
947
- }
948
-
949
- /**
950
- * Occurs when an OutboundPayment is updated.
951
- */
952
- export interface V2MoneyManagementOutboundPaymentUpdatedEvent
953
- extends V2.EventBase {
954
- type: 'v2.money_management.outbound_payment.updated';
955
- // Object containing the reference to API resource relevant to the event.
956
- related_object: Event.RelatedObject;
957
- // Retrieves the object associated with the event.
958
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
959
- }
960
-
961
- /**
962
- * Occurs when an OutboundTransfer transitions into the canceled state.
963
- */
964
- export interface V2MoneyManagementOutboundTransferCanceledEvent
965
- extends V2.EventBase {
966
- type: 'v2.money_management.outbound_transfer.canceled';
967
- // Object containing the reference to API resource relevant to the event.
968
- related_object: Event.RelatedObject;
969
- // Retrieves the object associated with the event.
970
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
971
- }
972
-
973
- /**
974
- * Occurs when an OutboundTransfer is created.
975
- */
976
- export interface V2MoneyManagementOutboundTransferCreatedEvent
977
- extends V2.EventBase {
978
- type: 'v2.money_management.outbound_transfer.created';
979
- // Object containing the reference to API resource relevant to the event.
980
- related_object: Event.RelatedObject;
981
- // Retrieves the object associated with the event.
982
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
983
- }
984
-
985
- /**
986
- * Occurs when an OutboundTransfer transitions into the failed state.
987
- */
988
- export interface V2MoneyManagementOutboundTransferFailedEvent
989
- extends V2.EventBase {
990
- type: 'v2.money_management.outbound_transfer.failed';
991
- // Object containing the reference to API resource relevant to the event.
992
- related_object: Event.RelatedObject;
993
- // Retrieves the object associated with the event.
994
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
995
- }
996
-
997
- /**
998
- * Occurs when an OutboundTransfer transitions into the posted state.
999
- */
1000
- export interface V2MoneyManagementOutboundTransferPostedEvent
1001
- extends V2.EventBase {
1002
- type: 'v2.money_management.outbound_transfer.posted';
1003
- // Object containing the reference to API resource relevant to the event.
1004
- related_object: Event.RelatedObject;
1005
- // Retrieves the object associated with the event.
1006
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1007
- }
1008
-
1009
- /**
1010
- * Occurs when an OutboundTransfer transitions into the returned state.
1011
- */
1012
- export interface V2MoneyManagementOutboundTransferReturnedEvent
1013
- extends V2.EventBase {
1014
- type: 'v2.money_management.outbound_transfer.returned';
1015
- // Object containing the reference to API resource relevant to the event.
1016
- related_object: Event.RelatedObject;
1017
- // Retrieves the object associated with the event.
1018
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1019
- }
1020
-
1021
- /**
1022
- * Event that is emitted every time an Outbound Transfer is updated.
1023
- */
1024
- export interface V2MoneyManagementOutboundTransferUpdatedEvent
1025
- extends V2.EventBase {
1026
- type: 'v2.money_management.outbound_transfer.updated';
1027
- // Object containing the reference to API resource relevant to the event.
1028
- related_object: Event.RelatedObject;
1029
- // Retrieves the object associated with the event.
1030
- fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1031
- }
1032
-
1033
- /**
1034
- * Occurs when a PayoutMethod is updated.
1035
- */
1036
- export interface V2MoneyManagementPayoutMethodUpdatedEvent
1037
- extends V2.EventBase {
1038
- type: 'v2.money_management.payout_method.updated';
1039
- // Object containing the reference to API resource relevant to the event.
1040
- related_object: Event.RelatedObject;
1041
- // Retrieves the object associated with the event.
1042
- fetchRelatedObject(): Promise<V2.MoneyManagement.PayoutMethod>;
1043
- }
1044
-
1045
- /**
1046
- * Occurs when a ReceivedCredit's funds are received and are available in your balance.
1047
- */
1048
- export interface V2MoneyManagementReceivedCreditAvailableEvent
1049
- extends V2.EventBase {
1050
- type: 'v2.money_management.received_credit.available';
1051
- // Retrieves data specific to this event.
1052
- data: V2MoneyManagementReceivedCreditAvailableEvent.Data;
1053
- // Object containing the reference to API resource relevant to the event.
1054
- related_object: Event.RelatedObject;
1055
- // Retrieves the object associated with the event.
1056
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1057
- }
1058
-
1059
- namespace V2MoneyManagementReceivedCreditAvailableEvent {
1060
- export interface Data {
1061
- /**
1062
- * The transaction ID of the received credit.
1063
- */
1064
- transaction_id: string;
1065
- }
1066
- }
1067
-
1068
- /**
1069
- * Occurs when a ReceivedCredit is attempted to your balance and fails. See the status_details for more information.
1070
- */
1071
- export interface V2MoneyManagementReceivedCreditFailedEvent
1072
- extends V2.EventBase {
1073
- type: 'v2.money_management.received_credit.failed';
1074
- // Object containing the reference to API resource relevant to the event.
1075
- related_object: Event.RelatedObject;
1076
- // Retrieves the object associated with the event.
1077
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1078
- }
1079
-
1080
- /**
1081
- * Occurs when a ReceivedCredit is reversed, returned to the originator, and deducted from your balance.
1082
- */
1083
- export interface V2MoneyManagementReceivedCreditReturnedEvent
1084
- extends V2.EventBase {
1085
- type: 'v2.money_management.received_credit.returned';
1086
- // Object containing the reference to API resource relevant to the event.
1087
- related_object: Event.RelatedObject;
1088
- // Retrieves the object associated with the event.
1089
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1090
- }
1091
-
1092
- /**
1093
- * Occurs when a ReceivedCredit succeeds.
1094
- */
1095
- export interface V2MoneyManagementReceivedCreditSucceededEvent
1096
- extends V2.EventBase {
1097
- type: 'v2.money_management.received_credit.succeeded';
1098
- // Object containing the reference to API resource relevant to the event.
1099
- related_object: Event.RelatedObject;
1100
- // Retrieves the object associated with the event.
1101
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1102
- }
1103
-
1104
- /**
1105
- * Occurs when a ReceivedDebit is canceled.
1106
- */
1107
- export interface V2MoneyManagementReceivedDebitCanceledEvent
1108
- extends V2.EventBase {
1109
- type: 'v2.money_management.received_debit.canceled';
1110
- // Object containing the reference to API resource relevant to the event.
1111
- related_object: Event.RelatedObject;
1112
- // Retrieves the object associated with the event.
1113
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1114
- }
1115
-
1116
- /**
1117
- * Occurs when a ReceivedDebit fails.
1118
- */
1119
- export interface V2MoneyManagementReceivedDebitFailedEvent
1120
- extends V2.EventBase {
1121
- type: 'v2.money_management.received_debit.failed';
1122
- // Object containing the reference to API resource relevant to the event.
1123
- related_object: Event.RelatedObject;
1124
- // Retrieves the object associated with the event.
1125
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1126
- }
1127
-
1128
- /**
1129
- * Occurs when a ReceivedDebit is set to pending.
1130
- */
1131
- export interface V2MoneyManagementReceivedDebitPendingEvent
1132
- extends V2.EventBase {
1133
- type: 'v2.money_management.received_debit.pending';
1134
- // Object containing the reference to API resource relevant to the event.
1135
- related_object: Event.RelatedObject;
1136
- // Retrieves the object associated with the event.
1137
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1138
- }
1139
-
1140
- /**
1141
- * Occurs when a ReceivedDebit succeeds.
1142
- */
1143
- export interface V2MoneyManagementReceivedDebitSucceededEvent
1144
- extends V2.EventBase {
1145
- type: 'v2.money_management.received_debit.succeeded';
1146
- // Object containing the reference to API resource relevant to the event.
1147
- related_object: Event.RelatedObject;
1148
- // Retrieves the object associated with the event.
1149
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1150
- }
1151
-
1152
- /**
1153
- * Occurs when a ReceivedDebit is updated.
1154
- */
1155
- export interface V2MoneyManagementReceivedDebitUpdatedEvent
1156
- extends V2.EventBase {
1157
- type: 'v2.money_management.received_debit.updated';
1158
- // Object containing the reference to API resource relevant to the event.
1159
- related_object: Event.RelatedObject;
1160
- // Retrieves the object associated with the event.
1161
- fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1162
- }
1163
-
1164
- /**
1165
- * Occurs when a Transaction is created.
1166
- */
1167
- export interface V2MoneyManagementTransactionCreatedEvent
1168
- extends V2.EventBase {
1169
- type: 'v2.money_management.transaction.created';
1170
- // Object containing the reference to API resource relevant to the event.
1171
- related_object: Event.RelatedObject;
1172
- // Retrieves the object associated with the event.
1173
- fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1174
- }
1175
-
1176
- /**
1177
- * Occurs when a Transaction is updated.
1178
- */
1179
- export interface V2MoneyManagementTransactionUpdatedEvent
1180
- extends V2.EventBase {
1181
- type: 'v2.money_management.transaction.updated';
1182
- // Object containing the reference to API resource relevant to the event.
1183
- related_object: Event.RelatedObject;
1184
- // Retrieves the object associated with the event.
1185
- fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1186
- }
1187
227
  }
1188
228
  }