Skip to content

Commit f47f250

Browse files
authored
Merge pull request #114 from CyberSource/release/april25
Release April25
2 parents c7024b7 + 8ec5bd8 commit f47f250

File tree

455 files changed

+182788
-7855
lines changed

Some content is hidden

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

455 files changed

+182788
-7855
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void GetBatchReportTest()
7373
// TODO uncomment below to test the method and replace null with proper value
7474
//string batchId = null;
7575
//var response = instance.GetBatchReport(batchId);
76-
//Assert.IsInstanceOf<InlineResponse2004> (response, "response is InlineResponse2004");
76+
//Assert.IsInstanceOf<InlineResponse2007> (response, "response is InlineResponse2007");
7777
}
7878

7979
/// <summary>
@@ -85,7 +85,7 @@ public void GetBatchStatusTest()
8585
// TODO uncomment below to test the method and replace null with proper value
8686
//string batchId = null;
8787
//var response = instance.GetBatchStatus(batchId);
88-
//Assert.IsInstanceOf<InlineResponse2003> (response, "response is InlineResponse2003");
88+
//Assert.IsInstanceOf<InlineResponse2006> (response, "response is InlineResponse2006");
8989
}
9090

9191
/// <summary>
@@ -100,7 +100,7 @@ public void GetBatchesListTest()
100100
//string fromDate = null;
101101
//string toDate = null;
102102
//var response = instance.GetBatchesList(offset, limit, fromDate, toDate);
103-
//Assert.IsInstanceOf<InlineResponse2002> (response, "response is InlineResponse2002");
103+
//Assert.IsInstanceOf<InlineResponse2005> (response, "response is InlineResponse2005");
104104
}
105105

106106
/// <summary>

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,30 @@ public void InstanceTest()
6464
}
6565

6666

67+
/// <summary>
68+
/// Test FindProductsToSubscribe
69+
/// </summary>
70+
[Test]
71+
public void FindProductsToSubscribeTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//string organizationId = null;
75+
//var response = instance.FindProductsToSubscribe(organizationId);
76+
//Assert.IsInstanceOf<List<InlineResponse2003>> (response, "response is List<InlineResponse2003>");
77+
}
78+
79+
/// <summary>
80+
/// Test NotificationSubscriptionsV2WebhooksPost
81+
/// </summary>
82+
[Test]
83+
public void NotificationSubscriptionsV2WebhooksPostTest()
84+
{
85+
// TODO uncomment below to test the method and replace null with proper value
86+
//CreateWebhook createWebhook = null;
87+
//var response = instance.NotificationSubscriptionsV2WebhooksPost(createWebhook);
88+
//Assert.IsInstanceOf<InlineResponse2014> (response, "response is InlineResponse2014");
89+
}
90+
6791
/// <summary>
6892
/// Test SaveSymEgressKey
6993
/// </summary>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void ActionDecisionManagerCaseTest()
7474
//string id = null;
7575
//CaseManagementActionsRequest caseManagementActionsRequest = null;
7676
//var response = instance.ActionDecisionManagerCase(id, caseManagementActionsRequest);
77-
//Assert.IsInstanceOf<InlineResponse200> (response, "response is InlineResponse200");
77+
//Assert.IsInstanceOf<InlineResponse2001> (response, "response is InlineResponse2001");
7878
}
7979

8080
/// <summary>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void PerformCancelActionTest()
111111
// TODO uncomment below to test the method and replace null with proper value
112112
//string id = null;
113113
//var response = instance.PerformCancelAction(id);
114-
//Assert.IsInstanceOf<InvoicingV2InvoicesPost201Response> (response, "response is InvoicingV2InvoicesPost201Response");
114+
//Assert.IsInstanceOf<InvoicingV2InvoicesCancel200Response> (response, "response is InvoicingV2InvoicesCancel200Response");
115115
}
116116

117117
/// <summary>
@@ -123,7 +123,7 @@ public void PerformSendActionTest()
123123
// TODO uncomment below to test the method and replace null with proper value
124124
//string id = null;
125125
//var response = instance.PerformSendAction(id);
126-
//Assert.IsInstanceOf<InvoicingV2InvoicesPost201Response> (response, "response is InvoicingV2InvoicesPost201Response");
126+
//Assert.IsInstanceOf<InvoicingV2InvoicesSend200Response> (response, "response is InvoicingV2InvoicesSend200Response");
127127
}
128128

129129
/// <summary>
@@ -136,7 +136,7 @@ public void UpdateInvoiceTest()
136136
//string id = null;
137137
//UpdateInvoiceRequest updateInvoiceRequest = null;
138138
//var response = instance.UpdateInvoice(id, updateInvoiceRequest);
139-
//Assert.IsInstanceOf<InvoicingV2InvoicesPost201Response> (response, "response is InvoicingV2InvoicesPost201Response");
139+
//Assert.IsInstanceOf<InvoicingV2InvoicesPut200Response> (response, "response is InvoicingV2InvoicesPut200Response");
140140
}
141141

142142
}

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

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,44 @@ public void InstanceTest()
6464
}
6565

6666

67+
/// <summary>
68+
/// Test DeleteWebhookSubscription
69+
/// </summary>
70+
[Test]
71+
public void DeleteWebhookSubscriptionTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//string webhookId = null;
75+
//instance.DeleteWebhookSubscription(webhookId);
76+
77+
}
78+
79+
/// <summary>
80+
/// Test GetWebhookSubscriptionById
81+
/// </summary>
82+
[Test]
83+
public void GetWebhookSubscriptionByIdTest()
84+
{
85+
// TODO uncomment below to test the method and replace null with proper value
86+
//string webhookId = null;
87+
//var response = instance.GetWebhookSubscriptionById(webhookId);
88+
//Assert.IsInstanceOf<InlineResponse2014> (response, "response is InlineResponse2014");
89+
}
90+
91+
/// <summary>
92+
/// Test GetWebhookSubscriptionsByOrg
93+
/// </summary>
94+
[Test]
95+
public void GetWebhookSubscriptionsByOrgTest()
96+
{
97+
// TODO uncomment below to test the method and replace null with proper value
98+
//string organizationId = null;
99+
//string productId = null;
100+
//string eventType = null;
101+
//var response = instance.GetWebhookSubscriptionsByOrg(organizationId, productId, eventType);
102+
//Assert.IsInstanceOf<List<InlineResponse2004>> (response, "response is List<InlineResponse2004>");
103+
}
104+
67105
/// <summary>
68106
/// Test NotificationSubscriptionsV1WebhooksWebhookIdPost
69107
/// </summary>
@@ -73,7 +111,33 @@ public void NotificationSubscriptionsV1WebhooksWebhookIdPostTest()
73111
// TODO uncomment below to test the method and replace null with proper value
74112
//string webhookId = null;
75113
//var response = instance.NotificationSubscriptionsV1WebhooksWebhookIdPost(webhookId);
76-
//Assert.IsInstanceOf<InlineResponse2014> (response, "response is InlineResponse2014");
114+
//Assert.IsInstanceOf<InlineResponse2015> (response, "response is InlineResponse2015");
115+
}
116+
117+
/// <summary>
118+
/// Test NotificationSubscriptionsV2WebhooksWebhookIdPatch
119+
/// </summary>
120+
[Test]
121+
public void NotificationSubscriptionsV2WebhooksWebhookIdPatchTest()
122+
{
123+
// TODO uncomment below to test the method and replace null with proper value
124+
//string webhookId = null;
125+
//UpdateWebhook updateWebhook = null;
126+
//instance.NotificationSubscriptionsV2WebhooksWebhookIdPatch(webhookId, updateWebhook);
127+
128+
}
129+
130+
/// <summary>
131+
/// Test NotificationSubscriptionsV2WebhooksWebhookIdStatusPut
132+
/// </summary>
133+
[Test]
134+
public void NotificationSubscriptionsV2WebhooksWebhookIdStatusPutTest()
135+
{
136+
// TODO uncomment below to test the method and replace null with proper value
137+
//string webhookId = null;
138+
//UpdateStatus updateStatus = null;
139+
//instance.NotificationSubscriptionsV2WebhooksWebhookIdStatusPut(webhookId, updateStatus);
140+
77141
}
78142

79143
/// <summary>
@@ -88,7 +152,7 @@ public void SaveAsymEgressKeyTest()
88152
//SaveAsymEgressKey saveAsymEgressKey = null;
89153
//string vCCorrelationId = null;
90154
//var response = instance.SaveAsymEgressKey(vCSenderOrganizationId, vCPermissions, saveAsymEgressKey, vCCorrelationId);
91-
//Assert.IsInstanceOf<InlineResponse2015> (response, "response is InlineResponse2015");
155+
//Assert.IsInstanceOf<InlineResponse2016> (response, "response is InlineResponse2016");
92156
}
93157

94158
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void GetRegistrationTest()
7373
// TODO uncomment below to test the method and replace null with proper value
7474
//string registrationId = null;
7575
//var response = instance.GetRegistration(registrationId);
76-
//Assert.IsInstanceOf<InlineResponse2001> (response, "response is InlineResponse2001");
76+
//Assert.IsInstanceOf<InlineResponse2002> (response, "response is InlineResponse2002");
7777
}
7878

7979
/// <summary>
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 PaymentLinksApi
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 PaymentLinksApiTests
35+
{
36+
private PaymentLinksApi instance;
37+
38+
/// <summary>
39+
/// Setup before each unit test
40+
/// </summary>
41+
[SetUp]
42+
public void Init()
43+
{
44+
instance = new PaymentLinksApi();
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 PaymentLinksApi
58+
/// </summary>
59+
[Test]
60+
public void InstanceTest()
61+
{
62+
// TODO uncomment below to test 'IsInstanceOfType' PaymentLinksApi
63+
//Assert.IsInstanceOfType(typeof(PaymentLinksApi), instance, "instance is a PaymentLinksApi");
64+
}
65+
66+
67+
/// <summary>
68+
/// Test CreatePaymentLink
69+
/// </summary>
70+
[Test]
71+
public void CreatePaymentLinkTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//CreatePaymentLinkRequest createPaymentLinkRequest = null;
75+
//var response = instance.CreatePaymentLink(createPaymentLinkRequest);
76+
//Assert.IsInstanceOf<PblPaymentLinksPost201Response> (response, "response is PblPaymentLinksPost201Response");
77+
}
78+
79+
/// <summary>
80+
/// Test GetAllPaymentLinks
81+
/// </summary>
82+
[Test]
83+
public void GetAllPaymentLinksTest()
84+
{
85+
// TODO uncomment below to test the method and replace null with proper value
86+
//int? offset = null;
87+
//int? limit = null;
88+
//string status = null;
89+
//var response = instance.GetAllPaymentLinks(offset, limit, status);
90+
//Assert.IsInstanceOf<PblPaymentLinksAllGet200Response> (response, "response is PblPaymentLinksAllGet200Response");
91+
}
92+
93+
/// <summary>
94+
/// Test GetPaymentLink
95+
/// </summary>
96+
[Test]
97+
public void GetPaymentLinkTest()
98+
{
99+
// TODO uncomment below to test the method and replace null with proper value
100+
//string id = null;
101+
//var response = instance.GetPaymentLink(id);
102+
//Assert.IsInstanceOf<PblPaymentLinksGet200Response> (response, "response is PblPaymentLinksGet200Response");
103+
}
104+
105+
/// <summary>
106+
/// Test UpdatePaymentLink
107+
/// </summary>
108+
[Test]
109+
public void UpdatePaymentLinkTest()
110+
{
111+
// TODO uncomment below to test the method and replace null with proper value
112+
//string id = null;
113+
//UpdatePaymentLinkRequest updatePaymentLinkRequest = null;
114+
//var response = instance.UpdatePaymentLink(id, updatePaymentLinkRequest);
115+
//Assert.IsInstanceOf<PblPaymentLinksPost201Response> (response, "response is PblPaymentLinksPost201Response");
116+
}
117+
118+
}
119+
120+
}

0 commit comments

Comments
 (0)