Skip to content

Commit 5eb4aab

Browse files
committed
updated spec and generated code for oct25 monthly release
1 parent cc98832 commit 5eb4aab

File tree

246 files changed

+32456
-3668
lines changed

Some content is hidden

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

246 files changed

+32456
-3668
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,41 +78,41 @@ public void CreateMerchantDefinedFieldDefinitionTest()
7878
}
7979

8080
/// <summary>
81-
/// Test GetMerchantDefinedFieldsDefinitions
81+
/// Test DeleteMerchantDefinedFieldsDefinitions
8282
/// </summary>
8383
[Test]
84-
public void GetMerchantDefinedFieldsDefinitionsTest()
84+
public void DeleteMerchantDefinedFieldsDefinitionsTest()
8585
{
8686
// TODO uncomment below to test the method and replace null with proper value
8787
//string referenceType = null;
88-
//var response = instance.GetMerchantDefinedFieldsDefinitions(referenceType);
89-
//Assert.IsInstanceOf<List<InlineResponse2002>> (response, "response is List<InlineResponse2002>");
88+
//long? id = null;
89+
//instance.DeleteMerchantDefinedFieldsDefinitions(referenceType, id);
90+
9091
}
9192

9293
/// <summary>
93-
/// Test InvoicingV2ReferenceTypeMerchantDefinedFieldsIdDelete
94+
/// Test GetMerchantDefinedFieldsDefinitions
9495
/// </summary>
9596
[Test]
96-
public void InvoicingV2ReferenceTypeMerchantDefinedFieldsIdDeleteTest()
97+
public void GetMerchantDefinedFieldsDefinitionsTest()
9798
{
9899
// TODO uncomment below to test the method and replace null with proper value
99100
//string referenceType = null;
100-
//long? id = null;
101-
//instance.InvoicingV2ReferenceTypeMerchantDefinedFieldsIdDelete(referenceType, id);
102-
101+
//var response = instance.GetMerchantDefinedFieldsDefinitions(referenceType);
102+
//Assert.IsInstanceOf<List<InlineResponse2002>> (response, "response is List<InlineResponse2002>");
103103
}
104104

105105
/// <summary>
106-
/// Test InvoicingV2ReferenceTypeMerchantDefinedFieldsIdPut
106+
/// Test PutMerchantDefinedFieldsDefinitions
107107
/// </summary>
108108
[Test]
109-
public void InvoicingV2ReferenceTypeMerchantDefinedFieldsIdPutTest()
109+
public void PutMerchantDefinedFieldsDefinitionsTest()
110110
{
111111
// TODO uncomment below to test the method and replace null with proper value
112112
//string referenceType = null;
113113
//long? id = null;
114114
//MerchantDefinedFieldCore merchantDefinedFieldCore = null;
115-
//var response = instance.InvoicingV2ReferenceTypeMerchantDefinedFieldsIdPut(referenceType, id, merchantDefinedFieldCore);
115+
//var response = instance.PutMerchantDefinedFieldsDefinitions(referenceType, id, merchantDefinedFieldCore);
116116
//Assert.IsInstanceOf<List<InlineResponse2002>> (response, "response is List<InlineResponse2002>");
117117
}
118118

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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 OffersApi
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 OffersApiTests
35+
{
36+
private OffersApi instance;
37+
38+
/// <summary>
39+
/// Setup before each unit test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
instance = new OffersApi();
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 OffersApi
58+
/// </summary>
59+
[Test]
60+
public void InstanceTest()
61+
{
62+
// TODO uncomment below to test 'IsInstanceOfType' OffersApi
63+
//Assert.IsInstanceOfType(typeof(OffersApi), instance, "instance is a OffersApi");
64+
}
65+
66+
67+
/// <summary>
68+
/// Test CreateOffer
69+
/// </summary>
70+
[Test]
71+
public void CreateOfferTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//string contentType = null;
75+
//string xRequestid = null;
76+
//string vCMerchantId = null;
77+
//string vCCorrelationId = null;
78+
//string vCOrganizationId = null;
79+
//OfferRequest offerRequest = null;
80+
//var response = instance.CreateOffer(contentType, xRequestid, vCMerchantId, vCCorrelationId, vCOrganizationId, offerRequest);
81+
//Assert.IsInstanceOf<InlineResponse2018> (response, "response is InlineResponse2018");
82+
}
83+
84+
/// <summary>
85+
/// Test GetOffer
86+
/// </summary>
87+
[Test]
88+
public void GetOfferTest()
89+
{
90+
// TODO uncomment below to test the method and replace null with proper value
91+
//string contentType = null;
92+
//string xRequestid = null;
93+
//string vCMerchantId = null;
94+
//string vCCorrelationId = null;
95+
//string vCOrganizationId = null;
96+
//string id = null;
97+
//var response = instance.GetOffer(contentType, xRequestid, vCMerchantId, vCCorrelationId, vCOrganizationId, id);
98+
//Assert.IsInstanceOf<InlineResponse20014> (response, "response is InlineResponse20014");
99+
}
100+
101+
}
102+
103+
}

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,6 @@ public void GetTokenizedCardTest()
9090
//Assert.IsInstanceOf<TokenizedcardRequest> (response, "response is TokenizedcardRequest");
9191
}
9292

93-
/// <summary>
94-
/// Test PostIssuerLifeCycleSimulation
95-
/// </summary>
96-
[Test]
97-
public void PostIssuerLifeCycleSimulationTest()
98-
{
99-
// TODO uncomment below to test the method and replace null with proper value
100-
//string profileId = null;
101-
//string tokenizedCardId = null;
102-
//PostIssuerLifeCycleSimulationRequest postIssuerLifeCycleSimulationRequest = null;
103-
//instance.PostIssuerLifeCycleSimulation(profileId, tokenizedCardId, postIssuerLifeCycleSimulationRequest);
104-
105-
}
106-
10793
/// <summary>
10894
/// Test PostTokenizedCard
10995
/// </summary>

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,28 @@ public void CompleteMandateTest()
129129
// TODO unit test for the property 'CompleteMandate'
130130
}
131131
/// <summary>
132-
/// Test the property 'OrderInformation'
132+
/// Test the property 'TransientTokenResponseOptions'
133133
/// </summary>
134134
[Test]
135-
public void OrderInformationTest()
135+
public void TransientTokenResponseOptionsTest()
136136
{
137-
// TODO unit test for the property 'OrderInformation'
137+
// TODO unit test for the property 'TransientTokenResponseOptions'
138138
}
139139
/// <summary>
140-
/// Test the property 'TransientTokenResponseOptions'
140+
/// Test the property 'Data'
141141
/// </summary>
142142
[Test]
143-
public void TransientTokenResponseOptionsTest()
143+
public void DataTest()
144144
{
145-
// TODO unit test for the property 'TransientTokenResponseOptions'
145+
// TODO unit test for the property 'Data'
146+
}
147+
/// <summary>
148+
/// Test the property 'OrderInformation'
149+
/// </summary>
150+
[Test]
151+
public void OrderInformationTest()
152+
{
153+
// TODO unit test for the property 'OrderInformation'
146154
}
147155

148156
}
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 InlineResponse20014ClientReferenceInformation
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 InlineResponse20014ClientReferenceInformationTests
34+
{
35+
// TODO uncomment below to declare an instance variable for InlineResponse20014ClientReferenceInformation
36+
//private InlineResponse20014ClientReferenceInformation 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 InlineResponse20014ClientReferenceInformation
45+
//instance = new InlineResponse20014ClientReferenceInformation();
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 InlineResponse20014ClientReferenceInformation
59+
/// </summary>
60+
[Test]
61+
public void InlineResponse20014ClientReferenceInformationInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" InlineResponse20014ClientReferenceInformation
64+
//Assert.IsInstanceOfType<InlineResponse20014ClientReferenceInformation> (instance, "variable 'instance' is a InlineResponse20014ClientReferenceInformation");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'Code'
69+
/// </summary>
70+
[Test]
71+
public void CodeTest()
72+
{
73+
// TODO unit test for the property 'Code'
74+
}
75+
/// <summary>
76+
/// Test the property 'ApplicationName'
77+
/// </summary>
78+
[Test]
79+
public void ApplicationNameTest()
80+
{
81+
// TODO unit test for the property 'ApplicationName'
82+
}
83+
/// <summary>
84+
/// Test the property 'ApplicationVersion'
85+
/// </summary>
86+
[Test]
87+
public void ApplicationVersionTest()
88+
{
89+
// TODO unit test for the property 'ApplicationVersion'
90+
}
91+
/// <summary>
92+
/// Test the property 'ApplicationUser'
93+
/// </summary>
94+
[Test]
95+
public void ApplicationUserTest()
96+
{
97+
// TODO unit test for the property 'ApplicationUser'
98+
}
99+
/// <summary>
100+
/// Test the property 'Partner'
101+
/// </summary>
102+
[Test]
103+
public void PartnerTest()
104+
{
105+
// TODO unit test for the property 'Partner'
106+
}
107+
108+
}
109+
110+
}

0 commit comments

Comments
 (0)