Skip to content

Commit 8221f9f

Browse files
authored
Merge pull request #55 from CyberSource/march-changes
March changes
2 parents 4d51cd0 + 45c8731 commit 8221f9f

File tree

661 files changed

+52234
-13847
lines changed

Some content is hidden

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

661 files changed

+52234
-13847
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.9</Version>
6+
<Version>0.0.1.10</Version>
77
<Authors>CyberSource</Authors>
88
<Product>Authentication_SDK</Product>
99
<Description />

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public MerchantConfig(IReadOnlyDictionary<string, string> merchantConfigDictiona
102102

103103
public string RunEnvironment { get; set; }
104104

105+
public string IntermediateHost { get; set; }
106+
105107
public string KeyAlias { get; set; }
106108

107109
public string KeyPass { get; set; }
@@ -200,6 +202,7 @@ private void SetValuesFromAppConfig(NameValueCollection merchantConfigSection)
200202
KeyDirectory = merchantConfigSection["keysDirectory"];
201203
KeyfileName = merchantConfigSection["keyFilename"];
202204
RunEnvironment = merchantConfigSection["runEnvironment"];
205+
IntermediateHost = merchantConfigSection["intermediateHost"];
203206
EnableClientCert = merchantConfigSection["enableClientCert"];
204207
ClientCertDirectory = merchantConfigSection["clientCertDirectory"];
205208
ClientCertFile = merchantConfigSection["clientCertFile"];
@@ -240,6 +243,11 @@ private void SetValuesUsingDictObj(IReadOnlyDictionary<string, string> merchantC
240243
UseMetaKey = "false";
241244
}
242245
}
246+
key = "intermediateHost";
247+
if (merchantConfigDictionary.ContainsKey(key))
248+
{
249+
IntermediateHost = merchantConfigDictionary[key];
250+
}
243251

244252
Enum.TryParse(AuthenticationType.ToUpper(), out Enumerations.AuthenticationType authTypeInput);
245253

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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 BatchesApi
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 BatchesApiTests
35+
{
36+
private BatchesApi instance;
37+
38+
/// <summary>
39+
/// Setup before each unit test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
instance = new BatchesApi();
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 BatchesApi
58+
/// </summary>
59+
[Test]
60+
public void InstanceTest()
61+
{
62+
// TODO uncomment below to test 'IsInstanceOfType' BatchesApi
63+
//Assert.IsInstanceOfType(typeof(BatchesApi), instance, "instance is a BatchesApi");
64+
}
65+
66+
67+
/// <summary>
68+
/// Test GetBatchReport
69+
/// </summary>
70+
[Test]
71+
public void GetBatchReportTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//string batchId = null;
75+
//var response = instance.GetBatchReport(batchId);
76+
//Assert.IsInstanceOf<InlineResponse20014> (response, "response is InlineResponse20014");
77+
}
78+
79+
/// <summary>
80+
/// Test GetBatchStatus
81+
/// </summary>
82+
[Test]
83+
public void GetBatchStatusTest()
84+
{
85+
// TODO uncomment below to test the method and replace null with proper value
86+
//string batchId = null;
87+
//var response = instance.GetBatchStatus(batchId);
88+
//Assert.IsInstanceOf<InlineResponse20013> (response, "response is InlineResponse20013");
89+
}
90+
91+
/// <summary>
92+
/// Test GetBatchesList
93+
/// </summary>
94+
[Test]
95+
public void GetBatchesListTest()
96+
{
97+
// TODO uncomment below to test the method and replace null with proper value
98+
//long? offset = null;
99+
//long? limit = null;
100+
//string fromDate = null;
101+
//string toDate = null;
102+
//var response = instance.GetBatchesList(offset, limit, fromDate, toDate);
103+
//Assert.IsInstanceOf<InlineResponse20012> (response, "response is InlineResponse20012");
104+
}
105+
106+
/// <summary>
107+
/// Test PostBatch
108+
/// </summary>
109+
[Test]
110+
public void PostBatchTest()
111+
{
112+
// TODO uncomment below to test the method and replace null with proper value
113+
//Body body = null;
114+
//var response = instance.PostBatch(body);
115+
//Assert.IsInstanceOf<InlineResponse2022> (response, "response is InlineResponse2022");
116+
}
117+
118+
}
119+
120+
}

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Api/CustomerApiTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public void InstanceTest()
7171
public void DeleteCustomerTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
74-
//string customerTokenId = null;
74+
//string customerId = null;
7575
//string profileId = null;
76-
//instance.DeleteCustomer(customerTokenId, profileId);
76+
//instance.DeleteCustomer(customerId, profileId);
7777

7878
}
7979

@@ -84,9 +84,9 @@ public void DeleteCustomerTest()
8484
public void GetCustomerTest()
8585
{
8686
// TODO uncomment below to test the method and replace null with proper value
87-
//string customerTokenId = null;
87+
//string customerId = null;
8888
//string profileId = null;
89-
//var response = instance.GetCustomer(customerTokenId, profileId);
89+
//var response = instance.GetCustomer(customerId, profileId);
9090
//Assert.IsInstanceOf<TmsV2CustomersResponse> (response, "response is TmsV2CustomersResponse");
9191
}
9292

@@ -97,11 +97,11 @@ public void GetCustomerTest()
9797
public void PatchCustomerTest()
9898
{
9999
// TODO uncomment below to test the method and replace null with proper value
100-
//string customerTokenId = null;
100+
//string customerId = null;
101101
//PatchCustomerRequest patchCustomerRequest = null;
102102
//string profileId = null;
103103
//string ifMatch = null;
104-
//var response = instance.PatchCustomer(customerTokenId, patchCustomerRequest, profileId, ifMatch);
104+
//var response = instance.PatchCustomer(customerId, patchCustomerRequest, profileId, ifMatch);
105105
//Assert.IsInstanceOf<TmsV2CustomersResponse> (response, "response is TmsV2CustomersResponse");
106106
}
107107

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Api/CustomerPaymentInstrumentApiTests.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public void InstanceTest()
7171
public void DeleteCustomerPaymentInstrumentTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
74-
//string customerTokenId = null;
75-
//string paymentInstrumentTokenId = null;
74+
//string customerId = null;
75+
//string paymentInstrumentId = null;
7676
//string profileId = null;
77-
//instance.DeleteCustomerPaymentInstrument(customerTokenId, paymentInstrumentTokenId, profileId);
77+
//instance.DeleteCustomerPaymentInstrument(customerId, paymentInstrumentId, profileId);
7878

7979
}
8080

@@ -85,10 +85,10 @@ public void DeleteCustomerPaymentInstrumentTest()
8585
public void GetCustomerPaymentInstrumentTest()
8686
{
8787
// TODO uncomment below to test the method and replace null with proper value
88-
//string customerTokenId = null;
89-
//string paymentInstrumentTokenId = null;
88+
//string customerId = null;
89+
//string paymentInstrumentId = null;
9090
//string profileId = null;
91-
//var response = instance.GetCustomerPaymentInstrument(customerTokenId, paymentInstrumentTokenId, profileId);
91+
//var response = instance.GetCustomerPaymentInstrument(customerId, paymentInstrumentId, profileId);
9292
//Assert.IsInstanceOf<Tmsv2customersEmbeddedDefaultPaymentInstrument> (response, "response is Tmsv2customersEmbeddedDefaultPaymentInstrument");
9393
}
9494

@@ -99,11 +99,11 @@ public void GetCustomerPaymentInstrumentTest()
9999
public void GetCustomerPaymentInstrumentsListTest()
100100
{
101101
// TODO uncomment below to test the method and replace null with proper value
102-
//string customerTokenId = null;
102+
//string customerId = null;
103103
//string profileId = null;
104104
//long? offset = null;
105105
//long? limit = null;
106-
//var response = instance.GetCustomerPaymentInstrumentsList(customerTokenId, profileId, offset, limit);
106+
//var response = instance.GetCustomerPaymentInstrumentsList(customerId, profileId, offset, limit);
107107
//Assert.IsInstanceOf<PaymentInstrumentList> (response, "response is PaymentInstrumentList");
108108
}
109109

@@ -114,12 +114,12 @@ public void GetCustomerPaymentInstrumentsListTest()
114114
public void PatchCustomersPaymentInstrumentTest()
115115
{
116116
// TODO uncomment below to test the method and replace null with proper value
117-
//string customerTokenId = null;
118-
//string paymentInstrumentTokenId = null;
117+
//string customerId = null;
118+
//string paymentInstrumentId = null;
119119
//PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest = null;
120120
//string profileId = null;
121121
//string ifMatch = null;
122-
//var response = instance.PatchCustomersPaymentInstrument(customerTokenId, paymentInstrumentTokenId, patchCustomerPaymentInstrumentRequest, profileId, ifMatch);
122+
//var response = instance.PatchCustomersPaymentInstrument(customerId, paymentInstrumentId, patchCustomerPaymentInstrumentRequest, profileId, ifMatch);
123123
//Assert.IsInstanceOf<Tmsv2customersEmbeddedDefaultPaymentInstrument> (response, "response is Tmsv2customersEmbeddedDefaultPaymentInstrument");
124124
}
125125

@@ -130,10 +130,10 @@ public void PatchCustomersPaymentInstrumentTest()
130130
public void PostCustomerPaymentInstrumentTest()
131131
{
132132
// TODO uncomment below to test the method and replace null with proper value
133-
//string customerTokenId = null;
133+
//string customerId = null;
134134
//PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest = null;
135135
//string profileId = null;
136-
//var response = instance.PostCustomerPaymentInstrument(customerTokenId, postCustomerPaymentInstrumentRequest, profileId);
136+
//var response = instance.PostCustomerPaymentInstrument(customerId, postCustomerPaymentInstrumentRequest, profileId);
137137
//Assert.IsInstanceOf<Tmsv2customersEmbeddedDefaultPaymentInstrument> (response, "response is Tmsv2customersEmbeddedDefaultPaymentInstrument");
138138
}
139139

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard.Test/Api/CustomerShippingAddressApiTests.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public void InstanceTest()
7171
public void DeleteCustomerShippingAddressTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
74-
//string customerTokenId = null;
75-
//string shippingAddressTokenId = null;
74+
//string customerId = null;
75+
//string shippingAddressId = null;
7676
//string profileId = null;
77-
//instance.DeleteCustomerShippingAddress(customerTokenId, shippingAddressTokenId, profileId);
77+
//instance.DeleteCustomerShippingAddress(customerId, shippingAddressId, profileId);
7878

7979
}
8080

@@ -85,10 +85,10 @@ public void DeleteCustomerShippingAddressTest()
8585
public void GetCustomerShippingAddressTest()
8686
{
8787
// TODO uncomment below to test the method and replace null with proper value
88-
//string customerTokenId = null;
89-
//string shippingAddressTokenId = null;
88+
//string customerId = null;
89+
//string shippingAddressId = null;
9090
//string profileId = null;
91-
//var response = instance.GetCustomerShippingAddress(customerTokenId, shippingAddressTokenId, profileId);
91+
//var response = instance.GetCustomerShippingAddress(customerId, shippingAddressId, profileId);
9292
//Assert.IsInstanceOf<Tmsv2customersEmbeddedDefaultShippingAddress> (response, "response is Tmsv2customersEmbeddedDefaultShippingAddress");
9393
}
9494

@@ -99,11 +99,11 @@ public void GetCustomerShippingAddressTest()
9999
public void GetCustomerShippingAddressesListTest()
100100
{
101101
// TODO uncomment below to test the method and replace null with proper value
102-
//string customerTokenId = null;
102+
//string customerId = null;
103103
//string profileId = null;
104104
//long? offset = null;
105105
//long? limit = null;
106-
//var response = instance.GetCustomerShippingAddressesList(customerTokenId, profileId, offset, limit);
106+
//var response = instance.GetCustomerShippingAddressesList(customerId, profileId, offset, limit);
107107
//Assert.IsInstanceOf<ShippingAddressListForCustomer> (response, "response is ShippingAddressListForCustomer");
108108
}
109109

@@ -114,12 +114,12 @@ public void GetCustomerShippingAddressesListTest()
114114
public void PatchCustomersShippingAddressTest()
115115
{
116116
// TODO uncomment below to test the method and replace null with proper value
117-
//string customerTokenId = null;
118-
//string shippingAddressTokenId = null;
117+
//string customerId = null;
118+
//string shippingAddressId = null;
119119
//PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest = null;
120120
//string profileId = null;
121121
//string ifMatch = null;
122-
//var response = instance.PatchCustomersShippingAddress(customerTokenId, shippingAddressTokenId, patchCustomerShippingAddressRequest, profileId, ifMatch);
122+
//var response = instance.PatchCustomersShippingAddress(customerId, shippingAddressId, patchCustomerShippingAddressRequest, profileId, ifMatch);
123123
//Assert.IsInstanceOf<Tmsv2customersEmbeddedDefaultShippingAddress> (response, "response is Tmsv2customersEmbeddedDefaultShippingAddress");
124124
}
125125

@@ -130,10 +130,10 @@ public void PatchCustomersShippingAddressTest()
130130
public void PostCustomerShippingAddressTest()
131131
{
132132
// TODO uncomment below to test the method and replace null with proper value
133-
//string customerTokenId = null;
133+
//string customerId = null;
134134
//PostCustomerShippingAddressRequest postCustomerShippingAddressRequest = null;
135135
//string profileId = null;
136-
//var response = instance.PostCustomerShippingAddress(customerTokenId, postCustomerShippingAddressRequest, profileId);
136+
//var response = instance.PostCustomerShippingAddress(customerId, postCustomerShippingAddressRequest, profileId);
137137
//Assert.IsInstanceOf<Tmsv2customersEmbeddedDefaultShippingAddress> (response, "response is Tmsv2customersEmbeddedDefaultShippingAddress");
138138
}
139139

0 commit comments

Comments
 (0)