|
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 | { |
@@ -435,7 +436,13 @@ public ApiResponse<Object> DeleteCustomerWithHttpInfo (string customerId, string |
435 | 436 | { |
436 | 437 | localVarPostBody = null; |
437 | 438 | } |
438 | | - |
| 439 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 440 | + if(null!= filePostBodyAndDelimiter) |
| 441 | + { |
| 442 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 443 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 444 | + } |
| 445 | + |
439 | 446 | bool isMLESupportedByCybsForApi = false; |
440 | 447 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
441 | 448 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "DeleteCustomer,DeleteCustomerAsync,DeleteCustomerWithHttpInfo,DeleteCustomerAsyncWithHttpInfo")) |
@@ -550,6 +557,12 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteCustomerAsyn |
550 | 557 | { |
551 | 558 | localVarPostBody = null; |
552 | 559 | } |
| 560 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 561 | + if(null!= filePostBodyAndDelimiter) |
| 562 | + { |
| 563 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 564 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 565 | + } |
553 | 566 |
|
554 | 567 | bool isMLESupportedByCybsForApi = false; |
555 | 568 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
@@ -666,7 +679,13 @@ public ApiResponse< PostCustomerRequest > GetCustomerWithHttpInfo (string custom |
666 | 679 | { |
667 | 680 | localVarPostBody = null; |
668 | 681 | } |
669 | | - |
| 682 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 683 | + if(null!= filePostBodyAndDelimiter) |
| 684 | + { |
| 685 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 686 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 687 | + } |
| 688 | + |
670 | 689 | bool isMLESupportedByCybsForApi = false; |
671 | 690 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
672 | 691 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetCustomer,GetCustomerAsync,GetCustomerWithHttpInfo,GetCustomerAsyncWithHttpInfo")) |
@@ -783,6 +802,12 @@ public async System.Threading.Tasks.Task<ApiResponse<PostCustomerRequest>> GetCu |
783 | 802 | { |
784 | 803 | localVarPostBody = null; |
785 | 804 | } |
| 805 | + String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams); |
| 806 | + if(null!= filePostBodyAndDelimiter) |
| 807 | + { |
| 808 | + localVarPostBody = filePostBodyAndDelimiter[0]; |
| 809 | + localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1]; |
| 810 | + } |
786 | 811 |
|
787 | 812 | bool isMLESupportedByCybsForApi = false; |
788 | 813 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
@@ -914,8 +939,7 @@ public ApiResponse< PatchCustomerRequest > PatchCustomerWithHttpInfo (string cus |
914 | 939 | { |
915 | 940 | localVarPostBody = patchCustomerRequest; // byte array |
916 | 941 | } |
917 | | - |
918 | | - |
| 942 | + |
919 | 943 | bool isMLESupportedByCybsForApi = false; |
920 | 944 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
921 | 945 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "PatchCustomer,PatchCustomerAsync,PatchCustomerWithHttpInfo,PatchCustomerAsyncWithHttpInfo")) |
@@ -1162,8 +1186,7 @@ public ApiResponse< PostCustomerRequest > PostCustomerWithHttpInfo (PostCustomer |
1162 | 1186 | { |
1163 | 1187 | localVarPostBody = postCustomerRequest; // byte array |
1164 | 1188 | } |
1165 | | - |
1166 | | - |
| 1189 | + |
1167 | 1190 | bool isMLESupportedByCybsForApi = false; |
1168 | 1191 | MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI); |
1169 | 1192 | if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "PostCustomer,PostCustomerAsync,PostCustomerWithHttpInfo,PostCustomerAsyncWithHttpInfo")) |
|
0 commit comments