Skip to content

Commit 37fa3b7

Browse files
committed
Added proper method names based on missing operationId's
1 parent 4828ea9 commit 37fa3b7

10 files changed

+411
-408
lines changed

Api/ReportSubscriptionsApi.cs

Lines changed: 182 additions & 182 deletions
Large diffs are not rendered by default.

Api/VerificationApi.cs

Lines changed: 107 additions & 107 deletions
Large diffs are not rendered by default.

cybersource-rest-client-dotnet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OpenAPI spec version: 0.0.1
1212

1313
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
1414
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
15-
<ProjectGuid>{40E7A733-A215-40A3-9824-9B52F037A440}</ProjectGuid>
15+
<ProjectGuid>{BB05AA53-E6C5-42CD-AF15-2B3DB516A407}</ProjectGuid>
1616
<OutputType>Library</OutputType>
1717
<AppDesignerFolder>Properties</AppDesignerFolder>
1818
<RootNamespace>CyberSource</RootNamespace>

cybersource-rest-client-dotnet.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{40E7A733-A215-40A3-9824-9B52F037A440}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{BB05AA53-E6C5-42CD-AF15-2B3DB516A407}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet.Test", "test\cybersource-rest-client-dotnet.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{40E7A733-A215-40A3-9824-9B52F037A440}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{40E7A733-A215-40A3-9824-9B52F037A440}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{40E7A733-A215-40A3-9824-9B52F037A440}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{40E7A733-A215-40A3-9824-9B52F037A440}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{BB05AA53-E6C5-42CD-AF15-2B3DB516A407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{BB05AA53-E6C5-42CD-AF15-2B3DB516A407}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{BB05AA53-E6C5-42CD-AF15-2B3DB516A407}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{BB05AA53-E6C5-42CD-AF15-2B3DB516A407}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

docs/ReportSubscriptionsApi.md

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,75 @@ All URIs are relative to *https://apitest.cybersource.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**CreateStandardOrClassicSubscription**](ReportSubscriptionsApi.md#createstandardorclassicsubscription) | **PUT** /reporting/v3/predefined-report-subscriptions | Create a Standard or Classic Subscription
78
[**CreateSubscription**](ReportSubscriptionsApi.md#createsubscription) | **PUT** /reporting/v3/report-subscriptions | Create Report Subscription for a Report Name by Organization
89
[**DeleteSubscription**](ReportSubscriptionsApi.md#deletesubscription) | **DELETE** /reporting/v3/report-subscriptions/{reportName} | Delete Subscription of a Report Name by Organization
910
[**GetAllSubscriptions**](ReportSubscriptionsApi.md#getallsubscriptions) | **GET** /reporting/v3/report-subscriptions | Get All Subscriptions
1011
[**GetSubscription**](ReportSubscriptionsApi.md#getsubscription) | **GET** /reporting/v3/report-subscriptions/{reportName} | Get Subscription for Report Name
11-
[**ReportingV3PredefinedReportSubscriptionsPut**](ReportSubscriptionsApi.md#reportingv3predefinedreportsubscriptionsput) | **PUT** /reporting/v3/predefined-report-subscriptions | Create a Standard or Classic Subscription
1212

1313

14+
<a name="createstandardorclassicsubscription"></a>
15+
# **CreateStandardOrClassicSubscription**
16+
> void CreateStandardOrClassicSubscription (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null)
17+
18+
Create a Standard or Classic Subscription
19+
20+
Create or update an already existing classic or standard subscription.
21+
22+
### Example
23+
```csharp
24+
using System;
25+
using System.Diagnostics;
26+
using CyberSource.Api;
27+
using CyberSource.Client;
28+
using CyberSource.Model;
29+
30+
namespace Example
31+
{
32+
public class CreateStandardOrClassicSubscriptionExample
33+
{
34+
public void main()
35+
{
36+
var apiInstance = new ReportSubscriptionsApi();
37+
var predefinedSubscriptionRequestBean = new PredefinedSubscriptionRequestBean(); // PredefinedSubscriptionRequestBean | Report subscription request payload
38+
var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional)
39+
40+
try
41+
{
42+
// Create a Standard or Classic Subscription
43+
apiInstance.CreateStandardOrClassicSubscription(predefinedSubscriptionRequestBean, organizationId);
44+
}
45+
catch (Exception e)
46+
{
47+
Debug.Print("Exception when calling ReportSubscriptionsApi.CreateStandardOrClassicSubscription: " + e.Message );
48+
}
49+
}
50+
}
51+
}
52+
```
53+
54+
### Parameters
55+
56+
Name | Type | Description | Notes
57+
------------- | ------------- | ------------- | -------------
58+
**predefinedSubscriptionRequestBean** | [**PredefinedSubscriptionRequestBean**](PredefinedSubscriptionRequestBean.md)| Report subscription request payload |
59+
**organizationId** | **string**| Valid Cybersource Organization Id | [optional]
60+
61+
### Return type
62+
63+
void (empty response body)
64+
65+
### Authorization
66+
67+
No authorization required
68+
69+
### HTTP request headers
70+
71+
- **Content-Type**: application/json;charset=utf-8
72+
- **Accept**: application/hal+json
73+
74+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
75+
1476
<a name="createsubscription"></a>
1577
# **CreateSubscription**
1678
> void CreateSubscription (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null)
@@ -251,65 +313,3 @@ No authorization required
251313

252314
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
253315

254-
<a name="reportingv3predefinedreportsubscriptionsput"></a>
255-
# **ReportingV3PredefinedReportSubscriptionsPut**
256-
> void ReportingV3PredefinedReportSubscriptionsPut (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null)
257-
258-
Create a Standard or Classic Subscription
259-
260-
Create or update an already existing classic or standard subscription.
261-
262-
### Example
263-
```csharp
264-
using System;
265-
using System.Diagnostics;
266-
using CyberSource.Api;
267-
using CyberSource.Client;
268-
using CyberSource.Model;
269-
270-
namespace Example
271-
{
272-
public class ReportingV3PredefinedReportSubscriptionsPutExample
273-
{
274-
public void main()
275-
{
276-
var apiInstance = new ReportSubscriptionsApi();
277-
var predefinedSubscriptionRequestBean = new PredefinedSubscriptionRequestBean(); // PredefinedSubscriptionRequestBean | Report subscription request payload
278-
var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional)
279-
280-
try
281-
{
282-
// Create a Standard or Classic Subscription
283-
apiInstance.ReportingV3PredefinedReportSubscriptionsPut(predefinedSubscriptionRequestBean, organizationId);
284-
}
285-
catch (Exception e)
286-
{
287-
Debug.Print("Exception when calling ReportSubscriptionsApi.ReportingV3PredefinedReportSubscriptionsPut: " + e.Message );
288-
}
289-
}
290-
}
291-
}
292-
```
293-
294-
### Parameters
295-
296-
Name | Type | Description | Notes
297-
------------- | ------------- | ------------- | -------------
298-
**predefinedSubscriptionRequestBean** | [**PredefinedSubscriptionRequestBean**](PredefinedSubscriptionRequestBean.md)| Report subscription request payload |
299-
**organizationId** | **string**| Valid Cybersource Organization Id | [optional]
300-
301-
### Return type
302-
303-
void (empty response body)
304-
305-
### Authorization
306-
307-
No authorization required
308-
309-
### HTTP request headers
310-
311-
- **Content-Type**: application/json;charset=utf-8
312-
- **Accept**: application/hal+json
313-
314-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
315-

docs/VerificationApi.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ All URIs are relative to *https://apitest.cybersource.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**RiskV1AddressVerificationsPost**](VerificationApi.md#riskv1addressverificationspost) | **POST** /risk/v1/address-verifications | Verify customer address
8-
[**RiskV1ExportComplianceInquiriesPost**](VerificationApi.md#riskv1exportcomplianceinquiriespost) | **POST** /risk/v1/export-compliance-inquiries | Validate export compliance
7+
[**ValidateExportCompliance**](VerificationApi.md#validateexportcompliance) | **POST** /risk/v1/export-compliance-inquiries | Validate export compliance
8+
[**VerifyCustomerAddress**](VerificationApi.md#verifycustomeraddress) | **POST** /risk/v1/address-verifications | Verify customer address
99

1010

11-
<a name="riskv1addressverificationspost"></a>
12-
# **RiskV1AddressVerificationsPost**
13-
> RiskV1AddressVerificationsPost201Response RiskV1AddressVerificationsPost (VerifyCustomerAddressRequest verifyCustomerAddressRequest)
11+
<a name="validateexportcompliance"></a>
12+
# **ValidateExportCompliance**
13+
> RiskV1ExportComplianceInquiriesPost201Response ValidateExportCompliance (ValidateExportComplianceRequest validateExportComplianceRequest)
1414
15-
Verify customer address
15+
Validate export compliance
1616

17-
This call verifies that the customer address submitted is valid.
17+
This call checks customer data against specified watch lists to ensure export compliance.
1818

1919
### Example
2020
```csharp
@@ -26,22 +26,22 @@ using CyberSource.Model;
2626

2727
namespace Example
2828
{
29-
public class RiskV1AddressVerificationsPostExample
29+
public class ValidateExportComplianceExample
3030
{
3131
public void main()
3232
{
3333
var apiInstance = new VerificationApi();
34-
var verifyCustomerAddressRequest = new VerifyCustomerAddressRequest(); // VerifyCustomerAddressRequest |
34+
var validateExportComplianceRequest = new ValidateExportComplianceRequest(); // ValidateExportComplianceRequest |
3535
3636
try
3737
{
38-
// Verify customer address
39-
RiskV1AddressVerificationsPost201Response result = apiInstance.RiskV1AddressVerificationsPost(verifyCustomerAddressRequest);
38+
// Validate export compliance
39+
RiskV1ExportComplianceInquiriesPost201Response result = apiInstance.ValidateExportCompliance(validateExportComplianceRequest);
4040
Debug.WriteLine(result);
4141
}
4242
catch (Exception e)
4343
{
44-
Debug.Print("Exception when calling VerificationApi.RiskV1AddressVerificationsPost: " + e.Message );
44+
Debug.Print("Exception when calling VerificationApi.ValidateExportCompliance: " + e.Message );
4545
}
4646
}
4747
}
@@ -52,11 +52,11 @@ namespace Example
5252

5353
Name | Type | Description | Notes
5454
------------- | ------------- | ------------- | -------------
55-
**verifyCustomerAddressRequest** | [**VerifyCustomerAddressRequest**](VerifyCustomerAddressRequest.md)| |
55+
**validateExportComplianceRequest** | [**ValidateExportComplianceRequest**](ValidateExportComplianceRequest.md)| |
5656

5757
### Return type
5858

59-
[**RiskV1AddressVerificationsPost201Response**](RiskV1AddressVerificationsPost201Response.md)
59+
[**RiskV1ExportComplianceInquiriesPost201Response**](RiskV1ExportComplianceInquiriesPost201Response.md)
6060

6161
### Authorization
6262

@@ -69,13 +69,13 @@ No authorization required
6969

7070
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7171

72-
<a name="riskv1exportcomplianceinquiriespost"></a>
73-
# **RiskV1ExportComplianceInquiriesPost**
74-
> RiskV1ExportComplianceInquiriesPost201Response RiskV1ExportComplianceInquiriesPost (ValidateExportComplianceRequest validateExportComplianceRequest)
72+
<a name="verifycustomeraddress"></a>
73+
# **VerifyCustomerAddress**
74+
> RiskV1AddressVerificationsPost201Response VerifyCustomerAddress (VerifyCustomerAddressRequest verifyCustomerAddressRequest)
7575
76-
Validate export compliance
76+
Verify customer address
7777

78-
This call checks customer data against specified watch lists to ensure export compliance.
78+
This call verifies that the customer address submitted is valid.
7979

8080
### Example
8181
```csharp
@@ -87,22 +87,22 @@ using CyberSource.Model;
8787

8888
namespace Example
8989
{
90-
public class RiskV1ExportComplianceInquiriesPostExample
90+
public class VerifyCustomerAddressExample
9191
{
9292
public void main()
9393
{
9494
var apiInstance = new VerificationApi();
95-
var validateExportComplianceRequest = new ValidateExportComplianceRequest(); // ValidateExportComplianceRequest |
95+
var verifyCustomerAddressRequest = new VerifyCustomerAddressRequest(); // VerifyCustomerAddressRequest |
9696
9797
try
9898
{
99-
// Validate export compliance
100-
RiskV1ExportComplianceInquiriesPost201Response result = apiInstance.RiskV1ExportComplianceInquiriesPost(validateExportComplianceRequest);
99+
// Verify customer address
100+
RiskV1AddressVerificationsPost201Response result = apiInstance.VerifyCustomerAddress(verifyCustomerAddressRequest);
101101
Debug.WriteLine(result);
102102
}
103103
catch (Exception e)
104104
{
105-
Debug.Print("Exception when calling VerificationApi.RiskV1ExportComplianceInquiriesPost: " + e.Message );
105+
Debug.Print("Exception when calling VerificationApi.VerifyCustomerAddress: " + e.Message );
106106
}
107107
}
108108
}
@@ -113,11 +113,11 @@ namespace Example
113113

114114
Name | Type | Description | Notes
115115
------------- | ------------- | ------------- | -------------
116-
**validateExportComplianceRequest** | [**ValidateExportComplianceRequest**](ValidateExportComplianceRequest.md)| |
116+
**verifyCustomerAddressRequest** | [**VerifyCustomerAddressRequest**](VerifyCustomerAddressRequest.md)| |
117117

118118
### Return type
119119

120-
[**RiskV1ExportComplianceInquiriesPost201Response**](RiskV1ExportComplianceInquiriesPost201Response.md)
120+
[**RiskV1AddressVerificationsPost201Response**](RiskV1AddressVerificationsPost201Response.md)
121121

122122
### Authorization
123123

generator/cybersource-rest-spec.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29659,6 +29659,7 @@
2965929659
"post": {
2966029660
"summary": "Verify customer address",
2966129661
"description": "This call verifies that the customer address submitted is valid.",
29662+
"operationId": "verifyCustomerAddress",
2966229663
"tags": [
2966329664
"Verification"
2966429665
],
@@ -30510,6 +30511,7 @@
3051030511
"post": {
3051130512
"summary": "Validate export compliance",
3051230513
"description": "This call checks customer data against specified watch lists to ensure export compliance.\n",
30514+
"operationId": "validateExportCompliance",
3051330515
"tags": [
3051430516
"Verification"
3051530517
],
@@ -38118,6 +38120,7 @@
3811838120
],
3811938121
"summary": "Create a Standard or Classic Subscription",
3812038122
"description": "Create or update an already existing classic or standard subscription.\n",
38123+
"operationId": "createStandardOrClassicSubscription",
3812138124
"x-devcenter-metaData": {
3812238125
"categoryTag": "Reporting",
3812338126
"isClientSideApi": true

test/Api/ReportSubscriptionsApiTests.cs

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

6666

67+
/// <summary>
68+
/// Test CreateStandardOrClassicSubscription
69+
/// </summary>
70+
[Test]
71+
public void CreateStandardOrClassicSubscriptionTest()
72+
{
73+
// TODO uncomment below to test the method and replace null with proper value
74+
//PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean = null;
75+
//string organizationId = null;
76+
//instance.CreateStandardOrClassicSubscription(predefinedSubscriptionRequestBean, organizationId);
77+
78+
}
79+
6780
/// <summary>
6881
/// Test CreateSubscription
6982
/// </summary>
@@ -112,19 +125,6 @@ public void GetSubscriptionTest()
112125
//Assert.IsInstanceOf<ReportingV3ReportSubscriptionsGet200ResponseSubscriptions> (response, "response is ReportingV3ReportSubscriptionsGet200ResponseSubscriptions");
113126
}
114127

115-
/// <summary>
116-
/// Test ReportingV3PredefinedReportSubscriptionsPut
117-
/// </summary>
118-
[Test]
119-
public void ReportingV3PredefinedReportSubscriptionsPutTest()
120-
{
121-
// TODO uncomment below to test the method and replace null with proper value
122-
//PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean = null;
123-
//string organizationId = null;
124-
//instance.ReportingV3PredefinedReportSubscriptionsPut(predefinedSubscriptionRequestBean, organizationId);
125-
126-
}
127-
128128
}
129129

130130
}

0 commit comments

Comments
 (0)