Skip to content

Commit

Permalink
Updated dependencies version
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaryska committed Oct 30, 2024
1 parent b33fef7 commit 1d3f710
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions GoPay.net-sdk/GoPay.net-sdk.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<version>1.3.1</version>
<version>1.3.2</version>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>gopay_dotnet_standard_api</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="RestSharp" Version="108.0.2" />
<PackageReference Include="RestSharp.Serializers.NewtonsoftJson" Version="108.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="RestSharp" Version="112.1.0" />
<PackageReference Include="RestSharp.Serializers.NewtonsoftJson" Version="112.1.0" />
</ItemGroup>

</Project>
15 changes: 8 additions & 7 deletions GoPay.net-sdk/src/GPConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ public GPConnector(string APIUrl, string clientid, string clientsecret, bool set
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
}

Client.Options.BaseUrl = new Uri(APIUrl);
var options = new RestClientOptions
{
BaseUrl = new Uri(APIUrl)
};

Client = new RestClient(options);
ClientID = clientid;
ClientSecret = clientsecret;
Client.UseNewtonsoftJson();
}

public GPConnector(string APIUrl, string clientid, string clientsecret, string customUserAgent, bool setSecurityProtocol = true)
Expand All @@ -65,16 +69,13 @@ public GPConnector(string APIUrl, string clientid, string clientsecret, string c

var options = new RestClientOptions
{
UserAgent = customUserAgent
UserAgent = customUserAgent,
BaseUrl = new Uri(APIUrl)
};

Client = new RestClient(options);


Client.Options.BaseUrl = new Uri(APIUrl);
ClientID = clientid;
ClientSecret = clientsecret;
Client.UseNewtonsoftJson();
}

/// <exception cref="GPClientException"></exception>
Expand Down
10 changes: 5 additions & 5 deletions Package.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
<package >
<metadata>
<id>GoPay.NET</id>
<version>1.3.1</version>
<version>1.3.2</version>
<authors>Stanislav Kouba, Frantisek Sichinger, Patrik Maryska</authors>
<owners>GoPay s.r.o.</owners>
<license type="expression">MIT</license>
<projectUrl>https://github.com/gopaycommunity/gopay-dotnet-api</projectUrl>
<icon>images/icon.png</icon>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>GoPay .NET sdk</description>
<releaseNotes>Added User-agent version</releaseNotes>
<releaseNotes>Updated version of dependencies</releaseNotes>
<copyright>Copyright 2024</copyright>
<tags>GoPay Platebni brana</tags>
<dependencies>
<group targetFramework=".NETStandard2.0">
<dependency id="Newtonsoft.Json" version="13.0.1" />
<dependency id="RestSharp" version="108.0.2"/>
<dependency id="RestSharp.Serializers.NewtonsoftJson" version="108.0.2"/>
<dependency id="Newtonsoft.Json" version="13.0.3" />
<dependency id="RestSharp" version="112.1.0"/>
<dependency id="RestSharp.Serializers.NewtonsoftJson" version="112.1.0"/>
</group>
</dependencies>

Expand Down

0 comments on commit 1d3f710

Please sign in to comment.