Skip to content

Commit 97ae481

Browse files
Merge pull request #102 from CyberSource/release-oct24
Release oct24
2 parents c427603 + 89edb90 commit 97ae481

File tree

334 files changed

+14515
-5765
lines changed

Some content is hidden

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

334 files changed

+14515
-5765
lines changed

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

+1-1
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.14</Version>
6+
<Version>0.0.1.15</Version>
77
<Authors>CyberSource</Authors>
88
<Product>Authentication_SDK</Product>
99
<Description />

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

+9
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ public MerchantConfig(IReadOnlyDictionary<string, string> merchantConfigDictiona
104104

105105
public string IntermediateHost { get; set; }
106106

107+
public string DefaultDeveloperId { get; set; }
108+
107109
public string KeyAlias { get; set; }
108110

109111
public string KeyPass { get; set; }
@@ -205,6 +207,7 @@ private void SetValuesFromAppConfig(NameValueCollection merchantConfigSection)
205207
KeyfileName = merchantConfigSection["keyFilename"];
206208
RunEnvironment = merchantConfigSection["runEnvironment"];
207209
IntermediateHost = merchantConfigSection["intermediateHost"];
210+
DefaultDeveloperId = merchantConfigSection["defaultDeveloperId"];
208211
EnableClientCert = merchantConfigSection["enableClientCert"];
209212
ClientCertDirectory = merchantConfigSection["clientCertDirectory"];
210213
ClientCertFile = merchantConfigSection["clientCertFile"];
@@ -252,6 +255,12 @@ private void SetValuesUsingDictObj(IReadOnlyDictionary<string, string> merchantC
252255
IntermediateHost = merchantConfigDictionary[key];
253256
}
254257

258+
key = "defaultDeveloperId";
259+
if (merchantConfigDictionary.ContainsKey(key))
260+
{
261+
DefaultDeveloperId = merchantConfigDictionary[key];
262+
}
263+
255264
Enum.TryParse(AuthenticationType.ToUpper(), out Enumerations.AuthenticationType authTypeInput);
256265

257266
if (Equals(authTypeInput, Enumerations.AuthenticationType.HTTP_SIGNATURE))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
using System;
12+
using System.IO;
13+
using System.Collections.Generic;
14+
using System.Collections.ObjectModel;
15+
using System.Linq;
16+
using System.Reflection;
17+
using RestSharp;
18+
using NUnit.Framework;
19+
20+
using CyberSource.Client;
21+
using CyberSource.Api;
22+
using CyberSource.Model;
23+
24+
namespace CyberSource.Test
25+
{
26+
/// <summary>
27+
/// Class for testing OrdersApi
28+
/// </summary>
29+
/// <remarks>
30+
/// This file is automatically generated by Swagger Codegen.
31+
/// Please update the test case below to test the API endpoint.
32+
/// </remarks>
33+
[TestFixture]
34+
public class OrdersApiTests
35+
{
36+
private OrdersApi instance;
37+
38+
/// <summary>
39+
/// Setup before each unit test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
instance = new OrdersApi();
45+
}
46+
47+
/// <summary>
48+
/// Clean up after each unit test
49+
/// </summary>
50+
[TearDown]
51+
public void Cleanup()
52+
{
53+
54+
}
55+
56+
/// <summary>
57+
/// Test an instance of OrdersApi
58+
/// </summary>
59+
[Test]
60+
public void InstanceTest()
61+
{
62+
// TODO uncomment below to test 'IsInstanceOfType' OrdersApi
63+
//Assert.IsInstanceOfType(typeof(OrdersApi), instance, "instance is a OrdersApi");
64+
}
65+
66+
67+
/// <summary>
68+
/// Test CreateOrder
69+
/// </summary>
70+
[Test]
71+
public void CreateOrderTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//CreateOrderRequest createOrderRequest = null;
75+
//var response = instance.CreateOrder(createOrderRequest);
76+
//Assert.IsInstanceOf<PtsV2CreateOrderPost201Response> (response, "response is PtsV2CreateOrderPost201Response");
77+
}
78+
79+
/// <summary>
80+
/// Test UpdateOrder
81+
/// </summary>
82+
[Test]
83+
public void UpdateOrderTest()
84+
{
85+
// TODO uncomment below to test the method and replace null with proper value
86+
//string id = null;
87+
//UpdateOrderRequest updateOrderRequest = null;
88+
//var response = instance.UpdateOrder(id, updateOrderRequest);
89+
//Assert.IsInstanceOf<PtsV2UpdateOrderPatch201Response> (response, "response is PtsV2UpdateOrderPatch201Response");
90+
}
91+
92+
}
93+
94+
}
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 CreateOrderRequest
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 CreateOrderRequestTests
34+
{
35+
// TODO uncomment below to declare an instance variable for CreateOrderRequest
36+
//private CreateOrderRequest 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 CreateOrderRequest
45+
//instance = new CreateOrderRequest();
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 CreateOrderRequest
59+
/// </summary>
60+
[Test]
61+
public void CreateOrderRequestInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" CreateOrderRequest
64+
//Assert.IsInstanceOfType<CreateOrderRequest> (instance, "variable 'instance' is a CreateOrderRequest");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'ClientReferenceInformation'
69+
/// </summary>
70+
[Test]
71+
public void ClientReferenceInformationTest()
72+
{
73+
// TODO unit test for the property 'ClientReferenceInformation'
74+
}
75+
/// <summary>
76+
/// Test the property 'ProcessingInformation'
77+
/// </summary>
78+
[Test]
79+
public void ProcessingInformationTest()
80+
{
81+
// TODO unit test for the property 'ProcessingInformation'
82+
}
83+
/// <summary>
84+
/// Test the property 'MerchantInformation'
85+
/// </summary>
86+
[Test]
87+
public void MerchantInformationTest()
88+
{
89+
// TODO unit test for the property 'MerchantInformation'
90+
}
91+
/// <summary>
92+
/// Test the property 'PaymentInformation'
93+
/// </summary>
94+
[Test]
95+
public void PaymentInformationTest()
96+
{
97+
// TODO unit test for the property 'PaymentInformation'
98+
}
99+
/// <summary>
100+
/// Test the property 'OrderInformation'
101+
/// </summary>
102+
[Test]
103+
public void OrderInformationTest()
104+
{
105+
// TODO unit test for the property 'OrderInformation'
106+
}
107+
108+
}
109+
110+
}
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@
2323
namespace CyberSource.Test
2424
{
2525
/// <summary>
26-
/// Class for testing TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
26+
/// Class for testing PtsV2CreateOrderPost201ResponseBuyerInformation
2727
/// </summary>
2828
/// <remarks>
2929
/// This file is automatically generated by Swagger Codegen.
3030
/// Please update the test case below to test the model.
3131
/// </remarks>
3232
[TestFixture]
33-
public class TssV2TransactionsPost201ResponseEmbeddedBuyerInformationTests
33+
public class PtsV2CreateOrderPost201ResponseBuyerInformationTests
3434
{
35-
// TODO uncomment below to declare an instance variable for TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
36-
//private TssV2TransactionsPost201ResponseEmbeddedBuyerInformation instance;
35+
// TODO uncomment below to declare an instance variable for PtsV2CreateOrderPost201ResponseBuyerInformation
36+
//private PtsV2CreateOrderPost201ResponseBuyerInformation instance;
3737

3838
/// <summary>
3939
/// Setup before each test
4040
/// </summary>
4141
[SetUp]
4242
public void Init()
4343
{
44-
// TODO uncomment below to create an instance of TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
45-
//instance = new TssV2TransactionsPost201ResponseEmbeddedBuyerInformation();
44+
// TODO uncomment below to create an instance of PtsV2CreateOrderPost201ResponseBuyerInformation
45+
//instance = new PtsV2CreateOrderPost201ResponseBuyerInformation();
4646
}
4747

4848
/// <summary>
@@ -55,13 +55,13 @@ public void Cleanup()
5555
}
5656

5757
/// <summary>
58-
/// Test an instance of TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
58+
/// Test an instance of PtsV2CreateOrderPost201ResponseBuyerInformation
5959
/// </summary>
6060
[Test]
61-
public void TssV2TransactionsPost201ResponseEmbeddedBuyerInformationInstanceTest()
61+
public void PtsV2CreateOrderPost201ResponseBuyerInformationInstanceTest()
6262
{
63-
// TODO uncomment below to test "IsInstanceOfType" TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
64-
//Assert.IsInstanceOfType<TssV2TransactionsPost201ResponseEmbeddedBuyerInformation> (instance, "variable 'instance' is a TssV2TransactionsPost201ResponseEmbeddedBuyerInformation");
63+
// TODO uncomment below to test "IsInstanceOfType" PtsV2CreateOrderPost201ResponseBuyerInformation
64+
//Assert.IsInstanceOfType<PtsV2CreateOrderPost201ResponseBuyerInformation> (instance, "variable 'instance' is a PtsV2CreateOrderPost201ResponseBuyerInformation");
6565
}
6666

6767
/// <summary>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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 PtsV2CreateOrderPost201ResponseProcessorInformation
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 PtsV2CreateOrderPost201ResponseProcessorInformationTests
34+
{
35+
// TODO uncomment below to declare an instance variable for PtsV2CreateOrderPost201ResponseProcessorInformation
36+
//private PtsV2CreateOrderPost201ResponseProcessorInformation 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 PtsV2CreateOrderPost201ResponseProcessorInformation
45+
//instance = new PtsV2CreateOrderPost201ResponseProcessorInformation();
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 PtsV2CreateOrderPost201ResponseProcessorInformation
59+
/// </summary>
60+
[Test]
61+
public void PtsV2CreateOrderPost201ResponseProcessorInformationInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" PtsV2CreateOrderPost201ResponseProcessorInformation
64+
//Assert.IsInstanceOfType<PtsV2CreateOrderPost201ResponseProcessorInformation> (instance, "variable 'instance' is a PtsV2CreateOrderPost201ResponseProcessorInformation");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'TransactionId'
69+
/// </summary>
70+
[Test]
71+
public void TransactionIdTest()
72+
{
73+
// TODO unit test for the property 'TransactionId'
74+
}
75+
/// <summary>
76+
/// Test the property 'NetworkTransactionId'
77+
/// </summary>
78+
[Test]
79+
public void NetworkTransactionIdTest()
80+
{
81+
// TODO unit test for the property 'NetworkTransactionId'
82+
}
83+
/// <summary>
84+
/// Test the property 'PaymentUrl'
85+
/// </summary>
86+
[Test]
87+
public void PaymentUrlTest()
88+
{
89+
// TODO unit test for the property 'PaymentUrl'
90+
}
91+
92+
}
93+
94+
}

0 commit comments

Comments
 (0)