Skip to content

Commit 399fb37

Browse files
author
sangeet-joy_xero
committed
version update 2
1 parent a92a674 commit 399fb37

File tree

13 files changed

+13
-52
lines changed

13 files changed

+13
-52
lines changed

Xero.NetStandard.OAuth2/Client/ApiClient.cs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -265,43 +265,6 @@ public ApiClient(string basePath)
265265
_baseUrl = basePath;
266266
}
267267

268-
/// <summary>
269-
/// Initializes a new instance of the <see cref="ApiClient" />, defaulting to the global configurations' base url.
270-
/// </summary>
271-
/// <param name="client">An instance of HttpClient.</param>
272-
/// <param name="handler">An optional instance of HttpClientHandler that is used by HttpClient.</param>
273-
/// <exception cref="ArgumentNullException"></exception>
274-
/// <remarks>
275-
/// Some configuration settings will not be applied without passing an HttpClientHandler.
276-
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
277-
/// </remarks>
278-
public ApiClient(HttpClient client, HttpClientHandler handler = null) :
279-
this(client, Xero.NetStandard.OAuth2.Client.GlobalConfiguration.Instance.BasePath, handler)
280-
{
281-
}
282-
283-
/// <summary>
284-
/// Initializes a new instance of the <see cref="ApiClient" />.
285-
/// </summary>
286-
/// <param name="client">An instance of HttpClient.</param>
287-
/// <param name="basePath">The target service's base path in URL format.</param>
288-
/// <param name="handler">An optional instance of HttpClientHandler that is used by HttpClient.</param>
289-
/// <exception cref="ArgumentNullException"></exception>
290-
/// <exception cref="ArgumentException"></exception>
291-
/// <remarks>
292-
/// Some configuration settings will not be applied without passing an HttpClientHandler.
293-
/// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
294-
/// </remarks>
295-
public ApiClient(HttpClient client, string basePath, HttpClientHandler handler = null)
296-
{
297-
if (client == null) throw new ArgumentNullException("client cannot be null");
298-
if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty");
299-
300-
_httpClientHandler = handler;
301-
_httpClient = client;
302-
_baseUrl = basePath;
303-
}
304-
305268
/// <summary>
306269
/// Disposes resources if they were created by us
307270
/// </summary>

Xero.NetStandard.OAuth2/Client/Configuration.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Text;
1818
using Newtonsoft.Json;
1919
using System.Net;
20-
using System.Security.Cryptography.X509Certificates;
2120

2221
namespace Xero.NetStandard.OAuth2.Client
2322
{
@@ -32,7 +31,7 @@ public class Configuration : IReadableConfiguration
3231
/// Version of the package.
3332
/// </summary>
3433
/// <value>Version of the package.</value>
35-
public const string Version = "8.1.1";
34+
public const string Version = "9.0.0";
3635

3736
/// <summary>
3837
/// Identifier for ISO 8601 DateTime Format
@@ -104,7 +103,7 @@ public class Configuration : IReadableConfiguration
104103
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
105104
public Configuration()
106105
{
107-
UserAgent = "xero-netstandard-8.1.1";
106+
UserAgent = "xero-netstandard-9.0.0";
108107
BasePath = "https://api.xero.com/api.xro/2.0";
109108
DefaultHeader = new ConcurrentDictionary<string, string>();
110109
ApiKey = new ConcurrentDictionary<string, string>();
@@ -343,7 +342,7 @@ public static String ToDebugReport()
343342
String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n";
344343
report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n";
345344
report += " Version of the API: 6.1.1\n";
346-
report += " SDK Package Version: 8.1.1\n";
345+
report += " SDK Package Version: 9.0.0\n";
347346

348347
return report;
349348
}

Xero.NetStandard.OAuth2/Client/IReadableConfiguration.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
using System.Collections.Generic;
1212
using System.Net;
13-
using System.Security.Cryptography.X509Certificates;
1413

1514
namespace Xero.NetStandard.OAuth2.Client
1615
{

Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1717
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
1818
<RootNamespace>Xero.NetStandard.OAuth2</RootNamespace>
19-
<Version>8.1.1</Version>
19+
<Version>9.0.0</Version>
2020
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml</DocumentationFile>
2121
<PackageLicenseUrl>https://github.com/XeroAPI/Xero-NetStandard/</PackageLicenseUrl>
2222
<PackageIconUrl>https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png</PackageIconUrl>

docs/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6217,7 +6217,7 @@
62176217
<nav id="scrollingNav">
62186218
<ul class="sidenav nav nav-list">
62196219
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6220-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>8.1.1</li>
6220+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>9.0.0</li>
62216221
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
62226222
<li data-group="Accounting" data-name="createAccount" class="">
62236223
<a href="#api-Accounting-createAccount">createAccount</a>

docs/appstore/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
<nav id="scrollingNav">
12431243
<ul class="sidenav nav nav-list">
12441244
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1245-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>8.1.1</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>9.0.0</li>
12461246
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12471247
<li data-group="AppStore" data-name="getSubscription" class="">
12481248
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/bankfeeds/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@
12691269
<nav id="scrollingNav">
12701270
<ul class="sidenav nav nav-list">
12711271
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
1272-
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>8.1.1</li>
1272+
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>9.0.0</li>
12731273
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
12741274
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
12751275
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>

docs/files/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@
11711171
<nav id="scrollingNav">
11721172
<ul class="sidenav nav nav-list">
11731173
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1174-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>8.1.1</li>
1174+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>9.0.0</li>
11751175
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11761176
<li data-group="Files" data-name="createFileAssociation" class="">
11771177
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@
27382738
<nav id="scrollingNav">
27392739
<ul class="sidenav nav nav-list">
27402740
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2741-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>8.1.1</li>
2741+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>9.0.0</li>
27422742
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27432743
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27442744
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/payroll-au/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,7 @@
34133413
<nav id="scrollingNav">
34143414
<ul class="sidenav nav nav-list">
34153415
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3416-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>8.1.1</li>
3416+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>9.0.0</li>
34173417
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34183418
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34193419
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>

0 commit comments

Comments
 (0)