Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 34 additions & 18 deletions Api/BatchesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public ApiResponse< InlineResponse20012 > GetBatchReportWithHttpInfo (string bat
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "GetBatchReport,GetBatchReportAsync,GetBatchReportWithHttpInfo,GetBatchReportAsyncWithHttpInfo"))
{
try
Expand All @@ -443,12 +443,14 @@ public ApiResponse< InlineResponse20012 > GetBatchReportWithHttpInfo (string bat
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetBatchReport,GetBatchReportAsync,GetBatchReportWithHttpInfo,GetBatchReportAsyncWithHttpInfo");



// make the HTTP request
RestResponse localVarResponse = (RestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int) localVarResponse.StatusCode;

Expand Down Expand Up @@ -546,7 +548,7 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse20012>> GetBa
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "GetBatchReport,GetBatchReportAsync,GetBatchReportWithHttpInfo,GetBatchReportAsyncWithHttpInfo"))
{
try
Expand All @@ -560,12 +562,14 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse20012>> GetBa
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetBatchReport,GetBatchReportAsync,GetBatchReportWithHttpInfo,GetBatchReportAsyncWithHttpInfo");



// make the HTTP request
RestResponse localVarResponse = (RestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand Down Expand Up @@ -661,7 +665,7 @@ public ApiResponse< InlineResponse20011 > GetBatchStatusWithHttpInfo (string bat
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "GetBatchStatus,GetBatchStatusAsync,GetBatchStatusWithHttpInfo,GetBatchStatusAsyncWithHttpInfo"))
{
try
Expand All @@ -675,12 +679,14 @@ public ApiResponse< InlineResponse20011 > GetBatchStatusWithHttpInfo (string bat
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetBatchStatus,GetBatchStatusAsync,GetBatchStatusWithHttpInfo,GetBatchStatusAsyncWithHttpInfo");



// make the HTTP request
RestResponse localVarResponse = (RestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int) localVarResponse.StatusCode;

Expand Down Expand Up @@ -778,7 +784,7 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse20011>> GetBa
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "GetBatchStatus,GetBatchStatusAsync,GetBatchStatusWithHttpInfo,GetBatchStatusAsyncWithHttpInfo"))
{
try
Expand All @@ -792,12 +798,14 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse20011>> GetBa
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetBatchStatus,GetBatchStatusAsync,GetBatchStatusWithHttpInfo,GetBatchStatusAsyncWithHttpInfo");



// make the HTTP request
RestResponse localVarResponse = (RestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand Down Expand Up @@ -908,7 +916,7 @@ public ApiResponse< InlineResponse20010 > GetBatchesListWithHttpInfo (long? offs
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "GetBatchesList,GetBatchesListAsync,GetBatchesListWithHttpInfo,GetBatchesListAsyncWithHttpInfo"))
{
try
Expand All @@ -922,12 +930,14 @@ public ApiResponse< InlineResponse20010 > GetBatchesListWithHttpInfo (long? offs
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetBatchesList,GetBatchesListAsync,GetBatchesListWithHttpInfo,GetBatchesListAsyncWithHttpInfo");



// make the HTTP request
RestResponse localVarResponse = (RestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int) localVarResponse.StatusCode;

Expand Down Expand Up @@ -1040,7 +1050,7 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse20010>> GetBa
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "GetBatchesList,GetBatchesListAsync,GetBatchesListWithHttpInfo,GetBatchesListAsyncWithHttpInfo"))
{
try
Expand All @@ -1054,12 +1064,14 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse20010>> GetBa
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetBatchesList,GetBatchesListAsync,GetBatchesListWithHttpInfo,GetBatchesListAsyncWithHttpInfo");



// make the HTTP request
RestResponse localVarResponse = (RestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand Down Expand Up @@ -1146,7 +1158,7 @@ public ApiResponse< InlineResponse202 > PostBatchWithHttpInfo (Body body)
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "PostBatch,PostBatchAsync,PostBatchWithHttpInfo,PostBatchAsyncWithHttpInfo"))
{
try
Expand All @@ -1160,13 +1172,15 @@ public ApiResponse< InlineResponse202 > PostBatchWithHttpInfo (Body body)
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "PostBatch,PostBatchAsync,PostBatchWithHttpInfo,PostBatchAsyncWithHttpInfo");

logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}");


// make the HTTP request
RestResponse localVarResponse = (RestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int) localVarResponse.StatusCode;

Expand All @@ -1182,7 +1196,7 @@ public ApiResponse< InlineResponse202 > PostBatchWithHttpInfo (Body body)

return new ApiResponse<InlineResponse202>(localVarStatusCode,
localVarResponse.Headers.GroupBy(h => h.Name).ToDictionary(x => x.Key, x => string.Join(", ", x.Select(h => h.Value.ToString()))),
(InlineResponse202) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse202))); // Return statement
(InlineResponse202) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse202), merchantConfig)); // Return statement
}

/// <summary>
Expand Down Expand Up @@ -1255,7 +1269,7 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse202>> PostBat
}

String inboundMLEStatus = "false";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "PostBatch,PostBatchAsync,PostBatchWithHttpInfo,PostBatchAsyncWithHttpInfo"))
{
try
Expand All @@ -1269,13 +1283,15 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse202>> PostBat
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "PostBatch,PostBatchAsync,PostBatchWithHttpInfo,PostBatchAsyncWithHttpInfo");

logger.Debug($"HTTP Request Body :\n{logUtility.MaskSensitiveData(localVarPostBody.ToString())}");


// make the HTTP request
RestResponse localVarResponse = (RestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
localVarPathParams, localVarHttpContentType, isResponseMLEForApi);

int localVarStatusCode = (int)localVarResponse.StatusCode;

Expand All @@ -1291,7 +1307,7 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse202>> PostBat

return new ApiResponse<InlineResponse202>(localVarStatusCode,
localVarResponse.Headers.GroupBy(h => h.Name).ToDictionary(x => x.Key, x => string.Join(", ", x.Select(h => h.Value.ToString()))),
(InlineResponse202) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse202))); // Return statement
(InlineResponse202) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse202), merchantConfig)); // Return statement
}
}
}
Loading