Skip to content

Commit 4ac46b3

Browse files
authored
Merge pull request #47 from CyberSource/jwt-paths
September 2022 Changes
2 parents 1aaf192 + 6d510ac commit 4ac46b3

File tree

62 files changed

+1717
-102
lines changed

Some content is hidden

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

62 files changed

+1717
-102
lines changed

cybersource-rest-auth-netstandard/AuthenticationSdk/AuthenticationSdk/AuthenticationSdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<Version>0.0.1.8</Version>
6+
<Version>0.0.1.9</Version>
77
<Authors>CyberSource</Authors>
88
<Product>Authentication_SDK</Product>
99
<Description />

cybersource-rest-auth-netstandard/AuthenticationSdk/AuthenticationSdk/core/MerchantConfig.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.Collections.Specialized;
44
using System.Configuration;
5+
using System.IO;
56
using System.Linq;
67
using AuthenticationSdk.util;
78
using NLog;
@@ -516,7 +517,9 @@ private void ValidateProperties()
516517
throw new Exception($"{Constants.WarningPrefix} KeyfileName not provided. Assigning the value of: [MerchantId]");
517518
}
518519

519-
P12Keyfilepath = KeyDirectory + "\\" + KeyfileName + ".p12";
520+
var pathDirectorySeparator = Path.DirectorySeparatorChar;
521+
522+
P12Keyfilepath = $"{KeyDirectory}{pathDirectorySeparator}{KeyfileName}.p12";
520523
}
521524
}
522525
}

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

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

100108
}
101109

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
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 InlineResponse502
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 InlineResponse502Tests
34+
{
35+
// TODO uncomment below to declare an instance variable for InlineResponse502
36+
//private InlineResponse502 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 InlineResponse502
45+
//instance = new InlineResponse502();
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 InlineResponse502
59+
/// </summary>
60+
[Test]
61+
public void InlineResponse502InstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" InlineResponse502
64+
//Assert.IsInstanceOfType<InlineResponse502> (instance, "variable 'instance' is a InlineResponse502");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'SubmitTimeUtc'
69+
/// </summary>
70+
[Test]
71+
public void SubmitTimeUtcTest()
72+
{
73+
// TODO unit test for the property 'SubmitTimeUtc'
74+
}
75+
/// <summary>
76+
/// Test the property 'Status'
77+
/// </summary>
78+
[Test]
79+
public void StatusTest()
80+
{
81+
// TODO unit test for the property 'Status'
82+
}
83+
/// <summary>
84+
/// Test the property 'Reason'
85+
/// </summary>
86+
[Test]
87+
public void ReasonTest()
88+
{
89+
// TODO unit test for the property 'Reason'
90+
}
91+
/// <summary>
92+
/// Test the property 'Message'
93+
/// </summary>
94+
[Test]
95+
public void MessageTest()
96+
{
97+
// TODO unit test for the property 'Message'
98+
}
99+
/// <summary>
100+
/// Test the property 'StatusCode'
101+
/// </summary>
102+
[Test]
103+
public void StatusCodeTest()
104+
{
105+
// TODO unit test for the property 'StatusCode'
106+
}
107+
108+
}
109+
110+
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ public void OrganizationIdTest()
7373
// TODO unit test for the property 'OrganizationId'
7474
}
7575
/// <summary>
76+
/// Test the property 'ExternalOrganizationId'
77+
/// </summary>
78+
[Test]
79+
public void ExternalOrganizationIdTest()
80+
{
81+
// TODO unit test for the property 'ExternalOrganizationId'
82+
}
83+
/// <summary>
7684
/// Test the property 'ReferenceNumber'
7785
/// </summary>
7886
[Test]

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ public void OrderInformationTest()
8888
{
8989
// TODO unit test for the property 'OrderInformation'
9090
}
91+
/// <summary>
92+
/// Test the property 'ProcessingInformation'
93+
/// </summary>
94+
[Test]
95+
public void ProcessingInformationTest()
96+
{
97+
// TODO unit test for the property 'ProcessingInformation'
98+
}
9199

92100
}
93101

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ public void TerminalSerialNumberTest()
8181
// TODO unit test for the property 'TerminalSerialNumber'
8282
}
8383
/// <summary>
84+
/// Test the property 'CardholderVerificationMethodUsed'
85+
/// </summary>
86+
[Test]
87+
public void CardholderVerificationMethodUsedTest()
88+
{
89+
// TODO unit test for the property 'CardholderVerificationMethodUsed'
90+
}
91+
/// <summary>
8492
/// Test the property 'LaneNumber'
8593
/// </summary>
8694
[Test]

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@ public void DeferredAuthIndicatorTest()
208208
{
209209
// TODO unit test for the property 'DeferredAuthIndicator'
210210
}
211+
/// <summary>
212+
/// Test the property 'CashAdvanceIndicator'
213+
/// </summary>
214+
[Test]
215+
public void CashAdvanceIndicatorTest()
216+
{
217+
// TODO unit test for the property 'CashAdvanceIndicator'
218+
}
211219

212220
}
213221

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,54 @@ public void PaymentMethodTest()
7373
// TODO unit test for the property 'PaymentMethod'
7474
}
7575
/// <summary>
76+
/// Test the property 'Bonuses'
77+
/// </summary>
78+
[Test]
79+
public void BonusesTest()
80+
{
81+
// TODO unit test for the property 'Bonuses'
82+
}
83+
/// <summary>
84+
/// Test the property 'BonusMonth'
85+
/// </summary>
86+
[Test]
87+
public void BonusMonthTest()
88+
{
89+
// TODO unit test for the property 'BonusMonth'
90+
}
91+
/// <summary>
92+
/// Test the property 'SecondBonusMonth'
93+
/// </summary>
94+
[Test]
95+
public void SecondBonusMonthTest()
96+
{
97+
// TODO unit test for the property 'SecondBonusMonth'
98+
}
99+
/// <summary>
100+
/// Test the property 'BonusAmount'
101+
/// </summary>
102+
[Test]
103+
public void BonusAmountTest()
104+
{
105+
// TODO unit test for the property 'BonusAmount'
106+
}
107+
/// <summary>
108+
/// Test the property 'SecondBonusAmount'
109+
/// </summary>
110+
[Test]
111+
public void SecondBonusAmountTest()
112+
{
113+
// TODO unit test for the property 'SecondBonusAmount'
114+
}
115+
/// <summary>
116+
/// Test the property 'PreapprovalType'
117+
/// </summary>
118+
[Test]
119+
public void PreapprovalTypeTest()
120+
{
121+
// TODO unit test for the property 'PreapprovalType'
122+
}
123+
/// <summary>
76124
/// Test the property 'Installments'
77125
/// </summary>
78126
[Test]

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ public void CommerceIndicatorTest()
113113
// TODO unit test for the property 'CommerceIndicator'
114114
}
115115
/// <summary>
116+
/// Test the property 'CommerceIndicatorLabel'
117+
/// </summary>
118+
[Test]
119+
public void CommerceIndicatorLabelTest()
120+
{
121+
// TODO unit test for the property 'CommerceIndicatorLabel'
122+
}
123+
/// <summary>
116124
/// Test the property 'PaymentSolution'
117125
/// </summary>
118126
[Test]
@@ -145,6 +153,14 @@ public void PurchaseLevelTest()
145153
// TODO unit test for the property 'PurchaseLevel'
146154
}
147155
/// <summary>
156+
/// Test the property 'PaymentId'
157+
/// </summary>
158+
[Test]
159+
public void PaymentIdTest()
160+
{
161+
// TODO unit test for the property 'PaymentId'
162+
}
163+
/// <summary>
148164
/// Test the property 'ReportGroup'
149165
/// </summary>
150166
[Test]

0 commit comments

Comments
 (0)