Skip to content

Commit

Permalink
Merge pull request #23 from CyberSource/future
Browse files Browse the repository at this point in the history
+ Fixing issue with report downloads writing to file
  • Loading branch information
gnongsie authored Apr 4, 2019
2 parents 72dfdab + 6b4a771 commit e09077d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Api/ReportDownloadsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public ApiResponse<Object> DownloadReportWithHttpInfo (DateTime? reportDate, str

return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
null);
localVarResponse.Content);
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.0.5")]
[assembly: AssemblyFileVersion("0.0.0.5")]
[assembly: AssemblyVersion("0.0.0.6")]
[assembly: AssemblyFileVersion("0.0.0.6")]
2 changes: 1 addition & 1 deletion cybersource-rest-client-dotnet.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>CyberSource.Rest.Client</id>
<version>0.0.0.5</version>
<version>0.0.0.6</version>
<title>CyberSource.Rest.Client</title>
<authors>CyberSource Corporation</authors>
<owners>CyberSource</owners>
Expand Down
2 changes: 2 additions & 0 deletions generator/cybersource_csharp_sdk_gen.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ powershell -Command "(Get-Content ..\src\CyberSource\Model\ReportingV3ReportSubs
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
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"

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"

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"

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"
Expand Down

0 comments on commit e09077d

Please sign in to comment.