Skip to content

Commit e09077d

Browse files
authored
Merge pull request #23 from CyberSource/future
+ Fixing issue with report downloads writing to file
2 parents 72dfdab + 6b4a771 commit e09077d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Api/ReportDownloadsApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public ApiResponse<Object> DownloadReportWithHttpInfo (DateTime? reportDate, str
261261

262262
return new ApiResponse<Object>(localVarStatusCode,
263263
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
264-
null);
264+
localVarResponse.Content);
265265
}
266266

267267
/// <summary>

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
// You can specify all the values or you can default the Build and Revision Numbers
2929
// by using the '*' as shown below:
3030
// [assembly: AssemblyVersion("1.0.*")]
31-
[assembly: AssemblyVersion("0.0.0.5")]
32-
[assembly: AssemblyFileVersion("0.0.0.5")]
31+
[assembly: AssemblyVersion("0.0.0.6")]
32+
[assembly: AssemblyFileVersion("0.0.0.6")]

cybersource-rest-client-dotnet.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>CyberSource.Rest.Client</id>
5-
<version>0.0.0.5</version>
5+
<version>0.0.0.6</version>
66
<title>CyberSource.Rest.Client</title>
77
<authors>CyberSource Corporation</authors>
88
<owners>CyberSource</owners>

generator/cybersource_csharp_sdk_gen.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ powershell -Command "(Get-Content ..\src\CyberSource\Model\ReportingV3ReportSubs
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
2424
powershell -Command "$fileContents = (get-content ..\src\CyberSource\Api\TransactionBatchesApi.cs) ; $fileContents[392] = $fileContents[392] -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[466] = $fileContents[466] -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"
2525

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"
27+
2628
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"
2729

2830
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"

0 commit comments

Comments
 (0)