Skip to content

Commit

Permalink
added V2 ListOptions class (#3026)
Browse files Browse the repository at this point in the history
updated V2 list options subclasses to derive from V2.ListOptions
  • Loading branch information
jar-stripe authored Nov 6, 2024
1 parent bb87579 commit 55ac148
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Stripe.V2.Core
using System.Collections.Generic;
using Newtonsoft.Json;

public class EventDestinationListOptions : ListOptions
public class EventDestinationListOptions : V2.ListOptions
{
/// <summary>
/// Additional fields to include in the response. Currently supports
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/V2/Core/Events/EventListOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe.V2.Core
{
using Newtonsoft.Json;

public class EventListOptions : ListOptions
public class EventListOptions : V2.ListOptions
{
/// <summary>
/// Primary object ID used to retrieve related events.
Expand Down
13 changes: 13 additions & 0 deletions src/Stripe.net/Services/_base/V2/ListOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace Stripe.V2
{
using Newtonsoft.Json;

public class ListOptions : BaseOptions
{
/// <summary>
/// A limit on the number of objects to be returned, between 1 and 100.
/// </summary>
[JsonProperty("limit")]
public long? Limit { get; set; }
}
}

0 comments on commit 55ac148

Please sign in to comment.