diff --git a/src/Stripe.net/Services/_interfaces/ICreatable.cs b/src/Stripe.net/Services/_interfaces/ICreatable.cs index d71b79d2e6..16e5c6b5a5 100644 --- a/src/Stripe.net/Services/_interfaces/ICreatable.cs +++ b/src/Stripe.net/Services/_interfaces/ICreatable.cs @@ -5,7 +5,7 @@ namespace Stripe public interface ICreatable where TEntity : IStripeEntity - where TOptions : BaseOptions + where TOptions : BaseOptions, new() { TEntity Create(TOptions createOptions, RequestOptions requestOptions = null); diff --git a/src/Stripe.net/Services/_interfaces/IListable.cs b/src/Stripe.net/Services/_interfaces/IListable.cs index 49ff7fed3b..9008c5453f 100644 --- a/src/Stripe.net/Services/_interfaces/IListable.cs +++ b/src/Stripe.net/Services/_interfaces/IListable.cs @@ -6,7 +6,7 @@ namespace Stripe public interface IListable where TEntity : IStripeEntity, IHasId - where TOptions : ListOptions + where TOptions : ListOptions, new() { StripeList List(TOptions listOptions = null, RequestOptions requestOptions = null); diff --git a/src/Stripe.net/Services/_interfaces/INestedCreatable.cs b/src/Stripe.net/Services/_interfaces/INestedCreatable.cs index ee7045d52a..ca618bddad 100644 --- a/src/Stripe.net/Services/_interfaces/INestedCreatable.cs +++ b/src/Stripe.net/Services/_interfaces/INestedCreatable.cs @@ -5,7 +5,7 @@ namespace Stripe public interface INestedCreatable where TEntity : IStripeEntity - where TOptions : BaseOptions + where TOptions : BaseOptions, new() { TEntity Create(string parentId, TOptions createOptions, RequestOptions requestOptions = null); diff --git a/src/Stripe.net/Services/_interfaces/INestedListable.cs b/src/Stripe.net/Services/_interfaces/INestedListable.cs index 7cd4042149..9c100ae04f 100644 --- a/src/Stripe.net/Services/_interfaces/INestedListable.cs +++ b/src/Stripe.net/Services/_interfaces/INestedListable.cs @@ -6,7 +6,7 @@ namespace Stripe public interface INestedListable where TEntity : IStripeEntity, IHasId - where TOptions : ListOptions + where TOptions : ListOptions, new() { StripeList List(string parentId, TOptions listOptions = null, RequestOptions requestOptions = null); diff --git a/src/Stripe.net/Services/_interfaces/INestedRetrievable.cs b/src/Stripe.net/Services/_interfaces/INestedRetrievable.cs index d3d39a3e43..c70b9b932a 100644 --- a/src/Stripe.net/Services/_interfaces/INestedRetrievable.cs +++ b/src/Stripe.net/Services/_interfaces/INestedRetrievable.cs @@ -5,7 +5,7 @@ namespace Stripe public interface INestedRetrievable where TEntity : IStripeEntity, IHasId - where TOptions : BaseOptions + where TOptions : BaseOptions, new() { TEntity Get(string parentId, string id, TOptions retrieveOptions, RequestOptions requestOptions = null); diff --git a/src/Stripe.net/Services/_interfaces/INestedUpdatable.cs b/src/Stripe.net/Services/_interfaces/INestedUpdatable.cs index b6ec98ca5d..bee441245b 100644 --- a/src/Stripe.net/Services/_interfaces/INestedUpdatable.cs +++ b/src/Stripe.net/Services/_interfaces/INestedUpdatable.cs @@ -5,7 +5,7 @@ namespace Stripe public interface INestedUpdatable where TEntity : IStripeEntity, IHasId - where TOptions : BaseOptions + where TOptions : BaseOptions, new() { TEntity Update(string parentId, string id, TOptions updateOptions, RequestOptions requestOptions = null); diff --git a/src/Stripe.net/Services/_interfaces/IRetrievable.cs b/src/Stripe.net/Services/_interfaces/IRetrievable.cs index 7b8be8c9ec..af715a452e 100644 --- a/src/Stripe.net/Services/_interfaces/IRetrievable.cs +++ b/src/Stripe.net/Services/_interfaces/IRetrievable.cs @@ -5,7 +5,7 @@ namespace Stripe public interface IRetrievable where TEntity : IStripeEntity, IHasId - where TOptions : BaseOptions + where TOptions : BaseOptions, new() { TEntity Get(string id, TOptions retrieveOptions, RequestOptions requestOptions = null); diff --git a/src/Stripe.net/Services/_interfaces/IUpdatable.cs b/src/Stripe.net/Services/_interfaces/IUpdatable.cs index 526a151eae..7c37468ca1 100644 --- a/src/Stripe.net/Services/_interfaces/IUpdatable.cs +++ b/src/Stripe.net/Services/_interfaces/IUpdatable.cs @@ -5,7 +5,7 @@ namespace Stripe public interface IUpdatable where TEntity : IStripeEntity, IHasId - where TOptions : BaseOptions + where TOptions : BaseOptions, new() { TEntity Update(string id, TOptions updateOptions, RequestOptions requestOptions = null);