Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the generated API version #2512

Merged
merged 1 commit into from
Jun 21, 2022
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
8 changes: 8 additions & 0 deletions src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// File generated from our OpenAPI spec
namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2020-08-27";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static StripeConfiguration()
}

/// <summary>API version used by Stripe.net.</summary>
public static string ApiVersion => "2020-08-27";
public static string ApiVersion => Stripe.ApiVersion.Current;

/// <summary>Gets or sets the API key.</summary>
/// <remarks>
Expand Down