stripe 20.1.0-alpha.4 → 20.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +9 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/SharedPayment/GrantedTokens.js +12 -0
  7. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +16 -0
  8. package/cjs/resources/V2/Iam/ApiKeys.js +24 -0
  9. package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +20 -0
  10. package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +33 -0
  11. package/cjs/resources/V2/Tax/ManualRules.js +23 -0
  12. package/cjs/resources.js +15 -1
  13. package/cjs/stripe.core.js +1 -1
  14. package/esm/Error.js +7 -0
  15. package/esm/apiVersion.js +1 -1
  16. package/esm/resources/SharedPayment/GrantedTokens.js +9 -0
  17. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +13 -0
  18. package/esm/resources/V2/Iam/ApiKeys.js +21 -0
  19. package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +17 -0
  20. package/esm/resources/V2/Payments/SettlementAllocationIntents.js +30 -0
  21. package/esm/resources/V2/Tax/ManualRules.js +20 -0
  22. package/esm/resources.js +14 -0
  23. package/esm/stripe.core.js +1 -1
  24. package/package.json +1 -1
  25. package/types/AccountLinks.d.ts +1 -1
  26. package/types/AccountNotices.d.ts +6 -6
  27. package/types/AccountNoticesResource.d.ts +1 -1
  28. package/types/AccountSessions.d.ts +7 -7
  29. package/types/AccountSessionsResource.d.ts +21 -0
  30. package/types/Accounts.d.ts +25 -25
  31. package/types/AccountsResource.d.ts +107 -63
  32. package/types/ApplicationFeesResource.d.ts +2 -2
  33. package/types/Apps/Secrets.d.ts +1 -1
  34. package/types/Balance.d.ts +2 -2
  35. package/types/BalanceSettings.d.ts +1 -1
  36. package/types/BalanceTransactions.d.ts +1 -1
  37. package/types/BalanceTransfers.d.ts +3 -3
  38. package/types/BalanceTransfersResource.d.ts +1 -1
  39. package/types/BankAccounts.d.ts +10 -10
  40. package/types/Billing/Alerts.d.ts +2 -2
  41. package/types/Billing/CreditBalanceSummary.d.ts +3 -3
  42. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  43. package/types/Billing/CreditBalanceTransactions.d.ts +2 -2
  44. package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
  45. package/types/Billing/CreditGrants.d.ts +4 -4
  46. package/types/Billing/CreditGrantsResource.d.ts +3 -3
  47. package/types/Billing/MeterEvents.d.ts +1 -1
  48. package/types/Billing/MeterEventsResource.d.ts +1 -1
  49. package/types/BillingPortal/Configurations.d.ts +10 -3
  50. package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
  51. package/types/BillingPortal/Sessions.d.ts +7 -7
  52. package/types/BillingPortal/SessionsResource.d.ts +7 -7
  53. package/types/Capabilities.d.ts +16 -16
  54. package/types/Capital/FinancingOffers.d.ts +2 -2
  55. package/types/Capital/FinancingSummary.d.ts +7 -4
  56. package/types/Capital/FinancingSummaryResource.d.ts +1 -1
  57. package/types/Cards.d.ts +2 -2
  58. package/types/CashBalances.d.ts +3 -3
  59. package/types/Charges.d.ts +59 -27
  60. package/types/ChargesResource.d.ts +22 -22
  61. package/types/Checkout/Sessions.d.ts +18 -18
  62. package/types/Checkout/SessionsResource.d.ts +90 -60
  63. package/types/Climate/Orders.d.ts +1 -1
  64. package/types/Climate/OrdersResource.d.ts +2 -2
  65. package/types/ConfirmationTokens.d.ts +8 -6
  66. package/types/Coupons.d.ts +3 -3
  67. package/types/CouponsResource.d.ts +2 -2
  68. package/types/CreditNoteLineItems.d.ts +3 -0
  69. package/types/CreditNotes.d.ts +8 -5
  70. package/types/CreditNotesResource.d.ts +5 -5
  71. package/types/CustomerBalanceTransactions.d.ts +9 -6
  72. package/types/CustomerCashBalanceTransactions.d.ts +13 -10
  73. package/types/CustomerSessions.d.ts +1 -1
  74. package/types/Customers.d.ts +8 -5
  75. package/types/CustomersResource.d.ts +21 -16
  76. package/types/DelegatedCheckout/RequestedSessions.d.ts +83 -17
  77. package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +102 -0
  78. package/types/Discounts.d.ts +6 -6
  79. package/types/Disputes.d.ts +3 -3
  80. package/types/DisputesResource.d.ts +1 -1
  81. package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
  82. package/types/Errors.d.ts +6 -0
  83. package/types/Events.d.ts +1 -1
  84. package/types/ExchangeRates.d.ts +2 -2
  85. package/types/ExternalAccountsResource.d.ts +4 -4
  86. package/types/FeeRefunds.d.ts +2 -2
  87. package/types/FileLinks.d.ts +1 -1
  88. package/types/FileLinksResource.d.ts +2 -2
  89. package/types/Files.d.ts +4 -4
  90. package/types/FilesResource.d.ts +3 -3
  91. package/types/FinancialConnections/Accounts.d.ts +3 -3
  92. package/types/FinancialConnections/AccountsResource.d.ts +3 -3
  93. package/types/FinancialConnections/Sessions.d.ts +2 -2
  94. package/types/FinancialConnections/SessionsResource.d.ts +3 -3
  95. package/types/Forwarding/Requests.d.ts +1 -1
  96. package/types/Forwarding/RequestsResource.d.ts +1 -1
  97. package/types/FundingInstructions.d.ts +2 -2
  98. package/types/Identity/BlocklistEntries.d.ts +1 -1
  99. package/types/Identity/VerificationReports.d.ts +8 -8
  100. package/types/Identity/VerificationSessions.d.ts +11 -11
  101. package/types/Identity/VerificationSessionsResource.d.ts +18 -12
  102. package/types/InvoiceItems.d.ts +12 -12
  103. package/types/InvoiceItemsResource.d.ts +16 -16
  104. package/types/InvoiceLineItems.d.ts +11 -8
  105. package/types/InvoicePayments.d.ts +1 -1
  106. package/types/InvoiceRenderingTemplates.d.ts +1 -1
  107. package/types/Invoices.d.ts +83 -33
  108. package/types/InvoicesResource.d.ts +237 -111
  109. package/types/Issuing/Authorizations.d.ts +20 -20
  110. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  111. package/types/Issuing/Cardholders.d.ts +13 -13
  112. package/types/Issuing/CardholdersResource.d.ts +21 -21
  113. package/types/Issuing/Cards.d.ts +20 -10
  114. package/types/Issuing/CardsResource.d.ts +46 -13
  115. package/types/Issuing/CreditUnderwritingRecords.d.ts +5 -5
  116. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +15 -15
  117. package/types/Issuing/Disputes.d.ts +7 -7
  118. package/types/Issuing/DisputesResource.d.ts +5 -5
  119. package/types/Issuing/FraudLiabilityDebits.d.ts +1 -1
  120. package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
  121. package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
  122. package/types/Issuing/Programs.d.ts +1 -1
  123. package/types/Issuing/ProgramsResource.d.ts +1 -1
  124. package/types/Issuing/Settlements.d.ts +2 -2
  125. package/types/Issuing/Tokens.d.ts +1 -1
  126. package/types/Issuing/Transactions.d.ts +13 -13
  127. package/types/Issuing/TransactionsResource.d.ts +1 -1
  128. package/types/LineItems.d.ts +3 -3
  129. package/types/LoginLinks.d.ts +1 -1
  130. package/types/MandatesResource.d.ts +1 -1
  131. package/types/Margins.d.ts +1 -1
  132. package/types/MarginsResource.d.ts +2 -2
  133. package/types/Orders.d.ts +11 -11
  134. package/types/OrdersResource.d.ts +24 -24
  135. package/types/PaymentAttemptRecords.d.ts +119 -18
  136. package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
  137. package/types/PaymentIntents.d.ts +72 -44
  138. package/types/PaymentIntentsResource.d.ts +172 -159
  139. package/types/PaymentLinks.d.ts +7 -7
  140. package/types/PaymentLinksResource.d.ts +42 -28
  141. package/types/PaymentMethodConfigurations.d.ts +4 -4
  142. package/types/PaymentMethodConfigurationsResource.d.ts +80 -80
  143. package/types/PaymentMethodDomains.d.ts +1 -1
  144. package/types/PaymentMethods.d.ts +10 -8
  145. package/types/PaymentMethodsResource.d.ts +7 -6
  146. package/types/PaymentRecords.d.ts +126 -18
  147. package/types/PaymentRecordsResource.d.ts +7 -7
  148. package/types/Payouts.d.ts +7 -7
  149. package/types/PayoutsResource.d.ts +3 -3
  150. package/types/Persons.d.ts +21 -21
  151. package/types/Plans.d.ts +5 -5
  152. package/types/PlansResource.d.ts +6 -6
  153. package/types/Prices.d.ts +6 -6
  154. package/types/PricesResource.d.ts +10 -10
  155. package/types/ProductCatalog/TrialOffers.d.ts +1 -1
  156. package/types/Products.d.ts +10 -10
  157. package/types/ProductsResource.d.ts +38 -14
  158. package/types/PromotionCodes.d.ts +5 -5
  159. package/types/PromotionCodesResource.d.ts +5 -5
  160. package/types/QuoteLines.d.ts +3 -3
  161. package/types/QuotePreviewInvoices.d.ts +81 -31
  162. package/types/QuotePreviewSubscriptionSchedules.d.ts +18 -18
  163. package/types/Quotes.d.ts +16 -16
  164. package/types/QuotesResource.d.ts +30 -30
  165. package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
  166. package/types/Radar/ValueListItems.d.ts +1 -1
  167. package/types/Radar/ValueLists.d.ts +2 -2
  168. package/types/Radar/ValueListsResource.d.ts +2 -2
  169. package/types/Refunds.d.ts +3 -3
  170. package/types/RefundsResource.d.ts +3 -3
  171. package/types/Reporting/ReportRuns.d.ts +3 -3
  172. package/types/Reporting/ReportRunsResource.d.ts +2 -2
  173. package/types/Reporting/ReportTypes.d.ts +3 -3
  174. package/types/Reviews.d.ts +1 -1
  175. package/types/SetupAttempts.d.ts +21 -18
  176. package/types/SetupIntents.d.ts +20 -19
  177. package/types/SetupIntentsResource.d.ts +47 -44
  178. package/types/SharedPayment/GrantedTokens.d.ts +102 -0
  179. package/types/SharedPayment/GrantedTokensResource.d.ts +29 -0
  180. package/types/ShippingRates.d.ts +3 -3
  181. package/types/ShippingRatesResource.d.ts +3 -3
  182. package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
  183. package/types/SourceMandateNotifications.d.ts +3 -3
  184. package/types/Sources.d.ts +5 -5
  185. package/types/SourcesResource.d.ts +2 -2
  186. package/types/SubscriptionItems.d.ts +7 -7
  187. package/types/SubscriptionItemsResource.d.ts +22 -22
  188. package/types/SubscriptionSchedules.d.ts +19 -19
  189. package/types/SubscriptionSchedulesResource.d.ts +61 -61
  190. package/types/Subscriptions.d.ts +61 -15
  191. package/types/SubscriptionsResource.d.ts +142 -58
  192. package/types/Tax/Associations.d.ts +3 -3
  193. package/types/Tax/AssociationsResource.d.ts +1 -1
  194. package/types/Tax/CalculationLineItems.d.ts +7 -7
  195. package/types/Tax/Calculations.d.ts +12 -12
  196. package/types/Tax/CalculationsResource.d.ts +7 -7
  197. package/types/Tax/Registrations.d.ts +3 -3
  198. package/types/Tax/Settings.d.ts +1 -1
  199. package/types/Tax/SettingsResource.d.ts +1 -1
  200. package/types/Tax/TransactionLineItems.d.ts +5 -5
  201. package/types/Tax/Transactions.d.ts +9 -9
  202. package/types/Tax/TransactionsResource.d.ts +10 -10
  203. package/types/TaxIds.d.ts +6 -6
  204. package/types/TaxIdsResource.d.ts +4 -4
  205. package/types/TaxRates.d.ts +1 -1
  206. package/types/TaxRatesResource.d.ts +2 -2
  207. package/types/Terminal/ConnectionTokens.d.ts +1 -1
  208. package/types/Terminal/Locations.d.ts +2 -2
  209. package/types/Terminal/LocationsResource.d.ts +3 -3
  210. package/types/Terminal/Readers.d.ts +10 -10
  211. package/types/Terminal/ReadersResource.d.ts +7 -7
  212. package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -4
  213. package/types/TestHelpers/CustomersResource.d.ts +2 -2
  214. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
  215. package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
  216. package/types/TestHelpers/SharedPayment/GrantedTokensResource.d.ts +87 -0
  217. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -1
  218. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -1
  219. package/types/Tokens.d.ts +4 -4
  220. package/types/TokensResource.d.ts +17 -17
  221. package/types/Topups.d.ts +3 -3
  222. package/types/TopupsResource.d.ts +3 -3
  223. package/types/TransferReversals.d.ts +4 -4
  224. package/types/Transfers.d.ts +5 -5
  225. package/types/TransfersResource.d.ts +6 -6
  226. package/types/Treasury/CreditReversals.d.ts +3 -3
  227. package/types/Treasury/CreditReversalsResource.d.ts +1 -1
  228. package/types/Treasury/DebitReversals.d.ts +3 -3
  229. package/types/Treasury/DebitReversalsResource.d.ts +1 -1
  230. package/types/Treasury/FinancialAccounts.d.ts +1 -1
  231. package/types/Treasury/FinancialAccountsResource.d.ts +2 -2
  232. package/types/Treasury/InboundTransfers.d.ts +4 -4
  233. package/types/Treasury/InboundTransfersResource.d.ts +2 -2
  234. package/types/Treasury/OutboundPayments.d.ts +5 -5
  235. package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
  236. package/types/Treasury/OutboundTransfers.d.ts +4 -4
  237. package/types/Treasury/OutboundTransfersResource.d.ts +3 -3
  238. package/types/Treasury/ReceivedCredits.d.ts +9 -9
  239. package/types/Treasury/ReceivedDebits.d.ts +6 -6
  240. package/types/Treasury/TransactionEntries.d.ts +11 -11
  241. package/types/Treasury/Transactions.d.ts +11 -11
  242. package/types/V2/Billing/IntentActions.d.ts +141 -36
  243. package/types/V2/Billing/IntentsResource.d.ts +141 -42
  244. package/types/V2/Core/AccountLinks.d.ts +11 -11
  245. package/types/V2/Core/AccountLinksResource.d.ts +6 -6
  246. package/types/V2/Core/AccountPersons.d.ts +55 -10
  247. package/types/V2/Core/AccountTokensResource.d.ts +99 -10
  248. package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
  249. package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
  250. package/types/V2/Core/Accounts.d.ts +298 -509
  251. package/types/V2/Core/AccountsResource.d.ts +256 -51
  252. package/types/V2/Core/ClaimableSandboxesResource.d.ts +1 -1
  253. package/types/V2/Core/EventTypes.d.ts +601 -0
  254. package/types/V2/Core/Vault/GbBankAccounts.d.ts +21 -0
  255. package/types/V2/Core/Vault/UsBankAccounts.d.ts +26 -0
  256. package/types/V2/Iam/ApiKeys.d.ts +154 -0
  257. package/types/V2/Iam/ApiKeysResource.d.ts +215 -0
  258. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +31 -1
  259. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +7 -0
  260. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +8 -0
  261. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +7 -0
  262. package/types/V2/MoneyManagement/OutboundPayments.d.ts +7 -0
  263. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +7 -0
  264. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +2 -0
  265. package/types/V2/MoneyManagement/PayoutMethods.d.ts +26 -0
  266. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +2 -0
  267. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +10 -1
  268. package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +111 -0
  269. package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +126 -0
  270. package/types/V2/Payments/SettlementAllocationIntents.d.ts +122 -0
  271. package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +168 -0
  272. package/types/V2/Tax/ManualRules.d.ts +142 -0
  273. package/types/V2/Tax/ManualRulesResource.d.ts +292 -0
  274. package/types/WebhookEndpoints.d.ts +1 -1
  275. package/types/WebhookEndpointsResource.d.ts +4 -3
  276. package/types/apiVersion.d.ts +1 -1
  277. package/types/index.d.ts +24 -0
@@ -82,6 +82,8 @@ declare module 'stripe' {
82
82
  | Stripe.Events.V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent
83
83
  | Stripe.Events.V2CoreHealthPaymentMethodErrorFiringEvent
84
84
  | Stripe.Events.V2CoreHealthPaymentMethodErrorResolvedEvent
85
+ | Stripe.Events.V2CoreHealthSepaDebitDelayedFiringEvent
86
+ | Stripe.Events.V2CoreHealthSepaDebitDelayedResolvedEvent
85
87
  | Stripe.Events.V2CoreHealthTrafficVolumeDropFiringEvent
86
88
  | Stripe.Events.V2CoreHealthTrafficVolumeDropResolvedEvent
87
89
  | Stripe.Events.V2CoreHealthWebhookLatencyFiringEvent
@@ -115,6 +117,7 @@ declare module 'stripe' {
115
117
  | Stripe.Events.V2MoneyManagementOutboundTransferPostedEvent
116
118
  | Stripe.Events.V2MoneyManagementOutboundTransferReturnedEvent
117
119
  | Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEvent
120
+ | Stripe.Events.V2MoneyManagementPayoutMethodCreatedEvent
118
121
  | Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEvent
119
122
  | Stripe.Events.V2MoneyManagementReceivedCreditAvailableEvent
120
123
  | Stripe.Events.V2MoneyManagementReceivedCreditFailedEvent
@@ -138,6 +141,17 @@ declare module 'stripe' {
138
141
  | Stripe.Events.V2PaymentsOffSessionPaymentFailedEvent
139
142
  | Stripe.Events.V2PaymentsOffSessionPaymentRequiresCaptureEvent
140
143
  | Stripe.Events.V2PaymentsOffSessionPaymentSucceededEvent
144
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentCanceledEvent
145
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentCreatedEvent
146
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentErroredEvent
147
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent
148
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentMatchedEvent
149
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentNotFoundEvent
150
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSettledEvent
151
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSubmittedEvent
152
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSplitCanceledEvent
153
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSplitCreatedEvent
154
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSplitSettledEvent
141
155
  | Stripe.Events.V2ReportingReportRunCreatedEvent
142
156
  | Stripe.Events.V2ReportingReportRunFailedEvent
143
157
  | Stripe.Events.V2ReportingReportRunSucceededEvent
@@ -223,6 +237,8 @@ declare module 'stripe' {
223
237
  | Stripe.Events.V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventNotification
224
238
  | Stripe.Events.V2CoreHealthPaymentMethodErrorFiringEventNotification
225
239
  | Stripe.Events.V2CoreHealthPaymentMethodErrorResolvedEventNotification
240
+ | Stripe.Events.V2CoreHealthSepaDebitDelayedFiringEventNotification
241
+ | Stripe.Events.V2CoreHealthSepaDebitDelayedResolvedEventNotification
226
242
  | Stripe.Events.V2CoreHealthTrafficVolumeDropFiringEventNotification
227
243
  | Stripe.Events.V2CoreHealthTrafficVolumeDropResolvedEventNotification
228
244
  | Stripe.Events.V2CoreHealthWebhookLatencyFiringEventNotification
@@ -256,6 +272,7 @@ declare module 'stripe' {
256
272
  | Stripe.Events.V2MoneyManagementOutboundTransferPostedEventNotification
257
273
  | Stripe.Events.V2MoneyManagementOutboundTransferReturnedEventNotification
258
274
  | Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEventNotification
275
+ | Stripe.Events.V2MoneyManagementPayoutMethodCreatedEventNotification
259
276
  | Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEventNotification
260
277
  | Stripe.Events.V2MoneyManagementReceivedCreditAvailableEventNotification
261
278
  | Stripe.Events.V2MoneyManagementReceivedCreditFailedEventNotification
@@ -279,6 +296,17 @@ declare module 'stripe' {
279
296
  | Stripe.Events.V2PaymentsOffSessionPaymentFailedEventNotification
280
297
  | Stripe.Events.V2PaymentsOffSessionPaymentRequiresCaptureEventNotification
281
298
  | Stripe.Events.V2PaymentsOffSessionPaymentSucceededEventNotification
299
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentCanceledEventNotification
300
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentCreatedEventNotification
301
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentErroredEventNotification
302
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentFundsNotReceivedEventNotification
303
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentMatchedEventNotification
304
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentNotFoundEventNotification
305
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSettledEventNotification
306
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSubmittedEventNotification
307
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSplitCanceledEventNotification
308
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSplitCreatedEventNotification
309
+ | Stripe.Events.V2PaymentsSettlementAllocationIntentSplitSettledEventNotification
282
310
  | Stripe.Events.V2ReportingReportRunCreatedEventNotification
283
311
  | Stripe.Events.V2ReportingReportRunFailedEventNotification
284
312
  | Stripe.Events.V2ReportingReportRunSucceededEventNotification
@@ -1741,6 +1769,7 @@ declare module 'stripe' {
1741
1769
 
1742
1770
  namespace Data {
1743
1771
  export type UpdatedCapability =
1772
+ | 'bank_accounts.instant'
1744
1773
  | 'bank_accounts.local'
1745
1774
  | 'bank_accounts.wire'
1746
1775
  | 'cards'
@@ -2248,10 +2277,32 @@ declare module 'stripe' {
2248
2277
  * The percentage of impacted requests.
2249
2278
  */
2250
2279
  impacted_requests_percentage?: string;
2280
+
2281
+ /**
2282
+ * The top impacted connected accounts (only for platforms).
2283
+ */
2284
+ top_impacted_accounts?: Array<Impact.TopImpactedAccount>;
2251
2285
  }
2252
2286
 
2253
2287
  namespace Impact {
2254
2288
  export type HttpMethod = 'DELETE' | 'GET' | 'POST' | 'PUT';
2289
+
2290
+ export interface TopImpactedAccount {
2291
+ /**
2292
+ * The account ID of the impacted connected account.
2293
+ */
2294
+ account: string;
2295
+
2296
+ /**
2297
+ * The number of impacted requests.
2298
+ */
2299
+ impacted_requests: number;
2300
+
2301
+ /**
2302
+ * The percentage of impacted requests.
2303
+ */
2304
+ impacted_requests_percentage?: string;
2305
+ }
2255
2306
  }
2256
2307
  }
2257
2308
  }
@@ -2330,10 +2381,32 @@ declare module 'stripe' {
2330
2381
  * The percentage of impacted requests.
2331
2382
  */
2332
2383
  impacted_requests_percentage?: string;
2384
+
2385
+ /**
2386
+ * The top impacted connected accounts (only for platforms).
2387
+ */
2388
+ top_impacted_accounts?: Array<Impact.TopImpactedAccount>;
2333
2389
  }
2334
2390
 
2335
2391
  namespace Impact {
2336
2392
  export type HttpMethod = 'DELETE' | 'GET' | 'POST' | 'PUT';
2393
+
2394
+ export interface TopImpactedAccount {
2395
+ /**
2396
+ * The account ID of the impacted connected account.
2397
+ */
2398
+ account: string;
2399
+
2400
+ /**
2401
+ * The number of impacted requests.
2402
+ */
2403
+ impacted_requests: number;
2404
+
2405
+ /**
2406
+ * The percentage of impacted requests.
2407
+ */
2408
+ impacted_requests_percentage?: string;
2409
+ }
2337
2410
  }
2338
2411
  }
2339
2412
  }
@@ -2407,10 +2480,32 @@ declare module 'stripe' {
2407
2480
  * The percentage of impacted requests.
2408
2481
  */
2409
2482
  impacted_requests_percentage?: string;
2483
+
2484
+ /**
2485
+ * The top impacted connected accounts (only for platforms).
2486
+ */
2487
+ top_impacted_accounts?: Array<Impact.TopImpactedAccount>;
2410
2488
  }
2411
2489
 
2412
2490
  namespace Impact {
2413
2491
  export type HttpMethod = 'DELETE' | 'GET' | 'POST' | 'PUT';
2492
+
2493
+ export interface TopImpactedAccount {
2494
+ /**
2495
+ * The account ID of the impacted connected account.
2496
+ */
2497
+ account: string;
2498
+
2499
+ /**
2500
+ * The number of impacted requests.
2501
+ */
2502
+ impacted_requests: number;
2503
+
2504
+ /**
2505
+ * The percentage of impacted requests.
2506
+ */
2507
+ impacted_requests_percentage?: string;
2508
+ }
2414
2509
  }
2415
2510
  }
2416
2511
  }
@@ -2484,10 +2579,32 @@ declare module 'stripe' {
2484
2579
  * The percentage of impacted requests.
2485
2580
  */
2486
2581
  impacted_requests_percentage?: string;
2582
+
2583
+ /**
2584
+ * The top impacted connected accounts (only for platforms).
2585
+ */
2586
+ top_impacted_accounts?: Array<Impact.TopImpactedAccount>;
2487
2587
  }
2488
2588
 
2489
2589
  namespace Impact {
2490
2590
  export type HttpMethod = 'DELETE' | 'GET' | 'POST' | 'PUT';
2591
+
2592
+ export interface TopImpactedAccount {
2593
+ /**
2594
+ * The account ID of the impacted connected account.
2595
+ */
2596
+ account: string;
2597
+
2598
+ /**
2599
+ * The number of impacted requests.
2600
+ */
2601
+ impacted_requests: number;
2602
+
2603
+ /**
2604
+ * The percentage of impacted requests.
2605
+ */
2606
+ impacted_requests_percentage?: string;
2607
+ }
2491
2608
  }
2492
2609
  }
2493
2610
  }
@@ -3421,6 +3538,11 @@ declare module 'stripe' {
3421
3538
  * The type of the payment method.
3422
3539
  */
3423
3540
  payment_method_type: Impact.PaymentMethodType;
3541
+
3542
+ /**
3543
+ * The top impacted connected accounts (only for platforms).
3544
+ */
3545
+ top_impacted_accounts?: Array<Impact.TopImpactedAccount>;
3424
3546
  }
3425
3547
 
3426
3548
  namespace Impact {
@@ -3494,6 +3616,23 @@ declare module 'stripe' {
3494
3616
  | 'vipps'
3495
3617
  | 'wechat_pay'
3496
3618
  | 'zip';
3619
+
3620
+ export interface TopImpactedAccount {
3621
+ /**
3622
+ * The account ID of the impacted connected account.
3623
+ */
3624
+ account: string;
3625
+
3626
+ /**
3627
+ * The number of impacted requests.
3628
+ */
3629
+ impacted_requests: number;
3630
+
3631
+ /**
3632
+ * The percentage of impacted requests.
3633
+ */
3634
+ impacted_requests_percentage?: string;
3635
+ }
3497
3636
  }
3498
3637
  }
3499
3638
  }
@@ -3562,6 +3701,11 @@ declare module 'stripe' {
3562
3701
  * The type of the payment method.
3563
3702
  */
3564
3703
  payment_method_type: Impact.PaymentMethodType;
3704
+
3705
+ /**
3706
+ * The top impacted connected accounts (only for platforms).
3707
+ */
3708
+ top_impacted_accounts?: Array<Impact.TopImpactedAccount>;
3565
3709
  }
3566
3710
 
3567
3711
  namespace Impact {
@@ -3635,6 +3779,134 @@ declare module 'stripe' {
3635
3779
  | 'vipps'
3636
3780
  | 'wechat_pay'
3637
3781
  | 'zip';
3782
+
3783
+ export interface TopImpactedAccount {
3784
+ /**
3785
+ * The account ID of the impacted connected account.
3786
+ */
3787
+ account: string;
3788
+
3789
+ /**
3790
+ * The number of impacted requests.
3791
+ */
3792
+ impacted_requests: number;
3793
+
3794
+ /**
3795
+ * The percentage of impacted requests.
3796
+ */
3797
+ impacted_requests_percentage?: string;
3798
+ }
3799
+ }
3800
+ }
3801
+ }
3802
+
3803
+ /**
3804
+ * Occurs when a SEPA debit delayed alert is firing.
3805
+ */
3806
+ export interface V2CoreHealthSepaDebitDelayedFiringEvent
3807
+ extends V2.Core.EventBase {
3808
+ type: 'v2.core.health.sepa_debit_delayed.firing';
3809
+ // Retrieves data specific to this event.
3810
+ data: V2CoreHealthSepaDebitDelayedFiringEvent.Data;
3811
+ }
3812
+ export interface V2CoreHealthSepaDebitDelayedFiringEventNotification
3813
+ extends V2.Core.EventNotificationBase {
3814
+ type: 'v2.core.health.sepa_debit_delayed.firing';
3815
+ fetchEvent(): Promise<V2CoreHealthSepaDebitDelayedFiringEvent>;
3816
+ }
3817
+
3818
+ namespace V2CoreHealthSepaDebitDelayedFiringEvent {
3819
+ export interface Data {
3820
+ /**
3821
+ * The grouping key for the alert.
3822
+ */
3823
+ grouping_key: string;
3824
+
3825
+ /**
3826
+ * The user impact.
3827
+ */
3828
+ impact: Data.Impact;
3829
+
3830
+ /**
3831
+ * The time when impact on the user experience was first detected.
3832
+ */
3833
+ started_at: string;
3834
+
3835
+ /**
3836
+ * A short description of the alert.
3837
+ */
3838
+ summary: string;
3839
+ }
3840
+
3841
+ namespace Data {
3842
+ export interface Impact {
3843
+ /**
3844
+ * The number of impacted payments.
3845
+ */
3846
+ impacted_payments: number;
3847
+
3848
+ /**
3849
+ * The percentage of impacted payments.
3850
+ */
3851
+ impacted_payments_percentage: string;
3852
+ }
3853
+ }
3854
+ }
3855
+
3856
+ /**
3857
+ * Occurs when a SEPA debit delayed alert is resolved.
3858
+ */
3859
+ export interface V2CoreHealthSepaDebitDelayedResolvedEvent
3860
+ extends V2.Core.EventBase {
3861
+ type: 'v2.core.health.sepa_debit_delayed.resolved';
3862
+ // Retrieves data specific to this event.
3863
+ data: V2CoreHealthSepaDebitDelayedResolvedEvent.Data;
3864
+ }
3865
+ export interface V2CoreHealthSepaDebitDelayedResolvedEventNotification
3866
+ extends V2.Core.EventNotificationBase {
3867
+ type: 'v2.core.health.sepa_debit_delayed.resolved';
3868
+ fetchEvent(): Promise<V2CoreHealthSepaDebitDelayedResolvedEvent>;
3869
+ }
3870
+
3871
+ namespace V2CoreHealthSepaDebitDelayedResolvedEvent {
3872
+ export interface Data {
3873
+ /**
3874
+ * The grouping key for the alert.
3875
+ */
3876
+ grouping_key: string;
3877
+
3878
+ /**
3879
+ * The user impact.
3880
+ */
3881
+ impact: Data.Impact;
3882
+
3883
+ /**
3884
+ * The time when the user experience has returned to expected levels.
3885
+ */
3886
+ resolved_at: string;
3887
+
3888
+ /**
3889
+ * The time when impact on the user experience was first detected.
3890
+ */
3891
+ started_at: string;
3892
+
3893
+ /**
3894
+ * A short description of the alert.
3895
+ */
3896
+ summary: string;
3897
+ }
3898
+
3899
+ namespace Data {
3900
+ export interface Impact {
3901
+ /**
3902
+ * The number of impacted payments.
3903
+ */
3904
+ impacted_payments: number;
3905
+
3906
+ /**
3907
+ * The percentage of impacted payments.
3908
+ */
3909
+ impacted_payments_percentage: string;
3638
3910
  }
3639
3911
  }
3640
3912
  }
@@ -4460,6 +4732,27 @@ declare module 'stripe' {
4460
4732
  fetchEvent(): Promise<V2MoneyManagementOutboundTransferUpdatedEvent>;
4461
4733
  }
4462
4734
 
4735
+ /**
4736
+ * Occurs when a PayoutMethod is created.
4737
+ */
4738
+ export interface V2MoneyManagementPayoutMethodCreatedEvent
4739
+ extends V2.Core.EventBase {
4740
+ type: 'v2.money_management.payout_method.created';
4741
+ // Object containing the reference to API resource relevant to the event.
4742
+ related_object: V2.Core.Events.RelatedObject;
4743
+ // Retrieves the object associated with the event.
4744
+ fetchRelatedObject(): Promise<V2.MoneyManagement.PayoutMethod>;
4745
+ }
4746
+ export interface V2MoneyManagementPayoutMethodCreatedEventNotification
4747
+ extends V2.Core.EventNotificationBase {
4748
+ type: 'v2.money_management.payout_method.created';
4749
+ // Object containing the reference to API resource relevant to the event.
4750
+ related_object: V2.Core.Events.RelatedObject;
4751
+ // Retrieves the object associated with the event.
4752
+ fetchRelatedObject(): Promise<V2.MoneyManagement.PayoutMethod>;
4753
+ fetchEvent(): Promise<V2MoneyManagementPayoutMethodCreatedEvent>;
4754
+ }
4755
+
4463
4756
  /**
4464
4757
  * Occurs when a PayoutMethod is updated.
4465
4758
  */
@@ -4973,6 +5266,314 @@ declare module 'stripe' {
4973
5266
  fetchEvent(): Promise<V2PaymentsOffSessionPaymentSucceededEvent>;
4974
5267
  }
4975
5268
 
5269
+ /**
5270
+ * Occurs when a SettlementAllocationIntent is canceled.
5271
+ */
5272
+ export interface V2PaymentsSettlementAllocationIntentCanceledEvent
5273
+ extends V2.Core.EventBase {
5274
+ type: 'v2.payments.settlement_allocation_intent.canceled';
5275
+ // Object containing the reference to API resource relevant to the event.
5276
+ related_object: V2.Core.Events.RelatedObject;
5277
+ // Retrieves the object associated with the event.
5278
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5279
+ }
5280
+ export interface V2PaymentsSettlementAllocationIntentCanceledEventNotification
5281
+ extends V2.Core.EventNotificationBase {
5282
+ type: 'v2.payments.settlement_allocation_intent.canceled';
5283
+ // Object containing the reference to API resource relevant to the event.
5284
+ related_object: V2.Core.Events.RelatedObject;
5285
+ // Retrieves the object associated with the event.
5286
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5287
+ fetchEvent(): Promise<V2PaymentsSettlementAllocationIntentCanceledEvent>;
5288
+ }
5289
+
5290
+ /**
5291
+ * Occurs when a SettlementAllocationIntent is created.
5292
+ */
5293
+ export interface V2PaymentsSettlementAllocationIntentCreatedEvent
5294
+ extends V2.Core.EventBase {
5295
+ type: 'v2.payments.settlement_allocation_intent.created';
5296
+ // Object containing the reference to API resource relevant to the event.
5297
+ related_object: V2.Core.Events.RelatedObject;
5298
+ // Retrieves the object associated with the event.
5299
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5300
+ }
5301
+ export interface V2PaymentsSettlementAllocationIntentCreatedEventNotification
5302
+ extends V2.Core.EventNotificationBase {
5303
+ type: 'v2.payments.settlement_allocation_intent.created';
5304
+ // Object containing the reference to API resource relevant to the event.
5305
+ related_object: V2.Core.Events.RelatedObject;
5306
+ // Retrieves the object associated with the event.
5307
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5308
+ fetchEvent(): Promise<V2PaymentsSettlementAllocationIntentCreatedEvent>;
5309
+ }
5310
+
5311
+ /**
5312
+ * Occurs when an error occurs in reconciling a SettlementAllocationIntent.
5313
+ */
5314
+ export interface V2PaymentsSettlementAllocationIntentErroredEvent
5315
+ extends V2.Core.EventBase {
5316
+ type: 'v2.payments.settlement_allocation_intent.errored';
5317
+ // Retrieves data specific to this event.
5318
+ data: V2PaymentsSettlementAllocationIntentErroredEvent.Data;
5319
+ // Object containing the reference to API resource relevant to the event.
5320
+ related_object: V2.Core.Events.RelatedObject;
5321
+ // Retrieves the object associated with the event.
5322
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5323
+ }
5324
+ export interface V2PaymentsSettlementAllocationIntentErroredEventNotification
5325
+ extends V2.Core.EventNotificationBase {
5326
+ type: 'v2.payments.settlement_allocation_intent.errored';
5327
+ // Object containing the reference to API resource relevant to the event.
5328
+ related_object: V2.Core.Events.RelatedObject;
5329
+ // Retrieves the object associated with the event.
5330
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5331
+ fetchEvent(): Promise<V2PaymentsSettlementAllocationIntentErroredEvent>;
5332
+ }
5333
+
5334
+ namespace V2PaymentsSettlementAllocationIntentErroredEvent {
5335
+ export interface Data {
5336
+ /**
5337
+ * Stripe doc link to debug the issue.
5338
+ */
5339
+ doc_url?: string;
5340
+
5341
+ /**
5342
+ * User Message detailing the reason code and possible resolution .
5343
+ */
5344
+ message: string;
5345
+
5346
+ /**
5347
+ * Open Enum. The `errored` status reason.
5348
+ */
5349
+ reason_code: 'amount_mismatch';
5350
+ }
5351
+ }
5352
+
5353
+ /**
5354
+ * Occurs when SettlementAllocationIntent's `expected_settlement_date` is one day away and no matching ReceivedCredit exists.
5355
+ */
5356
+ export interface V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent
5357
+ extends V2.Core.EventBase {
5358
+ type: 'v2.payments.settlement_allocation_intent.funds_not_received';
5359
+ // Object containing the reference to API resource relevant to the event.
5360
+ related_object: V2.Core.Events.RelatedObject;
5361
+ // Retrieves the object associated with the event.
5362
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5363
+ }
5364
+ export interface V2PaymentsSettlementAllocationIntentFundsNotReceivedEventNotification
5365
+ extends V2.Core.EventNotificationBase {
5366
+ type: 'v2.payments.settlement_allocation_intent.funds_not_received';
5367
+ // Object containing the reference to API resource relevant to the event.
5368
+ related_object: V2.Core.Events.RelatedObject;
5369
+ // Retrieves the object associated with the event.
5370
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5371
+ fetchEvent(): Promise<
5372
+ V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent
5373
+ >;
5374
+ }
5375
+
5376
+ /**
5377
+ * Occurs when a SettlementAllocationIntent is matched.
5378
+ */
5379
+ export interface V2PaymentsSettlementAllocationIntentMatchedEvent
5380
+ extends V2.Core.EventBase {
5381
+ type: 'v2.payments.settlement_allocation_intent.matched';
5382
+ // Object containing the reference to API resource relevant to the event.
5383
+ related_object: V2.Core.Events.RelatedObject;
5384
+ // Retrieves the object associated with the event.
5385
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5386
+ }
5387
+ export interface V2PaymentsSettlementAllocationIntentMatchedEventNotification
5388
+ extends V2.Core.EventNotificationBase {
5389
+ type: 'v2.payments.settlement_allocation_intent.matched';
5390
+ // Object containing the reference to API resource relevant to the event.
5391
+ related_object: V2.Core.Events.RelatedObject;
5392
+ // Retrieves the object associated with the event.
5393
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5394
+ fetchEvent(): Promise<V2PaymentsSettlementAllocationIntentMatchedEvent>;
5395
+ }
5396
+
5397
+ /**
5398
+ * Occurs when a ReceivedCredit has no SettlementAllocationIntent matching it.
5399
+ */
5400
+ export interface V2PaymentsSettlementAllocationIntentNotFoundEvent
5401
+ extends V2.Core.EventBase {
5402
+ type: 'v2.payments.settlement_allocation_intent.not_found';
5403
+ // Retrieves data specific to this event.
5404
+ data: V2PaymentsSettlementAllocationIntentNotFoundEvent.Data;
5405
+ }
5406
+ export interface V2PaymentsSettlementAllocationIntentNotFoundEventNotification
5407
+ extends V2.Core.EventNotificationBase {
5408
+ type: 'v2.payments.settlement_allocation_intent.not_found';
5409
+ fetchEvent(): Promise<V2PaymentsSettlementAllocationIntentNotFoundEvent>;
5410
+ }
5411
+
5412
+ namespace V2PaymentsSettlementAllocationIntentNotFoundEvent {
5413
+ export interface Data {
5414
+ /**
5415
+ * The ID of the ReceivedCredit.
5416
+ */
5417
+ received_credit_id: string;
5418
+ }
5419
+ }
5420
+
5421
+ /**
5422
+ * Occurs when a SettlementAllocationIntent is settled.
5423
+ */
5424
+ export interface V2PaymentsSettlementAllocationIntentSettledEvent
5425
+ extends V2.Core.EventBase {
5426
+ type: 'v2.payments.settlement_allocation_intent.settled';
5427
+ // Object containing the reference to API resource relevant to the event.
5428
+ related_object: V2.Core.Events.RelatedObject;
5429
+ // Retrieves the object associated with the event.
5430
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5431
+ }
5432
+ export interface V2PaymentsSettlementAllocationIntentSettledEventNotification
5433
+ extends V2.Core.EventNotificationBase {
5434
+ type: 'v2.payments.settlement_allocation_intent.settled';
5435
+ // Object containing the reference to API resource relevant to the event.
5436
+ related_object: V2.Core.Events.RelatedObject;
5437
+ // Retrieves the object associated with the event.
5438
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5439
+ fetchEvent(): Promise<V2PaymentsSettlementAllocationIntentSettledEvent>;
5440
+ }
5441
+
5442
+ /**
5443
+ * Occurs when a SettlementAllocationIntent is submitted.
5444
+ */
5445
+ export interface V2PaymentsSettlementAllocationIntentSubmittedEvent
5446
+ extends V2.Core.EventBase {
5447
+ type: 'v2.payments.settlement_allocation_intent.submitted';
5448
+ // Object containing the reference to API resource relevant to the event.
5449
+ related_object: V2.Core.Events.RelatedObject;
5450
+ // Retrieves the object associated with the event.
5451
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5452
+ }
5453
+ export interface V2PaymentsSettlementAllocationIntentSubmittedEventNotification
5454
+ extends V2.Core.EventNotificationBase {
5455
+ type: 'v2.payments.settlement_allocation_intent.submitted';
5456
+ // Object containing the reference to API resource relevant to the event.
5457
+ related_object: V2.Core.Events.RelatedObject;
5458
+ // Retrieves the object associated with the event.
5459
+ fetchRelatedObject(): Promise<V2.Payments.SettlementAllocationIntent>;
5460
+ fetchEvent(): Promise<V2PaymentsSettlementAllocationIntentSubmittedEvent>;
5461
+ }
5462
+
5463
+ /**
5464
+ * Occurs when a SettlementAllocationIntentSplit is canceled.
5465
+ */
5466
+ export interface V2PaymentsSettlementAllocationIntentSplitCanceledEvent
5467
+ extends V2.Core.EventBase {
5468
+ type: 'v2.payments.settlement_allocation_intent_split.canceled';
5469
+ // Retrieves data specific to this event.
5470
+ data: V2PaymentsSettlementAllocationIntentSplitCanceledEvent.Data;
5471
+ // Object containing the reference to API resource relevant to the event.
5472
+ related_object: V2.Core.Events.RelatedObject;
5473
+ // Retrieves the object associated with the event.
5474
+ fetchRelatedObject(): Promise<
5475
+ V2.Payments.SettlementAllocationIntentSplit
5476
+ >;
5477
+ }
5478
+ export interface V2PaymentsSettlementAllocationIntentSplitCanceledEventNotification
5479
+ extends V2.Core.EventNotificationBase {
5480
+ type: 'v2.payments.settlement_allocation_intent_split.canceled';
5481
+ // Object containing the reference to API resource relevant to the event.
5482
+ related_object: V2.Core.Events.RelatedObject;
5483
+ // Retrieves the object associated with the event.
5484
+ fetchRelatedObject(): Promise<
5485
+ V2.Payments.SettlementAllocationIntentSplit
5486
+ >;
5487
+ fetchEvent(): Promise<
5488
+ V2PaymentsSettlementAllocationIntentSplitCanceledEvent
5489
+ >;
5490
+ }
5491
+
5492
+ namespace V2PaymentsSettlementAllocationIntentSplitCanceledEvent {
5493
+ export interface Data {
5494
+ /**
5495
+ * The ID of the SettlementAllocationIntent this split belongs to.
5496
+ */
5497
+ settlement_allocation_intent_id: string;
5498
+ }
5499
+ }
5500
+
5501
+ /**
5502
+ * Occurs when a SettlementAllocationIntentSplit is created.
5503
+ */
5504
+ export interface V2PaymentsSettlementAllocationIntentSplitCreatedEvent
5505
+ extends V2.Core.EventBase {
5506
+ type: 'v2.payments.settlement_allocation_intent_split.created';
5507
+ // Retrieves data specific to this event.
5508
+ data: V2PaymentsSettlementAllocationIntentSplitCreatedEvent.Data;
5509
+ // Object containing the reference to API resource relevant to the event.
5510
+ related_object: V2.Core.Events.RelatedObject;
5511
+ // Retrieves the object associated with the event.
5512
+ fetchRelatedObject(): Promise<
5513
+ V2.Payments.SettlementAllocationIntentSplit
5514
+ >;
5515
+ }
5516
+ export interface V2PaymentsSettlementAllocationIntentSplitCreatedEventNotification
5517
+ extends V2.Core.EventNotificationBase {
5518
+ type: 'v2.payments.settlement_allocation_intent_split.created';
5519
+ // Object containing the reference to API resource relevant to the event.
5520
+ related_object: V2.Core.Events.RelatedObject;
5521
+ // Retrieves the object associated with the event.
5522
+ fetchRelatedObject(): Promise<
5523
+ V2.Payments.SettlementAllocationIntentSplit
5524
+ >;
5525
+ fetchEvent(): Promise<
5526
+ V2PaymentsSettlementAllocationIntentSplitCreatedEvent
5527
+ >;
5528
+ }
5529
+
5530
+ namespace V2PaymentsSettlementAllocationIntentSplitCreatedEvent {
5531
+ export interface Data {
5532
+ /**
5533
+ * The ID of the SettlementAllocationIntent this split belongs to.
5534
+ */
5535
+ settlement_allocation_intent_id: string;
5536
+ }
5537
+ }
5538
+
5539
+ /**
5540
+ * Occurs when a SettlementAllocationIntentSplit is settled.
5541
+ */
5542
+ export interface V2PaymentsSettlementAllocationIntentSplitSettledEvent
5543
+ extends V2.Core.EventBase {
5544
+ type: 'v2.payments.settlement_allocation_intent_split.settled';
5545
+ // Retrieves data specific to this event.
5546
+ data: V2PaymentsSettlementAllocationIntentSplitSettledEvent.Data;
5547
+ // Object containing the reference to API resource relevant to the event.
5548
+ related_object: V2.Core.Events.RelatedObject;
5549
+ // Retrieves the object associated with the event.
5550
+ fetchRelatedObject(): Promise<
5551
+ V2.Payments.SettlementAllocationIntentSplit
5552
+ >;
5553
+ }
5554
+ export interface V2PaymentsSettlementAllocationIntentSplitSettledEventNotification
5555
+ extends V2.Core.EventNotificationBase {
5556
+ type: 'v2.payments.settlement_allocation_intent_split.settled';
5557
+ // Object containing the reference to API resource relevant to the event.
5558
+ related_object: V2.Core.Events.RelatedObject;
5559
+ // Retrieves the object associated with the event.
5560
+ fetchRelatedObject(): Promise<
5561
+ V2.Payments.SettlementAllocationIntentSplit
5562
+ >;
5563
+ fetchEvent(): Promise<
5564
+ V2PaymentsSettlementAllocationIntentSplitSettledEvent
5565
+ >;
5566
+ }
5567
+
5568
+ namespace V2PaymentsSettlementAllocationIntentSplitSettledEvent {
5569
+ export interface Data {
5570
+ /**
5571
+ * The ID of the SettlementAllocationIntent this split belongs to.
5572
+ */
5573
+ settlement_allocation_intent_id: string;
5574
+ }
5575
+ }
5576
+
4976
5577
  /**
4977
5578
  * Occurs when a ReportRun is created.
4978
5579
  */