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