Skip to content

Commit e210cff

Browse files
authored
Merge pull request #42 from CyberSource/june-22-release
June 22 release
2 parents 52d293e + 4e85cf1 commit e210cff

File tree

90 files changed

+2395
-189
lines changed

Some content is hidden

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

90 files changed

+2395
-189
lines changed

cybersource-rest-auth-netstandard/AuthenticationSdk/AuthenticationSdk/util/LogUtility.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,27 @@ public string MaskSensitiveData(string str)
4949
{
5050
foreach (KeyValuePair<string, string> tag in sensitiveTags)
5151
{
52+
//removing the space and hypen from PAN details before masking
53+
if (tag.Key.StartsWith("\\\"number\\\"") || tag.Key.StartsWith("\\\"cardNumber\\\"") || tag.Key.StartsWith("\\\"account\\\"")
54+
|| tag.Key.StartsWith("\\\"prefix\\\"") || tag.Key.StartsWith("\\\"bin\\\""))
55+
{
56+
string[] splittedStr = tag.Key.Split(':');
57+
string tagName = splittedStr[0];
58+
string specialPatternForPAN = "(((\\s*[s/-]*\\s*)+)\\p{N}((\\s*[s/-]*\\s*)+))+";
59+
60+
// match the patters for PAN number
61+
MatchCollection matches = Regex.Matches(str, $"{tagName}:\\\"{specialPatternForPAN}\\\"");
62+
63+
//remove space and dash from the all matched pattern
64+
foreach (Match match in matches)
65+
{
66+
String strr = match.ToString();
67+
strr = strr.Replace(" ", "");
68+
strr = strr.Replace("-", "");
69+
//replace original value in str with match
70+
str = str.Replace(match.ToString(), strr);
71+
}
72+
}
5273
str = Regex.Replace(str, tag.Key, tag.Value);
5374
}
5475
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/PtsV2PaymentsPost201ResponseIssuerInformationTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ public void ResponseCodeTest()
9696
{
9797
// TODO unit test for the property 'ResponseCode'
9898
}
99+
/// <summary>
100+
/// Test the property 'ResponseRaw'
101+
/// </summary>
102+
[Test]
103+
public void ResponseRawTest()
104+
{
105+
// TODO unit test for the property 'ResponseRaw'
106+
}
99107

100108
}
101109

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* CyberSource Merged Spec
3+
*
4+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5+
*
6+
* OpenAPI spec version: 0.0.1
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
12+
using NUnit.Framework;
13+
14+
using System;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Collections.Generic;
18+
using CyberSource.Api;
19+
using CyberSource.Model;
20+
using CyberSource.Client;
21+
using System.Reflection;
22+
23+
namespace CyberSource.Test
24+
{
25+
/// <summary>
26+
/// Class for testing PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights
27+
/// </summary>
28+
/// <remarks>
29+
/// This file is automatically generated by Swagger Codegen.
30+
/// Please update the test case below to test the model.
31+
/// </remarks>
32+
[TestFixture]
33+
public class PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsightsTests
34+
{
35+
// TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights
36+
//private PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights instance;
37+
38+
/// <summary>
39+
/// Setup before each test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
// TODO uncomment below to create an instance of PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights
45+
//instance = new PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights();
46+
}
47+
48+
/// <summary>
49+
/// Clean up after each test
50+
/// </summary>
51+
[TearDown]
52+
public void Cleanup()
53+
{
54+
55+
}
56+
57+
/// <summary>
58+
/// Test an instance of PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights
59+
/// </summary>
60+
[Test]
61+
public void PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsightsInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights
64+
//Assert.IsInstanceOfType<PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights> (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'Category'
69+
/// </summary>
70+
[Test]
71+
public void CategoryTest()
72+
{
73+
// TODO unit test for the property 'Category'
74+
}
75+
/// <summary>
76+
/// Test the property 'CategoryCode'
77+
/// </summary>
78+
[Test]
79+
public void CategoryCodeTest()
80+
{
81+
// TODO unit test for the property 'CategoryCode'
82+
}
83+
84+
}
85+
86+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/*
2+
* CyberSource Merged Spec
3+
*
4+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5+
*
6+
* OpenAPI spec version: 0.0.1
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
12+
using NUnit.Framework;
13+
14+
using System;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Collections.Generic;
18+
using CyberSource.Api;
19+
using CyberSource.Model;
20+
using CyberSource.Client;
21+
using System.Reflection;
22+
23+
namespace CyberSource.Test
24+
{
25+
/// <summary>
26+
/// Class for testing PtsV2PaymentsPost201ResponsePaymentInsightsInformation
27+
/// </summary>
28+
/// <remarks>
29+
/// This file is automatically generated by Swagger Codegen.
30+
/// Please update the test case below to test the model.
31+
/// </remarks>
32+
[TestFixture]
33+
public class PtsV2PaymentsPost201ResponsePaymentInsightsInformationTests
34+
{
35+
// TODO uncomment below to declare an instance variable for PtsV2PaymentsPost201ResponsePaymentInsightsInformation
36+
//private PtsV2PaymentsPost201ResponsePaymentInsightsInformation instance;
37+
38+
/// <summary>
39+
/// Setup before each test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
// TODO uncomment below to create an instance of PtsV2PaymentsPost201ResponsePaymentInsightsInformation
45+
//instance = new PtsV2PaymentsPost201ResponsePaymentInsightsInformation();
46+
}
47+
48+
/// <summary>
49+
/// Clean up after each test
50+
/// </summary>
51+
[TearDown]
52+
public void Cleanup()
53+
{
54+
55+
}
56+
57+
/// <summary>
58+
/// Test an instance of PtsV2PaymentsPost201ResponsePaymentInsightsInformation
59+
/// </summary>
60+
[Test]
61+
public void PtsV2PaymentsPost201ResponsePaymentInsightsInformationInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" PtsV2PaymentsPost201ResponsePaymentInsightsInformation
64+
//Assert.IsInstanceOfType<PtsV2PaymentsPost201ResponsePaymentInsightsInformation> (instance, "variable 'instance' is a PtsV2PaymentsPost201ResponsePaymentInsightsInformation");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'ResponseInsights'
69+
/// </summary>
70+
[Test]
71+
public void ResponseInsightsTest()
72+
{
73+
// TODO unit test for the property 'ResponseInsights'
74+
}
75+
76+
}
77+
78+
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/PtsV2PaymentsPost201ResponseTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ public void PaymentInformationTest()
161161
// TODO unit test for the property 'PaymentInformation'
162162
}
163163
/// <summary>
164+
/// Test the property 'PaymentInsightsInformation'
165+
/// </summary>
166+
[Test]
167+
public void PaymentInsightsInformationTest()
168+
{
169+
// TODO unit test for the property 'PaymentInsightsInformation'
170+
}
171+
/// <summary>
164172
/// Test the property 'OrderInformation'
165173
/// </summary>
166174
[Test]

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/Ptsv2paymentsPaymentInformationCardTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ public void ProductNameTest()
176176
{
177177
// TODO unit test for the property 'ProductName'
178178
}
179+
/// <summary>
180+
/// Test the property 'TypeSelectionIndicator'
181+
/// </summary>
182+
[Test]
183+
public void TypeSelectionIndicatorTest()
184+
{
185+
// TODO unit test for the property 'TypeSelectionIndicator'
186+
}
179187

180188
}
181189

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/Ptsv2paymentsPaymentInformationTokenizedCardTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ public void SecurityCodeTest()
144144
{
145145
// TODO unit test for the property 'SecurityCode'
146146
}
147+
/// <summary>
148+
/// Test the property 'SecurityCodeIndicator'
149+
/// </summary>
150+
[Test]
151+
public void SecurityCodeIndicatorTest()
152+
{
153+
// TODO unit test for the property 'SecurityCodeIndicator'
154+
}
147155

148156
}
149157

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/Ptsv2paymentsProcessingInformationTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,14 @@ public void PayByPointsIndicatorTest()
280280
{
281281
// TODO unit test for the property 'PayByPointsIndicator'
282282
}
283+
/// <summary>
284+
/// Test the property 'IsReturnAuthRecordEnabled'
285+
/// </summary>
286+
[Test]
287+
public void IsReturnAuthRecordEnabledTest()
288+
{
289+
// TODO unit test for the property 'IsReturnAuthRecordEnabled'
290+
}
283291

284292
}
285293

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetailsTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,14 @@ public void EventRequestedTimeTest()
240240
{
241241
// TODO unit test for the property 'EventRequestedTime'
242242
}
243+
/// <summary>
244+
/// Test the property 'PreDisputeFlag'
245+
/// </summary>
246+
[Test]
247+
public void PreDisputeFlagTest()
248+
{
249+
// TODO unit test for the property 'PreDisputeFlag'
250+
}
243251

244252
}
245253

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Model/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformationTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,30 @@ public void AuthenticationStatusMsgTest()
9797
// TODO unit test for the property 'AuthenticationStatusMsg'
9898
}
9999
/// <summary>
100+
/// Test the property 'AuthenticationTransactionId'
101+
/// </summary>
102+
[Test]
103+
public void AuthenticationTransactionIdTest()
104+
{
105+
// TODO unit test for the property 'AuthenticationTransactionId'
106+
}
107+
/// <summary>
108+
/// Test the property 'AuthenticationTransactionContextId'
109+
/// </summary>
110+
[Test]
111+
public void AuthenticationTransactionContextIdTest()
112+
{
113+
// TODO unit test for the property 'AuthenticationTransactionContextId'
114+
}
115+
/// <summary>
116+
/// Test the property 'TransactionToken'
117+
/// </summary>
118+
[Test]
119+
public void TransactionTokenTest()
120+
{
121+
// TODO unit test for the property 'TransactionToken'
122+
}
123+
/// <summary>
100124
/// Test the property 'AuthorizationPayload'
101125
/// </summary>
102126
[Test]

0 commit comments

Comments
 (0)