stripe 18.1.0 → 18.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/CHANGELOG.md +1220 -140
  2. package/README.md +1 -0
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +91 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/AccountNotices.js +21 -0
  7. package/cjs/resources/BalanceSettings.js +10 -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/GiftCards/Cards.js +23 -0
  16. package/cjs/resources/GiftCards/Transactions.js +33 -0
  17. package/cjs/resources/Invoices.js +4 -0
  18. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  19. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  20. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  21. package/cjs/resources/Margins.js +22 -0
  22. package/cjs/resources/Orders.js +24 -0
  23. package/cjs/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
  24. package/cjs/resources/PaymentIntents.js +13 -0
  25. package/cjs/resources/PaymentRecords.js +29 -0
  26. package/cjs/resources/Privacy/RedactionJobs.js +42 -0
  27. package/cjs/resources/Quotes.js +32 -0
  28. package/cjs/resources/SubscriptionSchedules.js +4 -0
  29. package/cjs/resources/Tax/Associations.js +9 -0
  30. package/cjs/resources/Tax/Forms.js +20 -0
  31. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  32. package/cjs/resources/Terminal/Readers.js +12 -0
  33. package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
  34. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  35. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  36. package/cjs/resources/V2/Core/Accounts.js +25 -0
  37. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  38. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  39. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  40. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +17 -0
  41. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  42. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  43. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
  44. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  45. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  46. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  47. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  48. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  49. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  50. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  51. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  52. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  53. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  54. package/cjs/resources.js +108 -18
  55. package/cjs/stripe.core.js +1 -1
  56. package/esm/Error.js +79 -0
  57. package/esm/apiVersion.js +1 -1
  58. package/esm/resources/AccountNotices.js +18 -0
  59. package/esm/resources/BalanceSettings.js +7 -0
  60. package/esm/resources/Capital/FinancingOffers.js +18 -0
  61. package/esm/resources/Capital/FinancingSummary.js +9 -0
  62. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  63. package/esm/resources/ExternalAccounts.js +20 -0
  64. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  65. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  66. package/esm/resources/FxQuotes.js +12 -0
  67. package/esm/resources/GiftCards/Cards.js +20 -0
  68. package/esm/resources/GiftCards/Transactions.js +30 -0
  69. package/esm/resources/Invoices.js +4 -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/Margins.js +19 -0
  74. package/esm/resources/Orders.js +21 -0
  75. package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
  76. package/esm/resources/PaymentIntents.js +13 -0
  77. package/esm/resources/PaymentRecords.js +26 -0
  78. package/esm/resources/Privacy/RedactionJobs.js +39 -0
  79. package/esm/resources/Quotes.js +32 -0
  80. package/esm/resources/SubscriptionSchedules.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/ReaderCollectedData.js +9 -0
  84. package/esm/resources/Terminal/Readers.js +12 -0
  85. package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
  86. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  87. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  88. package/esm/resources/V2/Core/Accounts.js +22 -0
  89. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  90. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  91. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  92. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
  93. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  94. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  95. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
  96. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  97. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  98. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  99. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  100. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  101. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  102. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  103. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  104. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  105. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  106. package/esm/resources.js +84 -1
  107. package/esm/stripe.core.js +1 -1
  108. package/package.json +1 -1
  109. package/types/AccountLinksResource.d.ts +5 -1
  110. package/types/AccountNotices.d.ts +113 -0
  111. package/types/AccountNoticesResource.d.ts +98 -0
  112. package/types/AccountSessions.d.ts +45 -0
  113. package/types/AccountSessionsResource.d.ts +300 -0
  114. package/types/Accounts.d.ts +212 -1
  115. package/types/AccountsResource.d.ts +544 -0
  116. package/types/BalanceSettings.d.ts +89 -0
  117. package/types/BalanceSettingsResource.d.ts +108 -0
  118. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  119. package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
  120. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  121. package/types/Billing/CreditGrants.d.ts +5 -0
  122. package/types/Billing/CreditGrantsResource.d.ts +11 -1
  123. package/types/Billing/MeterErrorReports.d.ts +106 -0
  124. package/types/BillingPortal/Sessions.d.ts +5 -0
  125. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  126. package/types/Capital/FinancingOffers.d.ts +188 -0
  127. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  128. package/types/Capital/FinancingSummary.d.ts +106 -0
  129. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  130. package/types/Capital/FinancingTransactions.d.ts +135 -0
  131. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  132. package/types/Cards.d.ts +5 -0
  133. package/types/CashBalances.d.ts +5 -0
  134. package/types/Charges.d.ts +166 -0
  135. package/types/ChargesResource.d.ts +1314 -0
  136. package/types/Checkout/Sessions.d.ts +315 -2
  137. package/types/Checkout/SessionsResource.d.ts +340 -1
  138. package/types/ConfirmationTokens.d.ts +125 -0
  139. package/types/Coupons.d.ts +33 -0
  140. package/types/CouponsResource.d.ts +21 -0
  141. package/types/CreditNoteLineItems.d.ts +17 -0
  142. package/types/CreditNotes.d.ts +9 -0
  143. package/types/CreditNotesResource.d.ts +5 -0
  144. package/types/CustomerBalanceTransactions.d.ts +2 -0
  145. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  146. package/types/CustomerSessions.d.ts +5 -0
  147. package/types/CustomerSessionsResource.d.ts +6 -1
  148. package/types/Customers.d.ts +2 -0
  149. package/types/CustomersResource.d.ts +8 -0
  150. package/types/Discounts.d.ts +10 -0
  151. package/types/Errors.d.ts +69 -2
  152. package/types/EventTypes.d.ts +698 -0
  153. package/types/Events.d.ts +99 -0
  154. package/types/ExternalAccountsResource.d.ts +304 -0
  155. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  156. package/types/FinancialConnections/Accounts.d.ts +31 -1
  157. package/types/FinancialConnections/AccountsResource.d.ts +40 -3
  158. package/types/FinancialConnections/Institutions.d.ts +93 -0
  159. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  160. package/types/FinancialConnections/Sessions.d.ts +51 -1
  161. package/types/FinancialConnections/SessionsResource.d.ts +43 -1
  162. package/types/FxQuotes.d.ts +153 -0
  163. package/types/FxQuotesResource.d.ts +130 -0
  164. package/types/GiftCards/Cards.d.ts +118 -0
  165. package/types/GiftCards/CardsResource.d.ts +159 -0
  166. package/types/GiftCards/Transactions.d.ts +129 -0
  167. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  168. package/types/Identity/VerificationSessions.d.ts +5 -0
  169. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  170. package/types/InvoiceItems.d.ts +10 -0
  171. package/types/InvoiceItemsResource.d.ts +117 -6
  172. package/types/InvoiceLineItems.d.ts +45 -1
  173. package/types/InvoicePayments.d.ts +5 -0
  174. package/types/Invoices.d.ts +136 -3
  175. package/types/InvoicesResource.d.ts +1483 -3
  176. package/types/Issuing/CardholdersResource.d.ts +2 -1
  177. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  178. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  179. package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
  180. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  181. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  182. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  183. package/types/Issuing/Settlements.d.ts +113 -0
  184. package/types/Issuing/Transactions.d.ts +5 -0
  185. package/types/Issuing/TransactionsResource.d.ts +5 -0
  186. package/types/LineItems.d.ts +49 -0
  187. package/types/Mandates.d.ts +77 -0
  188. package/types/Margins.d.ts +56 -0
  189. package/types/MarginsResource.d.ts +114 -0
  190. package/types/Orders.d.ts +1199 -0
  191. package/types/OrdersResource.d.ts +3001 -0
  192. package/types/PaymentAttemptRecords.d.ts +2112 -0
  193. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  194. package/types/PaymentIntentAmountDetailsLineItems.d.ts +110 -0
  195. package/types/PaymentIntents.d.ts +728 -2
  196. package/types/PaymentIntentsResource.d.ts +8618 -4094
  197. package/types/PaymentLinks.d.ts +6 -0
  198. package/types/PaymentLinksResource.d.ts +12 -0
  199. package/types/PaymentMethodConfigurations.d.ts +180 -0
  200. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  201. package/types/PaymentMethods.d.ts +125 -0
  202. package/types/PaymentMethodsResource.d.ts +167 -2
  203. package/types/PaymentRecords.d.ts +2105 -0
  204. package/types/PaymentRecordsResource.d.ts +455 -0
  205. package/types/Payouts.d.ts +5 -0
  206. package/types/PayoutsResource.d.ts +5 -0
  207. package/types/Prices.d.ts +22 -0
  208. package/types/PricesResource.d.ts +22 -0
  209. package/types/Privacy/RedactionJobValidationErrors.d.ts +30 -0
  210. package/types/Privacy/RedactionJobs.d.ts +65 -0
  211. package/types/Privacy/RedactionJobsResource.d.ts +218 -0
  212. package/types/Products.d.ts +39 -0
  213. package/types/ProductsResource.d.ts +36 -0
  214. package/types/PromotionCodes.d.ts +5 -0
  215. package/types/PromotionCodesResource.d.ts +10 -0
  216. package/types/QuoteLines.d.ts +634 -0
  217. package/types/QuotePreviewInvoices.d.ts +1697 -0
  218. package/types/QuotePreviewSubscriptionSchedules.d.ts +785 -0
  219. package/types/Quotes.d.ts +603 -1
  220. package/types/QuotesResource.d.ts +2572 -218
  221. package/types/Refunds.d.ts +14 -0
  222. package/types/SetupAttempts.d.ts +50 -1
  223. package/types/SetupIntents.d.ts +121 -2
  224. package/types/SetupIntentsResource.d.ts +730 -3
  225. package/types/Sources.d.ts +29 -0
  226. package/types/SubscriptionItems.d.ts +23 -0
  227. package/types/SubscriptionItemsResource.d.ts +109 -0
  228. package/types/SubscriptionSchedules.d.ts +212 -0
  229. package/types/SubscriptionSchedulesResource.d.ts +1240 -5
  230. package/types/Subscriptions.d.ts +104 -1
  231. package/types/SubscriptionsResource.d.ts +397 -8
  232. package/types/Tax/Associations.d.ts +126 -0
  233. package/types/Tax/AssociationsResource.d.ts +29 -0
  234. package/types/Tax/Forms.d.ts +220 -0
  235. package/types/Tax/FormsResource.d.ts +107 -0
  236. package/types/TaxIds.d.ts +10 -0
  237. package/types/TaxIdsResource.d.ts +10 -0
  238. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  239. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  240. package/types/Terminal/Readers.d.ts +300 -0
  241. package/types/Terminal/ReadersResource.d.ts +220 -0
  242. package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
  243. package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
  244. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  245. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  246. package/types/Transfers.d.ts +5 -0
  247. package/types/TransfersResource.d.ts +5 -0
  248. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  249. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  250. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  251. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  252. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  253. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  254. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  255. package/types/V2/Core/AccountLinks.d.ts +106 -0
  256. package/types/V2/Core/AccountLinksResource.d.ts +90 -0
  257. package/types/V2/Core/Accounts/PersonsResource.d.ts +3770 -0
  258. package/types/V2/Core/Accounts.d.ts +8169 -0
  259. package/types/V2/Core/AccountsResource.d.ts +10203 -0
  260. package/types/V2/Core/Persons.d.ts +1867 -0
  261. package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
  262. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  263. package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
  264. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  265. package/types/V2/EventTypes.d.ts +812 -1
  266. package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
  267. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
  268. package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
  269. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  270. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +546 -0
  271. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
  272. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
  273. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +288 -0
  274. package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
  275. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  276. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
  277. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
  278. package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
  279. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  280. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
  281. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  282. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
  283. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
  284. package/types/V2/MoneyManagement/PayoutMethods.d.ts +151 -0
  285. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  286. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
  287. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  288. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +285 -0
  289. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  290. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +224 -0
  291. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  292. package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
  293. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  294. package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
  295. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  296. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
  297. package/types/WebhookEndpointsResource.d.ts +82 -0
  298. package/types/index.d.ts +145 -5
  299. package/types/lib.d.ts +11 -1
  300. package/types/test/typescriptTest.ts +3 -3
  301. package/types/InvoicePaymentsResource.d.ts +0 -74
@@ -3,12 +3,405 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe.V2 {
5
5
  export type Event =
6
+ | Stripe.Events.V2CoreAccountIncludingRequirementsUpdatedEvent
7
+ | Stripe.Events.V2CoreAccountLinkCompletedEvent
8
+ | Stripe.Events.V2CoreAccountClosedEvent
9
+ | Stripe.Events.V2CoreAccountCreatedEvent
10
+ | Stripe.Events.V2CoreAccountUpdatedEvent
11
+ | Stripe.Events.V2CoreAccountIncludingDefaultsUpdatedEvent
12
+ | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
13
+ | Stripe.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
14
+ | Stripe.Events.V2CoreAccountIncludingIdentityUpdatedEvent
15
+ | Stripe.Events.V2CoreAccountPersonCreatedEvent
16
+ | Stripe.Events.V2CoreAccountPersonDeletedEvent
17
+ | Stripe.Events.V2CoreAccountPersonUpdatedEvent
18
+ | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
19
+ | Stripe.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
20
+ | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
21
+ | Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
22
+ | Stripe.Events.V2MoneyManagementAdjustmentCreatedEvent
6
23
  | Stripe.Events.V1BillingMeterErrorReportTriggeredEvent
7
24
  | Stripe.Events.V1BillingMeterNoMeterFoundEvent
8
- | Stripe.Events.V2CoreEventDestinationPingEvent;
25
+ | Stripe.Events.V2MoneyManagementFinancialAccountCreatedEvent
26
+ | Stripe.Events.V2MoneyManagementFinancialAccountUpdatedEvent
27
+ | Stripe.Events.V2MoneyManagementFinancialAddressActivatedEvent
28
+ | Stripe.Events.V2MoneyManagementFinancialAddressFailedEvent
29
+ | Stripe.Events.V2MoneyManagementInboundTransferAvailableEvent
30
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitFailedEvent
31
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitProcessingEvent
32
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitQueuedEvent
33
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitReturnedEvent
34
+ | Stripe.Events.V2MoneyManagementInboundTransferBankDebitSucceededEvent
35
+ | Stripe.Events.V2CoreEventDestinationPingEvent
36
+ | Stripe.Events.V2MoneyManagementOutboundPaymentCanceledEvent
37
+ | Stripe.Events.V2MoneyManagementOutboundPaymentCreatedEvent
38
+ | Stripe.Events.V2MoneyManagementOutboundPaymentFailedEvent
39
+ | Stripe.Events.V2MoneyManagementOutboundPaymentPostedEvent
40
+ | Stripe.Events.V2MoneyManagementOutboundPaymentReturnedEvent
41
+ | Stripe.Events.V2MoneyManagementOutboundPaymentUpdatedEvent
42
+ | Stripe.Events.V2MoneyManagementOutboundTransferCanceledEvent
43
+ | Stripe.Events.V2MoneyManagementOutboundTransferCreatedEvent
44
+ | Stripe.Events.V2MoneyManagementOutboundTransferFailedEvent
45
+ | Stripe.Events.V2MoneyManagementOutboundTransferPostedEvent
46
+ | Stripe.Events.V2MoneyManagementOutboundTransferReturnedEvent
47
+ | Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEvent
48
+ | Stripe.Events.V2MoneyManagementReceivedCreditAvailableEvent
49
+ | Stripe.Events.V2MoneyManagementReceivedCreditFailedEvent
50
+ | Stripe.Events.V2MoneyManagementReceivedCreditReturnedEvent
51
+ | Stripe.Events.V2MoneyManagementReceivedCreditSucceededEvent
52
+ | Stripe.Events.V2MoneyManagementReceivedDebitCanceledEvent
53
+ | Stripe.Events.V2MoneyManagementReceivedDebitFailedEvent
54
+ | Stripe.Events.V2MoneyManagementReceivedDebitPendingEvent
55
+ | Stripe.Events.V2MoneyManagementReceivedDebitSucceededEvent
56
+ | Stripe.Events.V2MoneyManagementReceivedDebitUpdatedEvent
57
+ | Stripe.Events.V2MoneyManagementTransactionCreatedEvent
58
+ | Stripe.Events.V2MoneyManagementTransactionUpdatedEvent;
9
59
  }
10
60
 
11
61
  namespace Stripe.Events {
62
+ /**
63
+ * Occurs when an Account's requirements are updated.
64
+ */
65
+ export interface V2CoreAccountIncludingRequirementsUpdatedEvent
66
+ extends V2.EventBase {
67
+ type: 'v2.core.account[requirements].updated';
68
+ // Object containing the reference to API resource relevant to the event.
69
+ related_object: Event.RelatedObject;
70
+ // Retrieves the object associated with the event.
71
+ fetchRelatedObject(): Promise<V2.Core.Account>;
72
+ }
73
+
74
+ /**
75
+ * The generated account link has been completed.
76
+ */
77
+ export interface V2CoreAccountLinkCompletedEvent extends V2.EventBase {
78
+ type: 'v2.core.account_link.completed';
79
+ // Retrieves data specific to this event.
80
+ data: V2CoreAccountLinkCompletedEvent.Data;
81
+ }
82
+
83
+ namespace V2CoreAccountLinkCompletedEvent {
84
+ export interface Data {
85
+ /**
86
+ * The ID of the v2 account.
87
+ */
88
+ account_id: string;
89
+
90
+ /**
91
+ * Configurations on the Account that was onboarded via the account link.
92
+ */
93
+ configurations: Array<'recipient'>;
94
+
95
+ /**
96
+ * Open Enum. The use case type of the account link that has been completed.
97
+ */
98
+ use_case: Data.UseCase;
99
+ }
100
+
101
+ namespace Data {
102
+ export type UseCase = 'account_onboarding' | 'account_update';
103
+ }
104
+ }
105
+
106
+ /**
107
+ * This event occurs when an account is closed.
108
+ */
109
+ export interface V2CoreAccountClosedEvent extends V2.EventBase {
110
+ type: 'v2.core.account.closed';
111
+ // Object containing the reference to API resource relevant to the event.
112
+ related_object: Event.RelatedObject;
113
+ // Retrieves the object associated with the event.
114
+ fetchRelatedObject(): Promise<V2.Core.Account>;
115
+ }
116
+
117
+ /**
118
+ * Occurs when an Account is created.
119
+ */
120
+ export interface V2CoreAccountCreatedEvent extends V2.EventBase {
121
+ type: 'v2.core.account.created';
122
+ // Object containing the reference to API resource relevant to the event.
123
+ related_object: Event.RelatedObject;
124
+ // Retrieves the object associated with the event.
125
+ fetchRelatedObject(): Promise<V2.Core.Account>;
126
+ }
127
+
128
+ /**
129
+ * Occurs when an Account is updated.
130
+ */
131
+ export interface V2CoreAccountUpdatedEvent extends V2.EventBase {
132
+ type: 'v2.core.account.updated';
133
+ // Object containing the reference to API resource relevant to the event.
134
+ related_object: Event.RelatedObject;
135
+ // Retrieves the object associated with the event.
136
+ fetchRelatedObject(): Promise<V2.Core.Account>;
137
+ }
138
+
139
+ /**
140
+ * This event occurs when account defaults are created or updated.
141
+ */
142
+ export interface V2CoreAccountIncludingDefaultsUpdatedEvent
143
+ extends V2.EventBase {
144
+ type: 'v2.core.account[defaults].updated';
145
+ // Object containing the reference to API resource relevant to the event.
146
+ related_object: Event.RelatedObject;
147
+ // Retrieves the object associated with the event.
148
+ fetchRelatedObject(): Promise<V2.Core.Account>;
149
+ }
150
+
151
+ /**
152
+ * Occurs when the status of an Account's customer configuration capability is updated.
153
+ */
154
+ export interface V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
155
+ extends V2.EventBase {
156
+ type: 'v2.core.account[configuration.customer].capability_status_updated';
157
+ // Retrieves data specific to this event.
158
+ data: V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.Data;
159
+ // Object containing the reference to API resource relevant to the event.
160
+ related_object: Event.RelatedObject;
161
+ // Retrieves the object associated with the event.
162
+ fetchRelatedObject(): Promise<V2.Core.Account>;
163
+ }
164
+
165
+ namespace V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent {
166
+ export interface Data {
167
+ /**
168
+ * Open Enum. The capability which had its status updated.
169
+ */
170
+ updated_capability: 'automatic_indirect_tax';
171
+ }
172
+ }
173
+
174
+ /**
175
+ * Occurs when an Account's customer configuration is updated.
176
+ */
177
+ export interface V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
178
+ extends V2.EventBase {
179
+ type: 'v2.core.account[configuration.customer].updated';
180
+ // Object containing the reference to API resource relevant to the event.
181
+ related_object: Event.RelatedObject;
182
+ // Retrieves the object associated with the event.
183
+ fetchRelatedObject(): Promise<V2.Core.Account>;
184
+ }
185
+
186
+ /**
187
+ * Occurs when an Identity is updated.
188
+ */
189
+ export interface V2CoreAccountIncludingIdentityUpdatedEvent
190
+ extends V2.EventBase {
191
+ type: 'v2.core.account[identity].updated';
192
+ // Object containing the reference to API resource relevant to the event.
193
+ related_object: Event.RelatedObject;
194
+ // Retrieves the object associated with the event.
195
+ fetchRelatedObject(): Promise<V2.Core.Account>;
196
+ }
197
+
198
+ /**
199
+ * Occurs when a Person is created.
200
+ */
201
+ export interface V2CoreAccountPersonCreatedEvent extends V2.EventBase {
202
+ type: 'v2.core.account_person.created';
203
+ // Retrieves data specific to this event.
204
+ data: V2CoreAccountPersonCreatedEvent.Data;
205
+ // Object containing the reference to API resource relevant to the event.
206
+ related_object: Event.RelatedObject;
207
+ // Retrieves the object associated with the event.
208
+ fetchRelatedObject(): Promise<V2.Core.Person>;
209
+ }
210
+
211
+ namespace V2CoreAccountPersonCreatedEvent {
212
+ export interface Data {
213
+ /**
214
+ * The ID of the v2 account.
215
+ */
216
+ account_id: string;
217
+ }
218
+ }
219
+
220
+ /**
221
+ * Occurs when a Person is deleted.
222
+ */
223
+ export interface V2CoreAccountPersonDeletedEvent extends V2.EventBase {
224
+ type: 'v2.core.account_person.deleted';
225
+ // Retrieves data specific to this event.
226
+ data: V2CoreAccountPersonDeletedEvent.Data;
227
+ // Object containing the reference to API resource relevant to the event.
228
+ related_object: Event.RelatedObject;
229
+ // Retrieves the object associated with the event.
230
+ fetchRelatedObject(): Promise<V2.Core.Person>;
231
+ }
232
+
233
+ namespace V2CoreAccountPersonDeletedEvent {
234
+ export interface Data {
235
+ /**
236
+ * The ID of the v2 account.
237
+ */
238
+ account_id: string;
239
+ }
240
+ }
241
+
242
+ /**
243
+ * Occurs when a Person is updated.
244
+ */
245
+ export interface V2CoreAccountPersonUpdatedEvent extends V2.EventBase {
246
+ type: 'v2.core.account_person.updated';
247
+ // Retrieves data specific to this event.
248
+ data: V2CoreAccountPersonUpdatedEvent.Data;
249
+ // Object containing the reference to API resource relevant to the event.
250
+ related_object: Event.RelatedObject;
251
+ // Retrieves the object associated with the event.
252
+ fetchRelatedObject(): Promise<V2.Core.Person>;
253
+ }
254
+
255
+ namespace V2CoreAccountPersonUpdatedEvent {
256
+ export interface Data {
257
+ /**
258
+ * The ID of the v2 account.
259
+ */
260
+ account_id: string;
261
+ }
262
+ }
263
+
264
+ /**
265
+ * Occurs when the status of an Account's merchant configuration capability is updated.
266
+ */
267
+ export interface V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
268
+ extends V2.EventBase {
269
+ type: 'v2.core.account[configuration.merchant].capability_status_updated';
270
+ // Retrieves data specific to this event.
271
+ data: V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.Data;
272
+ // Object containing the reference to API resource relevant to the event.
273
+ related_object: Event.RelatedObject;
274
+ // Retrieves the object associated with the event.
275
+ fetchRelatedObject(): Promise<V2.Core.Account>;
276
+ }
277
+
278
+ namespace V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent {
279
+ export interface Data {
280
+ /**
281
+ * Open Enum. The capability which had its status updated.
282
+ */
283
+ updated_capability: Data.UpdatedCapability;
284
+ }
285
+
286
+ namespace Data {
287
+ export type UpdatedCapability =
288
+ | 'ach_debit_payments'
289
+ | 'acss_debit_payments'
290
+ | 'affirm_payments'
291
+ | 'afterpay_clearpay_payments'
292
+ | 'alma_payments'
293
+ | 'amazon_pay_payments'
294
+ | 'au_becs_debit_payments'
295
+ | 'bacs_debit_payments'
296
+ | 'bancontact_payments'
297
+ | 'blik_payments'
298
+ | 'boleto_payments'
299
+ | 'card_payments'
300
+ | 'cartes_bancaires_payments'
301
+ | 'cashapp_payments'
302
+ | 'eps_payments'
303
+ | 'fpx_payments'
304
+ | 'gb_bank_transfer_payments'
305
+ | 'grabpay_payments'
306
+ | 'ideal_payments'
307
+ | 'jcb_payments'
308
+ | 'jp_bank_transfer_payments'
309
+ | 'kakao_pay_payments'
310
+ | 'klarna_payments'
311
+ | 'konbini_payments'
312
+ | 'kr_card_payments'
313
+ | 'link_payments'
314
+ | 'mobilepay_payments'
315
+ | 'multibanco_payments'
316
+ | 'mx_bank_transfer_payments'
317
+ | 'naver_pay_payments'
318
+ | 'oxxo_payments'
319
+ | 'p24_payments'
320
+ | 'payco_payments'
321
+ | 'paynow_payments'
322
+ | 'stripe_balance.payouts'
323
+ | 'pay_by_bank_payments'
324
+ | 'promptpay_payments'
325
+ | 'revolut_pay_payments'
326
+ | 'samsung_pay_payments'
327
+ | 'sepa_bank_transfer_payments'
328
+ | 'sepa_debit_payments'
329
+ | 'swish_payments'
330
+ | 'twint_payments'
331
+ | 'us_bank_transfer_payments'
332
+ | 'zip_payments';
333
+ }
334
+ }
335
+
336
+ /**
337
+ * Occurs when an Account's merchant configuration is updated.
338
+ */
339
+ export interface V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
340
+ extends V2.EventBase {
341
+ type: 'v2.core.account[configuration.merchant].updated';
342
+ // Object containing the reference to API resource relevant to the event.
343
+ related_object: Event.RelatedObject;
344
+ // Retrieves the object associated with the event.
345
+ fetchRelatedObject(): Promise<V2.Core.Account>;
346
+ }
347
+
348
+ /**
349
+ * Occurs when the status of an Account's recipient configuration capability is updated.
350
+ */
351
+ export interface V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
352
+ extends V2.EventBase {
353
+ type: 'v2.core.account[configuration.recipient].capability_status_updated';
354
+ // Retrieves data specific to this event.
355
+ data: V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.Data;
356
+ // Object containing the reference to API resource relevant to the event.
357
+ related_object: Event.RelatedObject;
358
+ // Retrieves the object associated with the event.
359
+ fetchRelatedObject(): Promise<V2.Core.Account>;
360
+ }
361
+
362
+ namespace V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent {
363
+ export interface Data {
364
+ /**
365
+ * Open Enum. The capability which had its status updated.
366
+ */
367
+ updated_capability: Data.UpdatedCapability;
368
+ }
369
+
370
+ namespace Data {
371
+ export type UpdatedCapability =
372
+ | 'bank_accounts.local'
373
+ | 'bank_accounts.wire'
374
+ | 'cards'
375
+ | 'stripe_balance.payouts'
376
+ | 'stripe_balance.stripe_transfers'
377
+ | 'stripe.transfers';
378
+ }
379
+ }
380
+
381
+ /**
382
+ * Occurs when a Recipient's configuration is updated.
383
+ */
384
+ export interface V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
385
+ extends V2.EventBase {
386
+ type: 'v2.core.account[configuration.recipient].updated';
387
+ // Object containing the reference to API resource relevant to the event.
388
+ related_object: Event.RelatedObject;
389
+ // Retrieves the object associated with the event.
390
+ fetchRelatedObject(): Promise<V2.Core.Account>;
391
+ }
392
+
393
+ /**
394
+ * Occurs when an Adjustment is created.
395
+ */
396
+ export interface V2MoneyManagementAdjustmentCreatedEvent
397
+ extends V2.EventBase {
398
+ type: 'v2.money_management.adjustment.created';
399
+ // Object containing the reference to API resource relevant to the event.
400
+ related_object: Event.RelatedObject;
401
+ // Retrieves the object associated with the event.
402
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Adjustment>;
403
+ }
404
+
12
405
  /**
13
406
  * Occurs when a Meter has invalid async usage events.
14
407
  */
@@ -214,6 +607,137 @@ declare module 'stripe' {
214
607
  }
215
608
  }
216
609
 
610
+ /**
611
+ * Occurs when a FinancialAccount is created.
612
+ */
613
+ export interface V2MoneyManagementFinancialAccountCreatedEvent
614
+ extends V2.EventBase {
615
+ type: 'v2.money_management.financial_account.created';
616
+ // Object containing the reference to API resource relevant to the event.
617
+ related_object: Event.RelatedObject;
618
+ // Retrieves the object associated with the event.
619
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
620
+ }
621
+
622
+ /**
623
+ * Occurs when a FinancialAccount is updated.
624
+ */
625
+ export interface V2MoneyManagementFinancialAccountUpdatedEvent
626
+ extends V2.EventBase {
627
+ type: 'v2.money_management.financial_account.updated';
628
+ // Object containing the reference to API resource relevant to the event.
629
+ related_object: Event.RelatedObject;
630
+ // Retrieves the object associated with the event.
631
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAccount>;
632
+ }
633
+
634
+ /**
635
+ * Occurs when a FinancialAddress is activated and is ready to receive funds.
636
+ */
637
+ export interface V2MoneyManagementFinancialAddressActivatedEvent
638
+ extends V2.EventBase {
639
+ type: 'v2.money_management.financial_address.activated';
640
+ // Object containing the reference to API resource relevant to the event.
641
+ related_object: Event.RelatedObject;
642
+ // Retrieves the object associated with the event.
643
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
644
+ }
645
+
646
+ /**
647
+ * Occurs when a FinancialAddress fails to activate and can not receive funds.
648
+ */
649
+ export interface V2MoneyManagementFinancialAddressFailedEvent
650
+ extends V2.EventBase {
651
+ type: 'v2.money_management.financial_address.failed';
652
+ // Object containing the reference to API resource relevant to the event.
653
+ related_object: Event.RelatedObject;
654
+ // Retrieves the object associated with the event.
655
+ fetchRelatedObject(): Promise<V2.MoneyManagement.FinancialAddress>;
656
+ }
657
+
658
+ /**
659
+ * Occurs when an InboundTransfer's funds are made available.
660
+ */
661
+ export interface V2MoneyManagementInboundTransferAvailableEvent
662
+ extends V2.EventBase {
663
+ type: 'v2.money_management.inbound_transfer.available';
664
+ // Retrieves data specific to this event.
665
+ data: V2MoneyManagementInboundTransferAvailableEvent.Data;
666
+ // Object containing the reference to API resource relevant to the event.
667
+ related_object: Event.RelatedObject;
668
+ // Retrieves the object associated with the event.
669
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
670
+ }
671
+
672
+ namespace V2MoneyManagementInboundTransferAvailableEvent {
673
+ export interface Data {
674
+ /**
675
+ * The transaction ID of the received credit.
676
+ */
677
+ transaction_id: string;
678
+ }
679
+ }
680
+
681
+ /**
682
+ * An InboundTransfer failed.
683
+ */
684
+ export interface V2MoneyManagementInboundTransferBankDebitFailedEvent
685
+ extends V2.EventBase {
686
+ type: 'v2.money_management.inbound_transfer.bank_debit_failed';
687
+ // Object containing the reference to API resource relevant to the event.
688
+ related_object: Event.RelatedObject;
689
+ // Retrieves the object associated with the event.
690
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
691
+ }
692
+
693
+ /**
694
+ * An InboundTransfer is now processing.
695
+ */
696
+ export interface V2MoneyManagementInboundTransferBankDebitProcessingEvent
697
+ extends V2.EventBase {
698
+ type: 'v2.money_management.inbound_transfer.bank_debit_processing';
699
+ // Object containing the reference to API resource relevant to the event.
700
+ related_object: Event.RelatedObject;
701
+ // Retrieves the object associated with the event.
702
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
703
+ }
704
+
705
+ /**
706
+ * An InboundTransfer has been queued.
707
+ */
708
+ export interface V2MoneyManagementInboundTransferBankDebitQueuedEvent
709
+ extends V2.EventBase {
710
+ type: 'v2.money_management.inbound_transfer.bank_debit_queued';
711
+ // Object containing the reference to API resource relevant to the event.
712
+ related_object: Event.RelatedObject;
713
+ // Retrieves the object associated with the event.
714
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
715
+ }
716
+
717
+ /**
718
+ * An InboundTransfer was returned.
719
+ */
720
+ export interface V2MoneyManagementInboundTransferBankDebitReturnedEvent
721
+ extends V2.EventBase {
722
+ type: 'v2.money_management.inbound_transfer.bank_debit_returned';
723
+ // Object containing the reference to API resource relevant to the event.
724
+ related_object: Event.RelatedObject;
725
+ // Retrieves the object associated with the event.
726
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
727
+ }
728
+
729
+ /**
730
+ * An InboundTransfer succeeded.
731
+ */
732
+ export interface V2MoneyManagementInboundTransferBankDebitSucceededEvent
733
+ extends V2.EventBase {
734
+ type: 'v2.money_management.inbound_transfer.bank_debit_succeeded';
735
+ // Object containing the reference to API resource relevant to the event.
736
+ related_object: Event.RelatedObject;
737
+ // Retrieves the object associated with the event.
738
+ fetchRelatedObject(): Promise<V2.MoneyManagement.InboundTransfer>;
739
+ }
740
+
217
741
  /**
218
742
  * A ping event used to test the connection to an event destination.
219
743
  */
@@ -224,5 +748,292 @@ declare module 'stripe' {
224
748
  // Retrieves the object associated with the event.
225
749
  fetchRelatedObject(): Promise<V2.EventDestination>;
226
750
  }
751
+
752
+ /**
753
+ * An OutboundPayment has transitioned into the canceled state.
754
+ */
755
+ export interface V2MoneyManagementOutboundPaymentCanceledEvent
756
+ extends V2.EventBase {
757
+ type: 'v2.money_management.outbound_payment.canceled';
758
+ // Object containing the reference to API resource relevant to the event.
759
+ related_object: Event.RelatedObject;
760
+ // Retrieves the object associated with the event.
761
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
762
+ }
763
+
764
+ /**
765
+ * Occurs when an OutboundPayment is created.
766
+ */
767
+ export interface V2MoneyManagementOutboundPaymentCreatedEvent
768
+ extends V2.EventBase {
769
+ type: 'v2.money_management.outbound_payment.created';
770
+ // Object containing the reference to API resource relevant to the event.
771
+ related_object: Event.RelatedObject;
772
+ // Retrieves the object associated with the event.
773
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
774
+ }
775
+
776
+ /**
777
+ * An OutboundPayment has transitioned into the failed state.
778
+ */
779
+ export interface V2MoneyManagementOutboundPaymentFailedEvent
780
+ extends V2.EventBase {
781
+ type: 'v2.money_management.outbound_payment.failed';
782
+ // Object containing the reference to API resource relevant to the event.
783
+ related_object: Event.RelatedObject;
784
+ // Retrieves the object associated with the event.
785
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
786
+ }
787
+
788
+ /**
789
+ * An OutboundPayment has transitioned into the posted state.
790
+ */
791
+ export interface V2MoneyManagementOutboundPaymentPostedEvent
792
+ extends V2.EventBase {
793
+ type: 'v2.money_management.outbound_payment.posted';
794
+ // Object containing the reference to API resource relevant to the event.
795
+ related_object: Event.RelatedObject;
796
+ // Retrieves the object associated with the event.
797
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
798
+ }
799
+
800
+ /**
801
+ * An OutboundPayment has transitioned into the returned state.
802
+ */
803
+ export interface V2MoneyManagementOutboundPaymentReturnedEvent
804
+ extends V2.EventBase {
805
+ type: 'v2.money_management.outbound_payment.returned';
806
+ // Object containing the reference to API resource relevant to the event.
807
+ related_object: Event.RelatedObject;
808
+ // Retrieves the object associated with the event.
809
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
810
+ }
811
+
812
+ /**
813
+ * Event that is emitted every time an Outbound Payment is updated.
814
+ */
815
+ export interface V2MoneyManagementOutboundPaymentUpdatedEvent
816
+ extends V2.EventBase {
817
+ type: 'v2.money_management.outbound_payment.updated';
818
+ // Object containing the reference to API resource relevant to the event.
819
+ related_object: Event.RelatedObject;
820
+ // Retrieves the object associated with the event.
821
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundPayment>;
822
+ }
823
+
824
+ /**
825
+ * Occurs when an OutboundTransfer transitions into the canceled state.
826
+ */
827
+ export interface V2MoneyManagementOutboundTransferCanceledEvent
828
+ extends V2.EventBase {
829
+ type: 'v2.money_management.outbound_transfer.canceled';
830
+ // Object containing the reference to API resource relevant to the event.
831
+ related_object: Event.RelatedObject;
832
+ // Retrieves the object associated with the event.
833
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
834
+ }
835
+
836
+ /**
837
+ * Occurs when an OutboundTransfer is created.
838
+ */
839
+ export interface V2MoneyManagementOutboundTransferCreatedEvent
840
+ extends V2.EventBase {
841
+ type: 'v2.money_management.outbound_transfer.created';
842
+ // Object containing the reference to API resource relevant to the event.
843
+ related_object: Event.RelatedObject;
844
+ // Retrieves the object associated with the event.
845
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
846
+ }
847
+
848
+ /**
849
+ * Occurs when an OutboundTransfer transitions into the failed state.
850
+ */
851
+ export interface V2MoneyManagementOutboundTransferFailedEvent
852
+ extends V2.EventBase {
853
+ type: 'v2.money_management.outbound_transfer.failed';
854
+ // Object containing the reference to API resource relevant to the event.
855
+ related_object: Event.RelatedObject;
856
+ // Retrieves the object associated with the event.
857
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
858
+ }
859
+
860
+ /**
861
+ * Occurs when an OutboundTransfer transitions into the posted state.
862
+ */
863
+ export interface V2MoneyManagementOutboundTransferPostedEvent
864
+ extends V2.EventBase {
865
+ type: 'v2.money_management.outbound_transfer.posted';
866
+ // Object containing the reference to API resource relevant to the event.
867
+ related_object: Event.RelatedObject;
868
+ // Retrieves the object associated with the event.
869
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
870
+ }
871
+
872
+ /**
873
+ * Occurs when an OutboundTransfer transitions into the returned state.
874
+ */
875
+ export interface V2MoneyManagementOutboundTransferReturnedEvent
876
+ extends V2.EventBase {
877
+ type: 'v2.money_management.outbound_transfer.returned';
878
+ // Object containing the reference to API resource relevant to the event.
879
+ related_object: Event.RelatedObject;
880
+ // Retrieves the object associated with the event.
881
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
882
+ }
883
+
884
+ /**
885
+ * Event that is emitted every time an Outbound Transfer is updated.
886
+ */
887
+ export interface V2MoneyManagementOutboundTransferUpdatedEvent
888
+ extends V2.EventBase {
889
+ type: 'v2.money_management.outbound_transfer.updated';
890
+ // Object containing the reference to API resource relevant to the event.
891
+ related_object: Event.RelatedObject;
892
+ // Retrieves the object associated with the event.
893
+ fetchRelatedObject(): Promise<V2.MoneyManagement.OutboundTransfer>;
894
+ }
895
+
896
+ /**
897
+ * Occurs when a ReceivedCredit's funds are received and are available in your balance.
898
+ */
899
+ export interface V2MoneyManagementReceivedCreditAvailableEvent
900
+ extends V2.EventBase {
901
+ type: 'v2.money_management.received_credit.available';
902
+ // Retrieves data specific to this event.
903
+ data: V2MoneyManagementReceivedCreditAvailableEvent.Data;
904
+ // Object containing the reference to API resource relevant to the event.
905
+ related_object: Event.RelatedObject;
906
+ // Retrieves the object associated with the event.
907
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
908
+ }
909
+
910
+ namespace V2MoneyManagementReceivedCreditAvailableEvent {
911
+ export interface Data {
912
+ /**
913
+ * The transaction ID of the received credit.
914
+ */
915
+ transaction_id: string;
916
+ }
917
+ }
918
+
919
+ /**
920
+ * Occurs when a ReceivedCredit is attempted to your balance and fails. See the status_details for more information.
921
+ */
922
+ export interface V2MoneyManagementReceivedCreditFailedEvent
923
+ extends V2.EventBase {
924
+ type: 'v2.money_management.received_credit.failed';
925
+ // Object containing the reference to API resource relevant to the event.
926
+ related_object: Event.RelatedObject;
927
+ // Retrieves the object associated with the event.
928
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
929
+ }
930
+
931
+ /**
932
+ * Occurs when a ReceivedCredit is reversed, returned to the originator, and deducted from your balance.
933
+ */
934
+ export interface V2MoneyManagementReceivedCreditReturnedEvent
935
+ extends V2.EventBase {
936
+ type: 'v2.money_management.received_credit.returned';
937
+ // Object containing the reference to API resource relevant to the event.
938
+ related_object: Event.RelatedObject;
939
+ // Retrieves the object associated with the event.
940
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
941
+ }
942
+
943
+ /**
944
+ * Occurs when a ReceivedCredit succeeds.
945
+ */
946
+ export interface V2MoneyManagementReceivedCreditSucceededEvent
947
+ extends V2.EventBase {
948
+ type: 'v2.money_management.received_credit.succeeded';
949
+ // Object containing the reference to API resource relevant to the event.
950
+ related_object: Event.RelatedObject;
951
+ // Retrieves the object associated with the event.
952
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedCredit>;
953
+ }
954
+
955
+ /**
956
+ * Occurs when a ReceivedDebit is canceled.
957
+ */
958
+ export interface V2MoneyManagementReceivedDebitCanceledEvent
959
+ extends V2.EventBase {
960
+ type: 'v2.money_management.received_debit.canceled';
961
+ // Object containing the reference to API resource relevant to the event.
962
+ related_object: Event.RelatedObject;
963
+ // Retrieves the object associated with the event.
964
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
965
+ }
966
+
967
+ /**
968
+ * Occurs when a ReceivedDebit fails.
969
+ */
970
+ export interface V2MoneyManagementReceivedDebitFailedEvent
971
+ extends V2.EventBase {
972
+ type: 'v2.money_management.received_debit.failed';
973
+ // Object containing the reference to API resource relevant to the event.
974
+ related_object: Event.RelatedObject;
975
+ // Retrieves the object associated with the event.
976
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
977
+ }
978
+
979
+ /**
980
+ * Occurs when a ReceivedDebit is set to pending.
981
+ */
982
+ export interface V2MoneyManagementReceivedDebitPendingEvent
983
+ extends V2.EventBase {
984
+ type: 'v2.money_management.received_debit.pending';
985
+ // Object containing the reference to API resource relevant to the event.
986
+ related_object: Event.RelatedObject;
987
+ // Retrieves the object associated with the event.
988
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
989
+ }
990
+
991
+ /**
992
+ * Occurs when a ReceivedDebit succeeds.
993
+ */
994
+ export interface V2MoneyManagementReceivedDebitSucceededEvent
995
+ extends V2.EventBase {
996
+ type: 'v2.money_management.received_debit.succeeded';
997
+ // Object containing the reference to API resource relevant to the event.
998
+ related_object: Event.RelatedObject;
999
+ // Retrieves the object associated with the event.
1000
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1001
+ }
1002
+
1003
+ /**
1004
+ * Occurs when a ReceivedDebit is updated.
1005
+ */
1006
+ export interface V2MoneyManagementReceivedDebitUpdatedEvent
1007
+ extends V2.EventBase {
1008
+ type: 'v2.money_management.received_debit.updated';
1009
+ // Object containing the reference to API resource relevant to the event.
1010
+ related_object: Event.RelatedObject;
1011
+ // Retrieves the object associated with the event.
1012
+ fetchRelatedObject(): Promise<V2.MoneyManagement.ReceivedDebit>;
1013
+ }
1014
+
1015
+ /**
1016
+ * Occurs when a Transaction is created.
1017
+ */
1018
+ export interface V2MoneyManagementTransactionCreatedEvent
1019
+ extends V2.EventBase {
1020
+ type: 'v2.money_management.transaction.created';
1021
+ // Object containing the reference to API resource relevant to the event.
1022
+ related_object: Event.RelatedObject;
1023
+ // Retrieves the object associated with the event.
1024
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1025
+ }
1026
+
1027
+ /**
1028
+ * Occurs when a Transaction is updated.
1029
+ */
1030
+ export interface V2MoneyManagementTransactionUpdatedEvent
1031
+ extends V2.EventBase {
1032
+ type: 'v2.money_management.transaction.updated';
1033
+ // Object containing the reference to API resource relevant to the event.
1034
+ related_object: Event.RelatedObject;
1035
+ // Retrieves the object associated with the event.
1036
+ fetchRelatedObject(): Promise<V2.MoneyManagement.Transaction>;
1037
+ }
227
1038
  }
228
1039
  }