Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
64 changes: 40 additions & 24 deletions Api/BatchesApi.cs

Large diffs are not rendered by default.

48 changes: 30 additions & 18 deletions Api/BillingAgreementsApi.cs

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions Api/BinLookupApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public ApiResponse< InlineResponse2012 > GetAccountInfoWithHttpInfo (CreateBinLo
}

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, "GetAccountInfo,GetAccountInfoAsync,GetAccountInfoWithHttpInfo,GetAccountInfoAsyncWithHttpInfo"))
{
try
Expand All @@ -297,13 +297,15 @@ public ApiResponse< InlineResponse2012 > GetAccountInfoWithHttpInfo (CreateBinLo
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetAccountInfo,GetAccountInfoAsync,GetAccountInfoWithHttpInfo,GetAccountInfoAsyncWithHttpInfo");

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 @@ -319,7 +321,7 @@ public ApiResponse< InlineResponse2012 > GetAccountInfoWithHttpInfo (CreateBinLo

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

/// <summary>
Expand Down Expand Up @@ -392,7 +394,7 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse2012>> GetAcc
}

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, "GetAccountInfo,GetAccountInfoAsync,GetAccountInfoWithHttpInfo,GetAccountInfoAsyncWithHttpInfo"))
{
try
Expand All @@ -406,13 +408,15 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse2012>> GetAcc
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetAccountInfo,GetAccountInfoAsync,GetAccountInfoWithHttpInfo,GetAccountInfoAsyncWithHttpInfo");

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 @@ -428,7 +432,7 @@ public async System.Threading.Tasks.Task<ApiResponse<InlineResponse2012>> GetAcc

return new ApiResponse<InlineResponse2012>(localVarStatusCode,
localVarResponse.Headers.GroupBy(h => h.Name).ToDictionary(x => x.Key, x => string.Join(", ", x.Select(h => h.Value.ToString()))),
(InlineResponse2012) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2012))); // Return statement
(InlineResponse2012) Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse2012), merchantConfig)); // Return statement
}
}
}
16 changes: 10 additions & 6 deletions Api/CaptureApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public ApiResponse< PtsV2PaymentsCapturesPost201Response > CapturePaymentWithHtt
}

String inboundMLEStatus = "optional";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "CapturePayment,CapturePaymentAsync,CapturePaymentWithHttpInfo,CapturePaymentAsyncWithHttpInfo"))
{
try
Expand All @@ -313,13 +313,15 @@ public ApiResponse< PtsV2PaymentsCapturesPost201Response > CapturePaymentWithHtt
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "CapturePayment,CapturePaymentAsync,CapturePaymentWithHttpInfo,CapturePaymentAsyncWithHttpInfo");

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 @@ -335,7 +337,7 @@ public ApiResponse< PtsV2PaymentsCapturesPost201Response > CapturePaymentWithHtt

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

/// <summary>
Expand Down Expand Up @@ -421,7 +423,7 @@ public async System.Threading.Tasks.Task<ApiResponse<PtsV2PaymentsCapturesPost20
}

String inboundMLEStatus = "optional";
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI, Configuration.ResponseMlePrivateKey);
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, inboundMLEStatus, "CapturePayment,CapturePaymentAsync,CapturePaymentWithHttpInfo,CapturePaymentAsyncWithHttpInfo"))
{
try
Expand All @@ -435,13 +437,15 @@ public async System.Threading.Tasks.Task<ApiResponse<PtsV2PaymentsCapturesPost20
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "CapturePayment,CapturePaymentAsync,CapturePaymentWithHttpInfo,CapturePaymentAsyncWithHttpInfo");

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 @@ -457,7 +461,7 @@ public async System.Threading.Tasks.Task<ApiResponse<PtsV2PaymentsCapturesPost20

return new ApiResponse<PtsV2PaymentsCapturesPost201Response>(localVarStatusCode,
localVarResponse.Headers.GroupBy(h => h.Name).ToDictionary(x => x.Key, x => string.Join(", ", x.Select(h => h.Value.ToString()))),
(PtsV2PaymentsCapturesPost201Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(PtsV2PaymentsCapturesPost201Response))); // Return statement
(PtsV2PaymentsCapturesPost201Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(PtsV2PaymentsCapturesPost201Response), merchantConfig)); // Return statement
}
}
}
16 changes: 10 additions & 6 deletions Api/ChargebackDetailsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public ApiResponse< ReportingV3ChargebackDetailsGet200Response > GetChargebackDe
}

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, "GetChargebackDetails,GetChargebackDetailsAsync,GetChargebackDetailsWithHttpInfo,GetChargebackDetailsAsyncWithHttpInfo"))
{
try
Expand All @@ -334,12 +334,14 @@ public ApiResponse< ReportingV3ChargebackDetailsGet200Response > GetChargebackDe
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetChargebackDetails,GetChargebackDetailsAsync,GetChargebackDetailsWithHttpInfo,GetChargebackDetailsAsyncWithHttpInfo");



// 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 All @@ -355,7 +357,7 @@ public ApiResponse< ReportingV3ChargebackDetailsGet200Response > GetChargebackDe

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

/// <summary>
Expand Down Expand Up @@ -458,7 +460,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackDetail
}

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, "GetChargebackDetails,GetChargebackDetailsAsync,GetChargebackDetailsWithHttpInfo,GetChargebackDetailsAsyncWithHttpInfo"))
{
try
Expand All @@ -472,12 +474,14 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackDetail
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetChargebackDetails,GetChargebackDetailsAsync,GetChargebackDetailsWithHttpInfo,GetChargebackDetailsAsyncWithHttpInfo");



// 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 All @@ -493,7 +497,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackDetail

return new ApiResponse<ReportingV3ChargebackDetailsGet200Response>(localVarStatusCode,
localVarResponse.Headers.GroupBy(h => h.Name).ToDictionary(x => x.Key, x => string.Join(", ", x.Select(h => h.Value.ToString()))),
(ReportingV3ChargebackDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3ChargebackDetailsGet200Response))); // Return statement
(ReportingV3ChargebackDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3ChargebackDetailsGet200Response), merchantConfig)); // Return statement
}
}
}
16 changes: 10 additions & 6 deletions Api/ChargebackSummariesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public ApiResponse< ReportingV3ChargebackSummariesGet200Response > GetChargeback
}

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, "GetChargebackSummaries,GetChargebackSummariesAsync,GetChargebackSummariesWithHttpInfo,GetChargebackSummariesAsyncWithHttpInfo"))
{
try
Expand All @@ -334,12 +334,14 @@ public ApiResponse< ReportingV3ChargebackSummariesGet200Response > GetChargeback
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetChargebackSummaries,GetChargebackSummariesAsync,GetChargebackSummariesWithHttpInfo,GetChargebackSummariesAsyncWithHttpInfo");



// 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 All @@ -355,7 +357,7 @@ public ApiResponse< ReportingV3ChargebackSummariesGet200Response > GetChargeback

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

/// <summary>
Expand Down Expand Up @@ -458,7 +460,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackSummar
}

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, "GetChargebackSummaries,GetChargebackSummariesAsync,GetChargebackSummariesWithHttpInfo,GetChargebackSummariesAsyncWithHttpInfo"))
{
try
Expand All @@ -472,12 +474,14 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackSummar
}
}

bool isResponseMLEForApi = MLEUtility.CheckIsResponseMLEForAPI(merchantConfig, "GetChargebackSummaries,GetChargebackSummariesAsync,GetChargebackSummariesWithHttpInfo,GetChargebackSummariesAsyncWithHttpInfo");



// 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 All @@ -493,7 +497,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackSummar

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