Skip to content

Commit feaf8d2

Browse files
committed
Merge branch 'develop'
2 parents 3106416 + 27ef479 commit feaf8d2

File tree

160 files changed

+8540
-8545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+8540
-8545
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,13 @@
4747
*.fsproj text=auto merge=union
4848
*.dbproj text=auto merge=union
4949
*.sln text=auto eol=crlf merge=union
50+
PAYNLFormsApp/DebugForm.cs -text diff=csharp
51+
PAYNLFormsApp/Form1.cs -text diff=csharp
52+
PAYNLFormsApp/PAYNLFormsApp.csproj -text
53+
PAYNLSDK/API/Banktransfer/Add/Request.cs -text diff=csharp
54+
PAYNLSDK/API/Refund/Add/Request.cs -text diff=csharp
55+
PAYNLSDK/API/Refund/Add/Response.cs -text diff=csharp
56+
PAYNLSDK/API/Transaction/Approve/Request.cs -text diff=csharp
57+
PAYNLSDK/API/Transaction/Approve/Response.cs -text diff=csharp
58+
PAYNLSDK/API/Transaction/Decline/Request.cs -text diff=csharp
59+
PAYNLSDK/API/Transaction/Decline/Response.cs -text diff=csharp

PAYNLFormsApp/DebugForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Newtonsoft.Json;
1+
using PayNLSdk.Utilities;
22
using PAYNLFormsApp.Fixtures;
33
using PAYNLSDK;
44
using PAYNLSDK.API;

PAYNLFormsApp/Fixtures/RefundInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using PAYNLSDK.Objects;
33
using PAYNLSDK;
44
using PAYNLSDK.Enums;
5-
using Newtonsoft.Json;
5+
using PayNLSdk.Utilities;
66

77
namespace PAYNLFormsApp.Fixtures
88
{
@@ -11,7 +11,7 @@ public class TransactionRefundInfo
1111
static public PAYNLSDK.Objects.RefundInfo GetRefundInfoFixture()
1212
{
1313
String json = GetJsonFixture();
14-
PAYNLSDK.Objects.RefundInfo info = JsonConvert.DeserializeObject<PAYNLSDK.Objects.RefundInfo>(json);
14+
PAYNLSDK.Objects.RefundInfo info = JsonSerialization.Deserialize<PAYNLSDK.Objects.RefundInfo>(json);
1515
return info;
1616
}
1717

PAYNLFormsApp/Form1.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Newtonsoft.Json;
1+
using PayNLSdk.Utilities;
22
using PAYNLFormsApp.Fixtures;
33
using PAYNLSDK.API;
44
using PAYNLSDK.Exceptions;
@@ -133,7 +133,7 @@ private void transactionStartproductsToolStripMenuItem_Click(object sender, Even
133133
//string qs = fixture.ToQueryString();
134134
//AddDebug(qs);
135135
//NameValueCollection nvc = HttpUtility.ParseQueryString(qs);
136-
//string json = JsonConvert.SerializeObject(NvcToDictionary(nvc, true));
136+
//string json = JsonSerialization.Serialize(NvcToDictionary(nvc, true));
137137
AddDebug("-----");
138138
//DumpNvc(nvc);
139139
AddDebug("-----");
@@ -249,8 +249,8 @@ private void Form1_Load(object sender, EventArgs e)
249249
AddDebug(PAYNLSDK.Enums.Util.ToEnumString(PAYNLSDK.Enums.TaxClass.High, typeof(PAYNLSDK.Enums.TaxClass)));
250250
251251
string ser = @"{'gender':'m'}";
252-
X x = JsonConvert.DeserializeObject<X>(ser);
253-
AddDebug(JsonConvert.SerializeObject(x));
252+
X x = JsonSerialization.Deserialize<X>(ser);
253+
AddDebug(JsonSerialization.Serialize(x));
254254
*/
255255
}
256256

@@ -379,7 +379,7 @@ private void testDateTimeConversionToolStripMenuItem_Click(object sender, EventA
379379
AddDebug("Can not test this use case");
380380
// try
381381
// {
382-
// TestYMD testObj = JsonConvert.DeserializeObject<TestYMD>(dateString);
382+
// TestYMD testObj = JsonSerialization.Deserialize<TestYMD>(dateString);
383383
// AddDebug(String.Format("Converted '{0}' to {1}.", dateString, testObj.DT.ToString()));
384384
// }
385385
// catch (Exception e0)
@@ -392,7 +392,7 @@ private void testDateTimeConversionToolStripMenuItem_Click(object sender, EventA
392392
//{
393393
// try
394394
// {
395-
// TestDMY testObj = JsonConvert.DeserializeObject<TestDMY>(dateString);
395+
// TestDMY testObj = JsonSerialization.Deserialize<TestDMY>(dateString);
396396
// AddDebug(String.Format("Converted '{0}' to {1}.", dateString, testObj.DT.ToString()));
397397
// }
398398
// catch (Exception e1)
@@ -405,7 +405,7 @@ private void testDateTimeConversionToolStripMenuItem_Click(object sender, EventA
405405
//{
406406
// try
407407
// {
408-
// TestYMDHIS testObj = JsonConvert.DeserializeObject<TestYMDHIS>(dateString);
408+
// TestYMDHIS testObj = JsonSerialization.Deserialize<TestYMDHIS>(dateString);
409409
// AddDebug(String.Format("Converted '{0}' to {1}.", dateString, testObj.DT.ToString()));
410410
// }
411411
// catch (Exception e2)
@@ -429,7 +429,7 @@ private void refundtransactionToolStripMenuItem_Click(object sender, EventArgs e
429429
//string qs = fixture.ToQueryString();
430430
//AddDebug(qs);
431431
//NameValueCollection nvc = HttpUtility.ParseQueryString(qs);
432-
//string json = JsonConvert.SerializeObject(NvcToDictionary(nvc, true));
432+
//string json = JsonSerialization.Serialize(NvcToDictionary(nvc, true));
433433
AddDebug("-----");
434434
//AddDebug("PARAMS AS JSON");
435435
//AddDebug(json);
@@ -450,7 +450,7 @@ private void refundTrasactionProductsToolStripMenuItem_Click(object sender, Even
450450
//string qs = fixture.ToQueryString();
451451
//AddDebug(qs);
452452
//NameValueCollection nvc = HttpUtility.ParseQueryString(qs);
453-
//string json = JsonConvert.SerializeObject(NvcToDictionary(nvc, true));
453+
//string json = JsonSerialization.Serialize(NvcToDictionary(nvc, true));
454454
//AddDebug("-----");
455455
////AddDebug("PARAMS AS JSON");
456456
////AddDebug(json);
@@ -481,7 +481,7 @@ private void refundInfoToolStripMenuItem_Click(object sender, EventArgs e)
481481
/*
482482
class X
483483
{
484-
[JsonProperty("gender"), JsonConverter(typeof(PAYNLSDK.Converters.GenderConverter))]
484+
[JsonPropertyName("gender"), JsonConverter(typeof(PAYNLSDK.Converters.GenderConverter))]
485485
public PAYNLSDK.Enums.Gender Gender { get; set; }
486486
487487
}
@@ -493,7 +493,7 @@ class X
493493
// /// <summary>
494494
// /// Merchant ID
495495
// /// </summary>
496-
// [JsonProperty("dt"), JsonConverter(typeof(PAYNLSDK.Converters.YMDConverter))]
496+
// [JsonPropertyName("dt"), JsonConverter(typeof(PAYNLSDK.Converters.YMDConverter))]
497497
// public DateTime? DT { get; set; }
498498

499499
//}
@@ -502,7 +502,7 @@ class X
502502
// /// <summary>
503503
// /// Merchant ID
504504
// /// </summary>
505-
// [JsonProperty("dt"), JsonConverter(typeof(PAYNLSDK.Converters.DMYConverter))]
505+
// [JsonPropertyName("dt"), JsonConverter(typeof(PAYNLSDK.Converters.DMYConverter))]
506506
// public DateTime? DT { get; set; }
507507
//}
508508

@@ -511,7 +511,7 @@ class X
511511
// /// <summary>
512512
// /// Merchant ID
513513
// /// </summary>
514-
// [JsonProperty("dt"), JsonConverter(typeof(PAYNLSDK.Converters.YMDHISConverter))]
514+
// [JsonPropertyName("dt"), JsonConverter(typeof(PAYNLSDK.Converters.YMDHISConverter))]
515515
// public DateTime? DT { get; set; }
516516

517517
//}

PAYNLFormsApp/PAYNLFormsApp.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
<Reference Include="LightInject, Version=5.1.1.0, Culture=neutral, processorArchitecture=MSIL">
6666
<HintPath>..\packages\LightInject.5.1.1\lib\netstandard1.1\LightInject.dll</HintPath>
6767
</Reference>
68-
<Reference Include="Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
69-
<HintPath>..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
68+
<Reference Include="System.Text.Json">
69+
<HintPath>..\packages\System.Text.Json.7.0.3\lib\netstandard2.0\System.Text.Json.dll</HintPath>
7070
</Reference>
7171
<Reference Include="System" />
7272
<Reference Include="System.ComponentModel.Composition" />
@@ -226,11 +226,11 @@
226226
</PropertyGroup>
227227
<Error Condition="!Exists('..\packages\NETStandard.Library.2.0.1\build\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NETStandard.Library.2.0.1\build\NETStandard.Library.targets'))" />
228228
</Target>
229-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
230-
Other similar extension points exist, see Microsoft.Common.targets.
231-
<Target Name="BeforeBuild">
232-
</Target>
233-
<Target Name="AfterBuild">
234-
</Target>
229+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
230+
Other similar extension points exist, see Microsoft.Common.targets.
231+
<Target Name="BeforeBuild">
232+
</Target>
233+
<Target Name="AfterBuild">
234+
</Target>
235235
-->
236236
</Project>

PAYNLFormsApp/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<packages>
33
<package id="Microsoft.NETCore.Platforms" version="2.0.1" targetFramework="net45" />
44
<package id="NETStandard.Library" version="2.0.1" targetFramework="net45" requireReinstallation="true" />
5-
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net462" />
5+
<package id="System.Text.Json" version="7.0.3" targetFramework="net462" />
66
<package id="System.Collections" version="4.3.0" targetFramework="net45" />
77
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net45" />
88
<package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net45" />

PAYNLSDK.sln

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.30204.135
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.14.36301.6 d17.14
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PayNLSdk", "PAYNLSDK\PayNLSdk.csproj", "{C8AB15F6-3F29-490B-8424-F3A337177543}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PayNlSdk", "PAYNLSDK\PayNlSdk.csproj", "{C8AB15F6-3F29-490B-8424-F3A337177543}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PayNLSdk.Tests", "PayNLSdk.Tests\PayNLSdk.Tests.csproj", "{4C691697-D689-4A00-9E3B-45C05D9F7817}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PayNlSdk.Tests", "PayNLSdk.Tests\PayNlSdk.Tests.csproj", "{4C691697-D689-4A00-9E3B-45C05D9F7817}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DACFE405-2E22-4BEB-8B31-60A285F03EA0}"
1111
ProjectSection(SolutionItems) = preProject
Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
using Newtonsoft.Json;
2-
using PAYNLSDK.API;
1+
using System.Text.Json;
2+
using System.Text.Json.Serialization;
33

4-
namespace PAYNLSDK.API.Alliance.AddInvoice
4+
namespace PayNLSdk.Api.Alliance.AddInvoice;
5+
6+
/// <summary>
7+
/// The result of the Alliance/GetMerchant call
8+
/// Implements the <see cref="ResponseBase" />
9+
/// </summary>
10+
/// <seealso cref="ResponseBase" />
11+
public class AddInvoiceResult : ResponseBase
512
{
613
/// <summary>
7-
/// The result of the Alliance/GetMerchant call
8-
/// Implements the <see cref="PAYNLSDK.API.ResponseBase" />
14+
/// Gets or sets the reference id for the payment.
915
/// </summary>
10-
/// <seealso cref="PAYNLSDK.API.ResponseBase" />
11-
public class AddInvoiceResult : ResponseBase
12-
{
13-
/// <summary>
14-
/// Gets or sets the reference id for the payment.
15-
/// </summary>
16-
/// <value>The reference identifier.</value>
17-
[JsonProperty("referenceId")]
18-
public string ReferenceId { get; set; }
16+
/// <value>The reference identifier.</value>
17+
[JsonPropertyName("referenceId")]
18+
public string ReferenceId { get; set; }
1919

20-
/// <summary>
21-
/// Returns a <see cref="System.String" /> that represents this instance.
22-
/// </summary>
23-
/// <returns>A <see cref="System.String" /> that represents this instance.</returns>
24-
public override string ToString()
25-
{
26-
return $"AddInvoiceResult (referenceId={ReferenceId})";
27-
}
20+
/// <summary>
21+
/// Returns a <see cref="System.String" /> that represents this instance.
22+
/// </summary>
23+
/// <returns>A <see cref="System.String" /> that represents this instance.</returns>
24+
public override string ToString()
25+
{
26+
return $"AddInvoiceResult (referenceId={ReferenceId})";
2827
}
29-
}
28+
}

0 commit comments

Comments
 (0)