diff --git a/src/Examples/V2/PushedEventWebhookHandler.cs b/src/Examples/V2/PushedEventWebhookHandler.cs
deleted file mode 100644
index 943bc4b19f..0000000000
--- a/src/Examples/V2/PushedEventWebhookHandler.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-#pragma warning disable SA1101 // Prefix local calls with this
-
-using System;
-using System.IO;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Mvc;
-using Stripe;
-using Stripe.Events;
-
-///
-/// Receive and process thin events like the v1.billing.meter.error_report_triggered event.
-///
-/// In this example, we:
-/// - use ParseThinEvent__Experimental to parse the received thin event webhook body into a PushedEvent
-/// - if it is a ParsedV1BillingMeterErrorReportTriggeredEvent event type, call PullAsync to get
-/// the V1BillingMeterErrorReportTriggeredEvent object
-/// - call FetchRelatedObjectAsync on the pushed event to retrieve the Billing Meter object associated with the event.
-///
-[Route("api/[controller]")]
-[ApiController]
-public class PushedEventWebhookHandler : ControllerBase
-{
- private readonly StripeClient client;
- private readonly string webhookSecret;
-
- public PushedEventWebhookHandler()
- {
- var apiKey = Environment.GetEnvironmentVariable("STRIPE_API_KEY");
- client = new StripeClient(apiKey);
-
- webhookSecret = Environment.GetEnvironmentVariable("WEBHOOK_SECRET");
- }
-
- [HttpPost]
- public async Task Index()
- {
- var json = await new StreamReader(HttpContext.Request.Body).ReadToEndAsync();
- try
- {
- var pushedEvent = client.ParseThinEvent__Experimental(json, Request.Headers["Stripe-Signature"], webhookSecret);
- if (pushedEvent is PushedV1BillingMeterErrorReportTriggeredEvent pushedV1BillingEvent)
- {
- var pulledEvent = await pushedV1BillingEvent.PullAsync();
- var meter = await pushedV1BillingEvent.FetchRelatedObjectAsync();
- var meterId = meter.Id;
- }
-
- return Ok();
- }
- catch (StripeException e)
- {
- return BadRequest(e.Message);
- }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Events/PushedEvent.cs b/src/Stripe.net/Entities/V2/Events/PushedEvent.cs
deleted file mode 100644
index f0d5caf388..0000000000
--- a/src/Stripe.net/Entities/V2/Events/PushedEvent.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-namespace Stripe.V2
-{
- using System.Threading.Tasks;
-
- ///
- /// Base class for Pushed event classes. This class should not be used directly.
- ///
- /// This is part of an experiment and may be changed or removed at any time.
- /// See StripeClient.ParseThinEvent__Experimental.
- ///
- public abstract class PushedEvent : Event
- {
- protected T PullEvent()
- where T : V2.Event
- {
- var svc = new V2.Core.EventService(this.Requestor);
- return (T)svc.Get(this.Id, null, new RequestOptions
- {
- StripeAccount = this.Context,
- Usage = PullEventUsage,
- });
- }
-
- protected async Task PullEventAsync()
- where T : V2.Event
- {
- var svc = new V2.Core.EventService(this.Requestor);
- return (T)await svc.GetAsync(this.Id, null, new RequestOptions
- {
- StripeAccount = this.Context,
- Usage = PullEventUsage,
- })
- .ConfigureAwait(false);
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1AccountUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1AccountUpdatedEvent.cs
deleted file mode 100644
index 2a6b4ea18b..0000000000
--- a/src/Stripe.net/Events/PushedV1AccountUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever an account status or property has changed.
- ///
- public class PushedV1AccountUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Account FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1AccountUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ApplicationFeeCreatedEvent.cs b/src/Stripe.net/Events/PushedV1ApplicationFeeCreatedEvent.cs
deleted file mode 100644
index e04b44f433..0000000000
--- a/src/Stripe.net/Events/PushedV1ApplicationFeeCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever an application fee is created on a charge.
- ///
- public class PushedV1ApplicationFeeCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public ApplicationFee FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ApplicationFeeCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ApplicationFeeRefundedEvent.cs b/src/Stripe.net/Events/PushedV1ApplicationFeeRefundedEvent.cs
deleted file mode 100644
index 56281447f0..0000000000
--- a/src/Stripe.net/Events/PushedV1ApplicationFeeRefundedEvent.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever an application fee is refunded, whether from refunding a charge or from
- /// refunding the application fee
- /// directly. This includes partial refunds.
- ///
- public class PushedV1ApplicationFeeRefundedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public ApplicationFee FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ApplicationFeeRefundedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1BillingMeterErrorReportTriggeredEvent.cs b/src/Stripe.net/Events/PushedV1BillingMeterErrorReportTriggeredEvent.cs
deleted file mode 100644
index 3f97e9dc16..0000000000
--- a/src/Stripe.net/Events/PushedV1BillingMeterErrorReportTriggeredEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Meter has invalid async usage events.
- ///
- public class PushedV1BillingMeterErrorReportTriggeredEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Billing.Meter FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1BillingMeterErrorReportTriggeredEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1BillingMeterNoMeterFoundEvent.cs b/src/Stripe.net/Events/PushedV1BillingMeterNoMeterFoundEvent.cs
deleted file mode 100644
index 96b6d3b503..0000000000
--- a/src/Stripe.net/Events/PushedV1BillingMeterNoMeterFoundEvent.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
-
- ///
- /// Occurs when a Meter's id is missing or invalid in async usage events.
- ///
- public class PushedV1BillingMeterNoMeterFoundEvent : V2.PushedEvent
- {
- public V1BillingMeterNoMeterFoundEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1BillingPortalConfigurationCreatedEvent.cs b/src/Stripe.net/Events/PushedV1BillingPortalConfigurationCreatedEvent.cs
deleted file mode 100644
index 33c3ee4ce4..0000000000
--- a/src/Stripe.net/Events/PushedV1BillingPortalConfigurationCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a portal configuration is created.
- ///
- public class PushedV1BillingPortalConfigurationCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public BillingPortal.Configuration FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1BillingPortalConfigurationCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1BillingPortalConfigurationUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1BillingPortalConfigurationUpdatedEvent.cs
deleted file mode 100644
index d60f6e7c6b..0000000000
--- a/src/Stripe.net/Events/PushedV1BillingPortalConfigurationUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a portal configuration is updated.
- ///
- public class PushedV1BillingPortalConfigurationUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public BillingPortal.Configuration FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1BillingPortalConfigurationUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CapabilityUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1CapabilityUpdatedEvent.cs
deleted file mode 100644
index df7e3014b0..0000000000
--- a/src/Stripe.net/Events/PushedV1CapabilityUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a capability has new requirements or a new status.
- ///
- public class PushedV1CapabilityUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Capability FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CapabilityUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeCapturedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeCapturedEvent.cs
deleted file mode 100644
index 29dbd7ea82..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeCapturedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a previously uncaptured charge is captured.
- ///
- public class PushedV1ChargeCapturedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Charge FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeCapturedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeDisputeClosedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeDisputeClosedEvent.cs
deleted file mode 100644
index 6d9eef1bed..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeDisputeClosedEvent.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a dispute is closed and the dispute status changes to lost,
- /// warning_closed, or won.
- ///
- public class PushedV1ChargeDisputeClosedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Dispute FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeDisputeClosedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeDisputeCreatedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeDisputeCreatedEvent.cs
deleted file mode 100644
index bfcf11ed0a..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeDisputeCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a customer disputes a charge with their bank.
- ///
- public class PushedV1ChargeDisputeCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Dispute FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeDisputeCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeDisputeFundsReinstatedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeDisputeFundsReinstatedEvent.cs
deleted file mode 100644
index a9676aba7e..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeDisputeFundsReinstatedEvent.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when funds are reinstated to your account after a dispute is closed. This
- /// includes partially
- /// refunded payments.
- ///
- public class PushedV1ChargeDisputeFundsReinstatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Dispute FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeDisputeFundsReinstatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeDisputeFundsWithdrawnEvent.cs b/src/Stripe.net/Events/PushedV1ChargeDisputeFundsWithdrawnEvent.cs
deleted file mode 100644
index 3d86bef545..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeDisputeFundsWithdrawnEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when funds are removed from your account due to a dispute.
- ///
- public class PushedV1ChargeDisputeFundsWithdrawnEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Dispute FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeDisputeFundsWithdrawnEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeDisputeUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeDisputeUpdatedEvent.cs
deleted file mode 100644
index 50fc60e690..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeDisputeUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when the dispute is updated (usually with evidence).
- ///
- public class PushedV1ChargeDisputeUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Dispute FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeDisputeUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeExpiredEvent.cs b/src/Stripe.net/Events/PushedV1ChargeExpiredEvent.cs
deleted file mode 100644
index 4ddab0e960..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeExpiredEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever an uncaptured charge expires.
- ///
- public class PushedV1ChargeExpiredEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Charge FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeExpiredEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeFailedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeFailedEvent.cs
deleted file mode 100644
index 0779c4d114..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeFailedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a failed charge attempt occurs.
- ///
- public class PushedV1ChargeFailedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Charge FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeFailedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargePendingEvent.cs b/src/Stripe.net/Events/PushedV1ChargePendingEvent.cs
deleted file mode 100644
index e9c5338213..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargePendingEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a pending charge is created.
- ///
- public class PushedV1ChargePendingEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Charge FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargePendingEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeRefundUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeRefundUpdatedEvent.cs
deleted file mode 100644
index 2008c79b7e..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeRefundUpdatedEvent.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a refund is updated on selected payment methods. For updates on all
- /// refunds, listen to refund.updated instead.
- ///
- public class PushedV1ChargeRefundUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Refund FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeRefundUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeRefundedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeRefundedEvent.cs
deleted file mode 100644
index 8c44aea460..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeRefundedEvent.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a charge is refunded, including partial refunds. Listen to
- /// refund.created for information about the refund.
- ///
- public class PushedV1ChargeRefundedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Charge FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeRefundedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeSucceededEvent.cs b/src/Stripe.net/Events/PushedV1ChargeSucceededEvent.cs
deleted file mode 100644
index de4376f685..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeSucceededEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a charge is successful.
- ///
- public class PushedV1ChargeSucceededEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Charge FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeSucceededEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ChargeUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1ChargeUpdatedEvent.cs
deleted file mode 100644
index 3bc0a3d049..0000000000
--- a/src/Stripe.net/Events/PushedV1ChargeUpdatedEvent.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a charge description or metadata is updated, or upon an asynchronous
- /// capture.
- ///
- public class PushedV1ChargeUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Charge FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ChargeUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CheckoutSessionAsyncPaymentFailedEvent.cs b/src/Stripe.net/Events/PushedV1CheckoutSessionAsyncPaymentFailedEvent.cs
deleted file mode 100644
index 7b35ef1b38..0000000000
--- a/src/Stripe.net/Events/PushedV1CheckoutSessionAsyncPaymentFailedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a payment intent using a delayed payment method fails.
- ///
- public class PushedV1CheckoutSessionAsyncPaymentFailedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Checkout.Session FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CheckoutSessionAsyncPaymentFailedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CheckoutSessionAsyncPaymentSucceededEvent.cs b/src/Stripe.net/Events/PushedV1CheckoutSessionAsyncPaymentSucceededEvent.cs
deleted file mode 100644
index d858e458b2..0000000000
--- a/src/Stripe.net/Events/PushedV1CheckoutSessionAsyncPaymentSucceededEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a payment intent using a delayed payment method finally succeeds.
- ///
- public class PushedV1CheckoutSessionAsyncPaymentSucceededEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Checkout.Session FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CheckoutSessionAsyncPaymentSucceededEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CheckoutSessionCompletedEvent.cs b/src/Stripe.net/Events/PushedV1CheckoutSessionCompletedEvent.cs
deleted file mode 100644
index 48caf4b65f..0000000000
--- a/src/Stripe.net/Events/PushedV1CheckoutSessionCompletedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Checkout Session has been successfully completed.
- ///
- public class PushedV1CheckoutSessionCompletedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Checkout.Session FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CheckoutSessionCompletedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CheckoutSessionExpiredEvent.cs b/src/Stripe.net/Events/PushedV1CheckoutSessionExpiredEvent.cs
deleted file mode 100644
index 3e89dce354..0000000000
--- a/src/Stripe.net/Events/PushedV1CheckoutSessionExpiredEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Checkout Session is expired.
- ///
- public class PushedV1CheckoutSessionExpiredEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Checkout.Session FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CheckoutSessionExpiredEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ClimateOrderCanceledEvent.cs b/src/Stripe.net/Events/PushedV1ClimateOrderCanceledEvent.cs
deleted file mode 100644
index 1e0cfec36e..0000000000
--- a/src/Stripe.net/Events/PushedV1ClimateOrderCanceledEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Climate order is canceled.
- ///
- public class PushedV1ClimateOrderCanceledEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Climate.Order FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ClimateOrderCanceledEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ClimateOrderCreatedEvent.cs b/src/Stripe.net/Events/PushedV1ClimateOrderCreatedEvent.cs
deleted file mode 100644
index 54b46f6489..0000000000
--- a/src/Stripe.net/Events/PushedV1ClimateOrderCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Climate order is created.
- ///
- public class PushedV1ClimateOrderCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Climate.Order FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ClimateOrderCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ClimateOrderDelayedEvent.cs b/src/Stripe.net/Events/PushedV1ClimateOrderDelayedEvent.cs
deleted file mode 100644
index e3574cd202..0000000000
--- a/src/Stripe.net/Events/PushedV1ClimateOrderDelayedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Climate order is delayed.
- ///
- public class PushedV1ClimateOrderDelayedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Climate.Order FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ClimateOrderDelayedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ClimateOrderDeliveredEvent.cs b/src/Stripe.net/Events/PushedV1ClimateOrderDeliveredEvent.cs
deleted file mode 100644
index 3825721ed7..0000000000
--- a/src/Stripe.net/Events/PushedV1ClimateOrderDeliveredEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Climate order is delivered.
- ///
- public class PushedV1ClimateOrderDeliveredEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Climate.Order FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ClimateOrderDeliveredEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ClimateOrderProductSubstitutedEvent.cs b/src/Stripe.net/Events/PushedV1ClimateOrderProductSubstitutedEvent.cs
deleted file mode 100644
index 9d3dac387b..0000000000
--- a/src/Stripe.net/Events/PushedV1ClimateOrderProductSubstitutedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Climate order's product is substituted for another.
- ///
- public class PushedV1ClimateOrderProductSubstitutedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Climate.Order FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ClimateOrderProductSubstitutedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ClimateProductCreatedEvent.cs b/src/Stripe.net/Events/PushedV1ClimateProductCreatedEvent.cs
deleted file mode 100644
index c876751966..0000000000
--- a/src/Stripe.net/Events/PushedV1ClimateProductCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Climate product is created.
- ///
- public class PushedV1ClimateProductCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Climate.Product FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ClimateProductCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1ClimateProductPricingUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1ClimateProductPricingUpdatedEvent.cs
deleted file mode 100644
index 7d121caf77..0000000000
--- a/src/Stripe.net/Events/PushedV1ClimateProductPricingUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a Climate product is updated.
- ///
- public class PushedV1ClimateProductPricingUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Climate.Product FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1ClimateProductPricingUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CouponCreatedEvent.cs b/src/Stripe.net/Events/PushedV1CouponCreatedEvent.cs
deleted file mode 100644
index 1d52455b06..0000000000
--- a/src/Stripe.net/Events/PushedV1CouponCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a coupon is created.
- ///
- public class PushedV1CouponCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Coupon FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CouponCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CouponDeletedEvent.cs b/src/Stripe.net/Events/PushedV1CouponDeletedEvent.cs
deleted file mode 100644
index 4ed9c9a4a7..0000000000
--- a/src/Stripe.net/Events/PushedV1CouponDeletedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a coupon is deleted.
- ///
- public class PushedV1CouponDeletedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Coupon FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CouponDeletedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CouponUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1CouponUpdatedEvent.cs
deleted file mode 100644
index e745c175e0..0000000000
--- a/src/Stripe.net/Events/PushedV1CouponUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a coupon is updated.
- ///
- public class PushedV1CouponUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Coupon FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CouponUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CreditNoteCreatedEvent.cs b/src/Stripe.net/Events/PushedV1CreditNoteCreatedEvent.cs
deleted file mode 100644
index 1f4c68b5c0..0000000000
--- a/src/Stripe.net/Events/PushedV1CreditNoteCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a credit note is created.
- ///
- public class PushedV1CreditNoteCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public CreditNote FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CreditNoteCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CreditNoteUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1CreditNoteUpdatedEvent.cs
deleted file mode 100644
index 0657cd06df..0000000000
--- a/src/Stripe.net/Events/PushedV1CreditNoteUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a credit note is updated.
- ///
- public class PushedV1CreditNoteUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public CreditNote FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CreditNoteUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CreditNoteVoidedEvent.cs b/src/Stripe.net/Events/PushedV1CreditNoteVoidedEvent.cs
deleted file mode 100644
index 68669e1257..0000000000
--- a/src/Stripe.net/Events/PushedV1CreditNoteVoidedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a credit note is voided.
- ///
- public class PushedV1CreditNoteVoidedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public CreditNote FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CreditNoteVoidedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CustomerCreatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerCreatedEvent.cs
deleted file mode 100644
index c9f7217fde..0000000000
--- a/src/Stripe.net/Events/PushedV1CustomerCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a new customer is created.
- ///
- public class PushedV1CustomerCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Customer FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CustomerCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CustomerDeletedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerDeletedEvent.cs
deleted file mode 100644
index d9447f314d..0000000000
--- a/src/Stripe.net/Events/PushedV1CustomerDeletedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a customer is deleted.
- ///
- public class PushedV1CustomerDeletedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Customer FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CustomerDeletedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CustomerDiscountCreatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerDiscountCreatedEvent.cs
deleted file mode 100644
index 7c63c65433..0000000000
--- a/src/Stripe.net/Events/PushedV1CustomerDiscountCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a coupon is attached to a customer.
- ///
- public class PushedV1CustomerDiscountCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Discount FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CustomerDiscountCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CustomerDiscountDeletedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerDiscountDeletedEvent.cs
deleted file mode 100644
index b7fb8aad95..0000000000
--- a/src/Stripe.net/Events/PushedV1CustomerDiscountDeletedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a coupon is removed from a customer.
- ///
- public class PushedV1CustomerDiscountDeletedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public Discount FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V1CustomerDiscountDeletedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV1CustomerDiscountUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerDiscountUpdatedEvent.cs
deleted file mode 100644
index cec5acc3e6..0000000000
--- a/src/Stripe.net/Events/PushedV1CustomerDiscountUpdatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs whenever a customer is switched from one coupon to another.
- ///
- public class PushedV1CustomerDiscountUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync