Skip to content

Commit c07a88c

Browse files
api-spec changes
1 parent b0e209a commit c07a88c

File tree

36 files changed

+979
-405
lines changed

36 files changed

+979
-405
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ public void PostTokenPaymentCredentialsTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
7474
//string tokenId = null;
75+
//PostPaymentCredentialsRequest postPaymentCredentialsRequest = null;
7576
//string profileId = null;
76-
//var response = instance.PostTokenPaymentCredentials(tokenId, profileId);
77+
//var response = instance.PostTokenPaymentCredentials(tokenId, postPaymentCredentialsRequest, profileId);
7778
//Assert.IsInstanceOf<string> (response, "response is string");
7879
}
7980

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 PostPaymentCredentialsRequest
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 PostPaymentCredentialsRequestTests
34+
{
35+
// TODO uncomment below to declare an instance variable for PostPaymentCredentialsRequest
36+
//private PostPaymentCredentialsRequest 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 PostPaymentCredentialsRequest
45+
//instance = new PostPaymentCredentialsRequest();
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 PostPaymentCredentialsRequest
59+
/// </summary>
60+
[Test]
61+
public void PostPaymentCredentialsRequestInstanceTest()
62+
{
63+
// TODO uncomment below to test "IsInstanceOfType" PostPaymentCredentialsRequest
64+
//Assert.IsInstanceOfType<PostPaymentCredentialsRequest> (instance, "variable 'instance' is a PostPaymentCredentialsRequest");
65+
}
66+
67+
/// <summary>
68+
/// Test the property 'PaymentCredentialType'
69+
/// </summary>
70+
[Test]
71+
public void PaymentCredentialTypeTest()
72+
{
73+
// TODO unit test for the property 'PaymentCredentialType'
74+
}
75+
76+
}
77+
78+
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ public void TransactionIdTest()
7272
{
7373
// TODO unit test for the property 'TransactionId'
7474
}
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+
}
7583

7684
}
7785

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

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

100108
}
101109

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@ public void AmountDetailsTest()
7272
{
7373
// TODO unit test for the property 'AmountDetails'
7474
}
75-
/// <summary>
76-
/// Test the property 'LineItems'
77-
/// </summary>
78-
[Test]
79-
public void LineItemsTest()
80-
{
81-
// TODO unit test for the property 'LineItems'
82-
}
8375

8476
}
8577

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@
2323
namespace CyberSource.Test
2424
{
2525
/// <summary>
26-
/// Class for testing Riskv1authenticationresultsOrderInformationLineItems
26+
/// Class for testing Riskv1decisionsAcquirerInformation
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 Riskv1authenticationresultsOrderInformationLineItemsTests
33+
public class Riskv1decisionsAcquirerInformationTests
3434
{
35-
// TODO uncomment below to declare an instance variable for Riskv1authenticationresultsOrderInformationLineItems
36-
//private Riskv1authenticationresultsOrderInformationLineItems instance;
35+
// TODO uncomment below to declare an instance variable for Riskv1decisionsAcquirerInformation
36+
//private Riskv1decisionsAcquirerInformation 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 Riskv1authenticationresultsOrderInformationLineItems
45-
//instance = new Riskv1authenticationresultsOrderInformationLineItems();
44+
// TODO uncomment below to create an instance of Riskv1decisionsAcquirerInformation
45+
//instance = new Riskv1decisionsAcquirerInformation();
4646
}
4747

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

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

6767
/// <summary>
68-
/// Test the property 'UnitPrice'
68+
/// Test the property 'AcquirerBin'
6969
/// </summary>
7070
[Test]
71-
public void UnitPriceTest()
71+
public void AcquirerBinTest()
7272
{
73-
// TODO unit test for the property 'UnitPrice'
73+
// TODO unit test for the property 'AcquirerBin'
7474
}
7575
/// <summary>
76-
/// Test the property 'Quantity'
76+
/// Test the property 'Country'
7777
/// </summary>
7878
[Test]
79-
public void QuantityTest()
79+
public void CountryTest()
8080
{
81-
// TODO unit test for the property 'Quantity'
81+
// TODO unit test for the property 'Country'
8282
}
8383
/// <summary>
84-
/// Test the property 'TaxAmount'
84+
/// Test the property 'Password'
8585
/// </summary>
8686
[Test]
87-
public void TaxAmountTest()
87+
public void PasswordTest()
8888
{
89-
// TODO unit test for the property 'TaxAmount'
89+
// TODO unit test for the property 'Password'
90+
}
91+
/// <summary>
92+
/// Test the property 'MerchantId'
93+
/// </summary>
94+
[Test]
95+
public void MerchantIdTest()
96+
{
97+
// TODO unit test for the property 'MerchantId'
9098
}
9199

92100
}

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ public void StateTest()
8181
// TODO unit test for the property 'State'
8282
}
8383
/// <summary>
84+
/// Test the property 'EnrollmentId'
85+
/// </summary>
86+
[Test]
87+
public void EnrollmentIdTest()
88+
{
89+
// TODO unit test for the property 'EnrollmentId'
90+
}
91+
/// <summary>
92+
/// Test the property 'TokenReferenceId'
93+
/// </summary>
94+
[Test]
95+
public void TokenReferenceIdTest()
96+
{
97+
// TODO unit test for the property 'TokenReferenceId'
98+
}
99+
/// <summary>
84100
/// Test the property 'Reason'
85101
/// </summary>
86102
[Test]

0 commit comments

Comments
 (0)