Skip to content

Commit 40c2a8a

Browse files
Merge pull request #81 from CyberSource/release-march24
March Release 24
2 parents 8375c2c + 2288df4 commit 40c2a8a

File tree

503 files changed

+37056
-981
lines changed

Some content is hidden

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

503 files changed

+37056
-981
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void BillingAgreementsDeRegistrationTest()
7474
//ModifyBillingAgreement modifyBillingAgreement = null;
7575
//string id = null;
7676
//var response = instance.BillingAgreementsDeRegistration(modifyBillingAgreement, id);
77-
//Assert.IsInstanceOf<PtsV2CreditsPost201Response1> (response, "response is PtsV2CreditsPost201Response1");
77+
//Assert.IsInstanceOf<PtsV2ModifyBillingAgreementPost201Response> (response, "response is PtsV2ModifyBillingAgreementPost201Response");
7878
}
7979

8080
/// <summary>
@@ -99,7 +99,7 @@ public void BillingAgreementsRegistrationTest()
9999
// TODO uncomment below to test the method and replace null with proper value
100100
//CreateBillingAgreement createBillingAgreement = null;
101101
//var response = instance.BillingAgreementsRegistration(createBillingAgreement);
102-
//Assert.IsInstanceOf<PtsV2CreditsPost201Response1> (response, "response is PtsV2CreditsPost201Response1");
102+
//Assert.IsInstanceOf<PtsV2CreateBillingAgreementPost201Response> (response, "response is PtsV2CreateBillingAgreementPost201Response");
103103
}
104104

105105
}

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

+38
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ public void InstanceTest()
6464
}
6565

6666

67+
/// <summary>
68+
/// Test CreateOrderRequest
69+
/// </summary>
70+
[Test]
71+
public void CreateOrderRequestTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//OrderPaymentRequest orderPaymentRequest = null;
75+
//string id = null;
76+
//var response = instance.CreateOrderRequest(orderPaymentRequest, id);
77+
//Assert.IsInstanceOf<PtsV2PaymentsOrderPost201Response> (response, "response is PtsV2PaymentsOrderPost201Response");
78+
}
79+
6780
/// <summary>
6881
/// Test CreatePayment
6982
/// </summary>
@@ -76,6 +89,18 @@ public void CreatePaymentTest()
7689
//Assert.IsInstanceOf<PtsV2PaymentsPost201Response> (response, "response is PtsV2PaymentsPost201Response");
7790
}
7891

92+
/// <summary>
93+
/// Test CreateSessionRequest
94+
/// </summary>
95+
[Test]
96+
public void CreateSessionRequestTest()
97+
{
98+
// TODO uncomment below to test the method and replace null with proper value
99+
//CreateSessionReq createSessionReq = null;
100+
//var response = instance.CreateSessionRequest(createSessionReq);
101+
//Assert.IsInstanceOf<PtsV2PaymentsPost201Response2> (response, "response is PtsV2PaymentsPost201Response2");
102+
}
103+
79104
/// <summary>
80105
/// Test IncrementAuth
81106
/// </summary>
@@ -102,6 +127,19 @@ public void RefreshPaymentStatusTest()
102127
//Assert.IsInstanceOf<PtsV2PaymentsPost201Response1> (response, "response is PtsV2PaymentsPost201Response1");
103128
}
104129

130+
/// <summary>
131+
/// Test UpdateSessionReq
132+
/// </summary>
133+
[Test]
134+
public void UpdateSessionReqTest()
135+
{
136+
// TODO uncomment below to test the method and replace null with proper value
137+
//CreateSessionRequest createSessionRequest = null;
138+
//string id = null;
139+
//var response = instance.UpdateSessionReq(createSessionRequest, id);
140+
//Assert.IsInstanceOf<PtsV2PaymentsPost201Response2> (response, "response is PtsV2PaymentsPost201Response2");
141+
}
142+
105143
}
106144

107145
}

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

+12
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ public void InstanceTest()
6363
}
6464

6565

66+
/// <summary>
67+
/// Test GetPaymentCredentialsForTransientToken
68+
/// </summary>
69+
[Test]
70+
public void GetPaymentCredentialsForTransientTokenTest()
71+
{
72+
// TODO uncomment below to test the method and replace null with proper value
73+
//string jti = null;
74+
//var response = instance.GetPaymentCredentialsForTransientToken(jti);
75+
//Assert.IsInstanceOf<string> (response, "response is string");
76+
}
77+
6678
/// <summary>
6779
/// Test GetTransactionForTransientToken
6880
/// </summary>

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

+16
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,22 @@ public void PointOfSaleInformationTest()
104104
{
105105
// TODO unit test for the property 'PointOfSaleInformation'
106106
}
107+
/// <summary>
108+
/// Test the property 'PaymentInformation'
109+
/// </summary>
110+
[Test]
111+
public void PaymentInformationTest()
112+
{
113+
// TODO unit test for the property 'PaymentInformation'
114+
}
115+
/// <summary>
116+
/// Test the property 'ProcessorInformation'
117+
/// </summary>
118+
[Test]
119+
public void ProcessorInformationTest()
120+
{
121+
// TODO unit test for the property 'ProcessorInformation'
122+
}
107123

108124
}
109125

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

+16
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ public void CreateBillingAgreementInstanceTest()
6464
//Assert.IsInstanceOfType<CreateBillingAgreement> (instance, "variable 'instance' is a CreateBillingAgreement");
6565
}
6666

67+
/// <summary>
68+
/// Test the property 'AgreementInformation'
69+
/// </summary>
70+
[Test]
71+
public void AgreementInformationTest()
72+
{
73+
// TODO unit test for the property 'AgreementInformation'
74+
}
6775
/// <summary>
6876
/// Test the property 'ClientReferenceInformation'
6977
/// </summary>
@@ -136,6 +144,14 @@ public void ProcessingInformationTest()
136144
{
137145
// TODO unit test for the property 'ProcessingInformation'
138146
}
147+
/// <summary>
148+
/// Test the property 'BuyerInformation'
149+
/// </summary>
150+
[Test]
151+
public void BuyerInformationTest()
152+
{
153+
// TODO unit test for the property 'BuyerInformation'
154+
}
139155

140156
}
141157

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

+8
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,14 @@ public void ProcessorInformationTest()
233233
// TODO unit test for the property 'ProcessorInformation'
234234
}
235235
/// <summary>
236+
/// Test the property 'AgreementInformation'
237+
/// </summary>
238+
[Test]
239+
public void AgreementInformationTest()
240+
{
241+
// TODO unit test for the property 'AgreementInformation'
242+
}
243+
/// <summary>
236244
/// Test the property 'RiskInformation'
237245
/// </summary>
238246
[Test]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
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 CreateSessionReq
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 CreateSessionReqTests
34+
{
35+
// TODO uncomment below to declare an instance variable for CreateSessionReq
36+
//private CreateSessionReq 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 CreateSessionReq
45+
//instance = new CreateSessionReq();
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 CreateSessionReq
59+
/// </summary>
60+
[Test]
61+
public void CreateSessionReqInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" CreateSessionReq
64+
//Assert.IsInstanceOfType<CreateSessionReq> (instance, "variable 'instance' is a CreateSessionReq");
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 'PaymentInformation'
85+
/// </summary>
86+
[Test]
87+
public void PaymentInformationTest()
88+
{
89+
// TODO unit test for the property 'PaymentInformation'
90+
}
91+
/// <summary>
92+
/// Test the property 'OrderInformation'
93+
/// </summary>
94+
[Test]
95+
public void OrderInformationTest()
96+
{
97+
// TODO unit test for the property 'OrderInformation'
98+
}
99+
/// <summary>
100+
/// Test the property 'BuyerInformation'
101+
/// </summary>
102+
[Test]
103+
public void BuyerInformationTest()
104+
{
105+
// TODO unit test for the property 'BuyerInformation'
106+
}
107+
/// <summary>
108+
/// Test the property 'DeviceInformation'
109+
/// </summary>
110+
[Test]
111+
public void DeviceInformationTest()
112+
{
113+
// TODO unit test for the property 'DeviceInformation'
114+
}
115+
/// <summary>
116+
/// Test the property 'MerchantInformation'
117+
/// </summary>
118+
[Test]
119+
public void MerchantInformationTest()
120+
{
121+
// TODO unit test for the property 'MerchantInformation'
122+
}
123+
/// <summary>
124+
/// Test the property 'UserInterface'
125+
/// </summary>
126+
[Test]
127+
public void UserInterfaceTest()
128+
{
129+
// TODO unit test for the property 'UserInterface'
130+
}
131+
/// <summary>
132+
/// Test the property 'MerchantDefinedInformation'
133+
/// </summary>
134+
[Test]
135+
public void MerchantDefinedInformationTest()
136+
{
137+
// TODO unit test for the property 'MerchantDefinedInformation'
138+
}
139+
/// <summary>
140+
/// Test the property 'AgreementInformation'
141+
/// </summary>
142+
[Test]
143+
public void AgreementInformationTest()
144+
{
145+
// TODO unit test for the property 'AgreementInformation'
146+
}
147+
/// <summary>
148+
/// Test the property 'TravelInformation'
149+
/// </summary>
150+
[Test]
151+
public void TravelInformationTest()
152+
{
153+
// TODO unit test for the property 'TravelInformation'
154+
}
155+
156+
}
157+
158+
}

0 commit comments

Comments
 (0)