Skip to content

Commit 7f2e923

Browse files
committed
+ Fixing issues in Reporting API (NetFundings, NotificationOfChanges, ConversionDetails) and TransactionBatches API
1 parent 5f0cb2e commit 7f2e923

File tree

5 files changed

+53
-29
lines changed

5 files changed

+53
-29
lines changed

Api/ConversionDetailsApi.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public ApiResponse< ReportingV3ConversionDetailsGet200Response > GetConversionDe
219219
if (endTime == null)
220220
throw new ApiException(400, "Missing required parameter 'endTime' when calling ConversionDetailsApi->GetConversionDetail");
221221

222-
var localVarPath = $"/reporting/v3/conversion-details";
222+
var localVarPath = $"/reporting/v3/conversion-details?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&organizationId={organizationId}";
223223
var localVarPathParams = new Dictionary<String, String>();
224224
var localVarQueryParams = new Dictionary<String, String>();
225225
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@@ -241,9 +241,9 @@ public ApiResponse< ReportingV3ConversionDetailsGet200Response > GetConversionDe
241241
if (localVarHttpHeaderAccept != null)
242242
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
243243

244-
if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
245-
if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
246-
if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
244+
//if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
245+
//if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
246+
//if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
247247

248248

249249
// make the HTTP request
@@ -296,7 +296,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ConversionDetail
296296
if (endTime == null)
297297
throw new ApiException(400, "Missing required parameter 'endTime' when calling ConversionDetailsApi->GetConversionDetail");
298298

299-
var localVarPath = $"/reporting/v3/conversion-details";
299+
var localVarPath = $"/reporting/v3/conversion-details?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&organizationId={organizationId}";
300300
var localVarPathParams = new Dictionary<String, String>();
301301
var localVarQueryParams = new Dictionary<String, String>();
302302
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@@ -318,9 +318,9 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ConversionDetail
318318
if (localVarHttpHeaderAccept != null)
319319
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
320320

321-
if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
322-
if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
323-
if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
321+
//if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
322+
//if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
323+
//if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
324324

325325

326326
// make the HTTP request

Api/NetFundingsApi.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public ApiResponse< ReportingV3NetFundingsGet200Response > GetNetFundingDetailsW
225225
if (endTime == null)
226226
throw new ApiException(400, "Missing required parameter 'endTime' when calling NetFundingsApi->GetNetFundingDetails");
227227

228-
var localVarPath = $"/reporting/v3/net-fundings";
228+
var localVarPath = $"/reporting/v3/net-fundings?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&organizationId={organizationId}&groupName={groupName}";
229229
var localVarPathParams = new Dictionary<String, String>();
230230
var localVarQueryParams = new Dictionary<String, String>();
231231
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@@ -247,10 +247,10 @@ public ApiResponse< ReportingV3NetFundingsGet200Response > GetNetFundingDetailsW
247247
if (localVarHttpHeaderAccept != null)
248248
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
249249

250-
if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
251-
if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
252-
if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
253-
if (groupName != null) localVarQueryParams.Add("groupName", Configuration.ApiClient.ParameterToString(groupName)); // query parameter
250+
//if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
251+
//if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
252+
//if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
253+
//if (groupName != null) localVarQueryParams.Add("groupName", Configuration.ApiClient.ParameterToString(groupName)); // query parameter
254254

255255

256256
// make the HTTP request
@@ -305,7 +305,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3NetFundingsGet20
305305
if (endTime == null)
306306
throw new ApiException(400, "Missing required parameter 'endTime' when calling NetFundingsApi->GetNetFundingDetails");
307307

308-
var localVarPath = $"/reporting/v3/net-fundings";
308+
var localVarPath = $"/reporting/v3/net-fundings?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&organizationId={organizationId}&groupName={groupName}";
309309
var localVarPathParams = new Dictionary<String, String>();
310310
var localVarQueryParams = new Dictionary<String, String>();
311311
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@@ -327,10 +327,10 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3NetFundingsGet20
327327
if (localVarHttpHeaderAccept != null)
328328
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
329329

330-
if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
331-
if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
332-
if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
333-
if (groupName != null) localVarQueryParams.Add("groupName", Configuration.ApiClient.ParameterToString(groupName)); // query parameter
330+
//if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
331+
//if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
332+
//if (organizationId != null) localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter
333+
//if (groupName != null) localVarQueryParams.Add("groupName", Configuration.ApiClient.ParameterToString(groupName)); // query parameter
334334

335335

336336
// make the HTTP request

Api/NotificationOfChangesApi.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public ApiResponse< ReportingV3NotificationofChangesGet200Response > GetNotifica
213213
if (endTime == null)
214214
throw new ApiException(400, "Missing required parameter 'endTime' when calling NotificationOfChangesApi->GetNotificationOfChangeReport");
215215

216-
var localVarPath = $"/reporting/v3/notification-of-changes";
216+
var localVarPath = $"/reporting/v3/notification-of-changes?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}";
217217
var localVarPathParams = new Dictionary<String, String>();
218218
var localVarQueryParams = new Dictionary<String, String>();
219219
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@@ -235,8 +235,8 @@ public ApiResponse< ReportingV3NotificationofChangesGet200Response > GetNotifica
235235
if (localVarHttpHeaderAccept != null)
236236
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
237237

238-
if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
239-
if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
238+
//if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
239+
//if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
240240

241241

242242
// make the HTTP request
@@ -287,7 +287,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3NotificationofCh
287287
if (endTime == null)
288288
throw new ApiException(400, "Missing required parameter 'endTime' when calling NotificationOfChangesApi->GetNotificationOfChangeReport");
289289

290-
var localVarPath = $"/reporting/v3/notification-of-changes";
290+
var localVarPath = $"/reporting/v3/notification-of-changes?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}";
291291
var localVarPathParams = new Dictionary<String, String>();
292292
var localVarQueryParams = new Dictionary<String, String>();
293293
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@@ -309,8 +309,8 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3NotificationofCh
309309
if (localVarHttpHeaderAccept != null)
310310
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
311311

312-
if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
313-
if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
312+
//if (startTime != null) localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter
313+
//if (endTime != null) localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter
314314

315315

316316
// make the HTTP request

Api/TransactionBatchesApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public ApiResponse< PtsV1TransactionBatchesGet200Response > GetTransactionBatche
583583
if (endTime == null)
584584
throw new ApiException(400, "Missing required parameter 'endTime' when calling TransactionBatchesApi->GetTransactionBatches");
585585

586-
var localVarPath = $"/pts/v1/transaction-batches";
586+
var localVarPath = $"/pts/v1/transaction-batches?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}";
587587
var localVarPathParams = new Dictionary<String, String>();
588588
var localVarQueryParams = new Dictionary<String, String>();
589589
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
@@ -657,7 +657,7 @@ public async System.Threading.Tasks.Task<ApiResponse<PtsV1TransactionBatchesGet2
657657
if (endTime == null)
658658
throw new ApiException(400, "Missing required parameter 'endTime' when calling TransactionBatchesApi->GetTransactionBatches");
659659

660-
var localVarPath = $"/pts/v1/transaction-batches";
660+
var localVarPath = $"/pts/v1/transaction-batches?startTime={startTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}&endTime={endTime.Value.ToString("yyyy-MM-ddTHH:mm:ssZ")}";
661661
var localVarPathParams = new Dictionary<String, String>();
662662
var localVarQueryParams = new Dictionary<String, String>();
663663
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);

generator/cybersource_csharp_sdk_gen.bat

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,38 @@ powershell -Command "(Get-Content ..\src\CyberSource\Model\ReportingV3ReportSubs
2121

2222

2323
rem For Converting the datetime values to string while appending them to the localVarPath and commenting out the values being set in query params obj
24-
powershell -Command "$fileContents = (get-content ..\src\CyberSource\Api\TransactionBatchesApi.cs) ; $fileContents[586] = $fileContents[586] -replace '/pts/v1/transaction-batches', '/pts/v1/transaction-batches?startTime={startTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&endTime={endTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}' ; $fileContents[660] = $fileContents[660] -replace '/pts/v1/transaction-batches', '/pts/v1/transaction-batches?startTime={startTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&endTime={endTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}'; $fileContents|Set-Content ..\src\CyberSource\Api\TransactionBatchesApi.cs"
25-
26-
powershell -Command "$fileContents = (get-content ..\src\CyberSource\Api\ReportDownloadsApi.cs) ; $fileContents[263] = $fileContents[263] -replace 'null', 'localVarResponse.Content' ; $fileContents|Set-Content ..\src\CyberSource\Api\ReportDownloadsApi.cs"
24+
powershell -Command "$fileContents = (get-content ..\src\CyberSource\Api\TransactionBatchesApi.cs) ; $fileContents[585] = $fileContents[585] -replace '/pts/v1/transaction-batches', '/pts/v1/transaction-batches?startTime={startTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&endTime={endTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}' ; $fileContents[659] = $fileContents[659] -replace '/pts/v1/transaction-batches', '/pts/v1/transaction-batches?startTime={startTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&endTime={endTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}'; $fileContents|Set-Content ..\src\CyberSource\Api\TransactionBatchesApi.cs"
2725

2826
powershell -Command "(Get-Content ..\src\CyberSource\Api\TransactionBatchesApi.cs) | ForEach-Object { $_ -replace 'if \(startTime != null\)', '//if (startTime != null)' } | Set-Content ..\src\CyberSource\Api\TransactionBatchesApi.cs"
2927

3028
powershell -Command "(Get-Content ..\src\CyberSource\Api\TransactionBatchesApi.cs) | ForEach-Object { $_ -replace 'if \(endTime != null\)', '//if (endTime != null)' } | Set-Content ..\src\CyberSource\Api\TransactionBatchesApi.cs"
3129

30+
powershell -Command "$fileContents = (get-content ..\src\CyberSource\Api\ReportDownloadsApi.cs) ; $fileContents[263] = $fileContents[263] -replace 'null', 'localVarResponse.Content' ; $fileContents|Set-Content ..\src\CyberSource\Api\ReportDownloadsApi.cs"
31+
32+
powershell -Command "$fileContents = (Get-Content ..\src\CyberSource\Api\NetFundingsApi.cs) | ForEach-Object { $_ -replace '/reporting/v3/net-fundings', '/reporting/v3/net-fundings?startTime={startTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&endTime={endTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&organizationId={organizationId}&groupName={groupName}' } | Set-Content ..\src\CyberSource\Api\NetFundingsApi.cs"
33+
34+
powershell -Command "(Get-Content ..\src\CyberSource\Api\NetFundingsApi.cs) | ForEach-Object { $_ -replace 'if \(startTime != null\)', '//if (startTime != null)' } | Set-Content ..\src\CyberSource\Api\NetFundingsApi.cs"
35+
36+
powershell -Command "(Get-Content ..\src\CyberSource\Api\NetFundingsApi.cs) | ForEach-Object { $_ -replace 'if \(endTime != null\)', '//if (endTime != null)' } | Set-Content ..\src\CyberSource\Api\NetFundingsApi.cs"
37+
38+
powershell -Command "(Get-Content ..\src\CyberSource\Api\NetFundingsApi.cs) | ForEach-Object { $_ -replace 'if \(organizationId != null\)', '//if (organizationId != null)' } | Set-Content ..\src\CyberSource\Api\NetFundingsApi.cs"
39+
40+
powershell -Command "(Get-Content ..\src\CyberSource\Api\NetFundingsApi.cs) | ForEach-Object { $_ -replace 'if \(groupName != null\)', '//if (groupName != null)' } | Set-Content ..\src\CyberSource\Api\NetFundingsApi.cs"
41+
42+
powershell -Command "(Get-Content ..\src\CyberSource\Api\NotificationOfChangesApi.cs) | ForEach-Object { $_ -replace '/reporting/v3/notification-of-changes', '/reporting/v3/notification-of-changes?startTime={startTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&endTime={endTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}' } | Set-Content ..\src\CyberSource\Api\NotificationOfChangesApi.cs"
43+
44+
powershell -Command "(Get-Content ..\src\CyberSource\Api\NotificationOfChangesApi.cs) | ForEach-Object { $_ -replace 'if \(startTime != null\)', '//if (startTime != null)' } | Set-Content ..\src\CyberSource\Api\NotificationOfChangesApi.cs"
45+
46+
powershell -Command "(Get-Content ..\src\CyberSource\Api\NotificationOfChangesApi.cs) | ForEach-Object { $_ -replace 'if \(endTime != null\)', '//if (endTime != null)' } | Set-Content ..\src\CyberSource\Api\NotificationOfChangesApi.cs"
47+
48+
powershell -Command "(Get-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs) | ForEach-Object { $_ -replace '/reporting/v3/conversion-details', '/reporting/v3/conversion-details?startTime={startTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&endTime={endTime.Value.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")}&organizationId={organizationId}' } | Set-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs"
49+
50+
powershell -Command "(Get-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs) | ForEach-Object { $_ -replace 'if \(startTime != null\)', '//if (startTime != null)' } | Set-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs"
51+
52+
powershell -Command "(Get-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs) | ForEach-Object { $_ -replace 'if \(endTime != null\)', '//if (endTime != null)' } | Set-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs"
53+
54+
powershell -Command "(Get-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs) | ForEach-Object { $_ -replace 'if \(organizationId != null\)', '//if (organizationId != null)' } | Set-Content ..\src\CyberSource\Api\ConversionDetailsApi.cs"
55+
3256
powershell -Command "$fileContents = (get-content ..\src\CyberSource\Api\ReportsApi.cs) ; $fileContents[660] = $fileContents[660] -replace 'Configuration.ApiClient.SelectHeaderContentType\(localVarHttpContentTypes\)', '\"\"'; $fileContents|Set-Content ..\src\CyberSource\Api\ReportsApi.cs"
3357

3458
powershell -Command "$fileContents = (get-content ..\src\CyberSource\Api\ReportsApi.cs) ; $fileContents[670] = ''; $fileContents|Set-Content ..\src\CyberSource\Api\ReportsApi.cs"

0 commit comments

Comments
 (0)