Skip to content

Commit

Permalink
Remove support for old request attribute on event objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Oct 4, 2018
1 parent 3762630 commit 317bb20
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/Stripe.net/Entities/Events/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<EventRequest>.Map(value, s => this.RequestId = s, o => this.Request = o);
}
}
#endregion
public EventRequest Request { get; set; }

[JsonProperty("type")]
public string Type { get; set; }
Expand Down

0 comments on commit 317bb20

Please sign in to comment.