Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f587035a62fe3323ed42077a0526158e57a8260b
e62524b587909bee231a15ce0dc618f1d04f69a4
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2121
v2124
10 changes: 0 additions & 10 deletions src/Stripe.net/Entities/V2/Core/Events/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace Stripe.V2.Core
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
Expand Down Expand Up @@ -32,15 +31,6 @@ public partial class Event : StripeEntity<Event>, IHasId, IHasObject
#endif
public string Object { get; set; }

/// <summary>
/// Before and after changes for the primary related object.
/// </summary>
[JsonProperty("changes")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("changes")]
#endif
public Dictionary<string, object> Changes { get; set; }

/// <summary>
/// Authentication context needed to fetch the event or related object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Core
{
using System;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class EventListCreatedOptions : INestedOptions
{
/// <summary>
/// Filter for events created after the specified timestamp.
/// </summary>
[JsonProperty("gt")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("gt")]
#endif
public DateTime? Gt { get; set; }

/// <summary>
/// Filter for events created at or after the specified timestamp.
/// </summary>
[JsonProperty("gte")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("gte")]
#endif
public DateTime? Gte { get; set; }

/// <summary>
/// Filter for events created before the specified timestamp.
/// </summary>
[JsonProperty("lt")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("lt")]
#endif
public DateTime? Lt { get; set; }

/// <summary>
/// Filter for events created at or before the specified timestamp.
/// </summary>
[JsonProperty("lte")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("lte")]
#endif
public DateTime? Lte { get; set; }
}
}
36 changes: 4 additions & 32 deletions src/Stripe.net/Services/V2/Core/Events/EventListOptions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Core
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
Expand All @@ -11,40 +10,13 @@ namespace Stripe.V2.Core
public class EventListOptions : V2.ListOptions
{
/// <summary>
/// Filter for events created after the specified timestamp.
/// Set of filters to query events within a range of <c>created</c> timestamps.
/// </summary>
[JsonProperty("gt")]
[JsonProperty("created")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("gt")]
[STJS.JsonPropertyName("created")]
#endif
public DateTime? Gt { get; set; }

/// <summary>
/// Filter for events created at or after the specified timestamp.
/// </summary>
[JsonProperty("gte")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("gte")]
#endif
public DateTime? Gte { get; set; }

/// <summary>
/// Filter for events created before the specified timestamp.
/// </summary>
[JsonProperty("lt")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("lt")]
#endif
public DateTime? Lt { get; set; }

/// <summary>
/// Filter for events created at or before the specified timestamp.
/// </summary>
[JsonProperty("lte")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("lte")]
#endif
public DateTime? Lte { get; set; }
public EventListCreatedOptions Created { get; set; }

/// <summary>
/// Primary object ID used to retrieve related events.
Expand Down
2 changes: 1 addition & 1 deletion src/StripeTests/Services/GeneratedExamplesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ public void TestCoreEventsGet()
HttpMethod.Get,
"/v2/core/events/ll_123",
HttpStatusCode.OK,
"{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}");
"{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.Events;
Stripe.V2.Core.Event result = service.Get("ll_123");
Expand Down
Loading