Skip to content

Commit a8acd78

Browse files
committed
+ Made changes to bat file to fix SDK issues.
1 parent 75d587c commit a8acd78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generator/cybersource_node_sdk_gen.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ powershell -Command "(Get-Content ..\src\Api\VoidApi.js) | ForEach-Object { $_ -
2727

2828
powershell -Command "(Get-Content ..\src\Api\SearchTransactionsApi.js) | ForEach-Object { $_ -replace 'accepts = \[''application/json;charset=utf-8', 'accepts = [''*/*'} | Set-Content ..\src\Api\SearchTransactionsApi.js"
2929

30+
powershell -Command "(Get-Content ..\src\Api\PayerAuthenticationApi.js) | ForEach-Object { $_ -replace 'accepts = \[''application/json;charset=utf-8', 'accepts = [''application/hal+json;charset=utf-8'} | Set-Content ..\src\Api\PayerAuthenticationApi.js"
31+
3032
REM Batch file to change the content type
3133

3234
powershell -Command "(Get-Content ..\src\Api\SecureFileShareApi.js) | ForEach-Object { $_ -replace 'contentTypes = \[''application/json;charset=utf-8', 'contentTypes = [''*/*' } | Set-Content ..\src\Api\SecureFileShareApi.js"
3335

34-
powershell -Command "$fileContents = (Get-Content ..\src\index.js) ; for ($i = 1993; $i -lt 2003; $i++) { $fileContents[$i] = ''; } ; $fileContents | Set-Content ..\src\index.js"
36+
REM powershell -Command "$fileContents = (Get-Content ..\src\index.js) ; for ($i = 1993; $i -lt 2003; $i++) { $fileContents[$i] = ''; } ; $fileContents | Set-Content ..\src\index.js"
3537

3638
powershell -Command "(Get-Content ..\src\index.js) | ForEach-Object { $_ -replace \"require\('./api/Download([DTXS]{3})Api'\), \", \"\" } | Set-Content ..\src\index.js"
3739

0 commit comments

Comments
 (0)