diff --git a/API_VERSION b/API_VERSION index 93be1cef53..72fc940f33 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -88aa59022b32620f4d66d6196e3b42d5a0f86bbb \ No newline at end of file +a3035d6cb25cc44d50589c1da75b21abbd3601ca \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 16739433ec..abf60f2064 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2140 \ No newline at end of file +v2143 \ No newline at end of file diff --git a/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs b/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs index b20f210fb4..97b589c4de 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs @@ -62,6 +62,7 @@ public class StripeEventNotificationHandler private EventHandler> v2MoneyManagementOutboundTransferPosted; private EventHandler> v2MoneyManagementOutboundTransferReturned; private EventHandler> v2MoneyManagementOutboundTransferUpdated; + private EventHandler> v2MoneyManagementPayoutMethodCreated; private EventHandler> v2MoneyManagementPayoutMethodUpdated; private EventHandler> v2MoneyManagementReceivedCreditAvailable; private EventHandler> v2MoneyManagementReceivedCreditFailed; @@ -396,6 +397,12 @@ public event EventHandler> V2MoneyManagementPayoutMethodCreated + { + add { this.AddEventHandler(ref this.v2MoneyManagementPayoutMethodCreated, value, "v2.money_management.payout_method.created"); } + remove { this.RemoveEventHandler(); } + } + public event EventHandler> V2MoneyManagementPayoutMethodUpdated { add { this.AddEventHandler(ref this.v2MoneyManagementPayoutMethodUpdated, value, "v2.money_management.payout_method.updated"); } @@ -757,6 +764,10 @@ private void DispatchEvent(V2.Core.EventNotification eventNotification, StripeCl { this.v2MoneyManagementOutboundTransferUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEventNotification)eventNotification, client)); } + else if (eventNotification is Stripe.Events.V2MoneyManagementPayoutMethodCreatedEventNotification) + { + this.v2MoneyManagementPayoutMethodCreated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementPayoutMethodCreatedEventNotification)eventNotification, client)); + } else if (eventNotification is Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEventNotification) { this.v2MoneyManagementPayoutMethodUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementPayoutMethodUpdatedEventNotification)eventNotification, client));