|
19 | 19 | using AuthenticationSdk.util; |
20 | 20 | using CyberSource.Utilities.Tracking; |
21 | 21 | using AuthenticationSdk.core; |
| 22 | +using CyberSource.Utilities; |
22 | 23 |
|
23 | 24 | namespace CyberSource.Api |
24 | 25 | { |
@@ -420,7 +421,13 @@ public ApiResponse< InlineResponse2007 > GetBatchReportWithHttpInfo (string batc |
420 | 421 | { |
421 | 422 | localVarPostBody = null; |
422 | 423 | } |
423 | | - |
| 424 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 425 | + if(null!= filePostBodyAndDelimiter) |
| 426 | + { |
| 427 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 428 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 429 | + } |
| 430 | + |
424 | 431 | bool isMLESupportedByCybsForApi = false; |
425 | 432 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
426 | 433 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetBatchReport,GetBatchReportAsync,GetBatchReportWithHttpInfo,GetBatchReportAsyncWithHttpInfo")) |
@@ -531,6 +538,12 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse2007>> GetBat |
531 | 538 | { |
532 | 539 | localVarPostBody = null; |
533 | 540 | } |
| 541 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 542 | + if(null!= filePostBodyAndDelimiter) |
| 543 | + { |
| 544 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 545 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 546 | + } |
534 | 547 |
|
535 | 548 | bool isMLESupportedByCybsForApi = false; |
536 | 549 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
@@ -640,7 +653,13 @@ public ApiResponse< InlineResponse2006 > GetBatchStatusWithHttpInfo (string batc |
640 | 653 | { |
641 | 654 | localVarPostBody = null; |
642 | 655 | } |
643 | | - |
| 656 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 657 | + if(null!= filePostBodyAndDelimiter) |
| 658 | + { |
| 659 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 660 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 661 | + } |
| 662 | + |
644 | 663 | bool isMLESupportedByCybsForApi = false; |
645 | 664 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
646 | 665 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetBatchStatus,GetBatchStatusAsync,GetBatchStatusWithHttpInfo,GetBatchStatusAsyncWithHttpInfo")) |
@@ -751,6 +770,12 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse2006>> GetBat |
751 | 770 | { |
752 | 771 | localVarPostBody = null; |
753 | 772 | } |
| 773 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 774 | + if(null!= filePostBodyAndDelimiter) |
| 775 | + { |
| 776 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 777 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 778 | + } |
754 | 779 |
|
755 | 780 | bool isMLESupportedByCybsForApi = false; |
756 | 781 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
@@ -875,7 +900,13 @@ public ApiResponse< InlineResponse2005 > GetBatchesListWithHttpInfo (long? offse |
875 | 900 | { |
876 | 901 | localVarPostBody = null; |
877 | 902 | } |
878 | | - |
| 903 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 904 | + if(null!= filePostBodyAndDelimiter) |
| 905 | + { |
| 906 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 907 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 908 | + } |
| 909 | + |
879 | 910 | bool isMLESupportedByCybsForApi = false; |
880 | 911 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
881 | 912 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetBatchesList,GetBatchesListAsync,GetBatchesListWithHttpInfo,GetBatchesListAsyncWithHttpInfo")) |
@@ -1001,6 +1032,12 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse2005>> GetBat |
1001 | 1032 | { |
1002 | 1033 | localVarPostBody = null; |
1003 | 1034 | } |
| 1035 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 1036 | + if(null!= filePostBodyAndDelimiter) |
| 1037 | + { |
| 1038 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 1039 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 1040 | + } |
1004 | 1041 |
|
1005 | 1042 | bool isMLESupportedByCybsForApi = false; |
1006 | 1043 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
@@ -1107,8 +1144,7 @@ public ApiResponse< InlineResponse202 > PostBatchWithHttpInfo (Body body) |
1107 | 1144 | { |
1108 | 1145 | localVarPostBody = body; // byte array |
1109 | 1146 | } |
1110 | | - |
1111 | | - |
| 1147 | + |
1112 | 1148 | bool isMLESupportedByCybsForApi = false; |
1113 | 1149 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
1114 | 1150 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "PostBatch,PostBatchAsync,PostBatchWithHttpInfo,PostBatchAsyncWithHttpInfo")) |
|
0 commit comments