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(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 V1CustomerDiscountUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionCreatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionCreatedEvent.cs deleted file mode 100644 index a40434b7b8..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionCreatedEvent.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 signed up for a new plan. - /// - public class PushedV1CustomerSubscriptionCreatedEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionDeletedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionDeletedEvent.cs deleted file mode 100644 index 0064501742..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionDeletedEvent.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's subscription ends. - /// - public class PushedV1CustomerSubscriptionDeletedEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionPausedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionPausedEvent.cs deleted file mode 100644 index 3ef3c1e396..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionPausedEvent.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 whenever a customer's subscription is paused. Only applies when subscriptions - /// enter status=paused, not when payment collection is - /// paused. - /// - public class PushedV1CustomerSubscriptionPausedEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionPausedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionPendingUpdateAppliedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionPendingUpdateAppliedEvent.cs deleted file mode 100644 index 7f7e4a83c3..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionPendingUpdateAppliedEvent.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 customer's subscription's pending update is applied, and the - /// subscription is updated. - /// - public class PushedV1CustomerSubscriptionPendingUpdateAppliedEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionPendingUpdateAppliedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionPendingUpdateExpiredEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionPendingUpdateExpiredEvent.cs deleted file mode 100644 index 77d83c755f..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionPendingUpdateExpiredEvent.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 customer's subscription's pending update expires before the related - /// invoice is paid. - /// - public class PushedV1CustomerSubscriptionPendingUpdateExpiredEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionPendingUpdateExpiredEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionResumedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionResumedEvent.cs deleted file mode 100644 index fc61493c20..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionResumedEvent.cs +++ /dev/null @@ -1,56 +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's subscription is no longer paused. Only applies when a - /// status=paused subscription is resumed, not when payment collection is - /// resumed. - /// - public class PushedV1CustomerSubscriptionResumedEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionResumedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionTrialWillEndEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionTrialWillEndEvent.cs deleted file mode 100644 index 3a77484724..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionTrialWillEndEvent.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 three days before a subscription's trial period is scheduled to end, or when a - /// trial is ended immediately (using trial_end=now). - /// - public class PushedV1CustomerSubscriptionTrialWillEndEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionTrialWillEndEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerSubscriptionUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerSubscriptionUpdatedEvent.cs deleted file mode 100644 index 538686f283..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerSubscriptionUpdatedEvent.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 subscription changes (e.g., switching from one plan to another, or - /// changing the status from trial to active). - /// - public class PushedV1CustomerSubscriptionUpdatedEvent : 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 Subscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerSubscriptionUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerTaxIdCreatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerTaxIdCreatedEvent.cs deleted file mode 100644 index f94d084303..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerTaxIdCreatedEvent.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 tax ID is created for a customer. - /// - public class PushedV1CustomerTaxIdCreatedEvent : 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 TaxId FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerTaxIdCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerTaxIdDeletedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerTaxIdDeletedEvent.cs deleted file mode 100644 index bb1dc86c0d..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerTaxIdDeletedEvent.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 tax ID is deleted from a customer. - /// - public class PushedV1CustomerTaxIdDeletedEvent : 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 TaxId FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerTaxIdDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerTaxIdUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerTaxIdUpdatedEvent.cs deleted file mode 100644 index c8d792162e..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerTaxIdUpdatedEvent.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's tax ID is updated. - /// - public class PushedV1CustomerTaxIdUpdatedEvent : 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 TaxId FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1CustomerTaxIdUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1CustomerUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1CustomerUpdatedEvent.cs deleted file mode 100644 index 5b8f3dee65..0000000000 --- a/src/Stripe.net/Events/PushedV1CustomerUpdatedEvent.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 any property of a customer changes. - /// - public class PushedV1CustomerUpdatedEvent : 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 V1CustomerUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FileCreatedEvent.cs b/src/Stripe.net/Events/PushedV1FileCreatedEvent.cs deleted file mode 100644 index 0bd9ee737e..0000000000 --- a/src/Stripe.net/Events/PushedV1FileCreatedEvent.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 Stripe-generated file is available for your account. - /// - public class PushedV1FileCreatedEvent : 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 File FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FileCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountCreatedEvent.cs b/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountCreatedEvent.cs deleted file mode 100644 index 6ded8c4cbc..0000000000 --- a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountCreatedEvent.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 new Financial Connections account is created. - /// - public class PushedV1FinancialConnectionsAccountCreatedEvent : 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 FinancialConnections.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FinancialConnectionsAccountCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountDeactivatedEvent.cs b/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountDeactivatedEvent.cs deleted file mode 100644 index d804d00de2..0000000000 --- a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountDeactivatedEvent.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 Financial Connections account's status is updated from active to - /// inactive. - /// - public class PushedV1FinancialConnectionsAccountDeactivatedEvent : 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 FinancialConnections.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FinancialConnectionsAccountDeactivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountDisconnectedEvent.cs b/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountDisconnectedEvent.cs deleted file mode 100644 index 468728102d..0000000000 --- a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountDisconnectedEvent.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 Financial Connections account is disconnected. - /// - public class PushedV1FinancialConnectionsAccountDisconnectedEvent : 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 FinancialConnections.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FinancialConnectionsAccountDisconnectedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountReactivatedEvent.cs b/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountReactivatedEvent.cs deleted file mode 100644 index c52ee94057..0000000000 --- a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountReactivatedEvent.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 Financial Connections account's status is updated from inactive to - /// active. - /// - public class PushedV1FinancialConnectionsAccountReactivatedEvent : 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 FinancialConnections.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FinancialConnectionsAccountReactivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedBalanceEvent.cs b/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedBalanceEvent.cs deleted file mode 100644 index 9170445061..0000000000 --- a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedBalanceEvent.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 an Account’s balance_refresh status transitions from pending - /// to either succeeded or failed. - /// - public class PushedV1FinancialConnectionsAccountRefreshedBalanceEvent : 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 FinancialConnections.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FinancialConnectionsAccountRefreshedBalanceEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedOwnershipEvent.cs b/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedOwnershipEvent.cs deleted file mode 100644 index 073d507527..0000000000 --- a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedOwnershipEvent.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 an Account’s ownership_refresh status transitions from pending - /// to either succeeded or failed. - /// - public class PushedV1FinancialConnectionsAccountRefreshedOwnershipEvent : 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 FinancialConnections.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FinancialConnectionsAccountRefreshedOwnershipEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedTransactionsEvent.cs b/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedTransactionsEvent.cs deleted file mode 100644 index 98a124116d..0000000000 --- a/src/Stripe.net/Events/PushedV1FinancialConnectionsAccountRefreshedTransactionsEvent.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 an Account’s transaction_refresh status transitions from - /// pending to either succeeded or failed. - /// - public class PushedV1FinancialConnectionsAccountRefreshedTransactionsEvent : 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 FinancialConnections.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1FinancialConnectionsAccountRefreshedTransactionsEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionCanceledEvent.cs b/src/Stripe.net/Events/PushedV1IdentityVerificationSessionCanceledEvent.cs deleted file mode 100644 index 8958b53ba4..0000000000 --- a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionCanceledEvent.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 VerificationSession is canceled. - /// - public class PushedV1IdentityVerificationSessionCanceledEvent : 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 Identity.VerificationSession FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IdentityVerificationSessionCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionCreatedEvent.cs b/src/Stripe.net/Events/PushedV1IdentityVerificationSessionCreatedEvent.cs deleted file mode 100644 index 685bcf55ed..0000000000 --- a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionCreatedEvent.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 VerificationSession is created. - /// - public class PushedV1IdentityVerificationSessionCreatedEvent : 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 Identity.VerificationSession FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IdentityVerificationSessionCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionProcessingEvent.cs b/src/Stripe.net/Events/PushedV1IdentityVerificationSessionProcessingEvent.cs deleted file mode 100644 index c6bda7e3a2..0000000000 --- a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionProcessingEvent.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 VerificationSession transitions to processing. - /// - public class PushedV1IdentityVerificationSessionProcessingEvent : 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 Identity.VerificationSession FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IdentityVerificationSessionProcessingEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionRedactedEvent.cs b/src/Stripe.net/Events/PushedV1IdentityVerificationSessionRedactedEvent.cs deleted file mode 100644 index 0a3a6e8da4..0000000000 --- a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionRedactedEvent.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 VerificationSession is redacted. - /// - public class PushedV1IdentityVerificationSessionRedactedEvent : 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 Identity.VerificationSession FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IdentityVerificationSessionRedactedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionRequiresInputEvent.cs b/src/Stripe.net/Events/PushedV1IdentityVerificationSessionRequiresInputEvent.cs deleted file mode 100644 index ff8e04f5f0..0000000000 --- a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionRequiresInputEvent.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 VerificationSession transitions to require user input. - /// - public class PushedV1IdentityVerificationSessionRequiresInputEvent : 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 Identity.VerificationSession FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IdentityVerificationSessionRequiresInputEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionVerifiedEvent.cs b/src/Stripe.net/Events/PushedV1IdentityVerificationSessionVerifiedEvent.cs deleted file mode 100644 index 718c249e22..0000000000 --- a/src/Stripe.net/Events/PushedV1IdentityVerificationSessionVerifiedEvent.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 VerificationSession transitions to verified. - /// - public class PushedV1IdentityVerificationSessionVerifiedEvent : 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 Identity.VerificationSession FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IdentityVerificationSessionVerifiedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceCreatedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceCreatedEvent.cs deleted file mode 100644 index 96bf15f35c..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceCreatedEvent.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 whenever a new invoice is created. To learn how webhooks can be used with this - /// event, and how they can affect it, see Using Webhooks with - /// Subscriptions. - /// - public class PushedV1InvoiceCreatedEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceDeletedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceDeletedEvent.cs deleted file mode 100644 index cf70f3d5e5..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceDeletedEvent.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 draft invoice is deleted. Note: This event is not sent for invoice previews. - /// - public class PushedV1InvoiceDeletedEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceFinalizationFailedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceFinalizationFailedEvent.cs deleted file mode 100644 index 0b625ca9f1..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceFinalizationFailedEvent.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 a draft invoice cannot be finalized. See the invoice’s last - /// finalization error for details. - /// - public class PushedV1InvoiceFinalizationFailedEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceFinalizationFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceFinalizedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceFinalizedEvent.cs deleted file mode 100644 index 24e44499ba..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceFinalizedEvent.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 draft invoice is finalized and updated to be an open invoice. - /// - public class PushedV1InvoiceFinalizedEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceFinalizedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceMarkedUncollectibleEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceMarkedUncollectibleEvent.cs deleted file mode 100644 index 0e62f20d9a..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceMarkedUncollectibleEvent.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 invoice is marked uncollectible. - /// - public class PushedV1InvoiceMarkedUncollectibleEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceMarkedUncollectibleEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceOverdueEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceOverdueEvent.cs deleted file mode 100644 index e221b0f014..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceOverdueEvent.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 X number of days after an invoice becomes due—where X is determined by - /// Automations. - /// - public class PushedV1InvoiceOverdueEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceOverdueEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceOverpaidEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceOverpaidEvent.cs deleted file mode 100644 index 8e0c7170ca..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceOverpaidEvent.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 an invoice transitions to paid with a non-zero amount_overpaid. - /// - public class PushedV1InvoiceOverpaidEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceOverpaidEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoicePaidEvent.cs b/src/Stripe.net/Events/PushedV1InvoicePaidEvent.cs deleted file mode 100644 index aca90b72f1..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoicePaidEvent.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 an invoice payment attempt succeeds or an invoice is marked as paid - /// out-of-band. - /// - public class PushedV1InvoicePaidEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoicePaidEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoicePaymentActionRequiredEvent.cs b/src/Stripe.net/Events/PushedV1InvoicePaymentActionRequiredEvent.cs deleted file mode 100644 index 8c8451134d..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoicePaymentActionRequiredEvent.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 invoice payment attempt requires further user action to complete. - /// - public class PushedV1InvoicePaymentActionRequiredEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoicePaymentActionRequiredEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoicePaymentFailedEvent.cs b/src/Stripe.net/Events/PushedV1InvoicePaymentFailedEvent.cs deleted file mode 100644 index 75c4ee6cd6..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoicePaymentFailedEvent.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 an invoice payment attempt fails, due to either a declined payment, - /// including soft decline, or to the lack of a stored payment method. - /// - public class PushedV1InvoicePaymentFailedEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoicePaymentFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoicePaymentPaidEvent.cs b/src/Stripe.net/Events/PushedV1InvoicePaymentPaidEvent.cs deleted file mode 100644 index fd6d7d5f1e..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoicePaymentPaidEvent.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 an InvoicePayment is successfully paid. - /// - public class PushedV1InvoicePaymentPaidEvent : 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 InvoicePayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoicePaymentPaidEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoicePaymentSucceededEvent.cs b/src/Stripe.net/Events/PushedV1InvoicePaymentSucceededEvent.cs deleted file mode 100644 index 8729c8f212..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoicePaymentSucceededEvent.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 invoice payment attempt succeeds. - /// - public class PushedV1InvoicePaymentSucceededEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoicePaymentSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceSentEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceSentEvent.cs deleted file mode 100644 index d65a118ea5..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceSentEvent.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 invoice email is sent out. - /// - public class PushedV1InvoiceSentEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceSentEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceUpcomingEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceUpcomingEvent.cs deleted file mode 100644 index 9e6e76a662..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceUpcomingEvent.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 X number of days before a subscription is scheduled to create an invoice that is - /// automatically charged—where X is determined by your subscriptions - /// settings. Note: The received Invoice object will not have an invoice ID. - /// - public class PushedV1InvoiceUpcomingEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceUpcomingEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceUpdatedEvent.cs deleted file mode 100644 index 1d5070b630..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceUpdatedEvent.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 invoice changes (e.g., the invoice amount). - /// - public class PushedV1InvoiceUpdatedEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceVoidedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceVoidedEvent.cs deleted file mode 100644 index b3f0964cc0..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceVoidedEvent.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 invoice is voided. - /// - public class PushedV1InvoiceVoidedEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceVoidedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceWillBeDueEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceWillBeDueEvent.cs deleted file mode 100644 index 9a07fd24c3..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceWillBeDueEvent.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 X number of days before an invoice becomes due—where X is determined by - /// Automations. - /// - public class PushedV1InvoiceWillBeDueEvent : 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 Invoice FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceWillBeDueEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceitemCreatedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceitemCreatedEvent.cs deleted file mode 100644 index cf85b3bda1..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceitemCreatedEvent.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 invoice item is created. - /// - public class PushedV1InvoiceitemCreatedEvent : 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 InvoiceItem FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceitemCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1InvoiceitemDeletedEvent.cs b/src/Stripe.net/Events/PushedV1InvoiceitemDeletedEvent.cs deleted file mode 100644 index c2afe52621..0000000000 --- a/src/Stripe.net/Events/PushedV1InvoiceitemDeletedEvent.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 invoice item is deleted. - /// - public class PushedV1InvoiceitemDeletedEvent : 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 InvoiceItem FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1InvoiceitemDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingAuthorizationCreatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingAuthorizationCreatedEvent.cs deleted file mode 100644 index 6e2989b962..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingAuthorizationCreatedEvent.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 authorization is created. - /// - public class PushedV1IssuingAuthorizationCreatedEvent : 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 Issuing.Authorization FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingAuthorizationCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingAuthorizationRequestEvent.cs b/src/Stripe.net/Events/PushedV1IssuingAuthorizationRequestEvent.cs deleted file mode 100644 index 75a7898c69..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingAuthorizationRequestEvent.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 - - /// - /// Represents a synchronous request for authorization, see Using - /// your integration to handle authorization requests. - /// - public class PushedV1IssuingAuthorizationRequestEvent : 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 Issuing.Authorization FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingAuthorizationRequestEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingAuthorizationUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingAuthorizationUpdatedEvent.cs deleted file mode 100644 index 7f7076e9e9..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingAuthorizationUpdatedEvent.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 authorization is updated. - /// - public class PushedV1IssuingAuthorizationUpdatedEvent : 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 Issuing.Authorization FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingAuthorizationUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingCardCreatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingCardCreatedEvent.cs deleted file mode 100644 index d9af1a381d..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingCardCreatedEvent.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 card is created. - /// - public class PushedV1IssuingCardCreatedEvent : 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 Issuing.Card FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingCardCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingCardUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingCardUpdatedEvent.cs deleted file mode 100644 index bbe609af15..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingCardUpdatedEvent.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 card is updated. - /// - public class PushedV1IssuingCardUpdatedEvent : 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 Issuing.Card FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingCardUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingCardholderCreatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingCardholderCreatedEvent.cs deleted file mode 100644 index 56ad792e8e..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingCardholderCreatedEvent.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 cardholder is created. - /// - public class PushedV1IssuingCardholderCreatedEvent : 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 Issuing.Cardholder FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingCardholderCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingCardholderUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingCardholderUpdatedEvent.cs deleted file mode 100644 index 92d7b3ad5f..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingCardholderUpdatedEvent.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 cardholder is updated. - /// - public class PushedV1IssuingCardholderUpdatedEvent : 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 Issuing.Cardholder FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingCardholderUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingDisputeClosedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingDisputeClosedEvent.cs deleted file mode 100644 index ddc98828b9..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingDisputeClosedEvent.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 dispute is won, lost or expired. - /// - public class PushedV1IssuingDisputeClosedEvent : 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 Issuing.Dispute FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingDisputeClosedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingDisputeCreatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingDisputeCreatedEvent.cs deleted file mode 100644 index 73b069dacf..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingDisputeCreatedEvent.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 dispute is created. - /// - public class PushedV1IssuingDisputeCreatedEvent : 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 Issuing.Dispute FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingDisputeCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingDisputeFundsReinstatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingDisputeFundsReinstatedEvent.cs deleted file mode 100644 index 737ca23f97..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingDisputeFundsReinstatedEvent.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 funds are reinstated to your account for an Issuing dispute. - /// - public class PushedV1IssuingDisputeFundsReinstatedEvent : 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 Issuing.Dispute FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingDisputeFundsReinstatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingDisputeFundsRescindedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingDisputeFundsRescindedEvent.cs deleted file mode 100644 index e3b2e3528a..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingDisputeFundsRescindedEvent.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 funds are deducted from your account for an Issuing dispute. - /// - public class PushedV1IssuingDisputeFundsRescindedEvent : 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 Issuing.Dispute FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingDisputeFundsRescindedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingDisputeSubmittedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingDisputeSubmittedEvent.cs deleted file mode 100644 index 9febc69bb8..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingDisputeSubmittedEvent.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 dispute is submitted. - /// - public class PushedV1IssuingDisputeSubmittedEvent : 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 Issuing.Dispute FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingDisputeSubmittedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingDisputeUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingDisputeUpdatedEvent.cs deleted file mode 100644 index d0739139ba..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingDisputeUpdatedEvent.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 dispute is updated. - /// - public class PushedV1IssuingDisputeUpdatedEvent : 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 Issuing.Dispute FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingDisputeUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignActivatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignActivatedEvent.cs deleted file mode 100644 index 4cfbe41312..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignActivatedEvent.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 personalization design is activated following the activation of the - /// physical bundle that belongs to it. - /// - public class PushedV1IssuingPersonalizationDesignActivatedEvent : 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 Issuing.PersonalizationDesign FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingPersonalizationDesignActivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignDeactivatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignDeactivatedEvent.cs deleted file mode 100644 index 8385f83269..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignDeactivatedEvent.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 personalization design is deactivated following the deactivation of - /// the physical bundle that belongs to it. - /// - public class PushedV1IssuingPersonalizationDesignDeactivatedEvent : 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 Issuing.PersonalizationDesign FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingPersonalizationDesignDeactivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignRejectedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignRejectedEvent.cs deleted file mode 100644 index dafe8a76cf..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignRejectedEvent.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 personalization design is rejected by design review. - /// - public class PushedV1IssuingPersonalizationDesignRejectedEvent : 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 Issuing.PersonalizationDesign FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingPersonalizationDesignRejectedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignUpdatedEvent.cs deleted file mode 100644 index bbb99db390..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingPersonalizationDesignUpdatedEvent.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 personalization design is updated. - /// - public class PushedV1IssuingPersonalizationDesignUpdatedEvent : 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 Issuing.PersonalizationDesign FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingPersonalizationDesignUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingTokenCreatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingTokenCreatedEvent.cs deleted file mode 100644 index c80cbe73ea..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingTokenCreatedEvent.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 issuing digital wallet token is created. - /// - public class PushedV1IssuingTokenCreatedEvent : 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 Issuing.Token FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingTokenCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingTokenUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingTokenUpdatedEvent.cs deleted file mode 100644 index 38cf2476d7..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingTokenUpdatedEvent.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 issuing digital wallet token is updated. - /// - public class PushedV1IssuingTokenUpdatedEvent : 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 Issuing.Token FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingTokenUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingTransactionCreatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingTransactionCreatedEvent.cs deleted file mode 100644 index 786217606c..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingTransactionCreatedEvent.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 issuing transaction is created. - /// - public class PushedV1IssuingTransactionCreatedEvent : 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 Issuing.Transaction FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingTransactionCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.cs deleted file mode 100644 index 900763d274..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.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 issuing transaction is updated with receipt data. - /// - public class PushedV1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent : 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 Issuing.Transaction FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1IssuingTransactionUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1IssuingTransactionUpdatedEvent.cs deleted file mode 100644 index de55b33cff..0000000000 --- a/src/Stripe.net/Events/PushedV1IssuingTransactionUpdatedEvent.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 issuing transaction is updated. - /// - public class PushedV1IssuingTransactionUpdatedEvent : 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 Issuing.Transaction FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1IssuingTransactionUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1MandateUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1MandateUpdatedEvent.cs deleted file mode 100644 index f174a1d654..0000000000 --- a/src/Stripe.net/Events/PushedV1MandateUpdatedEvent.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 Mandate is updated. - /// - public class PushedV1MandateUpdatedEvent : 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 Mandate FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1MandateUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentAmountCapturableUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentAmountCapturableUpdatedEvent.cs deleted file mode 100644 index 71e319d74a..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentAmountCapturableUpdatedEvent.cs +++ /dev/null @@ -1,56 +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 PaymentIntent has funds to be captured. Check the amount_capturable - /// property on the PaymentIntent to determine the amount that can be captured. You may - /// capture the PaymentIntent with an amount_to_capture value up to the specified - /// amount. Learn more about - /// capturing PaymentIntents.. - /// - public class PushedV1PaymentIntentAmountCapturableUpdatedEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentAmountCapturableUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentCanceledEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentCanceledEvent.cs deleted file mode 100644 index bc44b03f18..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentCanceledEvent.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 PaymentIntent is canceled. - /// - public class PushedV1PaymentIntentCanceledEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentCreatedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentCreatedEvent.cs deleted file mode 100644 index 1bc4d7b2fe..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentCreatedEvent.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 new PaymentIntent is created. - /// - public class PushedV1PaymentIntentCreatedEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentPartiallyFundedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentPartiallyFundedEvent.cs deleted file mode 100644 index b31539d4f3..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentPartiallyFundedEvent.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 funds are applied to a customer_balance PaymentIntent and the - /// 'amount_remaining' changes. - /// - public class PushedV1PaymentIntentPartiallyFundedEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentPartiallyFundedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentPaymentFailedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentPaymentFailedEvent.cs deleted file mode 100644 index 3e02a17ec3..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentPaymentFailedEvent.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 PaymentIntent has failed the attempt to create a payment method or a - /// payment. - /// - public class PushedV1PaymentIntentPaymentFailedEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentPaymentFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentProcessingEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentProcessingEvent.cs deleted file mode 100644 index 7dbbf1e7c0..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentProcessingEvent.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 PaymentIntent has started processing. - /// - public class PushedV1PaymentIntentProcessingEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentProcessingEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentRequiresActionEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentRequiresActionEvent.cs deleted file mode 100644 index ae9e41c1b1..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentRequiresActionEvent.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 PaymentIntent transitions to requires_action state. - /// - public class PushedV1PaymentIntentRequiresActionEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentRequiresActionEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentIntentSucceededEvent.cs b/src/Stripe.net/Events/PushedV1PaymentIntentSucceededEvent.cs deleted file mode 100644 index 6dba85caf5..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentIntentSucceededEvent.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 PaymentIntent has successfully completed payment. - /// - public class PushedV1PaymentIntentSucceededEvent : 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 PaymentIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentIntentSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentLinkCreatedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentLinkCreatedEvent.cs deleted file mode 100644 index 4d9dec828a..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentLinkCreatedEvent.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 link is created. - /// - public class PushedV1PaymentLinkCreatedEvent : 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 PaymentLink FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentLinkCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentLinkUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentLinkUpdatedEvent.cs deleted file mode 100644 index 694bd4e821..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentLinkUpdatedEvent.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 link is updated. - /// - public class PushedV1PaymentLinkUpdatedEvent : 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 PaymentLink FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentLinkUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentMethodAttachedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentMethodAttachedEvent.cs deleted file mode 100644 index 83896f6ebf..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentMethodAttachedEvent.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 payment method is attached to a customer. - /// - public class PushedV1PaymentMethodAttachedEvent : 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 PaymentMethod FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentMethodAttachedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentMethodAutomaticallyUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentMethodAutomaticallyUpdatedEvent.cs deleted file mode 100644 index 37980cfb1d..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentMethodAutomaticallyUpdatedEvent.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 payment method's details are automatically updated by the network. - /// - public class PushedV1PaymentMethodAutomaticallyUpdatedEvent : 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 PaymentMethod FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentMethodAutomaticallyUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentMethodDetachedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentMethodDetachedEvent.cs deleted file mode 100644 index 5f781443ac..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentMethodDetachedEvent.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 payment method is detached from a customer. - /// - public class PushedV1PaymentMethodDetachedEvent : 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 PaymentMethod FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentMethodDetachedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PaymentMethodUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PaymentMethodUpdatedEvent.cs deleted file mode 100644 index 498dbf386b..0000000000 --- a/src/Stripe.net/Events/PushedV1PaymentMethodUpdatedEvent.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 payment method is updated via the PaymentMethod update API. - /// - public class PushedV1PaymentMethodUpdatedEvent : 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 PaymentMethod FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PaymentMethodUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PayoutCanceledEvent.cs b/src/Stripe.net/Events/PushedV1PayoutCanceledEvent.cs deleted file mode 100644 index ad7cf54b5a..0000000000 --- a/src/Stripe.net/Events/PushedV1PayoutCanceledEvent.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 payout is canceled. - /// - public class PushedV1PayoutCanceledEvent : 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 Payout FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PayoutCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PayoutCreatedEvent.cs b/src/Stripe.net/Events/PushedV1PayoutCreatedEvent.cs deleted file mode 100644 index fd3812cb86..0000000000 --- a/src/Stripe.net/Events/PushedV1PayoutCreatedEvent.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 payout is created. - /// - public class PushedV1PayoutCreatedEvent : 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 Payout FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PayoutCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PayoutFailedEvent.cs b/src/Stripe.net/Events/PushedV1PayoutFailedEvent.cs deleted file mode 100644 index 2e37b72a21..0000000000 --- a/src/Stripe.net/Events/PushedV1PayoutFailedEvent.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 payout attempt fails. - /// - public class PushedV1PayoutFailedEvent : 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 Payout FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PayoutFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PayoutPaidEvent.cs b/src/Stripe.net/Events/PushedV1PayoutPaidEvent.cs deleted file mode 100644 index 32c3654e58..0000000000 --- a/src/Stripe.net/Events/PushedV1PayoutPaidEvent.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 a payout is expected to be available in the destination - /// account. If the payout fails, a payout.failed notification is also sent, at a - /// later time. - /// - public class PushedV1PayoutPaidEvent : 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 Payout FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PayoutPaidEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PayoutReconciliationCompletedEvent.cs b/src/Stripe.net/Events/PushedV1PayoutReconciliationCompletedEvent.cs deleted file mode 100644 index 061bcc1acb..0000000000 --- a/src/Stripe.net/Events/PushedV1PayoutReconciliationCompletedEvent.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 balance transactions paid out in an automatic payout can be queried. - /// - public class PushedV1PayoutReconciliationCompletedEvent : 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 Payout FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PayoutReconciliationCompletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PayoutUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PayoutUpdatedEvent.cs deleted file mode 100644 index 41d0fbcf47..0000000000 --- a/src/Stripe.net/Events/PushedV1PayoutUpdatedEvent.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 payout is updated. - /// - public class PushedV1PayoutUpdatedEvent : 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 Payout FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PayoutUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PersonCreatedEvent.cs b/src/Stripe.net/Events/PushedV1PersonCreatedEvent.cs deleted file mode 100644 index f051f2159b..0000000000 --- a/src/Stripe.net/Events/PushedV1PersonCreatedEvent.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 person associated with an account is created. - /// - public class PushedV1PersonCreatedEvent : 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 Person FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PersonCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PersonDeletedEvent.cs b/src/Stripe.net/Events/PushedV1PersonDeletedEvent.cs deleted file mode 100644 index 0112588d2e..0000000000 --- a/src/Stripe.net/Events/PushedV1PersonDeletedEvent.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 person associated with an account is deleted. - /// - public class PushedV1PersonDeletedEvent : 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 Person FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PersonDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PersonUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PersonUpdatedEvent.cs deleted file mode 100644 index de3e73b56a..0000000000 --- a/src/Stripe.net/Events/PushedV1PersonUpdatedEvent.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 person associated with an account is updated. - /// - public class PushedV1PersonUpdatedEvent : 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 Person FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PersonUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PlanCreatedEvent.cs b/src/Stripe.net/Events/PushedV1PlanCreatedEvent.cs deleted file mode 100644 index cdc086c4f2..0000000000 --- a/src/Stripe.net/Events/PushedV1PlanCreatedEvent.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 plan is created. - /// - public class PushedV1PlanCreatedEvent : 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 Plan FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PlanCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PlanDeletedEvent.cs b/src/Stripe.net/Events/PushedV1PlanDeletedEvent.cs deleted file mode 100644 index 4f1b75ed1b..0000000000 --- a/src/Stripe.net/Events/PushedV1PlanDeletedEvent.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 plan is deleted. - /// - public class PushedV1PlanDeletedEvent : 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 Plan FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PlanDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PlanUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PlanUpdatedEvent.cs deleted file mode 100644 index 84c13e2141..0000000000 --- a/src/Stripe.net/Events/PushedV1PlanUpdatedEvent.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 plan is updated. - /// - public class PushedV1PlanUpdatedEvent : 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 Plan FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PlanUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PriceCreatedEvent.cs b/src/Stripe.net/Events/PushedV1PriceCreatedEvent.cs deleted file mode 100644 index 69cff21d48..0000000000 --- a/src/Stripe.net/Events/PushedV1PriceCreatedEvent.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 price is created. - /// - public class PushedV1PriceCreatedEvent : 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 Price FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PriceCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PriceDeletedEvent.cs b/src/Stripe.net/Events/PushedV1PriceDeletedEvent.cs deleted file mode 100644 index 972baee538..0000000000 --- a/src/Stripe.net/Events/PushedV1PriceDeletedEvent.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 price is deleted. - /// - public class PushedV1PriceDeletedEvent : 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 Price FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PriceDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PriceUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PriceUpdatedEvent.cs deleted file mode 100644 index b44f10d3b2..0000000000 --- a/src/Stripe.net/Events/PushedV1PriceUpdatedEvent.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 price is updated. - /// - public class PushedV1PriceUpdatedEvent : 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 Price FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PriceUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1ProductCreatedEvent.cs b/src/Stripe.net/Events/PushedV1ProductCreatedEvent.cs deleted file mode 100644 index 877d89a463..0000000000 --- a/src/Stripe.net/Events/PushedV1ProductCreatedEvent.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 product is created. - /// - public class PushedV1ProductCreatedEvent : 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 Product FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1ProductCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1ProductDeletedEvent.cs b/src/Stripe.net/Events/PushedV1ProductDeletedEvent.cs deleted file mode 100644 index d973e3f447..0000000000 --- a/src/Stripe.net/Events/PushedV1ProductDeletedEvent.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 product is deleted. - /// - public class PushedV1ProductDeletedEvent : 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 Product FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1ProductDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1ProductUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1ProductUpdatedEvent.cs deleted file mode 100644 index 99652e6b06..0000000000 --- a/src/Stripe.net/Events/PushedV1ProductUpdatedEvent.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 product is updated. - /// - public class PushedV1ProductUpdatedEvent : 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 Product FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1ProductUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PromotionCodeCreatedEvent.cs b/src/Stripe.net/Events/PushedV1PromotionCodeCreatedEvent.cs deleted file mode 100644 index 02fc95e1d8..0000000000 --- a/src/Stripe.net/Events/PushedV1PromotionCodeCreatedEvent.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 promotion code is created. - /// - public class PushedV1PromotionCodeCreatedEvent : 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 PromotionCode FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PromotionCodeCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1PromotionCodeUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1PromotionCodeUpdatedEvent.cs deleted file mode 100644 index ca3db45b7d..0000000000 --- a/src/Stripe.net/Events/PushedV1PromotionCodeUpdatedEvent.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 promotion code is updated. - /// - public class PushedV1PromotionCodeUpdatedEvent : 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 PromotionCode FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1PromotionCodeUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1QuoteAcceptedEvent.cs b/src/Stripe.net/Events/PushedV1QuoteAcceptedEvent.cs deleted file mode 100644 index 5d3e6e3ab1..0000000000 --- a/src/Stripe.net/Events/PushedV1QuoteAcceptedEvent.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 quote is accepted. - /// - public class PushedV1QuoteAcceptedEvent : 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 Quote FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1QuoteAcceptedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1QuoteCanceledEvent.cs b/src/Stripe.net/Events/PushedV1QuoteCanceledEvent.cs deleted file mode 100644 index 461b5b69c4..0000000000 --- a/src/Stripe.net/Events/PushedV1QuoteCanceledEvent.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 quote is canceled. - /// - public class PushedV1QuoteCanceledEvent : 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 Quote FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1QuoteCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1QuoteCreatedEvent.cs b/src/Stripe.net/Events/PushedV1QuoteCreatedEvent.cs deleted file mode 100644 index 74b2425333..0000000000 --- a/src/Stripe.net/Events/PushedV1QuoteCreatedEvent.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 quote is created. - /// - public class PushedV1QuoteCreatedEvent : 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 Quote FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1QuoteCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1QuoteFinalizedEvent.cs b/src/Stripe.net/Events/PushedV1QuoteFinalizedEvent.cs deleted file mode 100644 index fb840e9edd..0000000000 --- a/src/Stripe.net/Events/PushedV1QuoteFinalizedEvent.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 quote is finalized. - /// - public class PushedV1QuoteFinalizedEvent : 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 Quote FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1QuoteFinalizedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1RadarEarlyFraudWarningCreatedEvent.cs b/src/Stripe.net/Events/PushedV1RadarEarlyFraudWarningCreatedEvent.cs deleted file mode 100644 index 68045fe6d3..0000000000 --- a/src/Stripe.net/Events/PushedV1RadarEarlyFraudWarningCreatedEvent.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 early fraud warning is created. - /// - public class PushedV1RadarEarlyFraudWarningCreatedEvent : 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 Radar.EarlyFraudWarning FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1RadarEarlyFraudWarningCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1RadarEarlyFraudWarningUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1RadarEarlyFraudWarningUpdatedEvent.cs deleted file mode 100644 index 02f419659e..0000000000 --- a/src/Stripe.net/Events/PushedV1RadarEarlyFraudWarningUpdatedEvent.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 early fraud warning is updated. - /// - public class PushedV1RadarEarlyFraudWarningUpdatedEvent : 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 Radar.EarlyFraudWarning FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1RadarEarlyFraudWarningUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1RefundCreatedEvent.cs b/src/Stripe.net/Events/PushedV1RefundCreatedEvent.cs deleted file mode 100644 index 290271f3fb..0000000000 --- a/src/Stripe.net/Events/PushedV1RefundCreatedEvent.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 refund is created. - /// - public class PushedV1RefundCreatedEvent : 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 V1RefundCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1RefundFailedEvent.cs b/src/Stripe.net/Events/PushedV1RefundFailedEvent.cs deleted file mode 100644 index a2d0c342c2..0000000000 --- a/src/Stripe.net/Events/PushedV1RefundFailedEvent.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 refund has failed. - /// - public class PushedV1RefundFailedEvent : 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 V1RefundFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1RefundUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1RefundUpdatedEvent.cs deleted file mode 100644 index 5dff8d421d..0000000000 --- a/src/Stripe.net/Events/PushedV1RefundUpdatedEvent.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 refund is updated. - /// - public class PushedV1RefundUpdatedEvent : 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 V1RefundUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1ReviewClosedEvent.cs b/src/Stripe.net/Events/PushedV1ReviewClosedEvent.cs deleted file mode 100644 index 5f220da0e8..0000000000 --- a/src/Stripe.net/Events/PushedV1ReviewClosedEvent.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 a review is closed. The review's reason field indicates why: - /// approved, disputed, refunded, refunded_as_fraud, or - /// canceled. - /// - public class PushedV1ReviewClosedEvent : 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 Review FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1ReviewClosedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1ReviewOpenedEvent.cs b/src/Stripe.net/Events/PushedV1ReviewOpenedEvent.cs deleted file mode 100644 index f1e1ca08f5..0000000000 --- a/src/Stripe.net/Events/PushedV1ReviewOpenedEvent.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 review is opened. - /// - public class PushedV1ReviewOpenedEvent : 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 Review FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1ReviewOpenedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SetupIntentCanceledEvent.cs b/src/Stripe.net/Events/PushedV1SetupIntentCanceledEvent.cs deleted file mode 100644 index 909c9d7784..0000000000 --- a/src/Stripe.net/Events/PushedV1SetupIntentCanceledEvent.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 SetupIntent is canceled. - /// - public class PushedV1SetupIntentCanceledEvent : 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 SetupIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SetupIntentCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SetupIntentCreatedEvent.cs b/src/Stripe.net/Events/PushedV1SetupIntentCreatedEvent.cs deleted file mode 100644 index 328ac238cf..0000000000 --- a/src/Stripe.net/Events/PushedV1SetupIntentCreatedEvent.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 new SetupIntent is created. - /// - public class PushedV1SetupIntentCreatedEvent : 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 SetupIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SetupIntentCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SetupIntentRequiresActionEvent.cs b/src/Stripe.net/Events/PushedV1SetupIntentRequiresActionEvent.cs deleted file mode 100644 index 45174e5007..0000000000 --- a/src/Stripe.net/Events/PushedV1SetupIntentRequiresActionEvent.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 SetupIntent is in requires_action state. - /// - public class PushedV1SetupIntentRequiresActionEvent : 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 SetupIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SetupIntentRequiresActionEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SetupIntentSetupFailedEvent.cs b/src/Stripe.net/Events/PushedV1SetupIntentSetupFailedEvent.cs deleted file mode 100644 index 11d1645ea8..0000000000 --- a/src/Stripe.net/Events/PushedV1SetupIntentSetupFailedEvent.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 SetupIntent has failed the attempt to setup a payment method. - /// - public class PushedV1SetupIntentSetupFailedEvent : 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 SetupIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SetupIntentSetupFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SetupIntentSucceededEvent.cs b/src/Stripe.net/Events/PushedV1SetupIntentSucceededEvent.cs deleted file mode 100644 index ca1aff4aa1..0000000000 --- a/src/Stripe.net/Events/PushedV1SetupIntentSucceededEvent.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 an SetupIntent has successfully setup a payment method. - /// - public class PushedV1SetupIntentSucceededEvent : 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 SetupIntent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SetupIntentSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SigmaScheduledQueryRunCreatedEvent.cs b/src/Stripe.net/Events/PushedV1SigmaScheduledQueryRunCreatedEvent.cs deleted file mode 100644 index 2e6afc1092..0000000000 --- a/src/Stripe.net/Events/PushedV1SigmaScheduledQueryRunCreatedEvent.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 Sigma scheduled query run finishes. - /// - public class PushedV1SigmaScheduledQueryRunCreatedEvent : 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 Sigma.ScheduledQueryRun FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SigmaScheduledQueryRunCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SourceCanceledEvent.cs b/src/Stripe.net/Events/PushedV1SourceCanceledEvent.cs deleted file mode 100644 index 34a9d08e88..0000000000 --- a/src/Stripe.net/Events/PushedV1SourceCanceledEvent.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 source is canceled. - /// - public class PushedV1SourceCanceledEvent : 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 Source FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SourceCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SourceChargeableEvent.cs b/src/Stripe.net/Events/PushedV1SourceChargeableEvent.cs deleted file mode 100644 index 7575889428..0000000000 --- a/src/Stripe.net/Events/PushedV1SourceChargeableEvent.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 source transitions to chargeable. - /// - public class PushedV1SourceChargeableEvent : 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 Source FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SourceChargeableEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SourceFailedEvent.cs b/src/Stripe.net/Events/PushedV1SourceFailedEvent.cs deleted file mode 100644 index 948defa198..0000000000 --- a/src/Stripe.net/Events/PushedV1SourceFailedEvent.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 source fails. - /// - public class PushedV1SourceFailedEvent : 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 Source FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SourceFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SourceRefundAttributesRequiredEvent.cs b/src/Stripe.net/Events/PushedV1SourceRefundAttributesRequiredEvent.cs deleted file mode 100644 index 5ffafc2e86..0000000000 --- a/src/Stripe.net/Events/PushedV1SourceRefundAttributesRequiredEvent.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 the refund attributes are required on a receiver source to process a - /// refund or a mispayment. - /// - public class PushedV1SourceRefundAttributesRequiredEvent : 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 Source FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SourceRefundAttributesRequiredEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SubscriptionScheduleAbortedEvent.cs b/src/Stripe.net/Events/PushedV1SubscriptionScheduleAbortedEvent.cs deleted file mode 100644 index e303c1be53..0000000000 --- a/src/Stripe.net/Events/PushedV1SubscriptionScheduleAbortedEvent.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 subscription schedule is canceled due to the underlying subscription - /// being canceled because of delinquency. - /// - public class PushedV1SubscriptionScheduleAbortedEvent : 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 SubscriptionSchedule FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SubscriptionScheduleAbortedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SubscriptionScheduleCanceledEvent.cs b/src/Stripe.net/Events/PushedV1SubscriptionScheduleCanceledEvent.cs deleted file mode 100644 index 3bc4b50f9e..0000000000 --- a/src/Stripe.net/Events/PushedV1SubscriptionScheduleCanceledEvent.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 subscription schedule is canceled. - /// - public class PushedV1SubscriptionScheduleCanceledEvent : 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 SubscriptionSchedule FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SubscriptionScheduleCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SubscriptionScheduleCompletedEvent.cs b/src/Stripe.net/Events/PushedV1SubscriptionScheduleCompletedEvent.cs deleted file mode 100644 index 542f5dbf14..0000000000 --- a/src/Stripe.net/Events/PushedV1SubscriptionScheduleCompletedEvent.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 subscription schedule is completed. - /// - public class PushedV1SubscriptionScheduleCompletedEvent : 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 SubscriptionSchedule FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SubscriptionScheduleCompletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SubscriptionScheduleCreatedEvent.cs b/src/Stripe.net/Events/PushedV1SubscriptionScheduleCreatedEvent.cs deleted file mode 100644 index 4bf350d8d5..0000000000 --- a/src/Stripe.net/Events/PushedV1SubscriptionScheduleCreatedEvent.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 subscription schedule is created. - /// - public class PushedV1SubscriptionScheduleCreatedEvent : 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 SubscriptionSchedule FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SubscriptionScheduleCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SubscriptionScheduleExpiringEvent.cs b/src/Stripe.net/Events/PushedV1SubscriptionScheduleExpiringEvent.cs deleted file mode 100644 index 1e334dce1f..0000000000 --- a/src/Stripe.net/Events/PushedV1SubscriptionScheduleExpiringEvent.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 7 days before a subscription schedule will expire. - /// - public class PushedV1SubscriptionScheduleExpiringEvent : 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 SubscriptionSchedule FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SubscriptionScheduleExpiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SubscriptionScheduleReleasedEvent.cs b/src/Stripe.net/Events/PushedV1SubscriptionScheduleReleasedEvent.cs deleted file mode 100644 index d87de96f8c..0000000000 --- a/src/Stripe.net/Events/PushedV1SubscriptionScheduleReleasedEvent.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 subscription schedule is released. - /// - public class PushedV1SubscriptionScheduleReleasedEvent : 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 SubscriptionSchedule FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SubscriptionScheduleReleasedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1SubscriptionScheduleUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1SubscriptionScheduleUpdatedEvent.cs deleted file mode 100644 index 99a26f65f1..0000000000 --- a/src/Stripe.net/Events/PushedV1SubscriptionScheduleUpdatedEvent.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 subscription schedule is updated. - /// - public class PushedV1SubscriptionScheduleUpdatedEvent : 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 SubscriptionSchedule FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1SubscriptionScheduleUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TaxRateCreatedEvent.cs b/src/Stripe.net/Events/PushedV1TaxRateCreatedEvent.cs deleted file mode 100644 index e973a3a2df..0000000000 --- a/src/Stripe.net/Events/PushedV1TaxRateCreatedEvent.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 tax rate is created. - /// - public class PushedV1TaxRateCreatedEvent : 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 TaxRate FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TaxRateCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TaxRateUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1TaxRateUpdatedEvent.cs deleted file mode 100644 index 7bc5c904e2..0000000000 --- a/src/Stripe.net/Events/PushedV1TaxRateUpdatedEvent.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 tax rate is updated. - /// - public class PushedV1TaxRateUpdatedEvent : 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 TaxRate FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TaxRateUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TerminalReaderActionFailedEvent.cs b/src/Stripe.net/Events/PushedV1TerminalReaderActionFailedEvent.cs deleted file mode 100644 index b1b5ef9c42..0000000000 --- a/src/Stripe.net/Events/PushedV1TerminalReaderActionFailedEvent.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 action sent to a Terminal reader failed. - /// - public class PushedV1TerminalReaderActionFailedEvent : 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 Terminal.Reader FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TerminalReaderActionFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TerminalReaderActionSucceededEvent.cs b/src/Stripe.net/Events/PushedV1TerminalReaderActionSucceededEvent.cs deleted file mode 100644 index 1cebe803bb..0000000000 --- a/src/Stripe.net/Events/PushedV1TerminalReaderActionSucceededEvent.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 action sent to a Terminal reader was successful. - /// - public class PushedV1TerminalReaderActionSucceededEvent : 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 Terminal.Reader FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TerminalReaderActionSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TerminalReaderActionUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1TerminalReaderActionUpdatedEvent.cs deleted file mode 100644 index 04f45b6dbd..0000000000 --- a/src/Stripe.net/Events/PushedV1TerminalReaderActionUpdatedEvent.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 action sent to a Terminal reader is updated. - /// - public class PushedV1TerminalReaderActionUpdatedEvent : 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 Terminal.Reader FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TerminalReaderActionUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TestHelpersTestClockAdvancingEvent.cs b/src/Stripe.net/Events/PushedV1TestHelpersTestClockAdvancingEvent.cs deleted file mode 100644 index 12ebdfa5d8..0000000000 --- a/src/Stripe.net/Events/PushedV1TestHelpersTestClockAdvancingEvent.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 test clock starts advancing. - /// - public class PushedV1TestHelpersTestClockAdvancingEvent : 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 TestHelpers.TestClock FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TestHelpersTestClockAdvancingEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TestHelpersTestClockCreatedEvent.cs b/src/Stripe.net/Events/PushedV1TestHelpersTestClockCreatedEvent.cs deleted file mode 100644 index bd01b15ea5..0000000000 --- a/src/Stripe.net/Events/PushedV1TestHelpersTestClockCreatedEvent.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 test clock is created. - /// - public class PushedV1TestHelpersTestClockCreatedEvent : 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 TestHelpers.TestClock FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TestHelpersTestClockCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TestHelpersTestClockDeletedEvent.cs b/src/Stripe.net/Events/PushedV1TestHelpersTestClockDeletedEvent.cs deleted file mode 100644 index 302106a80b..0000000000 --- a/src/Stripe.net/Events/PushedV1TestHelpersTestClockDeletedEvent.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 test clock is deleted. - /// - public class PushedV1TestHelpersTestClockDeletedEvent : 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 TestHelpers.TestClock FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TestHelpersTestClockDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TestHelpersTestClockInternalFailureEvent.cs b/src/Stripe.net/Events/PushedV1TestHelpersTestClockInternalFailureEvent.cs deleted file mode 100644 index 8773d0dacf..0000000000 --- a/src/Stripe.net/Events/PushedV1TestHelpersTestClockInternalFailureEvent.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 test clock fails to advance its frozen time. - /// - public class PushedV1TestHelpersTestClockInternalFailureEvent : 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 TestHelpers.TestClock FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TestHelpersTestClockInternalFailureEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TestHelpersTestClockReadyEvent.cs b/src/Stripe.net/Events/PushedV1TestHelpersTestClockReadyEvent.cs deleted file mode 100644 index 0ff1c17445..0000000000 --- a/src/Stripe.net/Events/PushedV1TestHelpersTestClockReadyEvent.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 test clock transitions to a ready status. - /// - public class PushedV1TestHelpersTestClockReadyEvent : 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 TestHelpers.TestClock FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TestHelpersTestClockReadyEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TopupCanceledEvent.cs b/src/Stripe.net/Events/PushedV1TopupCanceledEvent.cs deleted file mode 100644 index 965658a9a2..0000000000 --- a/src/Stripe.net/Events/PushedV1TopupCanceledEvent.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 top-up is canceled. - /// - public class PushedV1TopupCanceledEvent : 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 Topup FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TopupCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TopupCreatedEvent.cs b/src/Stripe.net/Events/PushedV1TopupCreatedEvent.cs deleted file mode 100644 index a082c56b5d..0000000000 --- a/src/Stripe.net/Events/PushedV1TopupCreatedEvent.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 top-up is created. - /// - public class PushedV1TopupCreatedEvent : 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 Topup FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TopupCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TopupFailedEvent.cs b/src/Stripe.net/Events/PushedV1TopupFailedEvent.cs deleted file mode 100644 index 075ba40296..0000000000 --- a/src/Stripe.net/Events/PushedV1TopupFailedEvent.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 top-up fails. - /// - public class PushedV1TopupFailedEvent : 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 Topup FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TopupFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TopupReversedEvent.cs b/src/Stripe.net/Events/PushedV1TopupReversedEvent.cs deleted file mode 100644 index f6bcdb9f44..0000000000 --- a/src/Stripe.net/Events/PushedV1TopupReversedEvent.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 top-up is reversed. - /// - public class PushedV1TopupReversedEvent : 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 Topup FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TopupReversedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TopupSucceededEvent.cs b/src/Stripe.net/Events/PushedV1TopupSucceededEvent.cs deleted file mode 100644 index bf976ad1e9..0000000000 --- a/src/Stripe.net/Events/PushedV1TopupSucceededEvent.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 top-up succeeds. - /// - public class PushedV1TopupSucceededEvent : 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 Topup FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TopupSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TransferCreatedEvent.cs b/src/Stripe.net/Events/PushedV1TransferCreatedEvent.cs deleted file mode 100644 index 7b621d779c..0000000000 --- a/src/Stripe.net/Events/PushedV1TransferCreatedEvent.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 transfer is created. - /// - public class PushedV1TransferCreatedEvent : 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 Transfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TransferCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TransferReversedEvent.cs b/src/Stripe.net/Events/PushedV1TransferReversedEvent.cs deleted file mode 100644 index 94f061a55f..0000000000 --- a/src/Stripe.net/Events/PushedV1TransferReversedEvent.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 transfer is reversed, including partial reversals. - /// - public class PushedV1TransferReversedEvent : 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 Transfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TransferReversedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV1TransferUpdatedEvent.cs b/src/Stripe.net/Events/PushedV1TransferUpdatedEvent.cs deleted file mode 100644 index e7626a9ee8..0000000000 --- a/src/Stripe.net/Events/PushedV1TransferUpdatedEvent.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 transfer's description or metadata is updated. - /// - public class PushedV1TransferUpdatedEvent : 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 Transfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V1TransferUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingBillSettingUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingBillSettingUpdatedEvent.cs deleted file mode 100644 index 49704b1687..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingBillSettingUpdatedEvent.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 - - /// - /// This event occurs when a bill setting is updated. - /// - public class PushedV2BillingBillSettingUpdatedEvent : 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 V2.Billing.BillSetting FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingBillSettingUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingCadenceBilledEvent.cs b/src/Stripe.net/Events/PushedV2BillingCadenceBilledEvent.cs deleted file mode 100644 index db0a62923a..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingCadenceBilledEvent.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 billing Cadence generates an invoice. - /// - public class PushedV2BillingCadenceBilledEvent : 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 V2.Billing.Cadence FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingCadenceBilledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingCadenceCanceledEvent.cs b/src/Stripe.net/Events/PushedV2BillingCadenceCanceledEvent.cs deleted file mode 100644 index e7eac8bcfb..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingCadenceCanceledEvent.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 billing Cadence is canceled. - /// - public class PushedV2BillingCadenceCanceledEvent : 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 V2.Billing.Cadence FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingCadenceCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingCadenceCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingCadenceCreatedEvent.cs deleted file mode 100644 index 550994db0c..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingCadenceCreatedEvent.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 billing Cadence is created. - /// - public class PushedV2BillingCadenceCreatedEvent : 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 V2.Billing.Cadence FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingCadenceCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingLicenseFeeCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingLicenseFeeCreatedEvent.cs deleted file mode 100644 index f734b689f9..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingLicenseFeeCreatedEvent.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 LicenseFee is created. - /// - public class PushedV2BillingLicenseFeeCreatedEvent : 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 V2.Billing.LicenseFee FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingLicenseFeeCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingLicenseFeeUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingLicenseFeeUpdatedEvent.cs deleted file mode 100644 index 14afed79b9..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingLicenseFeeUpdatedEvent.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 LicenseFee is updated. - /// - public class PushedV2BillingLicenseFeeUpdatedEvent : 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 V2.Billing.LicenseFee FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingLicenseFeeUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingLicenseFeeVersionCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingLicenseFeeVersionCreatedEvent.cs deleted file mode 100644 index 76f55b66bd..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingLicenseFeeVersionCreatedEvent.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 LicenseFeeVersion is created. - /// - public class PushedV2BillingLicenseFeeVersionCreatedEvent : 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 V2.Billing.LicenseFeeVersion FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingLicenseFeeVersionCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingLicensedItemCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingLicensedItemCreatedEvent.cs deleted file mode 100644 index f8ad9e76a4..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingLicensedItemCreatedEvent.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 LicensedItem is created. - /// - public class PushedV2BillingLicensedItemCreatedEvent : 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 V2.Billing.LicensedItem FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingLicensedItemCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingLicensedItemUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingLicensedItemUpdatedEvent.cs deleted file mode 100644 index 8a17f547cf..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingLicensedItemUpdatedEvent.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 LicensedItem is updated. - /// - public class PushedV2BillingLicensedItemUpdatedEvent : 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 V2.Billing.LicensedItem FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingLicensedItemUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingMeteredItemCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingMeteredItemCreatedEvent.cs deleted file mode 100644 index ba0519183a..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingMeteredItemCreatedEvent.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 MeteredItem is created. - /// - public class PushedV2BillingMeteredItemCreatedEvent : 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 V2.Billing.MeteredItem FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingMeteredItemCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingMeteredItemUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingMeteredItemUpdatedEvent.cs deleted file mode 100644 index 27ec4aa7e8..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingMeteredItemUpdatedEvent.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 MeteredItem is updated. - /// - public class PushedV2BillingMeteredItemUpdatedEvent : 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 V2.Billing.MeteredItem FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingMeteredItemUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanComponentCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanComponentCreatedEvent.cs deleted file mode 100644 index 0ab2f795dd..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanComponentCreatedEvent.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 PricingPlanComponent is created. - /// - public class PushedV2BillingPricingPlanComponentCreatedEvent : 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 V2.Billing.PricingPlanComponent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanComponentCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanComponentUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanComponentUpdatedEvent.cs deleted file mode 100644 index 8da3b7ebd0..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanComponentUpdatedEvent.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 PricingPlanComponent is updated. - /// - public class PushedV2BillingPricingPlanComponentUpdatedEvent : 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 V2.Billing.PricingPlanComponent FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanComponentUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanCreatedEvent.cs deleted file mode 100644 index 943cf36578..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanCreatedEvent.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 PricingPlan is created. - /// - public class PushedV2BillingPricingPlanCreatedEvent : 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 V2.Billing.PricingPlan FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent.cs deleted file mode 100644 index 6d57ace586..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent.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 PricingPlanSubscription's collection is awaiting customer action. - /// - public class PushedV2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionCurrentEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionCurrentEvent.cs deleted file mode 100644 index 4dcb16344e..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionCurrentEvent.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 PricingPlanSubscription's collection is current. - /// - public class PushedV2BillingPricingPlanSubscriptionCollectionCurrentEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionCollectionCurrentEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionPastDueEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionPastDueEvent.cs deleted file mode 100644 index f732758565..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionPastDueEvent.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 PricingPlanSubscription's collection is past due. - /// - public class PushedV2BillingPricingPlanSubscriptionCollectionPastDueEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionCollectionPastDueEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionPausedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionPausedEvent.cs deleted file mode 100644 index 4a7db22a54..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionPausedEvent.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 PricingPlanSubscription's collection is paused. - /// - public class PushedV2BillingPricingPlanSubscriptionCollectionPausedEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionCollectionPausedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionUnpaidEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionUnpaidEvent.cs deleted file mode 100644 index 651b73548c..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionCollectionUnpaidEvent.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 PricingPlanSubscription's collection is unpaid. - /// - public class PushedV2BillingPricingPlanSubscriptionCollectionUnpaidEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionCollectionUnpaidEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingActivatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingActivatedEvent.cs deleted file mode 100644 index a3a6a0f945..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingActivatedEvent.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 PricingPlanSubscription servicing is activated. - /// - public class PushedV2BillingPricingPlanSubscriptionServicingActivatedEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionServicingActivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingCanceledEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingCanceledEvent.cs deleted file mode 100644 index fd86db6f13..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingCanceledEvent.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 PricingPlanSubscription servicing is canceled. - /// - public class PushedV2BillingPricingPlanSubscriptionServicingCanceledEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionServicingCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingPausedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingPausedEvent.cs deleted file mode 100644 index 09fbd29976..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanSubscriptionServicingPausedEvent.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 PricingPlanSubscription servicing is paused. - /// - public class PushedV2BillingPricingPlanSubscriptionServicingPausedEvent : 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 V2.Billing.PricingPlanSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanSubscriptionServicingPausedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanUpdatedEvent.cs deleted file mode 100644 index c80db95c0b..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanUpdatedEvent.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 PricingPlan is updated. - /// - public class PushedV2BillingPricingPlanUpdatedEvent : 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 V2.Billing.PricingPlan FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingPricingPlanVersionCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingPricingPlanVersionCreatedEvent.cs deleted file mode 100644 index ae4ad698ce..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingPricingPlanVersionCreatedEvent.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 PricingPlanVersion is created. - /// - public class PushedV2BillingPricingPlanVersionCreatedEvent : 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 V2.Billing.PricingPlanVersion FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingPricingPlanVersionCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardCreatedEvent.cs deleted file mode 100644 index 73bb3d6dd8..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardCreatedEvent.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 RateCard is created. - /// - public class PushedV2BillingRateCardCreatedEvent : 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 V2.Billing.RateCard FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardRateCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardRateCreatedEvent.cs deleted file mode 100644 index d7621a169c..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardRateCreatedEvent.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 RateCardRate is created. - /// - public class PushedV2BillingRateCardRateCreatedEvent : 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 V2.Billing.RateCardRate FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardRateCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionActivatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionActivatedEvent.cs deleted file mode 100644 index 8045a4eaf3..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionActivatedEvent.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 RateCardSubscription is activated. - /// - public class PushedV2BillingRateCardSubscriptionActivatedEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionActivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCanceledEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCanceledEvent.cs deleted file mode 100644 index 16ea313cf1..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCanceledEvent.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 RateCardSubscription is canceled. - /// - public class PushedV2BillingRateCardSubscriptionCanceledEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent.cs deleted file mode 100644 index c54d55f5fc..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent.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 RateCardSubscription's collection is awaiting customer action. - /// - public class PushedV2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionCurrentEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionCurrentEvent.cs deleted file mode 100644 index 09b481a7f6..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionCurrentEvent.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 RateCardSubscription's collection is current. - /// - public class PushedV2BillingRateCardSubscriptionCollectionCurrentEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionCollectionCurrentEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionPastDueEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionPastDueEvent.cs deleted file mode 100644 index f296342eaf..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionPastDueEvent.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 RateCardSubscription's collection is past due. - /// - public class PushedV2BillingRateCardSubscriptionCollectionPastDueEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionCollectionPastDueEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionPausedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionPausedEvent.cs deleted file mode 100644 index 3f1f171c34..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionPausedEvent.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 RateCardSubscription's collection is paused. - /// - public class PushedV2BillingRateCardSubscriptionCollectionPausedEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionCollectionPausedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionUnpaidEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionUnpaidEvent.cs deleted file mode 100644 index 77611397b6..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionCollectionUnpaidEvent.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 RateCardSubscription's collection is unpaid. - /// - public class PushedV2BillingRateCardSubscriptionCollectionUnpaidEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionCollectionUnpaidEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingActivatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingActivatedEvent.cs deleted file mode 100644 index b92d076878..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingActivatedEvent.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 RateCardSubscription servicing is activated. - /// - public class PushedV2BillingRateCardSubscriptionServicingActivatedEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionServicingActivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingCanceledEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingCanceledEvent.cs deleted file mode 100644 index 62541ee1e6..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingCanceledEvent.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 RateCardSubscription servicing is canceled. - /// - public class PushedV2BillingRateCardSubscriptionServicingCanceledEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionServicingCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingPausedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingPausedEvent.cs deleted file mode 100644 index 9b9b92335b..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardSubscriptionServicingPausedEvent.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 RateCardSubscription servicing is paused. - /// - public class PushedV2BillingRateCardSubscriptionServicingPausedEvent : 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 V2.Billing.RateCardSubscription FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardSubscriptionServicingPausedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardUpdatedEvent.cs deleted file mode 100644 index ab9fefaa07..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardUpdatedEvent.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 RateCard is updated. - /// - public class PushedV2BillingRateCardUpdatedEvent : 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 V2.Billing.RateCard FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2BillingRateCardVersionCreatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingRateCardVersionCreatedEvent.cs deleted file mode 100644 index 01ad23f6b5..0000000000 --- a/src/Stripe.net/Events/PushedV2BillingRateCardVersionCreatedEvent.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 RateCardVersion is created. - /// - public class PushedV2BillingRateCardVersionCreatedEvent : 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 V2.Billing.RateCardVersion FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2BillingRateCardVersionCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountClosedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountClosedEvent.cs deleted file mode 100644 index face4df4a9..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountClosedEvent.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 - - /// - /// This event occurs when an account is closed. - /// - public class PushedV2CoreAccountClosedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountClosedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountCreatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountCreatedEvent.cs deleted file mode 100644 index 161000935a..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountCreatedEvent.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 an Account is created. - /// - public class PushedV2CoreAccountCreatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.cs deleted file mode 100644 index a69e4cd367..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.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 status of an Account's customer configuration capability is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationCustomerUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationCustomerUpdatedEvent.cs deleted file mode 100644 index 926472363e..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationCustomerUpdatedEvent.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 an Account's customer configuration is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationCustomerUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationCustomerUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.cs deleted file mode 100644 index 07a29372cf..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.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 status of an Account's merchant configuration capability is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationMerchantUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationMerchantUpdatedEvent.cs deleted file mode 100644 index b0ff90fbff..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationMerchantUpdatedEvent.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 an Account's merchant configuration is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationMerchantUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationMerchantUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.cs deleted file mode 100644 index 3f7cd3cb6d..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.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 status of an Account's recipient configuration capability is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationRecipientUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationRecipientUpdatedEvent.cs deleted file mode 100644 index af4086f855..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationRecipientUpdatedEvent.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 Recipient's configuration is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationRecipientUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationRecipientUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.cs deleted file mode 100644 index f029407572..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.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 status of an Account's storer configuration capability is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationStorerUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationStorerUpdatedEvent.cs deleted file mode 100644 index 62050cb716..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingConfigurationStorerUpdatedEvent.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 Storer's configuration is updated. - /// - public class PushedV2CoreAccountIncludingConfigurationStorerUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationStorerUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingDefaultsUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingDefaultsUpdatedEvent.cs deleted file mode 100644 index 434027bad8..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingDefaultsUpdatedEvent.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 - - /// - /// This event occurs when account defaults are created or updated. - /// - public class PushedV2CoreAccountIncludingDefaultsUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingDefaultsUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingIdentityUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingIdentityUpdatedEvent.cs deleted file mode 100644 index e5c7a0c8e2..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingIdentityUpdatedEvent.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 an Identity is updated. - /// - public class PushedV2CoreAccountIncludingIdentityUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingIdentityUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountIncludingRequirementsUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountIncludingRequirementsUpdatedEvent.cs deleted file mode 100644 index b2903ec635..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountIncludingRequirementsUpdatedEvent.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 an Account's requirements are updated. - /// - public class PushedV2CoreAccountIncludingRequirementsUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingRequirementsUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountLinkReturnedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountLinkReturnedEvent.cs deleted file mode 100644 index 23ce2469ba..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountLinkReturnedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when the generated AccountLink is completed. - /// - public class PushedV2CoreAccountLinkReturnedEvent : V2.PushedEvent - { - public V2CoreAccountLinkReturnedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountPersonCreatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountPersonCreatedEvent.cs deleted file mode 100644 index 1430882d62..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountPersonCreatedEvent.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 Person is created. - /// - public class PushedV2CoreAccountPersonCreatedEvent : 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 V2.Core.AccountPerson FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountPersonCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountPersonDeletedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountPersonDeletedEvent.cs deleted file mode 100644 index 83ffe5df91..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountPersonDeletedEvent.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 Person is deleted. - /// - public class PushedV2CoreAccountPersonDeletedEvent : 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 V2.Core.AccountPerson FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountPersonDeletedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountPersonUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountPersonUpdatedEvent.cs deleted file mode 100644 index 64fe964241..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountPersonUpdatedEvent.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 Person is updated. - /// - public class PushedV2CoreAccountPersonUpdatedEvent : 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 V2.Core.AccountPerson FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountPersonUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreAccountUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountUpdatedEvent.cs deleted file mode 100644 index 2cf2aa87ac..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreAccountUpdatedEvent.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 an Account is updated. - /// - public class PushedV2CoreAccountUpdatedEvent : 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 V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxClaimedEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxClaimedEvent.cs deleted file mode 100644 index 7c03fb5405..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxClaimedEvent.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 claimable sandbox is claimed. - /// - public class PushedV2CoreClaimableSandboxClaimedEvent : 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 V2.Core.ClaimableSandbox FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreClaimableSandboxClaimedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxCreatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxCreatedEvent.cs deleted file mode 100644 index 243a4c89c3..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxCreatedEvent.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 claimable sandbox is created. - /// - public class PushedV2CoreClaimableSandboxCreatedEvent : 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 V2.Core.ClaimableSandbox FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreClaimableSandboxCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiredEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiredEvent.cs deleted file mode 100644 index e282d7fc91..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiredEvent.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 claimable sandbox expires. - /// - public class PushedV2CoreClaimableSandboxExpiredEvent : 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 V2.Core.ClaimableSandbox FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreClaimableSandboxExpiredEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiringEvent.cs deleted file mode 100644 index 802b6d0d51..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiringEvent.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 claimable sandbox is expiring in 7 days. - /// - public class PushedV2CoreClaimableSandboxExpiringEvent : 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 V2.Core.ClaimableSandbox FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreClaimableSandboxExpiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs deleted file mode 100644 index 53aedd3541..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.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 claimable sandbox is activated by the user with the intention to go live - /// and your Stripe app is installed on the live account. - /// - public class PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent : 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 V2.Core.ClaimableSandbox FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreEventDestinationPingEvent.cs b/src/Stripe.net/Events/PushedV2CoreEventDestinationPingEvent.cs deleted file mode 100644 index 30329f021c..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreEventDestinationPingEvent.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 - - /// - /// A ping event used to test the connection to an EventDestination. - /// - public class PushedV2CoreEventDestinationPingEvent : 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 V2.EventDestination FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreEventDestinationPingEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthApiErrorFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthApiErrorFiringEvent.cs deleted file mode 100644 index 214a0083cd..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthApiErrorFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an API error alert is firing. - /// - public class PushedV2CoreHealthApiErrorFiringEvent : V2.PushedEvent - { - public V2CoreHealthApiErrorFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthApiErrorResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthApiErrorResolvedEvent.cs deleted file mode 100644 index 1fccf30004..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthApiErrorResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an API error alert is resolved. - /// - public class PushedV2CoreHealthApiErrorResolvedEvent : V2.PushedEvent - { - public V2CoreHealthApiErrorResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthApiLatencyFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthApiLatencyFiringEvent.cs deleted file mode 100644 index d0f7854723..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthApiLatencyFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an API latency alert is firing. - /// - public class PushedV2CoreHealthApiLatencyFiringEvent : V2.PushedEvent - { - public V2CoreHealthApiLatencyFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthApiLatencyResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthApiLatencyResolvedEvent.cs deleted file mode 100644 index ed0f25a7b4..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthApiLatencyResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an API latency alert is resolved. - /// - public class PushedV2CoreHealthApiLatencyResolvedEvent : V2.PushedEvent - { - public V2CoreHealthApiLatencyResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthAuthorizationRateDropFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthAuthorizationRateDropFiringEvent.cs deleted file mode 100644 index beae385dc7..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthAuthorizationRateDropFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an authorization rate drop alert is firing. - /// - public class PushedV2CoreHealthAuthorizationRateDropFiringEvent : V2.PushedEvent - { - public V2CoreHealthAuthorizationRateDropFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthAuthorizationRateDropResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthAuthorizationRateDropResolvedEvent.cs deleted file mode 100644 index 94a0c6a6d4..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthAuthorizationRateDropResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an authorization rate drop alert is resolved. - /// - public class PushedV2CoreHealthAuthorizationRateDropResolvedEvent : V2.PushedEvent - { - public V2CoreHealthAuthorizationRateDropResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthEventGenerationFailureResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthEventGenerationFailureResolvedEvent.cs deleted file mode 100644 index d80b92d27a..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthEventGenerationFailureResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an event generation failure alert is resolved. - /// - public class PushedV2CoreHealthEventGenerationFailureResolvedEvent : V2.PushedEvent - { - public V2CoreHealthEventGenerationFailureResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthFraudRateIncreasedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthFraudRateIncreasedEvent.cs deleted file mode 100644 index 7eaf7c2ad5..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthFraudRateIncreasedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when the fraud rate has increased. - /// - public class PushedV2CoreHealthFraudRateIncreasedEvent : V2.PushedEvent - { - public V2CoreHealthFraudRateIncreasedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.cs deleted file mode 100644 index fb9de1a364..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an issuing authorization request errors alert is firing. - /// - public class PushedV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent : V2.PushedEvent - { - public V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.cs deleted file mode 100644 index d9c3b1605d..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an issuing authorization request errors alert is resolved. - /// - public class PushedV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent : V2.PushedEvent - { - public V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.cs deleted file mode 100644 index eab7d7a392..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an issuing authorization request timeout alert is firing. - /// - public class PushedV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent : V2.PushedEvent - { - public V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.cs deleted file mode 100644 index e0692394b1..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when an issuing authorization request timeout alert is resolved. - /// - public class PushedV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent : V2.PushedEvent - { - public V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthPaymentMethodErrorFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthPaymentMethodErrorFiringEvent.cs deleted file mode 100644 index 9a0cb280eb..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthPaymentMethodErrorFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when a payment method error alert is firing. - /// - public class PushedV2CoreHealthPaymentMethodErrorFiringEvent : V2.PushedEvent - { - public V2CoreHealthPaymentMethodErrorFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthPaymentMethodErrorResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthPaymentMethodErrorResolvedEvent.cs deleted file mode 100644 index 2df35a4bf3..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthPaymentMethodErrorResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when a payment method error alert is resolved. - /// - public class PushedV2CoreHealthPaymentMethodErrorResolvedEvent : V2.PushedEvent - { - public V2CoreHealthPaymentMethodErrorResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthTrafficVolumeDropFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthTrafficVolumeDropFiringEvent.cs deleted file mode 100644 index 92bf917554..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthTrafficVolumeDropFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when a traffic volume drop alert is firing. - /// - public class PushedV2CoreHealthTrafficVolumeDropFiringEvent : V2.PushedEvent - { - public V2CoreHealthTrafficVolumeDropFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthTrafficVolumeDropResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthTrafficVolumeDropResolvedEvent.cs deleted file mode 100644 index e774b35b1f..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthTrafficVolumeDropResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when a traffic volume drop alert is resolved. - /// - public class PushedV2CoreHealthTrafficVolumeDropResolvedEvent : V2.PushedEvent - { - public V2CoreHealthTrafficVolumeDropResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthWebhookLatencyFiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthWebhookLatencyFiringEvent.cs deleted file mode 100644 index 930a8feacc..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthWebhookLatencyFiringEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when a webhook latency alert is firing. - /// - public class PushedV2CoreHealthWebhookLatencyFiringEvent : V2.PushedEvent - { - public V2CoreHealthWebhookLatencyFiringEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2CoreHealthWebhookLatencyResolvedEvent.cs b/src/Stripe.net/Events/PushedV2CoreHealthWebhookLatencyResolvedEvent.cs deleted file mode 100644 index c5355b4a34..0000000000 --- a/src/Stripe.net/Events/PushedV2CoreHealthWebhookLatencyResolvedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - - /// - /// Occurs when a webhook latency alert is resolved. - /// - public class PushedV2CoreHealthWebhookLatencyResolvedEvent : V2.PushedEvent - { - public V2CoreHealthWebhookLatencyResolvedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementAdjustmentCreatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementAdjustmentCreatedEvent.cs deleted file mode 100644 index d92c67b411..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementAdjustmentCreatedEvent.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 an Adjustment is created. - /// - public class PushedV2MoneyManagementAdjustmentCreatedEvent : 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 V2.MoneyManagement.Adjustment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementAdjustmentCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAccountCreatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAccountCreatedEvent.cs deleted file mode 100644 index ba26291088..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAccountCreatedEvent.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 FinancialAccount is created. - /// - public class PushedV2MoneyManagementFinancialAccountCreatedEvent : 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 V2.MoneyManagement.FinancialAccount FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementFinancialAccountCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAccountUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAccountUpdatedEvent.cs deleted file mode 100644 index 1103fb108e..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAccountUpdatedEvent.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 FinancialAccount is updated. - /// - public class PushedV2MoneyManagementFinancialAccountUpdatedEvent : 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 V2.MoneyManagement.FinancialAccount FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementFinancialAccountUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAddressActivatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAddressActivatedEvent.cs deleted file mode 100644 index 129ca14bdb..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAddressActivatedEvent.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 FinancialAddress is activated and is ready to receive funds. - /// - public class PushedV2MoneyManagementFinancialAddressActivatedEvent : 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 V2.MoneyManagement.FinancialAddress FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementFinancialAddressActivatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAddressFailedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAddressFailedEvent.cs deleted file mode 100644 index 94dc185690..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementFinancialAddressFailedEvent.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 FinancialAddress fails to activate and can not receive funds. - /// - public class PushedV2MoneyManagementFinancialAddressFailedEvent : 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 V2.MoneyManagement.FinancialAddress FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementFinancialAddressFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferAvailableEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferAvailableEvent.cs deleted file mode 100644 index a8b90c36d5..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferAvailableEvent.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 an InboundTransfer's funds are made available. - /// - public class PushedV2MoneyManagementInboundTransferAvailableEvent : 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 V2.MoneyManagement.InboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementInboundTransferAvailableEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitFailedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitFailedEvent.cs deleted file mode 100644 index 903131020f..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitFailedEvent.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 an InboundTransfer fails. - /// - public class PushedV2MoneyManagementInboundTransferBankDebitFailedEvent : 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 V2.MoneyManagement.InboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementInboundTransferBankDebitFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitProcessingEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitProcessingEvent.cs deleted file mode 100644 index 3756126876..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitProcessingEvent.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 an InboundTransfer starts processing. - /// - public class PushedV2MoneyManagementInboundTransferBankDebitProcessingEvent : 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 V2.MoneyManagement.InboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementInboundTransferBankDebitProcessingEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitQueuedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitQueuedEvent.cs deleted file mode 100644 index 8a5011c229..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitQueuedEvent.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 an InboundTransfer is queued. - /// - public class PushedV2MoneyManagementInboundTransferBankDebitQueuedEvent : 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 V2.MoneyManagement.InboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementInboundTransferBankDebitQueuedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitReturnedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitReturnedEvent.cs deleted file mode 100644 index c8eac4d3ed..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitReturnedEvent.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 an InboundTransfer is returned. - /// - public class PushedV2MoneyManagementInboundTransferBankDebitReturnedEvent : 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 V2.MoneyManagement.InboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementInboundTransferBankDebitReturnedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitSucceededEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitSucceededEvent.cs deleted file mode 100644 index bec65f6823..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementInboundTransferBankDebitSucceededEvent.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 an InboundTransfer succeeds. - /// - public class PushedV2MoneyManagementInboundTransferBankDebitSucceededEvent : 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 V2.MoneyManagement.InboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementInboundTransferBankDebitSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentCanceledEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentCanceledEvent.cs deleted file mode 100644 index 6ae7b064e0..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentCanceledEvent.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 an OutboundPayment transitions into the canceled state. - /// - public class PushedV2MoneyManagementOutboundPaymentCanceledEvent : 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 V2.MoneyManagement.OutboundPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundPaymentCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentCreatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentCreatedEvent.cs deleted file mode 100644 index 1787416bc4..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentCreatedEvent.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 an OutboundPayment is created. - /// - public class PushedV2MoneyManagementOutboundPaymentCreatedEvent : 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 V2.MoneyManagement.OutboundPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundPaymentCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentFailedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentFailedEvent.cs deleted file mode 100644 index 7ec2c602d9..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentFailedEvent.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 an OutboundPayment transitions into the failed state. - /// - public class PushedV2MoneyManagementOutboundPaymentFailedEvent : 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 V2.MoneyManagement.OutboundPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundPaymentFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentPostedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentPostedEvent.cs deleted file mode 100644 index 7b10cbdb67..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentPostedEvent.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 an OutboundPayment transitions into the posted state. - /// - public class PushedV2MoneyManagementOutboundPaymentPostedEvent : 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 V2.MoneyManagement.OutboundPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundPaymentPostedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentReturnedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentReturnedEvent.cs deleted file mode 100644 index 53fbbace8d..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentReturnedEvent.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 an OutboundPayment transitions into the returned state. - /// - public class PushedV2MoneyManagementOutboundPaymentReturnedEvent : 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 V2.MoneyManagement.OutboundPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundPaymentReturnedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentUpdatedEvent.cs deleted file mode 100644 index d64358aa66..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundPaymentUpdatedEvent.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 an OutboundPayment is updated. - /// - public class PushedV2MoneyManagementOutboundPaymentUpdatedEvent : 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 V2.MoneyManagement.OutboundPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundPaymentUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferCanceledEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferCanceledEvent.cs deleted file mode 100644 index 3ee11282be..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferCanceledEvent.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 an OutboundTransfer transitions into the canceled state. - /// - public class PushedV2MoneyManagementOutboundTransferCanceledEvent : 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 V2.MoneyManagement.OutboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundTransferCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferCreatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferCreatedEvent.cs deleted file mode 100644 index 9e75852943..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferCreatedEvent.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 an OutboundTransfer is created. - /// - public class PushedV2MoneyManagementOutboundTransferCreatedEvent : 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 V2.MoneyManagement.OutboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundTransferCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferFailedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferFailedEvent.cs deleted file mode 100644 index f22f03798d..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferFailedEvent.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 an OutboundTransfer transitions into the failed state. - /// - public class PushedV2MoneyManagementOutboundTransferFailedEvent : 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 V2.MoneyManagement.OutboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundTransferFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferPostedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferPostedEvent.cs deleted file mode 100644 index 53a61bbdda..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferPostedEvent.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 an OutboundTransfer transitions into the posted state. - /// - public class PushedV2MoneyManagementOutboundTransferPostedEvent : 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 V2.MoneyManagement.OutboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundTransferPostedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferReturnedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferReturnedEvent.cs deleted file mode 100644 index 0b4405fec2..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferReturnedEvent.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 an OutboundTransfer transitions into the returned state. - /// - public class PushedV2MoneyManagementOutboundTransferReturnedEvent : 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 V2.MoneyManagement.OutboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundTransferReturnedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferUpdatedEvent.cs deleted file mode 100644 index 0faface1ed..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementOutboundTransferUpdatedEvent.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 - - /// - /// Event that is emitted every time an Outbound Transfer is updated. - /// - public class PushedV2MoneyManagementOutboundTransferUpdatedEvent : 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 V2.MoneyManagement.OutboundTransfer FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementOutboundTransferUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementPayoutMethodUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementPayoutMethodUpdatedEvent.cs deleted file mode 100644 index 40ddc3a472..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementPayoutMethodUpdatedEvent.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 PayoutMethod is updated. - /// - public class PushedV2MoneyManagementPayoutMethodUpdatedEvent : 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 V2.MoneyManagement.PayoutMethod FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementPayoutMethodUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditAvailableEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditAvailableEvent.cs deleted file mode 100644 index 1a78b4c7a4..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditAvailableEvent.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 ReceivedCredit's funds are received and are available in your balance. - /// - public class PushedV2MoneyManagementReceivedCreditAvailableEvent : 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 V2.MoneyManagement.ReceivedCredit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedCreditAvailableEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditFailedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditFailedEvent.cs deleted file mode 100644 index cd834d9a45..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditFailedEvent.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 ReceivedCredit is attempted to your balance and fails. See the - /// status_details for more information. - /// - public class PushedV2MoneyManagementReceivedCreditFailedEvent : 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 V2.MoneyManagement.ReceivedCredit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedCreditFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditReturnedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditReturnedEvent.cs deleted file mode 100644 index 0fef2a7289..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditReturnedEvent.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 ReceivedCredit is reversed, returned to the originator, and deducted from - /// your balance. - /// - public class PushedV2MoneyManagementReceivedCreditReturnedEvent : 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 V2.MoneyManagement.ReceivedCredit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedCreditReturnedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditSucceededEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditSucceededEvent.cs deleted file mode 100644 index 63366609a7..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedCreditSucceededEvent.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 ReceivedCredit succeeds. - /// - public class PushedV2MoneyManagementReceivedCreditSucceededEvent : 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 V2.MoneyManagement.ReceivedCredit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedCreditSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitCanceledEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitCanceledEvent.cs deleted file mode 100644 index 19a9de4375..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitCanceledEvent.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 ReceivedDebit is canceled. - /// - public class PushedV2MoneyManagementReceivedDebitCanceledEvent : 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 V2.MoneyManagement.ReceivedDebit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedDebitCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitFailedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitFailedEvent.cs deleted file mode 100644 index 1b2094bf7c..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitFailedEvent.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 ReceivedDebit fails. - /// - public class PushedV2MoneyManagementReceivedDebitFailedEvent : 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 V2.MoneyManagement.ReceivedDebit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedDebitFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitPendingEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitPendingEvent.cs deleted file mode 100644 index 23992967e6..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitPendingEvent.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 ReceivedDebit is set to pending. - /// - public class PushedV2MoneyManagementReceivedDebitPendingEvent : 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 V2.MoneyManagement.ReceivedDebit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedDebitPendingEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitSucceededEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitSucceededEvent.cs deleted file mode 100644 index 5f2ce0eac9..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitSucceededEvent.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 ReceivedDebit succeeds. - /// - public class PushedV2MoneyManagementReceivedDebitSucceededEvent : 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 V2.MoneyManagement.ReceivedDebit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedDebitSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitUpdatedEvent.cs deleted file mode 100644 index 041d11b9ac..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementReceivedDebitUpdatedEvent.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 ReceivedDebit is updated. - /// - public class PushedV2MoneyManagementReceivedDebitUpdatedEvent : 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 V2.MoneyManagement.ReceivedDebit FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementReceivedDebitUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementRecipientVerificationCreatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementRecipientVerificationCreatedEvent.cs deleted file mode 100644 index f3f8e21400..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementRecipientVerificationCreatedEvent.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 RecipientVerification is created. - /// - public class PushedV2MoneyManagementRecipientVerificationCreatedEvent : 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 V2.MoneyManagement.RecipientVerification FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementRecipientVerificationCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementRecipientVerificationUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementRecipientVerificationUpdatedEvent.cs deleted file mode 100644 index ac6b254df7..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementRecipientVerificationUpdatedEvent.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 RecipientVerification is updated. - /// - public class PushedV2MoneyManagementRecipientVerificationUpdatedEvent : 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 V2.MoneyManagement.RecipientVerification FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementRecipientVerificationUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementTransactionCreatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementTransactionCreatedEvent.cs deleted file mode 100644 index d8527f1fb0..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementTransactionCreatedEvent.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 Transaction is created. - /// - public class PushedV2MoneyManagementTransactionCreatedEvent : 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 V2.MoneyManagement.Transaction FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementTransactionCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2MoneyManagementTransactionUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2MoneyManagementTransactionUpdatedEvent.cs deleted file mode 100644 index f54225e832..0000000000 --- a/src/Stripe.net/Events/PushedV2MoneyManagementTransactionUpdatedEvent.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 Transaction is updated. - /// - public class PushedV2MoneyManagementTransactionUpdatedEvent : 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 V2.MoneyManagement.Transaction FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2MoneyManagementTransactionUpdatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.cs b/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.cs deleted file mode 100644 index 097ab13169..0000000000 --- a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.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 - - /// - /// Sent after a failed authorization if there are still retries available on the - /// OffSessionPayment. - /// - public class PushedV2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent : 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 V2.Payments.OffSessionPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.cs b/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.cs deleted file mode 100644 index f0e5fc8653..0000000000 --- a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.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 - - /// - /// Sent when our internal scheduling system kicks off an attempt at authorization, whether - /// it's a retry or an initial authorization. - /// - public class PushedV2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent : 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 V2.Payments.OffSessionPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentCanceledEvent.cs b/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentCanceledEvent.cs deleted file mode 100644 index 8c35753709..0000000000 --- a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentCanceledEvent.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 - - /// - /// Sent immediately following a user's call to the Off-Session Payments cancel endpoint. - /// - public class PushedV2PaymentsOffSessionPaymentCanceledEvent : 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 V2.Payments.OffSessionPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2PaymentsOffSessionPaymentCanceledEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentCreatedEvent.cs b/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentCreatedEvent.cs deleted file mode 100644 index 2dee553816..0000000000 --- a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentCreatedEvent.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 - - /// - /// Sent immediately following a user's call to the Off-Session Payments create endpoint. - /// - public class PushedV2PaymentsOffSessionPaymentCreatedEvent : 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 V2.Payments.OffSessionPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2PaymentsOffSessionPaymentCreatedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentFailedEvent.cs b/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentFailedEvent.cs deleted file mode 100644 index 6d2b9552fe..0000000000 --- a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentFailedEvent.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 - - /// - /// Sent after a failed authorization if there are no retries remaining, or if the failure - /// is unretryable. - /// - public class PushedV2PaymentsOffSessionPaymentFailedEvent : 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 V2.Payments.OffSessionPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2PaymentsOffSessionPaymentFailedEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentSucceededEvent.cs b/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentSucceededEvent.cs deleted file mode 100644 index d4c4067d14..0000000000 --- a/src/Stripe.net/Events/PushedV2PaymentsOffSessionPaymentSucceededEvent.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 - - /// - /// Sent immediately after a successful authorization. - /// - public class PushedV2PaymentsOffSessionPaymentSucceededEvent : 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 V2.Payments.OffSessionPayment FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2PaymentsOffSessionPaymentSucceededEvent Pull() - { - return this.PullEvent(); - } - - public Task PullAsync() - { - return this.PullEventAsync(); - } - } -} diff --git a/src/Stripe.net/Infrastructure/JsonConverters/V2EventConverter.cs b/src/Stripe.net/Infrastructure/JsonConverters/V2EventConverter.cs index 194e58a28a..44ef81aa67 100644 --- a/src/Stripe.net/Infrastructure/JsonConverters/V2EventConverter.cs +++ b/src/Stripe.net/Infrastructure/JsonConverters/V2EventConverter.cs @@ -31,9 +31,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist // class to deserialize into. var typeValue = (string)jsonObject["type"]; - Type concreteType = typeof(V2.PushedEvent).IsAssignableFrom(objectType) ? - StripeTypeRegistry.GetThinEventPushedEventType(typeValue) : - StripeTypeRegistry.GetConcreteThinEventType(typeValue); + Type concreteType = StripeTypeRegistry.GetConcreteThinEventType(typeValue); if (concreteType == null) { // If "type" is unknown by this SDK, default to the generic ThinEvent type. diff --git a/src/Stripe.net/Infrastructure/Public/StripeClient.cs b/src/Stripe.net/Infrastructure/Public/StripeClient.cs index be6ff0960f..9919800c8f 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeClient.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeClient.cs @@ -230,31 +230,5 @@ public ThinEvent ParseThinEvent( return thinEvent; } - - /// - /// Parses a JSON string from a Stripe webhook into a subclass, - /// while verifying the webhook's - /// signature. - /// - /// The JSON string to parse. - /// - /// The value of the Stripe-Signature header from the webhook request. - /// - /// The webhook endpoint's signing secret. - /// The time tolerance, in seconds (default 300). - /// The deserialized . - /// - /// Thrown if the signature verification fails for any reason, of if the API version of the - /// event doesn't match Stripe.net's default API version. - /// - public V2.PushedEvent ParseThinEvent__Experimental( - string json, - string stripeSignatureHeader, - string secret, - long tolerance = EventUtility.DefaultTimeTolerance) - { - EventUtility.ValidateSignature(json, stripeSignatureHeader, secret, tolerance, DateTimeOffset.UtcNow.ToUnixTimeSeconds()); - return JsonUtils.DeserializeObject(json, this.jsonSerializerSettings); - } } } diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index e7d4dfa5aa..8c0c5dfad4 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -1241,1006 +1241,6 @@ public static class StripeTypeRegistry // ThinTypesToEventTypes: The end of the section generated from our OpenAPI spec }); - internal static readonly IReadOnlyDictionary V2PushedTypesToEventTypes = new ReadOnlyDictionary( - new Dictionary - { - // PushedTypesToEventTypes: The beginning of the section generated from our OpenAPI spec - { "v1.account.updated", typeof(Events.PushedV1AccountUpdatedEvent) }, - { - "v1.application_fee.created", typeof( - Events.PushedV1ApplicationFeeCreatedEvent) - }, - { - "v1.application_fee.refunded", typeof( - Events.PushedV1ApplicationFeeRefundedEvent) - }, - { - "v1.billing.meter.error_report_triggered", typeof( - Events.PushedV1BillingMeterErrorReportTriggeredEvent) - }, - { - "v1.billing.meter.no_meter_found", typeof( - Events.PushedV1BillingMeterNoMeterFoundEvent) - }, - { - "v1.billing_portal.configuration.created", typeof( - Events.PushedV1BillingPortalConfigurationCreatedEvent) - }, - { - "v1.billing_portal.configuration.updated", typeof( - Events.PushedV1BillingPortalConfigurationUpdatedEvent) - }, - { "v1.capability.updated", typeof(Events.PushedV1CapabilityUpdatedEvent) }, - { "v1.charge.captured", typeof(Events.PushedV1ChargeCapturedEvent) }, - { "v1.charge.dispute.closed", typeof(Events.PushedV1ChargeDisputeClosedEvent) }, - { - "v1.charge.dispute.created", typeof( - Events.PushedV1ChargeDisputeCreatedEvent) - }, - { - "v1.charge.dispute.funds_reinstated", typeof( - Events.PushedV1ChargeDisputeFundsReinstatedEvent) - }, - { - "v1.charge.dispute.funds_withdrawn", typeof( - Events.PushedV1ChargeDisputeFundsWithdrawnEvent) - }, - { - "v1.charge.dispute.updated", typeof( - Events.PushedV1ChargeDisputeUpdatedEvent) - }, - { "v1.charge.expired", typeof(Events.PushedV1ChargeExpiredEvent) }, - { "v1.charge.failed", typeof(Events.PushedV1ChargeFailedEvent) }, - { "v1.charge.pending", typeof(Events.PushedV1ChargePendingEvent) }, - { "v1.charge.refund.updated", typeof(Events.PushedV1ChargeRefundUpdatedEvent) }, - { "v1.charge.refunded", typeof(Events.PushedV1ChargeRefundedEvent) }, - { "v1.charge.succeeded", typeof(Events.PushedV1ChargeSucceededEvent) }, - { "v1.charge.updated", typeof(Events.PushedV1ChargeUpdatedEvent) }, - { - "v1.checkout.session.async_payment_failed", typeof( - Events.PushedV1CheckoutSessionAsyncPaymentFailedEvent) - }, - { - "v1.checkout.session.async_payment_succeeded", typeof( - Events.PushedV1CheckoutSessionAsyncPaymentSucceededEvent) - }, - { - "v1.checkout.session.completed", typeof( - Events.PushedV1CheckoutSessionCompletedEvent) - }, - { - "v1.checkout.session.expired", typeof( - Events.PushedV1CheckoutSessionExpiredEvent) - }, - { - "v1.climate.order.canceled", typeof( - Events.PushedV1ClimateOrderCanceledEvent) - }, - { "v1.climate.order.created", typeof(Events.PushedV1ClimateOrderCreatedEvent) }, - { "v1.climate.order.delayed", typeof(Events.PushedV1ClimateOrderDelayedEvent) }, - { - "v1.climate.order.delivered", typeof( - Events.PushedV1ClimateOrderDeliveredEvent) - }, - { - "v1.climate.order.product_substituted", typeof( - Events.PushedV1ClimateOrderProductSubstitutedEvent) - }, - { - "v1.climate.product.created", typeof( - Events.PushedV1ClimateProductCreatedEvent) - }, - { - "v1.climate.product.pricing_updated", typeof( - Events.PushedV1ClimateProductPricingUpdatedEvent) - }, - { "v1.coupon.created", typeof(Events.PushedV1CouponCreatedEvent) }, - { "v1.coupon.deleted", typeof(Events.PushedV1CouponDeletedEvent) }, - { "v1.coupon.updated", typeof(Events.PushedV1CouponUpdatedEvent) }, - { "v1.credit_note.created", typeof(Events.PushedV1CreditNoteCreatedEvent) }, - { "v1.credit_note.updated", typeof(Events.PushedV1CreditNoteUpdatedEvent) }, - { "v1.credit_note.voided", typeof(Events.PushedV1CreditNoteVoidedEvent) }, - { "v1.customer.created", typeof(Events.PushedV1CustomerCreatedEvent) }, - { "v1.customer.deleted", typeof(Events.PushedV1CustomerDeletedEvent) }, - { - "v1.customer.discount.created", typeof( - Events.PushedV1CustomerDiscountCreatedEvent) - }, - { - "v1.customer.discount.deleted", typeof( - Events.PushedV1CustomerDiscountDeletedEvent) - }, - { - "v1.customer.discount.updated", typeof( - Events.PushedV1CustomerDiscountUpdatedEvent) - }, - { - "v1.customer.subscription.created", typeof( - Events.PushedV1CustomerSubscriptionCreatedEvent) - }, - { - "v1.customer.subscription.deleted", typeof( - Events.PushedV1CustomerSubscriptionDeletedEvent) - }, - { - "v1.customer.subscription.paused", typeof( - Events.PushedV1CustomerSubscriptionPausedEvent) - }, - { - "v1.customer.subscription.pending_update_applied", typeof( - Events.PushedV1CustomerSubscriptionPendingUpdateAppliedEvent) - }, - { - "v1.customer.subscription.pending_update_expired", typeof( - Events.PushedV1CustomerSubscriptionPendingUpdateExpiredEvent) - }, - { - "v1.customer.subscription.resumed", typeof( - Events.PushedV1CustomerSubscriptionResumedEvent) - }, - { - "v1.customer.subscription.trial_will_end", typeof( - Events.PushedV1CustomerSubscriptionTrialWillEndEvent) - }, - { - "v1.customer.subscription.updated", typeof( - Events.PushedV1CustomerSubscriptionUpdatedEvent) - }, - { - "v1.customer.tax_id.created", typeof( - Events.PushedV1CustomerTaxIdCreatedEvent) - }, - { - "v1.customer.tax_id.deleted", typeof( - Events.PushedV1CustomerTaxIdDeletedEvent) - }, - { - "v1.customer.tax_id.updated", typeof( - Events.PushedV1CustomerTaxIdUpdatedEvent) - }, - { "v1.customer.updated", typeof(Events.PushedV1CustomerUpdatedEvent) }, - { "v1.file.created", typeof(Events.PushedV1FileCreatedEvent) }, - { - "v1.financial_connections.account.created", typeof( - Events.PushedV1FinancialConnectionsAccountCreatedEvent) - }, - { - "v1.financial_connections.account.deactivated", typeof( - Events.PushedV1FinancialConnectionsAccountDeactivatedEvent) - }, - { - "v1.financial_connections.account.disconnected", typeof( - Events.PushedV1FinancialConnectionsAccountDisconnectedEvent) - }, - { - "v1.financial_connections.account.reactivated", typeof( - Events.PushedV1FinancialConnectionsAccountReactivatedEvent) - }, - { - "v1.financial_connections.account.refreshed_balance", typeof( - Events.PushedV1FinancialConnectionsAccountRefreshedBalanceEvent) - }, - { - "v1.financial_connections.account.refreshed_ownership", typeof( - Events.PushedV1FinancialConnectionsAccountRefreshedOwnershipEvent) - }, - { - "v1.financial_connections.account.refreshed_transactions", typeof( - Events.PushedV1FinancialConnectionsAccountRefreshedTransactionsEvent) - }, - { - "v1.identity.verification_session.canceled", typeof( - Events.PushedV1IdentityVerificationSessionCanceledEvent) - }, - { - "v1.identity.verification_session.created", typeof( - Events.PushedV1IdentityVerificationSessionCreatedEvent) - }, - { - "v1.identity.verification_session.processing", typeof( - Events.PushedV1IdentityVerificationSessionProcessingEvent) - }, - { - "v1.identity.verification_session.redacted", typeof( - Events.PushedV1IdentityVerificationSessionRedactedEvent) - }, - { - "v1.identity.verification_session.requires_input", typeof( - Events.PushedV1IdentityVerificationSessionRequiresInputEvent) - }, - { - "v1.identity.verification_session.verified", typeof( - Events.PushedV1IdentityVerificationSessionVerifiedEvent) - }, - { "v1.invoice.created", typeof(Events.PushedV1InvoiceCreatedEvent) }, - { "v1.invoice.deleted", typeof(Events.PushedV1InvoiceDeletedEvent) }, - { - "v1.invoice.finalization_failed", typeof( - Events.PushedV1InvoiceFinalizationFailedEvent) - }, - { "v1.invoice.finalized", typeof(Events.PushedV1InvoiceFinalizedEvent) }, - { - "v1.invoice.marked_uncollectible", typeof( - Events.PushedV1InvoiceMarkedUncollectibleEvent) - }, - { "v1.invoice.overdue", typeof(Events.PushedV1InvoiceOverdueEvent) }, - { "v1.invoice.overpaid", typeof(Events.PushedV1InvoiceOverpaidEvent) }, - { "v1.invoice.paid", typeof(Events.PushedV1InvoicePaidEvent) }, - { - "v1.invoice.payment_action_required", typeof( - Events.PushedV1InvoicePaymentActionRequiredEvent) - }, - { - "v1.invoice.payment_failed", typeof( - Events.PushedV1InvoicePaymentFailedEvent) - }, - { - "v1.invoice.payment_succeeded", typeof( - Events.PushedV1InvoicePaymentSucceededEvent) - }, - { "v1.invoice.sent", typeof(Events.PushedV1InvoiceSentEvent) }, - { "v1.invoice.upcoming", typeof(Events.PushedV1InvoiceUpcomingEvent) }, - { "v1.invoice.updated", typeof(Events.PushedV1InvoiceUpdatedEvent) }, - { "v1.invoice.voided", typeof(Events.PushedV1InvoiceVoidedEvent) }, - { "v1.invoice.will_be_due", typeof(Events.PushedV1InvoiceWillBeDueEvent) }, - { "v1.invoice_payment.paid", typeof(Events.PushedV1InvoicePaymentPaidEvent) }, - { "v1.invoiceitem.created", typeof(Events.PushedV1InvoiceitemCreatedEvent) }, - { "v1.invoiceitem.deleted", typeof(Events.PushedV1InvoiceitemDeletedEvent) }, - { - "v1.issuing_authorization.created", typeof( - Events.PushedV1IssuingAuthorizationCreatedEvent) - }, - { - "v1.issuing_authorization.request", typeof( - Events.PushedV1IssuingAuthorizationRequestEvent) - }, - { - "v1.issuing_authorization.updated", typeof( - Events.PushedV1IssuingAuthorizationUpdatedEvent) - }, - { "v1.issuing_card.created", typeof(Events.PushedV1IssuingCardCreatedEvent) }, - { "v1.issuing_card.updated", typeof(Events.PushedV1IssuingCardUpdatedEvent) }, - { - "v1.issuing_cardholder.created", typeof( - Events.PushedV1IssuingCardholderCreatedEvent) - }, - { - "v1.issuing_cardholder.updated", typeof( - Events.PushedV1IssuingCardholderUpdatedEvent) - }, - { - "v1.issuing_dispute.closed", typeof( - Events.PushedV1IssuingDisputeClosedEvent) - }, - { - "v1.issuing_dispute.created", typeof( - Events.PushedV1IssuingDisputeCreatedEvent) - }, - { - "v1.issuing_dispute.funds_reinstated", typeof( - Events.PushedV1IssuingDisputeFundsReinstatedEvent) - }, - { - "v1.issuing_dispute.funds_rescinded", typeof( - Events.PushedV1IssuingDisputeFundsRescindedEvent) - }, - { - "v1.issuing_dispute.submitted", typeof( - Events.PushedV1IssuingDisputeSubmittedEvent) - }, - { - "v1.issuing_dispute.updated", typeof( - Events.PushedV1IssuingDisputeUpdatedEvent) - }, - { - "v1.issuing_personalization_design.activated", typeof( - Events.PushedV1IssuingPersonalizationDesignActivatedEvent) - }, - { - "v1.issuing_personalization_design.deactivated", typeof( - Events.PushedV1IssuingPersonalizationDesignDeactivatedEvent) - }, - { - "v1.issuing_personalization_design.rejected", typeof( - Events.PushedV1IssuingPersonalizationDesignRejectedEvent) - }, - { - "v1.issuing_personalization_design.updated", typeof( - Events.PushedV1IssuingPersonalizationDesignUpdatedEvent) - }, - { "v1.issuing_token.created", typeof(Events.PushedV1IssuingTokenCreatedEvent) }, - { "v1.issuing_token.updated", typeof(Events.PushedV1IssuingTokenUpdatedEvent) }, - { - "v1.issuing_transaction.created", typeof( - Events.PushedV1IssuingTransactionCreatedEvent) - }, - { - "v1.issuing_transaction.purchase_details_receipt_updated", typeof( - Events.PushedV1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent) - }, - { - "v1.issuing_transaction.updated", typeof( - Events.PushedV1IssuingTransactionUpdatedEvent) - }, - { "v1.mandate.updated", typeof(Events.PushedV1MandateUpdatedEvent) }, - { - "v1.payment_intent.amount_capturable_updated", typeof( - Events.PushedV1PaymentIntentAmountCapturableUpdatedEvent) - }, - { - "v1.payment_intent.canceled", typeof( - Events.PushedV1PaymentIntentCanceledEvent) - }, - { - "v1.payment_intent.created", typeof( - Events.PushedV1PaymentIntentCreatedEvent) - }, - { - "v1.payment_intent.partially_funded", typeof( - Events.PushedV1PaymentIntentPartiallyFundedEvent) - }, - { - "v1.payment_intent.payment_failed", typeof( - Events.PushedV1PaymentIntentPaymentFailedEvent) - }, - { - "v1.payment_intent.processing", typeof( - Events.PushedV1PaymentIntentProcessingEvent) - }, - { - "v1.payment_intent.requires_action", typeof( - Events.PushedV1PaymentIntentRequiresActionEvent) - }, - { - "v1.payment_intent.succeeded", typeof( - Events.PushedV1PaymentIntentSucceededEvent) - }, - { "v1.payment_link.created", typeof(Events.PushedV1PaymentLinkCreatedEvent) }, - { "v1.payment_link.updated", typeof(Events.PushedV1PaymentLinkUpdatedEvent) }, - { - "v1.payment_method.attached", typeof( - Events.PushedV1PaymentMethodAttachedEvent) - }, - { - "v1.payment_method.automatically_updated", typeof( - Events.PushedV1PaymentMethodAutomaticallyUpdatedEvent) - }, - { - "v1.payment_method.detached", typeof( - Events.PushedV1PaymentMethodDetachedEvent) - }, - { - "v1.payment_method.updated", typeof( - Events.PushedV1PaymentMethodUpdatedEvent) - }, - { "v1.payout.canceled", typeof(Events.PushedV1PayoutCanceledEvent) }, - { "v1.payout.created", typeof(Events.PushedV1PayoutCreatedEvent) }, - { "v1.payout.failed", typeof(Events.PushedV1PayoutFailedEvent) }, - { "v1.payout.paid", typeof(Events.PushedV1PayoutPaidEvent) }, - { - "v1.payout.reconciliation_completed", typeof( - Events.PushedV1PayoutReconciliationCompletedEvent) - }, - { "v1.payout.updated", typeof(Events.PushedV1PayoutUpdatedEvent) }, - { "v1.person.created", typeof(Events.PushedV1PersonCreatedEvent) }, - { "v1.person.deleted", typeof(Events.PushedV1PersonDeletedEvent) }, - { "v1.person.updated", typeof(Events.PushedV1PersonUpdatedEvent) }, - { "v1.plan.created", typeof(Events.PushedV1PlanCreatedEvent) }, - { "v1.plan.deleted", typeof(Events.PushedV1PlanDeletedEvent) }, - { "v1.plan.updated", typeof(Events.PushedV1PlanUpdatedEvent) }, - { "v1.price.created", typeof(Events.PushedV1PriceCreatedEvent) }, - { "v1.price.deleted", typeof(Events.PushedV1PriceDeletedEvent) }, - { "v1.price.updated", typeof(Events.PushedV1PriceUpdatedEvent) }, - { "v1.product.created", typeof(Events.PushedV1ProductCreatedEvent) }, - { "v1.product.deleted", typeof(Events.PushedV1ProductDeletedEvent) }, - { "v1.product.updated", typeof(Events.PushedV1ProductUpdatedEvent) }, - { - "v1.promotion_code.created", typeof( - Events.PushedV1PromotionCodeCreatedEvent) - }, - { - "v1.promotion_code.updated", typeof( - Events.PushedV1PromotionCodeUpdatedEvent) - }, - { "v1.quote.accepted", typeof(Events.PushedV1QuoteAcceptedEvent) }, - { "v1.quote.canceled", typeof(Events.PushedV1QuoteCanceledEvent) }, - { "v1.quote.created", typeof(Events.PushedV1QuoteCreatedEvent) }, - { "v1.quote.finalized", typeof(Events.PushedV1QuoteFinalizedEvent) }, - { - "v1.radar.early_fraud_warning.created", typeof( - Events.PushedV1RadarEarlyFraudWarningCreatedEvent) - }, - { - "v1.radar.early_fraud_warning.updated", typeof( - Events.PushedV1RadarEarlyFraudWarningUpdatedEvent) - }, - { "v1.refund.created", typeof(Events.PushedV1RefundCreatedEvent) }, - { "v1.refund.failed", typeof(Events.PushedV1RefundFailedEvent) }, - { "v1.refund.updated", typeof(Events.PushedV1RefundUpdatedEvent) }, - { "v1.review.closed", typeof(Events.PushedV1ReviewClosedEvent) }, - { "v1.review.opened", typeof(Events.PushedV1ReviewOpenedEvent) }, - { "v1.setup_intent.canceled", typeof(Events.PushedV1SetupIntentCanceledEvent) }, - { "v1.setup_intent.created", typeof(Events.PushedV1SetupIntentCreatedEvent) }, - { - "v1.setup_intent.requires_action", typeof( - Events.PushedV1SetupIntentRequiresActionEvent) - }, - { - "v1.setup_intent.setup_failed", typeof( - Events.PushedV1SetupIntentSetupFailedEvent) - }, - { - "v1.setup_intent.succeeded", typeof( - Events.PushedV1SetupIntentSucceededEvent) - }, - { - "v1.sigma.scheduled_query_run.created", typeof( - Events.PushedV1SigmaScheduledQueryRunCreatedEvent) - }, - { "v1.source.canceled", typeof(Events.PushedV1SourceCanceledEvent) }, - { "v1.source.chargeable", typeof(Events.PushedV1SourceChargeableEvent) }, - { "v1.source.failed", typeof(Events.PushedV1SourceFailedEvent) }, - { - "v1.source.refund_attributes_required", typeof( - Events.PushedV1SourceRefundAttributesRequiredEvent) - }, - { - "v1.subscription_schedule.aborted", typeof( - Events.PushedV1SubscriptionScheduleAbortedEvent) - }, - { - "v1.subscription_schedule.canceled", typeof( - Events.PushedV1SubscriptionScheduleCanceledEvent) - }, - { - "v1.subscription_schedule.completed", typeof( - Events.PushedV1SubscriptionScheduleCompletedEvent) - }, - { - "v1.subscription_schedule.created", typeof( - Events.PushedV1SubscriptionScheduleCreatedEvent) - }, - { - "v1.subscription_schedule.expiring", typeof( - Events.PushedV1SubscriptionScheduleExpiringEvent) - }, - { - "v1.subscription_schedule.released", typeof( - Events.PushedV1SubscriptionScheduleReleasedEvent) - }, - { - "v1.subscription_schedule.updated", typeof( - Events.PushedV1SubscriptionScheduleUpdatedEvent) - }, - { "v1.tax_rate.created", typeof(Events.PushedV1TaxRateCreatedEvent) }, - { "v1.tax_rate.updated", typeof(Events.PushedV1TaxRateUpdatedEvent) }, - { - "v1.terminal.reader.action_failed", typeof( - Events.PushedV1TerminalReaderActionFailedEvent) - }, - { - "v1.terminal.reader.action_succeeded", typeof( - Events.PushedV1TerminalReaderActionSucceededEvent) - }, - { - "v1.terminal.reader.action_updated", typeof( - Events.PushedV1TerminalReaderActionUpdatedEvent) - }, - { - "v1.test_helpers.test_clock.advancing", typeof( - Events.PushedV1TestHelpersTestClockAdvancingEvent) - }, - { - "v1.test_helpers.test_clock.created", typeof( - Events.PushedV1TestHelpersTestClockCreatedEvent) - }, - { - "v1.test_helpers.test_clock.deleted", typeof( - Events.PushedV1TestHelpersTestClockDeletedEvent) - }, - { - "v1.test_helpers.test_clock.internal_failure", typeof( - Events.PushedV1TestHelpersTestClockInternalFailureEvent) - }, - { - "v1.test_helpers.test_clock.ready", typeof( - Events.PushedV1TestHelpersTestClockReadyEvent) - }, - { "v1.topup.canceled", typeof(Events.PushedV1TopupCanceledEvent) }, - { "v1.topup.created", typeof(Events.PushedV1TopupCreatedEvent) }, - { "v1.topup.failed", typeof(Events.PushedV1TopupFailedEvent) }, - { "v1.topup.reversed", typeof(Events.PushedV1TopupReversedEvent) }, - { "v1.topup.succeeded", typeof(Events.PushedV1TopupSucceededEvent) }, - { "v1.transfer.created", typeof(Events.PushedV1TransferCreatedEvent) }, - { "v1.transfer.reversed", typeof(Events.PushedV1TransferReversedEvent) }, - { "v1.transfer.updated", typeof(Events.PushedV1TransferUpdatedEvent) }, - { - "v2.billing.bill_setting.updated", typeof( - Events.PushedV2BillingBillSettingUpdatedEvent) - }, - { - "v2.billing.cadence.billed", typeof( - Events.PushedV2BillingCadenceBilledEvent) - }, - { - "v2.billing.cadence.canceled", typeof( - Events.PushedV2BillingCadenceCanceledEvent) - }, - { - "v2.billing.cadence.created", typeof( - Events.PushedV2BillingCadenceCreatedEvent) - }, - { - "v2.billing.license_fee.created", typeof( - Events.PushedV2BillingLicenseFeeCreatedEvent) - }, - { - "v2.billing.license_fee.updated", typeof( - Events.PushedV2BillingLicenseFeeUpdatedEvent) - }, - { - "v2.billing.license_fee_version.created", typeof( - Events.PushedV2BillingLicenseFeeVersionCreatedEvent) - }, - { - "v2.billing.licensed_item.created", typeof( - Events.PushedV2BillingLicensedItemCreatedEvent) - }, - { - "v2.billing.licensed_item.updated", typeof( - Events.PushedV2BillingLicensedItemUpdatedEvent) - }, - { - "v2.billing.metered_item.created", typeof( - Events.PushedV2BillingMeteredItemCreatedEvent) - }, - { - "v2.billing.metered_item.updated", typeof( - Events.PushedV2BillingMeteredItemUpdatedEvent) - }, - { - "v2.billing.pricing_plan.created", typeof( - Events.PushedV2BillingPricingPlanCreatedEvent) - }, - { - "v2.billing.pricing_plan.updated", typeof( - Events.PushedV2BillingPricingPlanUpdatedEvent) - }, - { - "v2.billing.pricing_plan_component.created", typeof( - Events.PushedV2BillingPricingPlanComponentCreatedEvent) - }, - { - "v2.billing.pricing_plan_component.updated", typeof( - Events.PushedV2BillingPricingPlanComponentUpdatedEvent) - }, - { - "v2.billing.pricing_plan_subscription.collection_awaiting_customer_action", typeof( - Events.PushedV2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent) - }, - { - "v2.billing.pricing_plan_subscription.collection_current", typeof( - Events.PushedV2BillingPricingPlanSubscriptionCollectionCurrentEvent) - }, - { - "v2.billing.pricing_plan_subscription.collection_past_due", typeof( - Events.PushedV2BillingPricingPlanSubscriptionCollectionPastDueEvent) - }, - { - "v2.billing.pricing_plan_subscription.collection_paused", typeof( - Events.PushedV2BillingPricingPlanSubscriptionCollectionPausedEvent) - }, - { - "v2.billing.pricing_plan_subscription.collection_unpaid", typeof( - Events.PushedV2BillingPricingPlanSubscriptionCollectionUnpaidEvent) - }, - { - "v2.billing.pricing_plan_subscription.servicing_activated", typeof( - Events.PushedV2BillingPricingPlanSubscriptionServicingActivatedEvent) - }, - { - "v2.billing.pricing_plan_subscription.servicing_canceled", typeof( - Events.PushedV2BillingPricingPlanSubscriptionServicingCanceledEvent) - }, - { - "v2.billing.pricing_plan_subscription.servicing_paused", typeof( - Events.PushedV2BillingPricingPlanSubscriptionServicingPausedEvent) - }, - { - "v2.billing.pricing_plan_version.created", typeof( - Events.PushedV2BillingPricingPlanVersionCreatedEvent) - }, - { - "v2.billing.rate_card.created", typeof( - Events.PushedV2BillingRateCardCreatedEvent) - }, - { - "v2.billing.rate_card.updated", typeof( - Events.PushedV2BillingRateCardUpdatedEvent) - }, - { - "v2.billing.rate_card_rate.created", typeof( - Events.PushedV2BillingRateCardRateCreatedEvent) - }, - { - "v2.billing.rate_card_subscription.activated", typeof( - Events.PushedV2BillingRateCardSubscriptionActivatedEvent) - }, - { - "v2.billing.rate_card_subscription.canceled", typeof( - Events.PushedV2BillingRateCardSubscriptionCanceledEvent) - }, - { - "v2.billing.rate_card_subscription.collection_awaiting_customer_action", typeof( - Events.PushedV2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent) - }, - { - "v2.billing.rate_card_subscription.collection_current", typeof( - Events.PushedV2BillingRateCardSubscriptionCollectionCurrentEvent) - }, - { - "v2.billing.rate_card_subscription.collection_past_due", typeof( - Events.PushedV2BillingRateCardSubscriptionCollectionPastDueEvent) - }, - { - "v2.billing.rate_card_subscription.collection_paused", typeof( - Events.PushedV2BillingRateCardSubscriptionCollectionPausedEvent) - }, - { - "v2.billing.rate_card_subscription.collection_unpaid", typeof( - Events.PushedV2BillingRateCardSubscriptionCollectionUnpaidEvent) - }, - { - "v2.billing.rate_card_subscription.servicing_activated", typeof( - Events.PushedV2BillingRateCardSubscriptionServicingActivatedEvent) - }, - { - "v2.billing.rate_card_subscription.servicing_canceled", typeof( - Events.PushedV2BillingRateCardSubscriptionServicingCanceledEvent) - }, - { - "v2.billing.rate_card_subscription.servicing_paused", typeof( - Events.PushedV2BillingRateCardSubscriptionServicingPausedEvent) - }, - { - "v2.billing.rate_card_version.created", typeof( - Events.PushedV2BillingRateCardVersionCreatedEvent) - }, - { "v2.core.account.closed", typeof(Events.PushedV2CoreAccountClosedEvent) }, - { "v2.core.account.created", typeof(Events.PushedV2CoreAccountCreatedEvent) }, - { "v2.core.account.updated", typeof(Events.PushedV2CoreAccountUpdatedEvent) }, - { - "v2.core.account[configuration.customer].capability_status_updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent) - }, - { - "v2.core.account[configuration.customer].updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationCustomerUpdatedEvent) - }, - { - "v2.core.account[configuration.merchant].capability_status_updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent) - }, - { - "v2.core.account[configuration.merchant].updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationMerchantUpdatedEvent) - }, - { - "v2.core.account[configuration.recipient].capability_status_updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent) - }, - { - "v2.core.account[configuration.recipient].updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationRecipientUpdatedEvent) - }, - { - "v2.core.account[configuration.storer].capability_status_updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent) - }, - { - "v2.core.account[configuration.storer].updated", typeof( - Events.PushedV2CoreAccountIncludingConfigurationStorerUpdatedEvent) - }, - { - "v2.core.account[defaults].updated", typeof( - Events.PushedV2CoreAccountIncludingDefaultsUpdatedEvent) - }, - { - "v2.core.account[identity].updated", typeof( - Events.PushedV2CoreAccountIncludingIdentityUpdatedEvent) - }, - { - "v2.core.account[requirements].updated", typeof( - Events.PushedV2CoreAccountIncludingRequirementsUpdatedEvent) - }, - { - "v2.core.account_link.returned", typeof( - Events.PushedV2CoreAccountLinkReturnedEvent) - }, - { - "v2.core.account_person.created", typeof( - Events.PushedV2CoreAccountPersonCreatedEvent) - }, - { - "v2.core.account_person.deleted", typeof( - Events.PushedV2CoreAccountPersonDeletedEvent) - }, - { - "v2.core.account_person.updated", typeof( - Events.PushedV2CoreAccountPersonUpdatedEvent) - }, - { - "v2.core.claimable_sandbox.claimed", typeof( - Events.PushedV2CoreClaimableSandboxClaimedEvent) - }, - { - "v2.core.claimable_sandbox.created", typeof( - Events.PushedV2CoreClaimableSandboxCreatedEvent) - }, - { - "v2.core.claimable_sandbox.expired", typeof( - Events.PushedV2CoreClaimableSandboxExpiredEvent) - }, - { - "v2.core.claimable_sandbox.expiring", typeof( - Events.PushedV2CoreClaimableSandboxExpiringEvent) - }, - { - "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", typeof( - Events.PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent) - }, - { - "v2.core.event_destination.ping", typeof( - Events.PushedV2CoreEventDestinationPingEvent) - }, - { - "v2.core.health.api_error.firing", typeof( - Events.PushedV2CoreHealthApiErrorFiringEvent) - }, - { - "v2.core.health.api_error.resolved", typeof( - Events.PushedV2CoreHealthApiErrorResolvedEvent) - }, - { - "v2.core.health.api_latency.firing", typeof( - Events.PushedV2CoreHealthApiLatencyFiringEvent) - }, - { - "v2.core.health.api_latency.resolved", typeof( - Events.PushedV2CoreHealthApiLatencyResolvedEvent) - }, - { - "v2.core.health.authorization_rate_drop.firing", typeof( - Events.PushedV2CoreHealthAuthorizationRateDropFiringEvent) - }, - { - "v2.core.health.authorization_rate_drop.resolved", typeof( - Events.PushedV2CoreHealthAuthorizationRateDropResolvedEvent) - }, - { - "v2.core.health.event_generation_failure.resolved", typeof( - Events.PushedV2CoreHealthEventGenerationFailureResolvedEvent) - }, - { - "v2.core.health.fraud_rate.increased", typeof( - Events.PushedV2CoreHealthFraudRateIncreasedEvent) - }, - { - "v2.core.health.issuing_authorization_request_errors.firing", typeof( - Events.PushedV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent) - }, - { - "v2.core.health.issuing_authorization_request_errors.resolved", typeof( - Events.PushedV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent) - }, - { - "v2.core.health.issuing_authorization_request_timeout.firing", typeof( - Events.PushedV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent) - }, - { - "v2.core.health.issuing_authorization_request_timeout.resolved", typeof( - Events.PushedV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent) - }, - { - "v2.core.health.payment_method_error.firing", typeof( - Events.PushedV2CoreHealthPaymentMethodErrorFiringEvent) - }, - { - "v2.core.health.payment_method_error.resolved", typeof( - Events.PushedV2CoreHealthPaymentMethodErrorResolvedEvent) - }, - { - "v2.core.health.traffic_volume_drop.firing", typeof( - Events.PushedV2CoreHealthTrafficVolumeDropFiringEvent) - }, - { - "v2.core.health.traffic_volume_drop.resolved", typeof( - Events.PushedV2CoreHealthTrafficVolumeDropResolvedEvent) - }, - { - "v2.core.health.webhook_latency.firing", typeof( - Events.PushedV2CoreHealthWebhookLatencyFiringEvent) - }, - { - "v2.core.health.webhook_latency.resolved", typeof( - Events.PushedV2CoreHealthWebhookLatencyResolvedEvent) - }, - { - "v2.money_management.adjustment.created", typeof( - Events.PushedV2MoneyManagementAdjustmentCreatedEvent) - }, - { - "v2.money_management.financial_account.created", typeof( - Events.PushedV2MoneyManagementFinancialAccountCreatedEvent) - }, - { - "v2.money_management.financial_account.updated", typeof( - Events.PushedV2MoneyManagementFinancialAccountUpdatedEvent) - }, - { - "v2.money_management.financial_address.activated", typeof( - Events.PushedV2MoneyManagementFinancialAddressActivatedEvent) - }, - { - "v2.money_management.financial_address.failed", typeof( - Events.PushedV2MoneyManagementFinancialAddressFailedEvent) - }, - { - "v2.money_management.inbound_transfer.available", typeof( - Events.PushedV2MoneyManagementInboundTransferAvailableEvent) - }, - { - "v2.money_management.inbound_transfer.bank_debit_failed", typeof( - Events.PushedV2MoneyManagementInboundTransferBankDebitFailedEvent) - }, - { - "v2.money_management.inbound_transfer.bank_debit_processing", typeof( - Events.PushedV2MoneyManagementInboundTransferBankDebitProcessingEvent) - }, - { - "v2.money_management.inbound_transfer.bank_debit_queued", typeof( - Events.PushedV2MoneyManagementInboundTransferBankDebitQueuedEvent) - }, - { - "v2.money_management.inbound_transfer.bank_debit_returned", typeof( - Events.PushedV2MoneyManagementInboundTransferBankDebitReturnedEvent) - }, - { - "v2.money_management.inbound_transfer.bank_debit_succeeded", typeof( - Events.PushedV2MoneyManagementInboundTransferBankDebitSucceededEvent) - }, - { - "v2.money_management.outbound_payment.canceled", typeof( - Events.PushedV2MoneyManagementOutboundPaymentCanceledEvent) - }, - { - "v2.money_management.outbound_payment.created", typeof( - Events.PushedV2MoneyManagementOutboundPaymentCreatedEvent) - }, - { - "v2.money_management.outbound_payment.failed", typeof( - Events.PushedV2MoneyManagementOutboundPaymentFailedEvent) - }, - { - "v2.money_management.outbound_payment.posted", typeof( - Events.PushedV2MoneyManagementOutboundPaymentPostedEvent) - }, - { - "v2.money_management.outbound_payment.returned", typeof( - Events.PushedV2MoneyManagementOutboundPaymentReturnedEvent) - }, - { - "v2.money_management.outbound_payment.updated", typeof( - Events.PushedV2MoneyManagementOutboundPaymentUpdatedEvent) - }, - { - "v2.money_management.outbound_transfer.canceled", typeof( - Events.PushedV2MoneyManagementOutboundTransferCanceledEvent) - }, - { - "v2.money_management.outbound_transfer.created", typeof( - Events.PushedV2MoneyManagementOutboundTransferCreatedEvent) - }, - { - "v2.money_management.outbound_transfer.failed", typeof( - Events.PushedV2MoneyManagementOutboundTransferFailedEvent) - }, - { - "v2.money_management.outbound_transfer.posted", typeof( - Events.PushedV2MoneyManagementOutboundTransferPostedEvent) - }, - { - "v2.money_management.outbound_transfer.returned", typeof( - Events.PushedV2MoneyManagementOutboundTransferReturnedEvent) - }, - { - "v2.money_management.outbound_transfer.updated", typeof( - Events.PushedV2MoneyManagementOutboundTransferUpdatedEvent) - }, - { - "v2.money_management.payout_method.updated", typeof( - Events.PushedV2MoneyManagementPayoutMethodUpdatedEvent) - }, - { - "v2.money_management.received_credit.available", typeof( - Events.PushedV2MoneyManagementReceivedCreditAvailableEvent) - }, - { - "v2.money_management.received_credit.failed", typeof( - Events.PushedV2MoneyManagementReceivedCreditFailedEvent) - }, - { - "v2.money_management.received_credit.returned", typeof( - Events.PushedV2MoneyManagementReceivedCreditReturnedEvent) - }, - { - "v2.money_management.received_credit.succeeded", typeof( - Events.PushedV2MoneyManagementReceivedCreditSucceededEvent) - }, - { - "v2.money_management.received_debit.canceled", typeof( - Events.PushedV2MoneyManagementReceivedDebitCanceledEvent) - }, - { - "v2.money_management.received_debit.failed", typeof( - Events.PushedV2MoneyManagementReceivedDebitFailedEvent) - }, - { - "v2.money_management.received_debit.pending", typeof( - Events.PushedV2MoneyManagementReceivedDebitPendingEvent) - }, - { - "v2.money_management.received_debit.succeeded", typeof( - Events.PushedV2MoneyManagementReceivedDebitSucceededEvent) - }, - { - "v2.money_management.received_debit.updated", typeof( - Events.PushedV2MoneyManagementReceivedDebitUpdatedEvent) - }, - { - "v2.money_management.recipient_verification.created", typeof( - Events.PushedV2MoneyManagementRecipientVerificationCreatedEvent) - }, - { - "v2.money_management.recipient_verification.updated", typeof( - Events.PushedV2MoneyManagementRecipientVerificationUpdatedEvent) - }, - { - "v2.money_management.transaction.created", typeof( - Events.PushedV2MoneyManagementTransactionCreatedEvent) - }, - { - "v2.money_management.transaction.updated", typeof( - Events.PushedV2MoneyManagementTransactionUpdatedEvent) - }, - { - "v2.payments.off_session_payment.authorization_attempt_failed", typeof( - Events.PushedV2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent) - }, - { - "v2.payments.off_session_payment.authorization_attempt_started", typeof( - Events.PushedV2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent) - }, - { - "v2.payments.off_session_payment.canceled", typeof( - Events.PushedV2PaymentsOffSessionPaymentCanceledEvent) - }, - { - "v2.payments.off_session_payment.created", typeof( - Events.PushedV2PaymentsOffSessionPaymentCreatedEvent) - }, - { - "v2.payments.off_session_payment.failed", typeof( - Events.PushedV2PaymentsOffSessionPaymentFailedEvent) - }, - { - "v2.payments.off_session_payment.succeeded", typeof( - Events.PushedV2PaymentsOffSessionPaymentSucceededEvent) - }, - - // PushedTypesToEventTypes: The end of the section generated from our OpenAPI spec - }); - /// /// Returns the concrete type to use, given a potential type and the value of the `object` /// key in a JSON payload. @@ -2282,16 +1282,5 @@ public static Type GetConcreteThinEventType(string typeValue) return concreteType; } - - public static Type GetThinEventPushedEventType(string typeValue) - { - Type concreteType = null; - if (!string.IsNullOrEmpty(typeValue)) - { - V2PushedTypesToEventTypes.TryGetValue(typeValue, out concreteType); - } - - return concreteType; - } } } diff --git a/src/StripeTests/Events/V2/EventTest.cs b/src/StripeTests/Events/V2/EventTest.cs index 61cd7ea3e4..126f0ee0ba 100644 --- a/src/StripeTests/Events/V2/EventTest.cs +++ b/src/StripeTests/Events/V2/EventTest.cs @@ -387,113 +387,5 @@ public async void RequestorIsPropagated() var v2Event = await v2EventService.GetAsync("evt_234"); Assert.Equal(this.stripeClient.Requestor, v2Event.Requestor); } - - [Fact] - public void ParseThinEvent__Experimental_ReturnsTypedEvent() - { - var pushedEvent = this.stripeClient.ParseThinEvent__Experimental(v2KnownEventPayload, GenerateSigHeader(v2KnownEventPayload), WebhookSecret); - Assert.True(pushedEvent is Stripe.Events.PushedV1BillingMeterErrorReportTriggeredEvent); - } - - [Fact] - public void ParseThinEvent__Experimental_PullReturnsEvent() - { - var payload = v2KnownEventPayload; - this.MockHttpClientFixture.MockHandler.Protected() - .Setup>( - "SendAsync", - ItExpr.IsAny(), - ItExpr.IsAny()) - .ReturnsAsync(new HttpResponseMessage - { - Content = new StringContent(payload), - }); - - var pushedEvent = this.stripeClient.ParseThinEvent__Experimental(payload, GenerateSigHeader(payload), WebhookSecret); - var pushedV1BillingEvent = pushedEvent as Stripe.Events.PushedV1BillingMeterErrorReportTriggeredEvent; - Assert.NotNull(pushedV1BillingEvent); - var pulledEvent = pushedV1BillingEvent.Pull(); - Assert.NotNull(pulledEvent); - Assert.True(pulledEvent is Stripe.Events.V1BillingMeterErrorReportTriggeredEvent); - } - - [Fact] - public async void ParseThinEvent__Experimental_PullAsyncReturnsEvent() - { - var payload = v2KnownEventPayload; - this.MockHttpClientFixture.MockHandler.Protected() - .Setup>( - "SendAsync", - ItExpr.IsAny(), - ItExpr.IsAny()) - .ReturnsAsync(new HttpResponseMessage - { - Content = new StringContent(payload), - }); - - var pushedEvent = this.stripeClient.ParseThinEvent__Experimental(payload, GenerateSigHeader(payload), WebhookSecret); - var pushedV1BillingEvent = pushedEvent as Stripe.Events.PushedV1BillingMeterErrorReportTriggeredEvent; - Assert.NotNull(pushedV1BillingEvent); - var pulledEvent = await pushedV1BillingEvent.PullAsync(); - Assert.NotNull(pulledEvent); - Assert.True(pulledEvent is Stripe.Events.V1BillingMeterErrorReportTriggeredEvent); - Assert.True(pushedEvent is Stripe.Events.PushedV1BillingMeterErrorReportTriggeredEvent); - } - - [Fact] - public void ParseThinEvent__Experimental_FetchRelatedObjectReturnsResource() - { - var payload = v2KnownEventPayload; - var relatedObjectPayload = @" - { - ""id"": ""mtr_test_123"", - ""object"": ""billing_meter"" - }"; - this.MockHttpClientFixture.MockHandler.Protected() - .Setup>( - "SendAsync", - ItExpr.IsAny(), - ItExpr.IsAny()) - .ReturnsAsync(new HttpResponseMessage - { - Content = new StringContent(relatedObjectPayload), - }); - - var pushedEvent = this.stripeClient.ParseThinEvent__Experimental(payload, GenerateSigHeader(payload), WebhookSecret); - var pushedV1BillingEvent = pushedEvent as Stripe.Events.PushedV1BillingMeterErrorReportTriggeredEvent; - Assert.NotNull(pushedV1BillingEvent); - - var relatedObject = pushedV1BillingEvent.FetchRelatedObject(); - Assert.Equal("mtr_test_123", relatedObject.Id); - Assert.Equal("billing_meter", relatedObject.Object); - } - - [Fact] - public async void ParseThinEvent__Experimental_FetchRelatedObjectAsyncReturnsResource() - { - var payload = v2KnownEventPayload; - var relatedObjectPayload = @" - { - ""id"": ""mtr_test_123"", - ""object"": ""billing_meter"" - }"; - this.MockHttpClientFixture.MockHandler.Protected() - .Setup>( - "SendAsync", - ItExpr.IsAny(), - ItExpr.IsAny()) - .ReturnsAsync(new HttpResponseMessage - { - Content = new StringContent(relatedObjectPayload), - }); - - var pushedEvent = this.stripeClient.ParseThinEvent__Experimental(payload, GenerateSigHeader(payload), WebhookSecret); - var pushedV1BillingEvent = pushedEvent as Stripe.Events.PushedV1BillingMeterErrorReportTriggeredEvent; - Assert.NotNull(pushedV1BillingEvent); - - var relatedObject = await pushedV1BillingEvent.FetchRelatedObjectAsync(); - Assert.Equal("mtr_test_123", relatedObject.Id); - Assert.Equal("billing_meter", relatedObject.Object); - } } } diff --git a/src/StripeTests/Wholesome/DontForgetEntityType.cs b/src/StripeTests/Wholesome/DontForgetEntityType.cs index 8f5805c1e3..d31af4c717 100644 --- a/src/StripeTests/Wholesome/DontForgetEntityType.cs +++ b/src/StripeTests/Wholesome/DontForgetEntityType.cs @@ -35,7 +35,7 @@ public void Check() continue; } - if (baseType == typeof(Stripe.V2.Event) || baseType == typeof(Stripe.V2.PushedEvent)) + if (baseType == typeof(Stripe.V2.Event)) { continue; }