Skip to content

Commit 55ac148

Browse files
authored
added V2 ListOptions class (#3026)
updated V2 list options subclasses to derive from V2.ListOptions
1 parent bb87579 commit 55ac148

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

src/Stripe.net/Services/V2/Core/EventDestinations/EventDestinationListOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Stripe.V2.Core
44
using System.Collections.Generic;
55
using Newtonsoft.Json;
66

7-
public class EventDestinationListOptions : ListOptions
7+
public class EventDestinationListOptions : V2.ListOptions
88
{
99
/// <summary>
1010
/// Additional fields to include in the response. Currently supports

src/Stripe.net/Services/V2/Core/Events/EventListOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Stripe.V2.Core
33
{
44
using Newtonsoft.Json;
55

6-
public class EventListOptions : ListOptions
6+
public class EventListOptions : V2.ListOptions
77
{
88
/// <summary>
99
/// Primary object ID used to retrieve related events.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace Stripe.V2
2+
{
3+
using Newtonsoft.Json;
4+
5+
public class ListOptions : BaseOptions
6+
{
7+
/// <summary>
8+
/// A limit on the number of objects to be returned, between 1 and 100.
9+
/// </summary>
10+
[JsonProperty("limit")]
11+
public long? Limit { get; set; }
12+
}
13+
}

0 commit comments

Comments
 (0)