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

setup for .net47 #81

Merged
merged 33 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a87e964
setup for .net47
ankitdas13 Aug 9, 2023
351f795
comment fix
ankitdas13 Aug 24, 2023
d9fa9fb
round 2 review changes
ankitdas13 Sep 13, 2023
e742433
fix indentation
ankitdas13 Sep 13, 2023
2c0ff79
fix indentation file tag
ankitdas13 Sep 13, 2023
81348e6
update copyright
ankitdas13 Sep 13, 2023
06fe7ab
removed unused entities
ankitdas13 Sep 13, 2023
a5e2bda
Api version switch (#82)
ankitdas13 Sep 14, 2023
e4c7d72
Account entity (#86)
ankitdas13 Oct 3, 2023
40b838c
Item entity (#87)
ankitdas13 Oct 3, 2023
1398bd9
added tnc entity (#92)
ankitdas13 Oct 3, 2023
d9a15bc
added settlement entity (#88)
ankitdas13 Oct 3, 2023
05379b7
added paymentlink entity (#89)
ankitdas13 Oct 3, 2023
0d65029
added qrcode_entity (#90)
ankitdas13 Oct 3, 2023
ba079ca
Iin entity (#91)
ankitdas13 Oct 3, 2023
cb37c89
added product entity (#93)
ankitdas13 Oct 3, 2023
c59c7f0
Fundaccount entity (#94)
ankitdas13 Oct 3, 2023
f0d3574
update addon entity (#96)
ankitdas13 Oct 3, 2023
b57badb
added Card entity (#97)
ankitdas13 Oct 3, 2023
354e0ce
Added Token entity (#99)
ankitdas13 Oct 3, 2023
0e4cb2f
update order entity (#102)
ankitdas13 Oct 12, 2023
ebdba10
Added Plan entity (#103)
ankitdas13 Oct 12, 2023
c30f212
update subscription entity (#105)
ankitdas13 Oct 12, 2023
90adfdb
update virtualaccount (#106)
ankitdas13 Oct 12, 2023
d837496
Update transfer entity (#108)
ankitdas13 Oct 12, 2023
0707fdd
added payment entity (#98)
ankitdas13 Oct 23, 2023
fe87892
Update Customer entity (#100)
ankitdas13 Oct 23, 2023
de30819
update Invoice entity (#101)
ankitdas13 Oct 23, 2023
7580b8d
update refund entity (#104)
ankitdas13 Oct 23, 2023
16601b7
update config files
ankitdas13 Oct 27, 2023
4142385
update config files
ankitdas13 Oct 27, 2023
39b6dca
added token doc
ankitdas13 Oct 27, 2023
1c9f12e
added doc and update utils
ankitdas13 Oct 30, 2023
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
2 changes: 2 additions & 0 deletions Razorpay.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
<tags>Razorpay</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="11.0.2" />
<dependency id="Newtonsoft.Json" version="13.0.3" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the Indentation.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there is a better way for handling multiple versions of the same assembly.
Refer this - https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

<dependency id="Newtonsoft.Json" version="[11.0.2,13.0.3)" />

Screenshot 2023-08-24 191129

</dependencies>
</metadata>
<files>
<file src="net40/Razorpay.dll" target="lib/net40/Razorpay.dll" />
<file src="net45/Razorpay.dll" target="lib/net45/Razorpay.dll" />
<file src="net47/Razorpay.dll" target="lib/net47/Razorpay.dll" />
</files>
</package>
32 changes: 32 additions & 0 deletions net47/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Razorpay")]
[assembly: AssemblyDescription("Razorpay SDK for .Net")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Razorpay Software Private Limited")]
[assembly: AssemblyProduct("Razorpay.API")]
[assembly: AssemblyCopyright("Copyright © 2015")]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CopyRight should have current year also right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to 2023

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be 2015-2023?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also added in nuspec file

[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("96121FFA-261D-4B93-95C8-A7A19FD49FAF")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
142 changes: 142 additions & 0 deletions net47/RazorpayClient47.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{062285FD-C192-4AE4-82E9-B9E907B66D01}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Razorpay.Api</RootNamespace>
<AssemblyName>Razorpay</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.13.0.3\lib\net47\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\src\Entity.cs">
<Link>Entity.cs</Link>
</Compile>
<Compile Include="..\src\Errors\BadRequestError.cs">
<Link>Errors\BadRequestError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\BaseError.cs">
<Link>Errors\BaseError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\ErrorCodes.cs">
<Link>Errors\ErrorCodes.cs</Link>
</Compile>
<Compile Include="..\src\Errors\GatewayError.cs">
<Link>Errors\GatewayError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\ServerError.cs">
<Link>Errors\ServerError.cs</Link>
</Compile>
<Compile Include="..\src\Errors\SignatureVerificationError.cs">
<Link>Errors\SignatureVerificationError.cs</Link>
</Compile>
<Compile Include="..\src\Order.cs">
<Link>Order.cs</Link>
</Compile>
<Compile Include="..\src\Payment.cs">
<Link>Payment.cs</Link>
</Compile>
<Compile Include="..\src\RazorpayClient.cs">
<Link>RazorpayClient.cs</Link>
</Compile>
<Compile Include="..\src\Refund.cs">
<Link>Refund.cs</Link>
</Compile>
<Compile Include="..\src\Token.cs">
<Link>Token.cs</Link>
</Compile>
<Compile Include="..\src\Card.cs">
<Link>Card.cs</Link>
</Compile>
<Compile Include="..\src\Invoice.cs">
<Link>Invoice.cs</Link>
</Compile>
<Compile Include="..\src\Customer.cs">
<Link>Customer.cs</Link>
</Compile>
<Compile Include="..\src\Transfer.cs">
<Link>Transfer.cs</Link>
</Compile>
<Compile Include="..\src\Reversal.cs">
<Link>Reversal.cs</Link>
</Compile>
<Compile Include="..\src\RestClient.cs">
<Link>RestClient.cs</Link>
</Compile>
<Compile Include="..\src\Utils.cs">
<Link>Utils.cs</Link>
</Compile>
<Compile Include="..\src\Plan.cs">
<Link>Plan.cs</Link>
</Compile>
<Compile Include="..\src\Subscription.cs">
<Link>Subscription.cs</Link>
</Compile>
<Compile Include="..\src\Addon.cs">
<Link>Addon.cs</Link>
</Compile>
<Compile Include="..\src\VirtualAccount.cs">
<Link>VirtualAccount.cs</Link>
</Compile>
<Compile Include="..\src\FundAccount.cs">
<Link>FundAccount.cs</Link>
</Compile>
<Compile Include="..\src\Item.cs">
<Link>Item.cs</Link>
</Compile>
<Compile Include="Class.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="..\src\HttpMethod.cs">
<Link>HttpMethod.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

4 changes: 4 additions & 0 deletions net47/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net47" />
</packages>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done