Skip to content

Commit

Permalink
fixes default api version and adds additional internals accessor for …
Browse files Browse the repository at this point in the history
…testing
  • Loading branch information
Smolations committed Jan 29, 2024
1 parent 99a44aa commit b1e6176
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions Library/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Xml;
using Recurly.Configuration;

[assembly: InternalsVisibleTo("TestRig")]
[assembly: InternalsVisibleTo("Recurly.Test")]

namespace Recurly
Expand Down
14 changes: 11 additions & 3 deletions Library/Configuration/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,17 @@ public int? RequestTimeoutMilliseconds
private set { _requestTimeoutMilliseconds = value; }
}

protected const string RecurlyServerUri = "https://{0}.recurly.com/v2{1}";
public const string RecurlyApiVersion = "2.99";
public const string ValidDomain = ".recurly.com";
protected string RecurlyServerUri
{
get
{
var portSuffix = Port != null ? $":{Port}" : string.Empty;
return "https://{0}" + ValidDomain + portSuffix + "/v2{1}";
}
}
public string RecurlyApiVersion = "2.29";
public static string ValidDomain = ".recurly.com";
public static int? Port { get; set; }

// static, unlikely to change
public string UserAgent
Expand Down

0 comments on commit b1e6176

Please sign in to comment.