stripe 19.2.0 → 19.3.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 (317) hide show
  1. package/CHANGELOG.md +1471 -12
  2. package/README.md +1 -0
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +115 -1
  5. package/cjs/apiVersion.js +2 -3
  6. package/cjs/resources/AccountNotices.js +21 -0
  7. package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -0
  8. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  9. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  10. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  11. package/cjs/resources/ExternalAccounts.js +23 -0
  12. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  13. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  14. package/cjs/resources/FxQuotes.js +15 -0
  15. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  16. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  17. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  18. package/cjs/resources/Mandates.js +5 -0
  19. package/cjs/resources/Margins.js +22 -0
  20. package/cjs/resources/Orders.js +24 -0
  21. package/cjs/resources/PaymentIntents.js +8 -0
  22. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  23. package/cjs/resources/Quotes.js +32 -0
  24. package/cjs/resources/SubscriptionSchedules.js +4 -0
  25. package/cjs/resources/Subscriptions.js +4 -0
  26. package/cjs/resources/Tax/Associations.js +9 -0
  27. package/cjs/resources/Tax/Forms.js +20 -0
  28. package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
  29. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  30. package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
  31. package/cjs/resources/V2/Billing/BillSettings.js +27 -0
  32. package/cjs/resources/V2/Billing/Cadences.js +23 -0
  33. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
  34. package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
  35. package/cjs/resources/V2/Billing/Profiles.js +19 -0
  36. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  37. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  38. package/cjs/resources/V2/Core/Accounts.js +25 -0
  39. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +33 -0
  40. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +37 -0
  41. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  42. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +29 -0
  43. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  44. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  45. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  46. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  47. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  48. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  49. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  50. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  51. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  52. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  53. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  54. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  55. package/cjs/resources/V2/Payments/OffSessionPayments.js +29 -0
  56. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  57. package/cjs/resources.js +106 -8
  58. package/cjs/stripe.core.js +1 -1
  59. package/esm/Error.js +100 -0
  60. package/esm/apiVersion.js +1 -2
  61. package/esm/resources/AccountNotices.js +18 -0
  62. package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
  63. package/esm/resources/Capital/FinancingOffers.js +18 -0
  64. package/esm/resources/Capital/FinancingSummary.js +9 -0
  65. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  66. package/esm/resources/ExternalAccounts.js +20 -0
  67. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  68. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  69. package/esm/resources/FxQuotes.js +12 -0
  70. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  71. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  72. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  73. package/esm/resources/Mandates.js +5 -0
  74. package/esm/resources/Margins.js +19 -0
  75. package/esm/resources/Orders.js +21 -0
  76. package/esm/resources/PaymentIntents.js +8 -0
  77. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  78. package/esm/resources/Quotes.js +32 -0
  79. package/esm/resources/SubscriptionSchedules.js +4 -0
  80. package/esm/resources/Subscriptions.js +4 -0
  81. package/esm/resources/Tax/Associations.js +6 -0
  82. package/esm/resources/Tax/Forms.js +17 -0
  83. package/esm/resources/Terminal/OnboardingLinks.js +9 -0
  84. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  85. package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
  86. package/esm/resources/V2/Billing/BillSettings.js +24 -0
  87. package/esm/resources/V2/Billing/Cadences.js +20 -0
  88. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
  89. package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
  90. package/esm/resources/V2/Billing/Profiles.js +16 -0
  91. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  92. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  93. package/esm/resources/V2/Core/Accounts.js +22 -0
  94. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +30 -0
  95. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +34 -0
  96. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  97. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +26 -0
  98. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  99. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  100. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  101. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  102. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  103. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  104. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  105. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  106. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  107. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  108. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  109. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  110. package/esm/resources/V2/Payments/OffSessionPayments.js +26 -0
  111. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  112. package/esm/resources.js +93 -0
  113. package/esm/stripe.core.js +1 -1
  114. package/package.json +1 -1
  115. package/types/AccountLinksResource.d.ts +5 -1
  116. package/types/AccountNotices.d.ts +113 -0
  117. package/types/AccountNoticesResource.d.ts +98 -0
  118. package/types/AccountSessions.d.ts +45 -0
  119. package/types/AccountSessionsResource.d.ts +264 -0
  120. package/types/Accounts.d.ts +214 -1
  121. package/types/AccountsResource.d.ts +544 -0
  122. package/types/BankAccounts.d.ts +2 -0
  123. package/types/Billing/AlertTriggereds.d.ts +1 -1
  124. package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
  125. package/types/Billing/Analytics/MeterUsageResource.d.ts +689 -0
  126. package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -0
  127. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  128. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  129. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  130. package/types/Billing/CreditGrants.d.ts +5 -0
  131. package/types/Billing/CreditGrantsResource.d.ts +13 -3
  132. package/types/BillingPortal/Sessions.d.ts +5 -0
  133. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  134. package/types/Capabilities.d.ts +2 -0
  135. package/types/Capital/FinancingOffers.d.ts +188 -0
  136. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  137. package/types/Capital/FinancingSummary.d.ts +106 -0
  138. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  139. package/types/Capital/FinancingTransactions.d.ts +135 -0
  140. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  141. package/types/Cards.d.ts +5 -0
  142. package/types/CashBalances.d.ts +5 -0
  143. package/types/Charges.d.ts +176 -0
  144. package/types/ChargesResource.d.ts +1418 -0
  145. package/types/Checkout/Sessions.d.ts +369 -2
  146. package/types/Checkout/SessionsResource.d.ts +632 -2
  147. package/types/ConfirmationTokens.d.ts +125 -0
  148. package/types/Coupons.d.ts +33 -0
  149. package/types/CouponsResource.d.ts +21 -0
  150. package/types/CreditNoteLineItems.d.ts +17 -0
  151. package/types/CreditNotes.d.ts +5 -0
  152. package/types/CreditNotesResource.d.ts +5 -0
  153. package/types/CustomerBalanceTransactions.d.ts +2 -0
  154. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  155. package/types/CustomerSessions.d.ts +46 -0
  156. package/types/CustomerSessionsResource.d.ts +47 -1
  157. package/types/Customers.d.ts +2 -0
  158. package/types/CustomersResource.d.ts +8 -0
  159. package/types/Discounts.d.ts +10 -0
  160. package/types/Disputes.d.ts +40 -0
  161. package/types/DisputesResource.d.ts +11 -0
  162. package/types/Errors.d.ts +85 -0
  163. package/types/EventTypes.d.ts +630 -0
  164. package/types/Events.d.ts +95 -0
  165. package/types/ExternalAccountsResource.d.ts +304 -0
  166. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  167. package/types/FinancialConnections/Accounts.d.ts +36 -1
  168. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  169. package/types/FinancialConnections/Institutions.d.ts +98 -0
  170. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  171. package/types/FinancialConnections/Sessions.d.ts +51 -1
  172. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  173. package/types/FxQuotes.d.ts +155 -0
  174. package/types/FxQuotesResource.d.ts +130 -0
  175. package/types/Identity/VerificationSessions.d.ts +5 -0
  176. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  177. package/types/InvoiceItems.d.ts +10 -0
  178. package/types/InvoiceItemsResource.d.ts +117 -6
  179. package/types/InvoiceLineItems.d.ts +45 -1
  180. package/types/Invoices.d.ts +203 -4
  181. package/types/InvoicesResource.d.ts +1620 -2
  182. package/types/Issuing/CardholdersResource.d.ts +2 -1
  183. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  184. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  185. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  186. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  187. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  188. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  189. package/types/Issuing/Settlements.d.ts +113 -0
  190. package/types/Issuing/Transactions.d.ts +5 -0
  191. package/types/Issuing/TransactionsResource.d.ts +5 -0
  192. package/types/LineItems.d.ts +49 -0
  193. package/types/Mandates.d.ts +135 -1
  194. package/types/MandatesResource.d.ts +31 -0
  195. package/types/Margins.d.ts +56 -0
  196. package/types/MarginsResource.d.ts +114 -0
  197. package/types/Orders.d.ts +1163 -0
  198. package/types/OrdersResource.d.ts +3139 -0
  199. package/types/PaymentAttemptRecords.d.ts +141 -0
  200. package/types/PaymentIntents.d.ts +773 -3
  201. package/types/PaymentIntentsResource.d.ts +9628 -4805
  202. package/types/PaymentLinks.d.ts +6 -0
  203. package/types/PaymentLinksResource.d.ts +12 -0
  204. package/types/PaymentMethodConfigurations.d.ts +216 -0
  205. package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
  206. package/types/PaymentMethods.d.ts +130 -0
  207. package/types/PaymentMethodsResource.d.ts +167 -2
  208. package/types/PaymentRecords.d.ts +141 -0
  209. package/types/Persons.d.ts +2 -0
  210. package/types/Prices.d.ts +22 -0
  211. package/types/PricesResource.d.ts +22 -0
  212. package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
  213. package/types/Privacy/RedactionJobs.d.ts +111 -0
  214. package/types/Privacy/RedactionJobsResource.d.ts +230 -0
  215. package/types/PromotionCodes.d.ts +5 -0
  216. package/types/PromotionCodesResource.d.ts +10 -0
  217. package/types/QuoteLines.d.ts +634 -0
  218. package/types/QuotePreviewInvoices.d.ts +1771 -0
  219. package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
  220. package/types/Quotes.d.ts +594 -1
  221. package/types/QuotesResource.d.ts +2588 -243
  222. package/types/Refunds.d.ts +14 -0
  223. package/types/SetupAttempts.d.ts +51 -1
  224. package/types/SetupIntents.d.ts +218 -2
  225. package/types/SetupIntentsResource.d.ts +954 -4
  226. package/types/Sources.d.ts +29 -0
  227. package/types/SubscriptionItems.d.ts +26 -0
  228. package/types/SubscriptionItemsResource.d.ts +109 -0
  229. package/types/SubscriptionSchedules.d.ts +205 -0
  230. package/types/SubscriptionSchedulesResource.d.ts +1233 -5
  231. package/types/Subscriptions.d.ts +262 -1
  232. package/types/SubscriptionsResource.d.ts +745 -8
  233. package/types/Tax/Associations.d.ts +82 -0
  234. package/types/Tax/AssociationsResource.d.ts +29 -0
  235. package/types/Tax/Forms.d.ts +220 -0
  236. package/types/Tax/FormsResource.d.ts +107 -0
  237. package/types/TaxIds.d.ts +10 -0
  238. package/types/TaxIdsResource.d.ts +10 -0
  239. package/types/Terminal/Configurations.d.ts +9 -0
  240. package/types/Terminal/ConfigurationsResource.d.ts +28 -0
  241. package/types/Terminal/OnboardingLinks.d.ts +57 -0
  242. package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
  243. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  244. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  245. package/types/Terminal/Readers.d.ts +20 -0
  246. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  247. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  248. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  249. package/types/Transfers.d.ts +5 -0
  250. package/types/TransfersResource.d.ts +5 -0
  251. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  252. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  253. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  254. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  255. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  256. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  257. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  258. package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
  259. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
  260. package/types/V2/Billing/BillSettings.d.ts +120 -0
  261. package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
  262. package/types/V2/Billing/Cadences.d.ts +686 -0
  263. package/types/V2/Billing/CadencesResource.d.ts +487 -0
  264. package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
  265. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
  266. package/types/V2/Billing/CollectionSettings.d.ts +337 -0
  267. package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
  268. package/types/V2/Billing/Profiles.d.ts +70 -0
  269. package/types/V2/Billing/ProfilesResource.d.ts +150 -0
  270. package/types/V2/Core/AccountLinks.d.ts +168 -0
  271. package/types/V2/Core/AccountLinksResource.d.ts +152 -0
  272. package/types/V2/Core/AccountPersons.d.ts +615 -0
  273. package/types/V2/Core/Accounts/PersonsResource.d.ts +1153 -0
  274. package/types/V2/Core/Accounts.d.ts +6010 -0
  275. package/types/V2/Core/AccountsResource.d.ts +5104 -0
  276. package/types/V2/Core/EventTypes.d.ts +1623 -9
  277. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  278. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
  279. package/types/V2/Core/Vault/UsBankAccounts.d.ts +116 -0
  280. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +198 -0
  281. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  282. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  283. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  284. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  285. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +148 -0
  286. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +172 -0
  287. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
  288. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +112 -0
  289. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  290. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  291. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +170 -0
  292. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  293. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  294. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  295. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  296. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  297. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  298. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +208 -0
  299. package/types/V2/MoneyManagement/PayoutMethods.d.ts +160 -0
  300. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
  301. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  302. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  303. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +302 -0
  304. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  305. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
  306. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  307. package/types/V2/MoneyManagement/TransactionEntries.d.ts +162 -0
  308. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  309. package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
  310. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  311. package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
  312. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
  313. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +68 -0
  314. package/types/WebhookEndpointsResource.d.ts +74 -0
  315. package/types/apiVersion.d.ts +1 -2
  316. package/types/index.d.ts +153 -0
  317. package/types/lib.d.ts +10 -0
@@ -5,12 +5,132 @@ declare module 'stripe' {
5
5
  export type Event =
6
6
  | Stripe.Events.V1BillingMeterErrorReportTriggeredEvent
7
7
  | Stripe.Events.V1BillingMeterNoMeterFoundEvent
8
- | Stripe.Events.V2CoreEventDestinationPingEvent;
8
+ | Stripe.Events.V2CoreAccountClosedEvent
9
+ | Stripe.Events.V2CoreAccountCreatedEvent
10
+ | Stripe.Events.V2CoreAccountUpdatedEvent
11
+ | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
12
+ | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
13
+ | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
14
+ | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
15
+ | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
16
+ | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
17
+ | Stripe.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
18
+ | Stripe.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEvent
19
+ | Stripe.Events.V2CoreAccountIncludingDefaultsUpdatedEvent
20
+ | Stripe.Events.V2CoreAccountIncludingIdentityUpdatedEvent
21
+ | Stripe.Events.V2CoreAccountIncludingRequirementsUpdatedEvent
22
+ | Stripe.Events.V2CoreAccountLinkReturnedEvent
23
+ | Stripe.Events.V2CoreAccountPersonCreatedEvent
24
+ | Stripe.Events.V2CoreAccountPersonDeletedEvent
25
+ | Stripe.Events.V2CoreAccountPersonUpdatedEvent
26
+ | Stripe.Events.V2CoreEventDestinationPingEvent
27
+ | Stripe.Events.V2MoneyManagementAdjustmentCreatedEvent
28
+ | Stripe.Events.V2MoneyManagementFinancialAccountCreatedEvent
29
+ | Stripe.Events.V2MoneyManagementFinancialAccountUpdatedEvent
30
+ | Stripe.Events.V2MoneyManagementFinancialAddressActivatedEvent
31
+ | Stripe.Events.V2MoneyManagementFinancialAddressFailedEvent
32
+ | Stripe.Events.V2MoneyManagementInboundTransferAvailableEvent
33
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitFailedEvent
34
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitProcessingEvent
35
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitQueuedEvent
36
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitReturnedEvent
37
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitSucceededEvent
38
+ | Stripe.Events.V2MoneyManagementOutboundPaymentCanceledEvent
39
+ | Stripe.Events.V2MoneyManagementOutboundPaymentCreatedEvent
40
+ | Stripe.Events.V2MoneyManagementOutboundPaymentFailedEvent
41
+ | Stripe.Events.V2MoneyManagementOutboundPaymentPostedEvent
42
+ | Stripe.Events.V2MoneyManagementOutboundPaymentReturnedEvent
43
+ | Stripe.Events.V2MoneyManagementOutboundPaymentUpdatedEvent
44
+ | Stripe.Events.V2MoneyManagementOutboundTransferCanceledEvent
45
+ | Stripe.Events.V2MoneyManagementOutboundTransferCreatedEvent
46
+ | Stripe.Events.V2MoneyManagementOutboundTransferFailedEvent
47
+ | Stripe.Events.V2MoneyManagementOutboundTransferPostedEvent
48
+ | Stripe.Events.V2MoneyManagementOutboundTransferReturnedEvent
49
+ | Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEvent
50
+ | Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEvent
51
+ | Stripe.Events.V2MoneyManagementReceivedCreditAvailableEvent
52
+ | Stripe.Events.V2MoneyManagementReceivedCreditFailedEvent
53
+ | Stripe.Events.V2MoneyManagementReceivedCreditReturnedEvent
54
+ | Stripe.Events.V2MoneyManagementReceivedCreditSucceededEvent
55
+ | Stripe.Events.V2MoneyManagementReceivedDebitCanceledEvent
56
+ | Stripe.Events.V2MoneyManagementReceivedDebitFailedEvent
57
+ | Stripe.Events.V2MoneyManagementReceivedDebitPendingEvent
58
+ | Stripe.Events.V2MoneyManagementReceivedDebitSucceededEvent
59
+ | Stripe.Events.V2MoneyManagementReceivedDebitUpdatedEvent
60
+ | Stripe.Events.V2MoneyManagementTransactionCreatedEvent
61
+ | Stripe.Events.V2MoneyManagementTransactionUpdatedEvent
62
+ | Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent
63
+ | Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent
64
+ | Stripe.Events.V2PaymentsOffSessionPaymentCanceledEvent
65
+ | Stripe.Events.V2PaymentsOffSessionPaymentCreatedEvent
66
+ | Stripe.Events.V2PaymentsOffSessionPaymentFailedEvent
67
+ | Stripe.Events.V2PaymentsOffSessionPaymentRequiresCaptureEvent
68
+ | Stripe.Events.V2PaymentsOffSessionPaymentSucceededEvent;
9
69
 
10
70
  export type EventNotification =
11
71
  | Stripe.Events.V1BillingMeterErrorReportTriggeredEventNotification
12
72
  | Stripe.Events.V1BillingMeterNoMeterFoundEventNotification
13
- | Stripe.Events.V2CoreEventDestinationPingEventNotification;
73
+ | Stripe.Events.V2CoreAccountClosedEventNotification
74
+ | Stripe.Events.V2CoreAccountCreatedEventNotification
75
+ | Stripe.Events.V2CoreAccountUpdatedEventNotification
76
+ | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification
77
+ | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification
78
+ | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification
79
+ | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification
80
+ | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification
81
+ | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification
82
+ | Stripe.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification
83
+ | Stripe.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification
84
+ | Stripe.Events.V2CoreAccountIncludingDefaultsUpdatedEventNotification
85
+ | Stripe.Events.V2CoreAccountIncludingIdentityUpdatedEventNotification
86
+ | Stripe.Events.V2CoreAccountIncludingRequirementsUpdatedEventNotification
87
+ | Stripe.Events.V2CoreAccountLinkReturnedEventNotification
88
+ | Stripe.Events.V2CoreAccountPersonCreatedEventNotification
89
+ | Stripe.Events.V2CoreAccountPersonDeletedEventNotification
90
+ | Stripe.Events.V2CoreAccountPersonUpdatedEventNotification
91
+ | Stripe.Events.V2CoreEventDestinationPingEventNotification
92
+ | Stripe.Events.V2MoneyManagementAdjustmentCreatedEventNotification
93
+ | Stripe.Events.V2MoneyManagementFinancialAccountCreatedEventNotification
94
+ | Stripe.Events.V2MoneyManagementFinancialAccountUpdatedEventNotification
95
+ | Stripe.Events.V2MoneyManagementFinancialAddressActivatedEventNotification
96
+ | Stripe.Events.V2MoneyManagementFinancialAddressFailedEventNotification
97
+ | Stripe.Events.V2MoneyManagementInboundTransferAvailableEventNotification
98
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitFailedEventNotification
99
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitProcessingEventNotification
100
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitQueuedEventNotification
101
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitReturnedEventNotification
102
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitSucceededEventNotification
103
+ | Stripe.Events.V2MoneyManagementOutboundPaymentCanceledEventNotification
104
+ | Stripe.Events.V2MoneyManagementOutboundPaymentCreatedEventNotification
105
+ | Stripe.Events.V2MoneyManagementOutboundPaymentFailedEventNotification
106
+ | Stripe.Events.V2MoneyManagementOutboundPaymentPostedEventNotification
107
+ | Stripe.Events.V2MoneyManagementOutboundPaymentReturnedEventNotification
108
+ | Stripe.Events.V2MoneyManagementOutboundPaymentUpdatedEventNotification
109
+ | Stripe.Events.V2MoneyManagementOutboundTransferCanceledEventNotification
110
+ | Stripe.Events.V2MoneyManagementOutboundTransferCreatedEventNotification
111
+ | Stripe.Events.V2MoneyManagementOutboundTransferFailedEventNotification
112
+ | Stripe.Events.V2MoneyManagementOutboundTransferPostedEventNotification
113
+ | Stripe.Events.V2MoneyManagementOutboundTransferReturnedEventNotification
114
+ | Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEventNotification
115
+ | Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEventNotification
116
+ | Stripe.Events.V2MoneyManagementReceivedCreditAvailableEventNotification
117
+ | Stripe.Events.V2MoneyManagementReceivedCreditFailedEventNotification
118
+ | Stripe.Events.V2MoneyManagementReceivedCreditReturnedEventNotification
119
+ | Stripe.Events.V2MoneyManagementReceivedCreditSucceededEventNotification
120
+ | Stripe.Events.V2MoneyManagementReceivedDebitCanceledEventNotification
121
+ | Stripe.Events.V2MoneyManagementReceivedDebitFailedEventNotification
122
+ | Stripe.Events.V2MoneyManagementReceivedDebitPendingEventNotification
123
+ | Stripe.Events.V2MoneyManagementReceivedDebitSucceededEventNotification
124
+ | Stripe.Events.V2MoneyManagementReceivedDebitUpdatedEventNotification
125
+ | Stripe.Events.V2MoneyManagementTransactionCreatedEventNotification
126
+ | Stripe.Events.V2MoneyManagementTransactionUpdatedEventNotification
127
+ | Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification
128
+ | Stripe.Events.V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification
129
+ | Stripe.Events.V2PaymentsOffSessionPaymentCanceledEventNotification
130
+ | Stripe.Events.V2PaymentsOffSessionPaymentCreatedEventNotification
131
+ | Stripe.Events.V2PaymentsOffSessionPaymentFailedEventNotification
132
+ | Stripe.Events.V2PaymentsOffSessionPaymentRequiresCaptureEventNotification
133
+ | Stripe.Events.V2PaymentsOffSessionPaymentSucceededEventNotification;
14
134
  }
15
135
 
16
136
  namespace Stripe.Events {
@@ -233,24 +353,1518 @@ declare module 'stripe' {
233
353
  }
234
354
  }
235
355
 
356
+ /**
357
+ * This event occurs when an account is closed.
358
+ */
359
+ export interface V2CoreAccountClosedEvent extends V2.Core.EventBase {
360
+ type: 'v2.core.account.closed';
361
+ // Object containing the reference to API resource relevant to the event.
362
+ related_object: V2.Core.Events.RelatedObject;
363
+ // Retrieves the object associated with the event.
364
+ fetchRelatedObject(): Promise<V2.Core.Account>;
365
+ }
366
+ export interface V2CoreAccountClosedEventNotification
367
+ extends V2.Core.EventNotificationBase {
368
+ type: 'v2.core.account.closed';
369
+ // Object containing the reference to API resource relevant to the event.
370
+ related_object: V2.Core.Events.RelatedObject;
371
+ // Retrieves the object associated with the event.
372
+ fetchRelatedObject(): Promise<V2.Core.Account>;
373
+ fetchEvent(): Promise<V2CoreAccountClosedEvent>;
374
+ }
375
+
376
+ /**
377
+ * Occurs when an Account is created.
378
+ */
379
+ export interface V2CoreAccountCreatedEvent extends V2.Core.EventBase {
380
+ type: 'v2.core.account.created';
381
+ // Object containing the reference to API resource relevant to the event.
382
+ related_object: V2.Core.Events.RelatedObject;
383
+ // Retrieves the object associated with the event.
384
+ fetchRelatedObject(): Promise<V2.Core.Account>;
385
+ }
386
+ export interface V2CoreAccountCreatedEventNotification
387
+ extends V2.Core.EventNotificationBase {
388
+ type: 'v2.core.account.created';
389
+ // Object containing the reference to API resource relevant to the event.
390
+ related_object: V2.Core.Events.RelatedObject;
391
+ // Retrieves the object associated with the event.
392
+ fetchRelatedObject(): Promise<V2.Core.Account>;
393
+ fetchEvent(): Promise<V2CoreAccountCreatedEvent>;
394
+ }
395
+
396
+ /**
397
+ * Occurs when an Account is updated.
398
+ */
399
+ export interface V2CoreAccountUpdatedEvent extends V2.Core.EventBase {
400
+ type: 'v2.core.account.updated';
401
+ // Object containing the reference to API resource relevant to the event.
402
+ related_object: V2.Core.Events.RelatedObject;
403
+ // Retrieves the object associated with the event.
404
+ fetchRelatedObject(): Promise<V2.Core.Account>;
405
+ }
406
+ export interface V2CoreAccountUpdatedEventNotification
407
+ extends V2.Core.EventNotificationBase {
408
+ type: 'v2.core.account.updated';
409
+ // Object containing the reference to API resource relevant to the event.
410
+ related_object: V2.Core.Events.RelatedObject;
411
+ // Retrieves the object associated with the event.
412
+ fetchRelatedObject(): Promise<V2.Core.Account>;
413
+ fetchEvent(): Promise<V2CoreAccountUpdatedEvent>;
414
+ }
415
+
416
+ /**
417
+ * Occurs when the status of an Account's customer configuration capability is updated.
418
+ */
419
+ export interface V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
420
+ extends V2.Core.EventBase {
421
+ type: 'v2.core.account[configuration.customer].capability_status_updated';
422
+ // Retrieves data specific to this event.
423
+ data: V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.Data;
424
+ // Object containing the reference to API resource relevant to the event.
425
+ related_object: V2.Core.Events.RelatedObject;
426
+ // Retrieves the object associated with the event.
427
+ fetchRelatedObject(): Promise<V2.Core.Account>;
428
+ }
429
+ export interface V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification
430
+ extends V2.Core.EventNotificationBase {
431
+ type: 'v2.core.account[configuration.customer].capability_status_updated';
432
+ // Object containing the reference to API resource relevant to the event.
433
+ related_object: V2.Core.Events.RelatedObject;
434
+ // Retrieves the object associated with the event.
435
+ fetchRelatedObject(): Promise<V2.Core.Account>;
436
+ fetchEvent(): Promise<
437
+ V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
438
+ >;
439
+ }
440
+
441
+ namespace V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent {
442
+ export interface Data {
443
+ /**
444
+ * Open Enum. The capability which had its status updated.
445
+ */
446
+ updated_capability: 'automatic_indirect_tax';
447
+ }
448
+ }
449
+
450
+ /**
451
+ * Occurs when an Account's customer configuration is updated.
452
+ */
453
+ export interface V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
454
+ extends V2.Core.EventBase {
455
+ type: 'v2.core.account[configuration.customer].updated';
456
+ // Object containing the reference to API resource relevant to the event.
457
+ related_object: V2.Core.Events.RelatedObject;
458
+ // Retrieves the object associated with the event.
459
+ fetchRelatedObject(): Promise<V2.Core.Account>;
460
+ }
461
+ export interface V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification
462
+ extends V2.Core.EventNotificationBase {
463
+ type: 'v2.core.account[configuration.customer].updated';
464
+ // Object containing the reference to API resource relevant to the event.
465
+ related_object: V2.Core.Events.RelatedObject;
466
+ // Retrieves the object associated with the event.
467
+ fetchRelatedObject(): Promise<V2.Core.Account>;
468
+ fetchEvent(): Promise<
469
+ V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
470
+ >;
471
+ }
472
+
473
+ /**
474
+ * Occurs when the status of an Account's merchant configuration capability is updated.
475
+ */
476
+ export interface V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
477
+ extends V2.Core.EventBase {
478
+ type: 'v2.core.account[configuration.merchant].capability_status_updated';
479
+ // Retrieves data specific to this event.
480
+ data: V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.Data;
481
+ // Object containing the reference to API resource relevant to the event.
482
+ related_object: V2.Core.Events.RelatedObject;
483
+ // Retrieves the object associated with the event.
484
+ fetchRelatedObject(): Promise<V2.Core.Account>;
485
+ }
486
+ export interface V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification
487
+ extends V2.Core.EventNotificationBase {
488
+ type: 'v2.core.account[configuration.merchant].capability_status_updated';
489
+ // Object containing the reference to API resource relevant to the event.
490
+ related_object: V2.Core.Events.RelatedObject;
491
+ // Retrieves the object associated with the event.
492
+ fetchRelatedObject(): Promise<V2.Core.Account>;
493
+ fetchEvent(): Promise<
494
+ V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
495
+ >;
496
+ }
497
+
498
+ namespace V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent {
499
+ export interface Data {
500
+ /**
501
+ * Open Enum. The capability which had its status updated.
502
+ */
503
+ updated_capability: Data.UpdatedCapability;
504
+ }
505
+
506
+ namespace Data {
507
+ export type UpdatedCapability =
508
+ | 'ach_debit_payments'
509
+ | 'acss_debit_payments'
510
+ | 'affirm_payments'
511
+ | 'afterpay_clearpay_payments'
512
+ | 'alma_payments'
513
+ | 'amazon_pay_payments'
514
+ | 'au_becs_debit_payments'
515
+ | 'bacs_debit_payments'
516
+ | 'bancontact_payments'
517
+ | 'blik_payments'
518
+ | 'boleto_payments'
519
+ | 'card_payments'
520
+ | 'cartes_bancaires_payments'
521
+ | 'cashapp_payments'
522
+ | 'eps_payments'
523
+ | 'fpx_payments'
524
+ | 'gb_bank_transfer_payments'
525
+ | 'grabpay_payments'
526
+ | 'ideal_payments'
527
+ | 'jcb_payments'
528
+ | 'jp_bank_transfer_payments'
529
+ | 'kakao_pay_payments'
530
+ | 'klarna_payments'
531
+ | 'konbini_payments'
532
+ | 'kr_card_payments'
533
+ | 'link_payments'
534
+ | 'mobilepay_payments'
535
+ | 'multibanco_payments'
536
+ | 'mx_bank_transfer_payments'
537
+ | 'naver_pay_payments'
538
+ | 'oxxo_payments'
539
+ | 'p24_payments'
540
+ | 'payco_payments'
541
+ | 'paynow_payments'
542
+ | 'stripe_balance.payouts'
543
+ | 'pay_by_bank_payments'
544
+ | 'promptpay_payments'
545
+ | 'revolut_pay_payments'
546
+ | 'samsung_pay_payments'
547
+ | 'sepa_bank_transfer_payments'
548
+ | 'sepa_debit_payments'
549
+ | 'swish_payments'
550
+ | 'twint_payments'
551
+ | 'us_bank_transfer_payments'
552
+ | 'zip_payments';
553
+ }
554
+ }
555
+
556
+ /**
557
+ * Occurs when an Account's merchant configuration is updated.
558
+ */
559
+ export interface V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
560
+ extends V2.Core.EventBase {
561
+ type: 'v2.core.account[configuration.merchant].updated';
562
+ // Object containing the reference to API resource relevant to the event.
563
+ related_object: V2.Core.Events.RelatedObject;
564
+ // Retrieves the object associated with the event.
565
+ fetchRelatedObject(): Promise<V2.Core.Account>;
566
+ }
567
+ export interface V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification
568
+ extends V2.Core.EventNotificationBase {
569
+ type: 'v2.core.account[configuration.merchant].updated';
570
+ // Object containing the reference to API resource relevant to the event.
571
+ related_object: V2.Core.Events.RelatedObject;
572
+ // Retrieves the object associated with the event.
573
+ fetchRelatedObject(): Promise<V2.Core.Account>;
574
+ fetchEvent(): Promise<
575
+ V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
576
+ >;
577
+ }
578
+
579
+ /**
580
+ * Occurs when the status of an Account's recipient configuration capability is updated.
581
+ */
582
+ export interface V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
583
+ extends V2.Core.EventBase {
584
+ type: 'v2.core.account[configuration.recipient].capability_status_updated';
585
+ // Retrieves data specific to this event.
586
+ data: V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.Data;
587
+ // Object containing the reference to API resource relevant to the event.
588
+ related_object: V2.Core.Events.RelatedObject;
589
+ // Retrieves the object associated with the event.
590
+ fetchRelatedObject(): Promise<V2.Core.Account>;
591
+ }
592
+ export interface V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification
593
+ extends V2.Core.EventNotificationBase {
594
+ type: 'v2.core.account[configuration.recipient].capability_status_updated';
595
+ // Object containing the reference to API resource relevant to the event.
596
+ related_object: V2.Core.Events.RelatedObject;
597
+ // Retrieves the object associated with the event.
598
+ fetchRelatedObject(): Promise<V2.Core.Account>;
599
+ fetchEvent(): Promise<
600
+ V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
601
+ >;
602
+ }
603
+
604
+ namespace V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent {
605
+ export interface Data {
606
+ /**
607
+ * Open Enum. The capability which had its status updated.
608
+ */
609
+ updated_capability: Data.UpdatedCapability;
610
+ }
611
+
612
+ namespace Data {
613
+ export type UpdatedCapability =
614
+ | 'bank_accounts.local'
615
+ | 'bank_accounts.wire'
616
+ | 'cards'
617
+ | 'stripe_balance.payouts'
618
+ | 'stripe_balance.stripe_transfers'
619
+ | 'stripe.transfers';
620
+ }
621
+ }
622
+
623
+ /**
624
+ * Occurs when a Recipient's configuration is updated.
625
+ */
626
+ export interface V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
627
+ extends V2.Core.EventBase {
628
+ type: 'v2.core.account[configuration.recipient].updated';
629
+ // Object containing the reference to API resource relevant to the event.
630
+ related_object: V2.Core.Events.RelatedObject;
631
+ // Retrieves the object associated with the event.
632
+ fetchRelatedObject(): Promise<V2.Core.Account>;
633
+ }
634
+ export interface V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification
635
+ extends V2.Core.EventNotificationBase {
636
+ type: 'v2.core.account[configuration.recipient].updated';
637
+ // Object containing the reference to API resource relevant to the event.
638
+ related_object: V2.Core.Events.RelatedObject;
639
+ // Retrieves the object associated with the event.
640
+ fetchRelatedObject(): Promise<V2.Core.Account>;
641
+ fetchEvent(): Promise<
642
+ V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
643
+ >;
644
+ }
645
+
646
+ /**
647
+ * Occurs when the status of an Account's storer configuration capability is updated.
648
+ */
649
+ export interface V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
650
+ extends V2.Core.EventBase {
651
+ type: 'v2.core.account[configuration.storer].capability_status_updated';
652
+ // Retrieves data specific to this event.
653
+ data: V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.Data;
654
+ // Object containing the reference to API resource relevant to the event.
655
+ related_object: V2.Core.Events.RelatedObject;
656
+ // Retrieves the object associated with the event.
657
+ fetchRelatedObject(): Promise<V2.Core.Account>;
658
+ }
659
+ export interface V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification
660
+ extends V2.Core.EventNotificationBase {
661
+ type: 'v2.core.account[configuration.storer].capability_status_updated';
662
+ // Object containing the reference to API resource relevant to the event.
663
+ related_object: V2.Core.Events.RelatedObject;
664
+ // Retrieves the object associated with the event.
665
+ fetchRelatedObject(): Promise<V2.Core.Account>;
666
+ fetchEvent(): Promise<
667
+ V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
668
+ >;
669
+ }
670
+
671
+ namespace V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent {
672
+ export interface Data {
673
+ /**
674
+ * Open Enum. The capability which had its status updated.
675
+ */
676
+ updated_capability: Data.UpdatedCapability;
677
+ }
678
+
679
+ namespace Data {
680
+ export type UpdatedCapability =
681
+ | 'financial_addressses.bank_accounts'
682
+ | 'financial_addressses.crypto_wallets'
683
+ | 'holds_currencies.eur'
684
+ | 'holds_currencies.gbp'
685
+ | 'holds_currencies.usd'
686
+ | 'holds_currencies.usdc'
687
+ | 'inbound_transfers.bank_accounts'
688
+ | 'outbound_payments.bank_accounts'
689
+ | 'outbound_payments.cards'
690
+ | 'outbound_payments.crypto_wallets'
691
+ | 'outbound_payments.financial_accounts'
692
+ | 'outbound_transfers.bank_accounts'
693
+ | 'outbound_transfers.crypto_wallets'
694
+ | 'outbound_transfers.financial_accounts';
695
+ }
696
+ }
697
+
698
+ /**
699
+ * Occurs when a Storer's configuration is updated.
700
+ */
701
+ export interface V2CoreAccountIncludingConfigurationStorerUpdatedEvent
702
+ extends V2.Core.EventBase {
703
+ type: 'v2.core.account[configuration.storer].updated';
704
+ // Object containing the reference to API resource relevant to the event.
705
+ related_object: V2.Core.Events.RelatedObject;
706
+ // Retrieves the object associated with the event.
707
+ fetchRelatedObject(): Promise<V2.Core.Account>;
708
+ }
709
+ export interface V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification
710
+ extends V2.Core.EventNotificationBase {
711
+ type: 'v2.core.account[configuration.storer].updated';
712
+ // Object containing the reference to API resource relevant to the event.
713
+ related_object: V2.Core.Events.RelatedObject;
714
+ // Retrieves the object associated with the event.
715
+ fetchRelatedObject(): Promise<V2.Core.Account>;
716
+ fetchEvent(): Promise<
717
+ V2CoreAccountIncludingConfigurationStorerUpdatedEvent
718
+ >;
719
+ }
720
+
721
+ /**
722
+ * This event occurs when account defaults are created or updated.
723
+ */
724
+ export interface V2CoreAccountIncludingDefaultsUpdatedEvent
725
+ extends V2.Core.EventBase {
726
+ type: 'v2.core.account[defaults].updated';
727
+ // Object containing the reference to API resource relevant to the event.
728
+ related_object: V2.Core.Events.RelatedObject;
729
+ // Retrieves the object associated with the event.
730
+ fetchRelatedObject(): Promise<V2.Core.Account>;
731
+ }
732
+ export interface V2CoreAccountIncludingDefaultsUpdatedEventNotification
733
+ extends V2.Core.EventNotificationBase {
734
+ type: 'v2.core.account[defaults].updated';
735
+ // Object containing the reference to API resource relevant to the event.
736
+ related_object: V2.Core.Events.RelatedObject;
737
+ // Retrieves the object associated with the event.
738
+ fetchRelatedObject(): Promise<V2.Core.Account>;
739
+ fetchEvent(): Promise<V2CoreAccountIncludingDefaultsUpdatedEvent>;
740
+ }
741
+
742
+ /**
743
+ * Occurs when an Identity is updated.
744
+ */
745
+ export interface V2CoreAccountIncludingIdentityUpdatedEvent
746
+ extends V2.Core.EventBase {
747
+ type: 'v2.core.account[identity].updated';
748
+ // Object containing the reference to API resource relevant to the event.
749
+ related_object: V2.Core.Events.RelatedObject;
750
+ // Retrieves the object associated with the event.
751
+ fetchRelatedObject(): Promise<V2.Core.Account>;
752
+ }
753
+ export interface V2CoreAccountIncludingIdentityUpdatedEventNotification
754
+ extends V2.Core.EventNotificationBase {
755
+ type: 'v2.core.account[identity].updated';
756
+ // Object containing the reference to API resource relevant to the event.
757
+ related_object: V2.Core.Events.RelatedObject;
758
+ // Retrieves the object associated with the event.
759
+ fetchRelatedObject(): Promise<V2.Core.Account>;
760
+ fetchEvent(): Promise<V2CoreAccountIncludingIdentityUpdatedEvent>;
761
+ }
762
+
763
+ /**
764
+ * Occurs when an Account's requirements are updated.
765
+ */
766
+ export interface V2CoreAccountIncludingRequirementsUpdatedEvent
767
+ extends V2.Core.EventBase {
768
+ type: 'v2.core.account[requirements].updated';
769
+ // Object containing the reference to API resource relevant to the event.
770
+ related_object: V2.Core.Events.RelatedObject;
771
+ // Retrieves the object associated with the event.
772
+ fetchRelatedObject(): Promise<V2.Core.Account>;
773
+ }
774
+ export interface V2CoreAccountIncludingRequirementsUpdatedEventNotification
775
+ extends V2.Core.EventNotificationBase {
776
+ type: 'v2.core.account[requirements].updated';
777
+ // Object containing the reference to API resource relevant to the event.
778
+ related_object: V2.Core.Events.RelatedObject;
779
+ // Retrieves the object associated with the event.
780
+ fetchRelatedObject(): Promise<V2.Core.Account>;
781
+ fetchEvent(): Promise<V2CoreAccountIncludingRequirementsUpdatedEvent>;
782
+ }
783
+
784
+ /**
785
+ * Occurs when the generated AccountLink is completed.
786
+ */
787
+ export interface V2CoreAccountLinkReturnedEvent extends V2.Core.EventBase {
788
+ type: 'v2.core.account_link.returned';
789
+ // Retrieves data specific to this event.
790
+ data: V2CoreAccountLinkReturnedEvent.Data;
791
+ }
792
+ export interface V2CoreAccountLinkReturnedEventNotification
793
+ extends V2.Core.EventNotificationBase {
794
+ type: 'v2.core.account_link.returned';
795
+ fetchEvent(): Promise<V2CoreAccountLinkReturnedEvent>;
796
+ }
797
+
798
+ namespace V2CoreAccountLinkReturnedEvent {
799
+ export interface Data {
800
+ /**
801
+ * The ID of the v2 account.
802
+ */
803
+ account_id: string;
804
+
805
+ /**
806
+ * Configurations on the Account that was onboarded via the account link.
807
+ */
808
+ configurations: Array<Data.Configuration>;
809
+
810
+ /**
811
+ * Open Enum. The use case type of the account link that has been completed.
812
+ */
813
+ use_case: Data.UseCase;
814
+ }
815
+
816
+ namespace Data {
817
+ export type Configuration =
818
+ | 'customer'
819
+ | 'merchant'
820
+ | 'recipient'
821
+ | 'storer';
822
+
823
+ export type UseCase = 'account_onboarding' | 'account_update';
824
+ }
825
+ }
826
+
827
+ /**
828
+ * Occurs when a Person is created.
829
+ */
830
+ export interface V2CoreAccountPersonCreatedEvent extends V2.Core.EventBase {
831
+ type: 'v2.core.account_person.created';
832
+ // Retrieves data specific to this event.
833
+ data: V2CoreAccountPersonCreatedEvent.Data;
834
+ // Object containing the reference to API resource relevant to the event.
835
+ related_object: V2.Core.Events.RelatedObject;
836
+ // Retrieves the object associated with the event.
837
+ fetchRelatedObject(): Promise<V2.Core.AccountPerson>;
838
+ }
839
+ export interface V2CoreAccountPersonCreatedEventNotification
840
+ extends V2.Core.EventNotificationBase {
841
+ type: 'v2.core.account_person.created';
842
+ // Object containing the reference to API resource relevant to the event.
843
+ related_object: V2.Core.Events.RelatedObject;
844
+ // Retrieves the object associated with the event.
845
+ fetchRelatedObject(): Promise<V2.Core.AccountPerson>;
846
+ fetchEvent(): Promise<V2CoreAccountPersonCreatedEvent>;
847
+ }
848
+
849
+ namespace V2CoreAccountPersonCreatedEvent {
850
+ export interface Data {
851
+ /**
852
+ * The ID of the v2 account.
853
+ */
854
+ account_id: string;
855
+ }
856
+ }
857
+
858
+ /**
859
+ * Occurs when a Person is deleted.
860
+ */
861
+ export interface V2CoreAccountPersonDeletedEvent extends V2.Core.EventBase {
862
+ type: 'v2.core.account_person.deleted';
863
+ // Retrieves data specific to this event.
864
+ data: V2CoreAccountPersonDeletedEvent.Data;
865
+ // Object containing the reference to API resource relevant to the event.
866
+ related_object: V2.Core.Events.RelatedObject;
867
+ // Retrieves the object associated with the event.
868
+ fetchRelatedObject(): Promise<V2.Core.AccountPerson>;
869
+ }
870
+ export interface V2CoreAccountPersonDeletedEventNotification
871
+ extends V2.Core.EventNotificationBase {
872
+ type: 'v2.core.account_person.deleted';
873
+ // Object containing the reference to API resource relevant to the event.
874
+ related_object: V2.Core.Events.RelatedObject;
875
+ // Retrieves the object associated with the event.
876
+ fetchRelatedObject(): Promise<V2.Core.AccountPerson>;
877
+ fetchEvent(): Promise<V2CoreAccountPersonDeletedEvent>;
878
+ }
879
+
880
+ namespace V2CoreAccountPersonDeletedEvent {
881
+ export interface Data {
882
+ /**
883
+ * The ID of the v2 account.
884
+ */
885
+ account_id: string;
886
+ }
887
+ }
888
+
889
+ /**
890
+ * Occurs when a Person is updated.
891
+ */
892
+ export interface V2CoreAccountPersonUpdatedEvent extends V2.Core.EventBase {
893
+ type: 'v2.core.account_person.updated';
894
+ // Retrieves data specific to this event.
895
+ data: V2CoreAccountPersonUpdatedEvent.Data;
896
+ // Object containing the reference to API resource relevant to the event.
897
+ related_object: V2.Core.Events.RelatedObject;
898
+ // Retrieves the object associated with the event.
899
+ fetchRelatedObject(): Promise<V2.Core.AccountPerson>;
900
+ }
901
+ export interface V2CoreAccountPersonUpdatedEventNotification
902
+ extends V2.Core.EventNotificationBase {
903
+ type: 'v2.core.account_person.updated';
904
+ // Object containing the reference to API resource relevant to the event.
905
+ related_object: V2.Core.Events.RelatedObject;
906
+ // Retrieves the object associated with the event.
907
+ fetchRelatedObject(): Promise<V2.Core.AccountPerson>;
908
+ fetchEvent(): Promise<V2CoreAccountPersonUpdatedEvent>;
909
+ }
910
+
911
+ namespace V2CoreAccountPersonUpdatedEvent {
912
+ export interface Data {
913
+ /**
914
+ * The ID of the v2 account.
915
+ */
916
+ account_id: string;
917
+ }
918
+ }
919
+
236
920
  /**
237
921
  * A ping event used to test the connection to an EventDestination.
238
922
  */
239
- export interface V2CoreEventDestinationPingEvent extends V2.Core.EventBase {
240
- type: 'v2.core.event_destination.ping';
923
+ export interface V2CoreEventDestinationPingEvent extends V2.Core.EventBase {
924
+ type: 'v2.core.event_destination.ping';
925
+ // Object containing the reference to API resource relevant to the event.
926
+ related_object: V2.Core.Events.RelatedObject;
927
+ // Retrieves the object associated with the event.
928
+ fetchRelatedObject(): Promise<V2.Core.EventDestination>;
929
+ }
930
+ export interface V2CoreEventDestinationPingEventNotification
931
+ extends V2.Core.EventNotificationBase {
932
+ type: 'v2.core.event_destination.ping';
933
+ // Object containing the reference to API resource relevant to the event.
934
+ related_object: V2.Core.Events.RelatedObject;
935
+ // Retrieves the object associated with the event.
936
+ fetchRelatedObject(): Promise<V2.Core.EventDestination>;
937
+ fetchEvent(): Promise<V2CoreEventDestinationPingEvent>;
938
+ }
939
+
940
+ /**
941
+ * Occurs when an Adjustment is created.
942
+ */
943
+ export interface V2MoneyManagementAdjustmentCreatedEvent
944
+ extends V2.Core.EventBase {
945
+ type: 'v2.money_management.adjustment.created';
946
+ // Object containing the reference to API resource relevant to the event.
947
+ related_object: V2.Core.Events.RelatedObject;
948
+ // Retrieves the object associated with the event.
949
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Adjustment>;
950
+ }
951
+ export interface V2MoneyManagementAdjustmentCreatedEventNotification
952
+ extends V2.Core.EventNotificationBase {
953
+ type: 'v2.money_management.adjustment.created';
954
+ // Object containing the reference to API resource relevant to the event.
955
+ related_object: V2.Core.Events.RelatedObject;
956
+ // Retrieves the object associated with the event.
957
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Adjustment>;
958
+ fetchEvent(): Promise<V2MoneyManagementAdjustmentCreatedEvent>;
959
+ }
960
+
961
+ /**
962
+ * Occurs when a FinancialAccount is created.
963
+ */
964
+ export interface V2MoneyManagementFinancialAccountCreatedEvent
965
+ extends V2.Core.EventBase {
966
+ type: 'v2.money_management.financial_account.created';
967
+ // Object containing the reference to API resource relevant to the event.
968
+ related_object: V2.Core.Events.RelatedObject;
969
+ // Retrieves the object associated with the event.
970
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
971
+ }
972
+ export interface V2MoneyManagementFinancialAccountCreatedEventNotification
973
+ extends V2.Core.EventNotificationBase {
974
+ type: 'v2.money_management.financial_account.created';
975
+ // Object containing the reference to API resource relevant to the event.
976
+ related_object: V2.Core.Events.RelatedObject;
977
+ // Retrieves the object associated with the event.
978
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
979
+ fetchEvent(): Promise<V2MoneyManagementFinancialAccountCreatedEvent>;
980
+ }
981
+
982
+ /**
983
+ * Occurs when a FinancialAccount is updated.
984
+ */
985
+ export interface V2MoneyManagementFinancialAccountUpdatedEvent
986
+ extends V2.Core.EventBase {
987
+ type: 'v2.money_management.financial_account.updated';
988
+ // Object containing the reference to API resource relevant to the event.
989
+ related_object: V2.Core.Events.RelatedObject;
990
+ // Retrieves the object associated with the event.
991
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
992
+ }
993
+ export interface V2MoneyManagementFinancialAccountUpdatedEventNotification
994
+ extends V2.Core.EventNotificationBase {
995
+ type: 'v2.money_management.financial_account.updated';
996
+ // Object containing the reference to API resource relevant to the event.
997
+ related_object: V2.Core.Events.RelatedObject;
998
+ // Retrieves the object associated with the event.
999
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
1000
+ fetchEvent(): Promise<V2MoneyManagementFinancialAccountUpdatedEvent>;
1001
+ }
1002
+
1003
+ /**
1004
+ * Occurs when a FinancialAddress is activated and is ready to receive funds.
1005
+ */
1006
+ export interface V2MoneyManagementFinancialAddressActivatedEvent
1007
+ extends V2.Core.EventBase {
1008
+ type: 'v2.money_management.financial_address.activated';
1009
+ // Object containing the reference to API resource relevant to the event.
1010
+ related_object: V2.Core.Events.RelatedObject;
1011
+ // Retrieves the object associated with the event.
1012
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
1013
+ }
1014
+ export interface V2MoneyManagementFinancialAddressActivatedEventNotification
1015
+ extends V2.Core.EventNotificationBase {
1016
+ type: 'v2.money_management.financial_address.activated';
1017
+ // Object containing the reference to API resource relevant to the event.
1018
+ related_object: V2.Core.Events.RelatedObject;
1019
+ // Retrieves the object associated with the event.
1020
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
1021
+ fetchEvent(): Promise<V2MoneyManagementFinancialAddressActivatedEvent>;
1022
+ }
1023
+
1024
+ /**
1025
+ * Occurs when a FinancialAddress fails to activate and can not receive funds.
1026
+ */
1027
+ export interface V2MoneyManagementFinancialAddressFailedEvent
1028
+ extends V2.Core.EventBase {
1029
+ type: 'v2.money_management.financial_address.failed';
1030
+ // Object containing the reference to API resource relevant to the event.
1031
+ related_object: V2.Core.Events.RelatedObject;
1032
+ // Retrieves the object associated with the event.
1033
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
1034
+ }
1035
+ export interface V2MoneyManagementFinancialAddressFailedEventNotification
1036
+ extends V2.Core.EventNotificationBase {
1037
+ type: 'v2.money_management.financial_address.failed';
1038
+ // Object containing the reference to API resource relevant to the event.
1039
+ related_object: V2.Core.Events.RelatedObject;
1040
+ // Retrieves the object associated with the event.
1041
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
1042
+ fetchEvent(): Promise<V2MoneyManagementFinancialAddressFailedEvent>;
1043
+ }
1044
+
1045
+ /**
1046
+ * Occurs when an InboundTransfer's funds are made available.
1047
+ */
1048
+ export interface V2MoneyManagementInboundTransferAvailableEvent
1049
+ extends V2.Core.EventBase {
1050
+ type: 'v2.money_management.inbound_transfer.available';
1051
+ // Retrieves data specific to this event.
1052
+ data: V2MoneyManagementInboundTransferAvailableEvent.Data;
1053
+ // Object containing the reference to API resource relevant to the event.
1054
+ related_object: V2.Core.Events.RelatedObject;
1055
+ // Retrieves the object associated with the event.
1056
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1057
+ }
1058
+ export interface V2MoneyManagementInboundTransferAvailableEventNotification
1059
+ extends V2.Core.EventNotificationBase {
1060
+ type: 'v2.money_management.inbound_transfer.available';
1061
+ // Object containing the reference to API resource relevant to the event.
1062
+ related_object: V2.Core.Events.RelatedObject;
1063
+ // Retrieves the object associated with the event.
1064
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1065
+ fetchEvent(): Promise<V2MoneyManagementInboundTransferAvailableEvent>;
1066
+ }
1067
+
1068
+ namespace V2MoneyManagementInboundTransferAvailableEvent {
1069
+ export interface Data {
1070
+ /**
1071
+ * The transaction ID of the received credit.
1072
+ */
1073
+ transaction_id: string;
1074
+ }
1075
+ }
1076
+
1077
+ /**
1078
+ * Occurs when an InboundTransfer fails.
1079
+ */
1080
+ export interface V2MoneyManagementInboundTransferBankDebitFailedEvent
1081
+ extends V2.Core.EventBase {
1082
+ type: 'v2.money_management.inbound_transfer.bank_debit_failed';
1083
+ // Object containing the reference to API resource relevant to the event.
1084
+ related_object: V2.Core.Events.RelatedObject;
1085
+ // Retrieves the object associated with the event.
1086
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1087
+ }
1088
+ export interface V2MoneyManagementInboundTransferBankDebitFailedEventNotification
1089
+ extends V2.Core.EventNotificationBase {
1090
+ type: 'v2.money_management.inbound_transfer.bank_debit_failed';
1091
+ // Object containing the reference to API resource relevant to the event.
1092
+ related_object: V2.Core.Events.RelatedObject;
1093
+ // Retrieves the object associated with the event.
1094
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1095
+ fetchEvent(): Promise<
1096
+ V2MoneyManagementInboundTransferBankDebitFailedEvent
1097
+ >;
1098
+ }
1099
+
1100
+ /**
1101
+ * Occurs when an InboundTransfer starts processing.
1102
+ */
1103
+ export interface V2MoneyManagementInboundTransferBankDebitProcessingEvent
1104
+ extends V2.Core.EventBase {
1105
+ type: 'v2.money_management.inbound_transfer.bank_debit_processing';
1106
+ // Object containing the reference to API resource relevant to the event.
1107
+ related_object: V2.Core.Events.RelatedObject;
1108
+ // Retrieves the object associated with the event.
1109
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1110
+ }
1111
+ export interface V2MoneyManagementInboundTransferBankDebitProcessingEventNotification
1112
+ extends V2.Core.EventNotificationBase {
1113
+ type: 'v2.money_management.inbound_transfer.bank_debit_processing';
1114
+ // Object containing the reference to API resource relevant to the event.
1115
+ related_object: V2.Core.Events.RelatedObject;
1116
+ // Retrieves the object associated with the event.
1117
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1118
+ fetchEvent(): Promise<
1119
+ V2MoneyManagementInboundTransferBankDebitProcessingEvent
1120
+ >;
1121
+ }
1122
+
1123
+ /**
1124
+ * Occurs when an InboundTransfer is queued.
1125
+ */
1126
+ export interface V2MoneyManagementInboundTransferBankDebitQueuedEvent
1127
+ extends V2.Core.EventBase {
1128
+ type: 'v2.money_management.inbound_transfer.bank_debit_queued';
1129
+ // Object containing the reference to API resource relevant to the event.
1130
+ related_object: V2.Core.Events.RelatedObject;
1131
+ // Retrieves the object associated with the event.
1132
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1133
+ }
1134
+ export interface V2MoneyManagementInboundTransferBankDebitQueuedEventNotification
1135
+ extends V2.Core.EventNotificationBase {
1136
+ type: 'v2.money_management.inbound_transfer.bank_debit_queued';
1137
+ // Object containing the reference to API resource relevant to the event.
1138
+ related_object: V2.Core.Events.RelatedObject;
1139
+ // Retrieves the object associated with the event.
1140
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1141
+ fetchEvent(): Promise<
1142
+ V2MoneyManagementInboundTransferBankDebitQueuedEvent
1143
+ >;
1144
+ }
1145
+
1146
+ /**
1147
+ * Occurs when an InboundTransfer is returned.
1148
+ */
1149
+ export interface V2MoneyManagementInboundTransferBankDebitReturnedEvent
1150
+ extends V2.Core.EventBase {
1151
+ type: 'v2.money_management.inbound_transfer.bank_debit_returned';
1152
+ // Object containing the reference to API resource relevant to the event.
1153
+ related_object: V2.Core.Events.RelatedObject;
1154
+ // Retrieves the object associated with the event.
1155
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1156
+ }
1157
+ export interface V2MoneyManagementInboundTransferBankDebitReturnedEventNotification
1158
+ extends V2.Core.EventNotificationBase {
1159
+ type: 'v2.money_management.inbound_transfer.bank_debit_returned';
1160
+ // Object containing the reference to API resource relevant to the event.
1161
+ related_object: V2.Core.Events.RelatedObject;
1162
+ // Retrieves the object associated with the event.
1163
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1164
+ fetchEvent(): Promise<
1165
+ V2MoneyManagementInboundTransferBankDebitReturnedEvent
1166
+ >;
1167
+ }
1168
+
1169
+ /**
1170
+ * Occurs when an InboundTransfer succeeds.
1171
+ */
1172
+ export interface V2MoneyManagementInboundTransferBankDebitSucceededEvent
1173
+ extends V2.Core.EventBase {
1174
+ type: 'v2.money_management.inbound_transfer.bank_debit_succeeded';
1175
+ // Object containing the reference to API resource relevant to the event.
1176
+ related_object: V2.Core.Events.RelatedObject;
1177
+ // Retrieves the object associated with the event.
1178
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1179
+ }
1180
+ export interface V2MoneyManagementInboundTransferBankDebitSucceededEventNotification
1181
+ extends V2.Core.EventNotificationBase {
1182
+ type: 'v2.money_management.inbound_transfer.bank_debit_succeeded';
1183
+ // Object containing the reference to API resource relevant to the event.
1184
+ related_object: V2.Core.Events.RelatedObject;
1185
+ // Retrieves the object associated with the event.
1186
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
1187
+ fetchEvent(): Promise<
1188
+ V2MoneyManagementInboundTransferBankDebitSucceededEvent
1189
+ >;
1190
+ }
1191
+
1192
+ /**
1193
+ * Occurs when an OutboundPayment transitions into the canceled state.
1194
+ */
1195
+ export interface V2MoneyManagementOutboundPaymentCanceledEvent
1196
+ extends V2.Core.EventBase {
1197
+ type: 'v2.money_management.outbound_payment.canceled';
1198
+ // Object containing the reference to API resource relevant to the event.
1199
+ related_object: V2.Core.Events.RelatedObject;
1200
+ // Retrieves the object associated with the event.
1201
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1202
+ }
1203
+ export interface V2MoneyManagementOutboundPaymentCanceledEventNotification
1204
+ extends V2.Core.EventNotificationBase {
1205
+ type: 'v2.money_management.outbound_payment.canceled';
1206
+ // Object containing the reference to API resource relevant to the event.
1207
+ related_object: V2.Core.Events.RelatedObject;
1208
+ // Retrieves the object associated with the event.
1209
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1210
+ fetchEvent(): Promise<V2MoneyManagementOutboundPaymentCanceledEvent>;
1211
+ }
1212
+
1213
+ /**
1214
+ * Occurs when an OutboundPayment is created.
1215
+ */
1216
+ export interface V2MoneyManagementOutboundPaymentCreatedEvent
1217
+ extends V2.Core.EventBase {
1218
+ type: 'v2.money_management.outbound_payment.created';
1219
+ // Object containing the reference to API resource relevant to the event.
1220
+ related_object: V2.Core.Events.RelatedObject;
1221
+ // Retrieves the object associated with the event.
1222
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1223
+ }
1224
+ export interface V2MoneyManagementOutboundPaymentCreatedEventNotification
1225
+ extends V2.Core.EventNotificationBase {
1226
+ type: 'v2.money_management.outbound_payment.created';
1227
+ // Object containing the reference to API resource relevant to the event.
1228
+ related_object: V2.Core.Events.RelatedObject;
1229
+ // Retrieves the object associated with the event.
1230
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1231
+ fetchEvent(): Promise<V2MoneyManagementOutboundPaymentCreatedEvent>;
1232
+ }
1233
+
1234
+ /**
1235
+ * Occurs when an OutboundPayment transitions into the failed state.
1236
+ */
1237
+ export interface V2MoneyManagementOutboundPaymentFailedEvent
1238
+ extends V2.Core.EventBase {
1239
+ type: 'v2.money_management.outbound_payment.failed';
1240
+ // Object containing the reference to API resource relevant to the event.
1241
+ related_object: V2.Core.Events.RelatedObject;
1242
+ // Retrieves the object associated with the event.
1243
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1244
+ }
1245
+ export interface V2MoneyManagementOutboundPaymentFailedEventNotification
1246
+ extends V2.Core.EventNotificationBase {
1247
+ type: 'v2.money_management.outbound_payment.failed';
1248
+ // Object containing the reference to API resource relevant to the event.
1249
+ related_object: V2.Core.Events.RelatedObject;
1250
+ // Retrieves the object associated with the event.
1251
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1252
+ fetchEvent(): Promise<V2MoneyManagementOutboundPaymentFailedEvent>;
1253
+ }
1254
+
1255
+ /**
1256
+ * Occurs when an OutboundPayment transitions into the posted state.
1257
+ */
1258
+ export interface V2MoneyManagementOutboundPaymentPostedEvent
1259
+ extends V2.Core.EventBase {
1260
+ type: 'v2.money_management.outbound_payment.posted';
1261
+ // Object containing the reference to API resource relevant to the event.
1262
+ related_object: V2.Core.Events.RelatedObject;
1263
+ // Retrieves the object associated with the event.
1264
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1265
+ }
1266
+ export interface V2MoneyManagementOutboundPaymentPostedEventNotification
1267
+ extends V2.Core.EventNotificationBase {
1268
+ type: 'v2.money_management.outbound_payment.posted';
1269
+ // Object containing the reference to API resource relevant to the event.
1270
+ related_object: V2.Core.Events.RelatedObject;
1271
+ // Retrieves the object associated with the event.
1272
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1273
+ fetchEvent(): Promise<V2MoneyManagementOutboundPaymentPostedEvent>;
1274
+ }
1275
+
1276
+ /**
1277
+ * Occurs when an OutboundPayment transitions into the returned state.
1278
+ */
1279
+ export interface V2MoneyManagementOutboundPaymentReturnedEvent
1280
+ extends V2.Core.EventBase {
1281
+ type: 'v2.money_management.outbound_payment.returned';
1282
+ // Object containing the reference to API resource relevant to the event.
1283
+ related_object: V2.Core.Events.RelatedObject;
1284
+ // Retrieves the object associated with the event.
1285
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1286
+ }
1287
+ export interface V2MoneyManagementOutboundPaymentReturnedEventNotification
1288
+ extends V2.Core.EventNotificationBase {
1289
+ type: 'v2.money_management.outbound_payment.returned';
1290
+ // Object containing the reference to API resource relevant to the event.
1291
+ related_object: V2.Core.Events.RelatedObject;
1292
+ // Retrieves the object associated with the event.
1293
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1294
+ fetchEvent(): Promise<V2MoneyManagementOutboundPaymentReturnedEvent>;
1295
+ }
1296
+
1297
+ /**
1298
+ * Occurs when an OutboundPayment is updated.
1299
+ */
1300
+ export interface V2MoneyManagementOutboundPaymentUpdatedEvent
1301
+ extends V2.Core.EventBase {
1302
+ type: 'v2.money_management.outbound_payment.updated';
1303
+ // Object containing the reference to API resource relevant to the event.
1304
+ related_object: V2.Core.Events.RelatedObject;
1305
+ // Retrieves the object associated with the event.
1306
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1307
+ }
1308
+ export interface V2MoneyManagementOutboundPaymentUpdatedEventNotification
1309
+ extends V2.Core.EventNotificationBase {
1310
+ type: 'v2.money_management.outbound_payment.updated';
1311
+ // Object containing the reference to API resource relevant to the event.
1312
+ related_object: V2.Core.Events.RelatedObject;
1313
+ // Retrieves the object associated with the event.
1314
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
1315
+ fetchEvent(): Promise<V2MoneyManagementOutboundPaymentUpdatedEvent>;
1316
+ }
1317
+
1318
+ /**
1319
+ * Occurs when an OutboundTransfer transitions into the canceled state.
1320
+ */
1321
+ export interface V2MoneyManagementOutboundTransferCanceledEvent
1322
+ extends V2.Core.EventBase {
1323
+ type: 'v2.money_management.outbound_transfer.canceled';
1324
+ // Object containing the reference to API resource relevant to the event.
1325
+ related_object: V2.Core.Events.RelatedObject;
1326
+ // Retrieves the object associated with the event.
1327
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1328
+ }
1329
+ export interface V2MoneyManagementOutboundTransferCanceledEventNotification
1330
+ extends V2.Core.EventNotificationBase {
1331
+ type: 'v2.money_management.outbound_transfer.canceled';
1332
+ // Object containing the reference to API resource relevant to the event.
1333
+ related_object: V2.Core.Events.RelatedObject;
1334
+ // Retrieves the object associated with the event.
1335
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1336
+ fetchEvent(): Promise<V2MoneyManagementOutboundTransferCanceledEvent>;
1337
+ }
1338
+
1339
+ /**
1340
+ * Occurs when an OutboundTransfer is created.
1341
+ */
1342
+ export interface V2MoneyManagementOutboundTransferCreatedEvent
1343
+ extends V2.Core.EventBase {
1344
+ type: 'v2.money_management.outbound_transfer.created';
1345
+ // Object containing the reference to API resource relevant to the event.
1346
+ related_object: V2.Core.Events.RelatedObject;
1347
+ // Retrieves the object associated with the event.
1348
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1349
+ }
1350
+ export interface V2MoneyManagementOutboundTransferCreatedEventNotification
1351
+ extends V2.Core.EventNotificationBase {
1352
+ type: 'v2.money_management.outbound_transfer.created';
1353
+ // Object containing the reference to API resource relevant to the event.
1354
+ related_object: V2.Core.Events.RelatedObject;
1355
+ // Retrieves the object associated with the event.
1356
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1357
+ fetchEvent(): Promise<V2MoneyManagementOutboundTransferCreatedEvent>;
1358
+ }
1359
+
1360
+ /**
1361
+ * Occurs when an OutboundTransfer transitions into the failed state.
1362
+ */
1363
+ export interface V2MoneyManagementOutboundTransferFailedEvent
1364
+ extends V2.Core.EventBase {
1365
+ type: 'v2.money_management.outbound_transfer.failed';
1366
+ // Object containing the reference to API resource relevant to the event.
1367
+ related_object: V2.Core.Events.RelatedObject;
1368
+ // Retrieves the object associated with the event.
1369
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1370
+ }
1371
+ export interface V2MoneyManagementOutboundTransferFailedEventNotification
1372
+ extends V2.Core.EventNotificationBase {
1373
+ type: 'v2.money_management.outbound_transfer.failed';
1374
+ // Object containing the reference to API resource relevant to the event.
1375
+ related_object: V2.Core.Events.RelatedObject;
1376
+ // Retrieves the object associated with the event.
1377
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1378
+ fetchEvent(): Promise<V2MoneyManagementOutboundTransferFailedEvent>;
1379
+ }
1380
+
1381
+ /**
1382
+ * Occurs when an OutboundTransfer transitions into the posted state.
1383
+ */
1384
+ export interface V2MoneyManagementOutboundTransferPostedEvent
1385
+ extends V2.Core.EventBase {
1386
+ type: 'v2.money_management.outbound_transfer.posted';
1387
+ // Object containing the reference to API resource relevant to the event.
1388
+ related_object: V2.Core.Events.RelatedObject;
1389
+ // Retrieves the object associated with the event.
1390
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1391
+ }
1392
+ export interface V2MoneyManagementOutboundTransferPostedEventNotification
1393
+ extends V2.Core.EventNotificationBase {
1394
+ type: 'v2.money_management.outbound_transfer.posted';
1395
+ // Object containing the reference to API resource relevant to the event.
1396
+ related_object: V2.Core.Events.RelatedObject;
1397
+ // Retrieves the object associated with the event.
1398
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1399
+ fetchEvent(): Promise<V2MoneyManagementOutboundTransferPostedEvent>;
1400
+ }
1401
+
1402
+ /**
1403
+ * Occurs when an OutboundTransfer transitions into the returned state.
1404
+ */
1405
+ export interface V2MoneyManagementOutboundTransferReturnedEvent
1406
+ extends V2.Core.EventBase {
1407
+ type: 'v2.money_management.outbound_transfer.returned';
1408
+ // Object containing the reference to API resource relevant to the event.
1409
+ related_object: V2.Core.Events.RelatedObject;
1410
+ // Retrieves the object associated with the event.
1411
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1412
+ }
1413
+ export interface V2MoneyManagementOutboundTransferReturnedEventNotification
1414
+ extends V2.Core.EventNotificationBase {
1415
+ type: 'v2.money_management.outbound_transfer.returned';
1416
+ // Object containing the reference to API resource relevant to the event.
1417
+ related_object: V2.Core.Events.RelatedObject;
1418
+ // Retrieves the object associated with the event.
1419
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1420
+ fetchEvent(): Promise<V2MoneyManagementOutboundTransferReturnedEvent>;
1421
+ }
1422
+
1423
+ /**
1424
+ * Event that is emitted every time an Outbound Transfer is updated.
1425
+ */
1426
+ export interface V2MoneyManagementOutboundTransferUpdatedEvent
1427
+ extends V2.Core.EventBase {
1428
+ type: 'v2.money_management.outbound_transfer.updated';
1429
+ // Object containing the reference to API resource relevant to the event.
1430
+ related_object: V2.Core.Events.RelatedObject;
1431
+ // Retrieves the object associated with the event.
1432
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1433
+ }
1434
+ export interface V2MoneyManagementOutboundTransferUpdatedEventNotification
1435
+ extends V2.Core.EventNotificationBase {
1436
+ type: 'v2.money_management.outbound_transfer.updated';
1437
+ // Object containing the reference to API resource relevant to the event.
1438
+ related_object: V2.Core.Events.RelatedObject;
1439
+ // Retrieves the object associated with the event.
1440
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
1441
+ fetchEvent(): Promise<V2MoneyManagementOutboundTransferUpdatedEvent>;
1442
+ }
1443
+
1444
+ /**
1445
+ * Occurs when a PayoutMethod is updated.
1446
+ */
1447
+ export interface V2MoneyManagementPayoutMethodUpdatedEvent
1448
+ extends V2.Core.EventBase {
1449
+ type: 'v2.money_management.payout_method.updated';
241
1450
  // Object containing the reference to API resource relevant to the event.
242
1451
  related_object: V2.Core.Events.RelatedObject;
243
1452
  // Retrieves the object associated with the event.
244
- fetchRelatedObject(): Promise<V2.Core.EventDestination>;
1453
+ fetchRelatedObject(): Promise<V2.MoneyManagement.PayoutMethod>;
245
1454
  }
246
- export interface V2CoreEventDestinationPingEventNotification
1455
+ export interface V2MoneyManagementPayoutMethodUpdatedEventNotification
247
1456
  extends V2.Core.EventNotificationBase {
248
- type: 'v2.core.event_destination.ping';
1457
+ type: 'v2.money_management.payout_method.updated';
249
1458
  // Object containing the reference to API resource relevant to the event.
250
1459
  related_object: V2.Core.Events.RelatedObject;
251
1460
  // Retrieves the object associated with the event.
252
- fetchRelatedObject(): Promise<V2.Core.EventDestination>;
253
- fetchEvent(): Promise<V2CoreEventDestinationPingEvent>;
1461
+ fetchRelatedObject(): Promise<V2.MoneyManagement.PayoutMethod>;
1462
+ fetchEvent(): Promise<V2MoneyManagementPayoutMethodUpdatedEvent>;
1463
+ }
1464
+
1465
+ /**
1466
+ * Occurs when a ReceivedCredit's funds are received and are available in your balance.
1467
+ */
1468
+ export interface V2MoneyManagementReceivedCreditAvailableEvent
1469
+ extends V2.Core.EventBase {
1470
+ type: 'v2.money_management.received_credit.available';
1471
+ // Retrieves data specific to this event.
1472
+ data: V2MoneyManagementReceivedCreditAvailableEvent.Data;
1473
+ // Object containing the reference to API resource relevant to the event.
1474
+ related_object: V2.Core.Events.RelatedObject;
1475
+ // Retrieves the object associated with the event.
1476
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1477
+ }
1478
+ export interface V2MoneyManagementReceivedCreditAvailableEventNotification
1479
+ extends V2.Core.EventNotificationBase {
1480
+ type: 'v2.money_management.received_credit.available';
1481
+ // Object containing the reference to API resource relevant to the event.
1482
+ related_object: V2.Core.Events.RelatedObject;
1483
+ // Retrieves the object associated with the event.
1484
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1485
+ fetchEvent(): Promise<V2MoneyManagementReceivedCreditAvailableEvent>;
1486
+ }
1487
+
1488
+ namespace V2MoneyManagementReceivedCreditAvailableEvent {
1489
+ export interface Data {
1490
+ /**
1491
+ * The transaction ID of the received credit.
1492
+ */
1493
+ transaction_id: string;
1494
+ }
1495
+ }
1496
+
1497
+ /**
1498
+ * Occurs when a ReceivedCredit is attempted to your balance and fails. See the status_details for more information.
1499
+ */
1500
+ export interface V2MoneyManagementReceivedCreditFailedEvent
1501
+ extends V2.Core.EventBase {
1502
+ type: 'v2.money_management.received_credit.failed';
1503
+ // Object containing the reference to API resource relevant to the event.
1504
+ related_object: V2.Core.Events.RelatedObject;
1505
+ // Retrieves the object associated with the event.
1506
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1507
+ }
1508
+ export interface V2MoneyManagementReceivedCreditFailedEventNotification
1509
+ extends V2.Core.EventNotificationBase {
1510
+ type: 'v2.money_management.received_credit.failed';
1511
+ // Object containing the reference to API resource relevant to the event.
1512
+ related_object: V2.Core.Events.RelatedObject;
1513
+ // Retrieves the object associated with the event.
1514
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1515
+ fetchEvent(): Promise<V2MoneyManagementReceivedCreditFailedEvent>;
1516
+ }
1517
+
1518
+ /**
1519
+ * Occurs when a ReceivedCredit is reversed, returned to the originator, and deducted from your balance.
1520
+ */
1521
+ export interface V2MoneyManagementReceivedCreditReturnedEvent
1522
+ extends V2.Core.EventBase {
1523
+ type: 'v2.money_management.received_credit.returned';
1524
+ // Object containing the reference to API resource relevant to the event.
1525
+ related_object: V2.Core.Events.RelatedObject;
1526
+ // Retrieves the object associated with the event.
1527
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1528
+ }
1529
+ export interface V2MoneyManagementReceivedCreditReturnedEventNotification
1530
+ extends V2.Core.EventNotificationBase {
1531
+ type: 'v2.money_management.received_credit.returned';
1532
+ // Object containing the reference to API resource relevant to the event.
1533
+ related_object: V2.Core.Events.RelatedObject;
1534
+ // Retrieves the object associated with the event.
1535
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1536
+ fetchEvent(): Promise<V2MoneyManagementReceivedCreditReturnedEvent>;
1537
+ }
1538
+
1539
+ /**
1540
+ * Occurs when a ReceivedCredit succeeds.
1541
+ */
1542
+ export interface V2MoneyManagementReceivedCreditSucceededEvent
1543
+ extends V2.Core.EventBase {
1544
+ type: 'v2.money_management.received_credit.succeeded';
1545
+ // Object containing the reference to API resource relevant to the event.
1546
+ related_object: V2.Core.Events.RelatedObject;
1547
+ // Retrieves the object associated with the event.
1548
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1549
+ }
1550
+ export interface V2MoneyManagementReceivedCreditSucceededEventNotification
1551
+ extends V2.Core.EventNotificationBase {
1552
+ type: 'v2.money_management.received_credit.succeeded';
1553
+ // Object containing the reference to API resource relevant to the event.
1554
+ related_object: V2.Core.Events.RelatedObject;
1555
+ // Retrieves the object associated with the event.
1556
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
1557
+ fetchEvent(): Promise<V2MoneyManagementReceivedCreditSucceededEvent>;
1558
+ }
1559
+
1560
+ /**
1561
+ * Occurs when a ReceivedDebit is canceled.
1562
+ */
1563
+ export interface V2MoneyManagementReceivedDebitCanceledEvent
1564
+ extends V2.Core.EventBase {
1565
+ type: 'v2.money_management.received_debit.canceled';
1566
+ // Object containing the reference to API resource relevant to the event.
1567
+ related_object: V2.Core.Events.RelatedObject;
1568
+ // Retrieves the object associated with the event.
1569
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1570
+ }
1571
+ export interface V2MoneyManagementReceivedDebitCanceledEventNotification
1572
+ extends V2.Core.EventNotificationBase {
1573
+ type: 'v2.money_management.received_debit.canceled';
1574
+ // Object containing the reference to API resource relevant to the event.
1575
+ related_object: V2.Core.Events.RelatedObject;
1576
+ // Retrieves the object associated with the event.
1577
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1578
+ fetchEvent(): Promise<V2MoneyManagementReceivedDebitCanceledEvent>;
1579
+ }
1580
+
1581
+ /**
1582
+ * Occurs when a ReceivedDebit fails.
1583
+ */
1584
+ export interface V2MoneyManagementReceivedDebitFailedEvent
1585
+ extends V2.Core.EventBase {
1586
+ type: 'v2.money_management.received_debit.failed';
1587
+ // Object containing the reference to API resource relevant to the event.
1588
+ related_object: V2.Core.Events.RelatedObject;
1589
+ // Retrieves the object associated with the event.
1590
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1591
+ }
1592
+ export interface V2MoneyManagementReceivedDebitFailedEventNotification
1593
+ extends V2.Core.EventNotificationBase {
1594
+ type: 'v2.money_management.received_debit.failed';
1595
+ // Object containing the reference to API resource relevant to the event.
1596
+ related_object: V2.Core.Events.RelatedObject;
1597
+ // Retrieves the object associated with the event.
1598
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1599
+ fetchEvent(): Promise<V2MoneyManagementReceivedDebitFailedEvent>;
1600
+ }
1601
+
1602
+ /**
1603
+ * Occurs when a ReceivedDebit is set to pending.
1604
+ */
1605
+ export interface V2MoneyManagementReceivedDebitPendingEvent
1606
+ extends V2.Core.EventBase {
1607
+ type: 'v2.money_management.received_debit.pending';
1608
+ // Object containing the reference to API resource relevant to the event.
1609
+ related_object: V2.Core.Events.RelatedObject;
1610
+ // Retrieves the object associated with the event.
1611
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1612
+ }
1613
+ export interface V2MoneyManagementReceivedDebitPendingEventNotification
1614
+ extends V2.Core.EventNotificationBase {
1615
+ type: 'v2.money_management.received_debit.pending';
1616
+ // Object containing the reference to API resource relevant to the event.
1617
+ related_object: V2.Core.Events.RelatedObject;
1618
+ // Retrieves the object associated with the event.
1619
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1620
+ fetchEvent(): Promise<V2MoneyManagementReceivedDebitPendingEvent>;
1621
+ }
1622
+
1623
+ /**
1624
+ * Occurs when a ReceivedDebit succeeds.
1625
+ */
1626
+ export interface V2MoneyManagementReceivedDebitSucceededEvent
1627
+ extends V2.Core.EventBase {
1628
+ type: 'v2.money_management.received_debit.succeeded';
1629
+ // Object containing the reference to API resource relevant to the event.
1630
+ related_object: V2.Core.Events.RelatedObject;
1631
+ // Retrieves the object associated with the event.
1632
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1633
+ }
1634
+ export interface V2MoneyManagementReceivedDebitSucceededEventNotification
1635
+ extends V2.Core.EventNotificationBase {
1636
+ type: 'v2.money_management.received_debit.succeeded';
1637
+ // Object containing the reference to API resource relevant to the event.
1638
+ related_object: V2.Core.Events.RelatedObject;
1639
+ // Retrieves the object associated with the event.
1640
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1641
+ fetchEvent(): Promise<V2MoneyManagementReceivedDebitSucceededEvent>;
1642
+ }
1643
+
1644
+ /**
1645
+ * Occurs when a ReceivedDebit is updated.
1646
+ */
1647
+ export interface V2MoneyManagementReceivedDebitUpdatedEvent
1648
+ extends V2.Core.EventBase {
1649
+ type: 'v2.money_management.received_debit.updated';
1650
+ // Object containing the reference to API resource relevant to the event.
1651
+ related_object: V2.Core.Events.RelatedObject;
1652
+ // Retrieves the object associated with the event.
1653
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1654
+ }
1655
+ export interface V2MoneyManagementReceivedDebitUpdatedEventNotification
1656
+ extends V2.Core.EventNotificationBase {
1657
+ type: 'v2.money_management.received_debit.updated';
1658
+ // Object containing the reference to API resource relevant to the event.
1659
+ related_object: V2.Core.Events.RelatedObject;
1660
+ // Retrieves the object associated with the event.
1661
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1662
+ fetchEvent(): Promise<V2MoneyManagementReceivedDebitUpdatedEvent>;
1663
+ }
1664
+
1665
+ /**
1666
+ * Occurs when a Transaction is created.
1667
+ */
1668
+ export interface V2MoneyManagementTransactionCreatedEvent
1669
+ extends V2.Core.EventBase {
1670
+ type: 'v2.money_management.transaction.created';
1671
+ // Retrieves data specific to this event.
1672
+ data: V2MoneyManagementTransactionCreatedEvent.Data;
1673
+ // Object containing the reference to API resource relevant to the event.
1674
+ related_object: V2.Core.Events.RelatedObject;
1675
+ // Retrieves the object associated with the event.
1676
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1677
+ }
1678
+ export interface V2MoneyManagementTransactionCreatedEventNotification
1679
+ extends V2.Core.EventNotificationBase {
1680
+ type: 'v2.money_management.transaction.created';
1681
+ // Object containing the reference to API resource relevant to the event.
1682
+ related_object: V2.Core.Events.RelatedObject;
1683
+ // Retrieves the object associated with the event.
1684
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1685
+ fetchEvent(): Promise<V2MoneyManagementTransactionCreatedEvent>;
1686
+ }
1687
+
1688
+ namespace V2MoneyManagementTransactionCreatedEvent {
1689
+ export interface Data {
1690
+ /**
1691
+ * Id of the v1 Transaction corresponding to this Transaction.
1692
+ */
1693
+ v1_id?: string;
1694
+ }
1695
+ }
1696
+
1697
+ /**
1698
+ * Occurs when a Transaction is updated.
1699
+ */
1700
+ export interface V2MoneyManagementTransactionUpdatedEvent
1701
+ extends V2.Core.EventBase {
1702
+ type: 'v2.money_management.transaction.updated';
1703
+ // Object containing the reference to API resource relevant to the event.
1704
+ related_object: V2.Core.Events.RelatedObject;
1705
+ // Retrieves the object associated with the event.
1706
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1707
+ }
1708
+ export interface V2MoneyManagementTransactionUpdatedEventNotification
1709
+ extends V2.Core.EventNotificationBase {
1710
+ type: 'v2.money_management.transaction.updated';
1711
+ // Object containing the reference to API resource relevant to the event.
1712
+ related_object: V2.Core.Events.RelatedObject;
1713
+ // Retrieves the object associated with the event.
1714
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1715
+ fetchEvent(): Promise<V2MoneyManagementTransactionUpdatedEvent>;
1716
+ }
1717
+
1718
+ /**
1719
+ * Sent after a failed authorization if there are still retries available on the OffSessionPayment.
1720
+ */
1721
+ export interface V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent
1722
+ extends V2.Core.EventBase {
1723
+ type: 'v2.payments.off_session_payment.authorization_attempt_failed';
1724
+ // Object containing the reference to API resource relevant to the event.
1725
+ related_object: V2.Core.Events.RelatedObject;
1726
+ // Retrieves the object associated with the event.
1727
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1728
+ }
1729
+ export interface V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification
1730
+ extends V2.Core.EventNotificationBase {
1731
+ type: 'v2.payments.off_session_payment.authorization_attempt_failed';
1732
+ // Object containing the reference to API resource relevant to the event.
1733
+ related_object: V2.Core.Events.RelatedObject;
1734
+ // Retrieves the object associated with the event.
1735
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1736
+ fetchEvent(): Promise<
1737
+ V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent
1738
+ >;
1739
+ }
1740
+
1741
+ /**
1742
+ * Sent when our internal scheduling system kicks off an attempt at authorization, whether it's a
1743
+ * retry or an initial authorization.
1744
+ */
1745
+ export interface V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent
1746
+ extends V2.Core.EventBase {
1747
+ type: 'v2.payments.off_session_payment.authorization_attempt_started';
1748
+ // Object containing the reference to API resource relevant to the event.
1749
+ related_object: V2.Core.Events.RelatedObject;
1750
+ // Retrieves the object associated with the event.
1751
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1752
+ }
1753
+ export interface V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification
1754
+ extends V2.Core.EventNotificationBase {
1755
+ type: 'v2.payments.off_session_payment.authorization_attempt_started';
1756
+ // Object containing the reference to API resource relevant to the event.
1757
+ related_object: V2.Core.Events.RelatedObject;
1758
+ // Retrieves the object associated with the event.
1759
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1760
+ fetchEvent(): Promise<
1761
+ V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent
1762
+ >;
1763
+ }
1764
+
1765
+ /**
1766
+ * Sent immediately following a user's call to the Off-Session Payments cancel endpoint.
1767
+ */
1768
+ export interface V2PaymentsOffSessionPaymentCanceledEvent
1769
+ extends V2.Core.EventBase {
1770
+ type: 'v2.payments.off_session_payment.canceled';
1771
+ // Object containing the reference to API resource relevant to the event.
1772
+ related_object: V2.Core.Events.RelatedObject;
1773
+ // Retrieves the object associated with the event.
1774
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1775
+ }
1776
+ export interface V2PaymentsOffSessionPaymentCanceledEventNotification
1777
+ extends V2.Core.EventNotificationBase {
1778
+ type: 'v2.payments.off_session_payment.canceled';
1779
+ // Object containing the reference to API resource relevant to the event.
1780
+ related_object: V2.Core.Events.RelatedObject;
1781
+ // Retrieves the object associated with the event.
1782
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1783
+ fetchEvent(): Promise<V2PaymentsOffSessionPaymentCanceledEvent>;
1784
+ }
1785
+
1786
+ /**
1787
+ * Sent immediately following a user's call to the Off-Session Payments create endpoint.
1788
+ */
1789
+ export interface V2PaymentsOffSessionPaymentCreatedEvent
1790
+ extends V2.Core.EventBase {
1791
+ type: 'v2.payments.off_session_payment.created';
1792
+ // Object containing the reference to API resource relevant to the event.
1793
+ related_object: V2.Core.Events.RelatedObject;
1794
+ // Retrieves the object associated with the event.
1795
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1796
+ }
1797
+ export interface V2PaymentsOffSessionPaymentCreatedEventNotification
1798
+ extends V2.Core.EventNotificationBase {
1799
+ type: 'v2.payments.off_session_payment.created';
1800
+ // Object containing the reference to API resource relevant to the event.
1801
+ related_object: V2.Core.Events.RelatedObject;
1802
+ // Retrieves the object associated with the event.
1803
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1804
+ fetchEvent(): Promise<V2PaymentsOffSessionPaymentCreatedEvent>;
1805
+ }
1806
+
1807
+ /**
1808
+ * Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
1809
+ */
1810
+ export interface V2PaymentsOffSessionPaymentFailedEvent
1811
+ extends V2.Core.EventBase {
1812
+ type: 'v2.payments.off_session_payment.failed';
1813
+ // Object containing the reference to API resource relevant to the event.
1814
+ related_object: V2.Core.Events.RelatedObject;
1815
+ // Retrieves the object associated with the event.
1816
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1817
+ }
1818
+ export interface V2PaymentsOffSessionPaymentFailedEventNotification
1819
+ extends V2.Core.EventNotificationBase {
1820
+ type: 'v2.payments.off_session_payment.failed';
1821
+ // Object containing the reference to API resource relevant to the event.
1822
+ related_object: V2.Core.Events.RelatedObject;
1823
+ // Retrieves the object associated with the event.
1824
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1825
+ fetchEvent(): Promise<V2PaymentsOffSessionPaymentFailedEvent>;
1826
+ }
1827
+
1828
+ /**
1829
+ * Off-Session payment requires capture event definition.
1830
+ */
1831
+ export interface V2PaymentsOffSessionPaymentRequiresCaptureEvent
1832
+ extends V2.Core.EventBase {
1833
+ type: 'v2.payments.off_session_payment.requires_capture';
1834
+ // Object containing the reference to API resource relevant to the event.
1835
+ related_object: V2.Core.Events.RelatedObject;
1836
+ // Retrieves the object associated with the event.
1837
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1838
+ }
1839
+ export interface V2PaymentsOffSessionPaymentRequiresCaptureEventNotification
1840
+ extends V2.Core.EventNotificationBase {
1841
+ type: 'v2.payments.off_session_payment.requires_capture';
1842
+ // Object containing the reference to API resource relevant to the event.
1843
+ related_object: V2.Core.Events.RelatedObject;
1844
+ // Retrieves the object associated with the event.
1845
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1846
+ fetchEvent(): Promise<V2PaymentsOffSessionPaymentRequiresCaptureEvent>;
1847
+ }
1848
+
1849
+ /**
1850
+ * Sent immediately after a successful authorization.
1851
+ */
1852
+ export interface V2PaymentsOffSessionPaymentSucceededEvent
1853
+ extends V2.Core.EventBase {
1854
+ type: 'v2.payments.off_session_payment.succeeded';
1855
+ // Object containing the reference to API resource relevant to the event.
1856
+ related_object: V2.Core.Events.RelatedObject;
1857
+ // Retrieves the object associated with the event.
1858
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1859
+ }
1860
+ export interface V2PaymentsOffSessionPaymentSucceededEventNotification
1861
+ extends V2.Core.EventNotificationBase {
1862
+ type: 'v2.payments.off_session_payment.succeeded';
1863
+ // Object containing the reference to API resource relevant to the event.
1864
+ related_object: V2.Core.Events.RelatedObject;
1865
+ // Retrieves the object associated with the event.
1866
+ fetchRelatedObject(): Promise<V2.Payments.OffSessionPayment>;
1867
+ fetchEvent(): Promise<V2PaymentsOffSessionPaymentSucceededEvent>;
254
1868
  }
255
1869
  }
256
1870
  }