From 317bb201f98df1e413f27b90bd2934886618953f Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Thu, 4 Oct 2018 17:05:22 +0200 Subject: [PATCH] Remove support for old `request` attribute on event objects --- src/Stripe.net/Entities/Events/Event.cs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index 8b45992e98..b48b0cfcaa 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -30,27 +30,8 @@ public class Event : StripeEntity, IHasId, IHasObject [JsonProperty("pending_webhooks")] public int PendingWebhooks { get; set; } - #region Request - - /* - * This works like expandable properties. it's used for the event having just a string for the request id or - * the Request object for requests after the 2017-05-25 api release - */ - - public string RequestId { get; set; } - - [JsonIgnore] - public EventRequest Request { get; set; } - [JsonProperty("request")] - internal object InternalRequest - { - set - { - StringOrObject.Map(value, s => this.RequestId = s, o => this.Request = o); - } - } - #endregion + public EventRequest Request { get; set; } [JsonProperty("type")] public string Type { get; set; }