/// <summary> /// Authentication Exemptions Service A new CYBS branded service to connect to VISA’s REST API to enable Visa Transaction Advisor (VTA) as a standalone service for merchants to support PSD2/SCA adoption and exemptions processing startegy in Europe.VTA Provides intelligent risk data to merchants as inputs to their in-house fraud management tools for fraud mitigation on Visa transactions. /// </summary> /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authenticationExemptionsRequest"></param> /// <returns>Task of RiskV1AuthenticationExemptionsPost201Response</returns> public async System.Threading.Tasks.Task <RiskV1AuthenticationExemptionsPost201Response> AuthenticationExemptionsAsync(AuthenticationExemptionsRequest authenticationExemptionsRequest) { ApiResponse <RiskV1AuthenticationExemptionsPost201Response> localVarResponse = await AuthenticationExemptionsAsyncWithHttpInfo(authenticationExemptionsRequest); return(localVarResponse.Data); }
/// <summary> /// Authentication Exemptions Service A new CYBS branded service to connect to VISA’s REST API to enable Visa Transaction Advisor (VTA) as a standalone service for merchants to support PSD2/SCA adoption and exemptions processing startegy in Europe.VTA Provides intelligent risk data to merchants as inputs to their in-house fraud management tools for fraud mitigation on Visa transactions. /// </summary> /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authenticationExemptionsRequest"></param> /// <returns>Task of ApiResponse (RiskV1AuthenticationExemptionsPost201Response)</returns> public async System.Threading.Tasks.Task <ApiResponse <RiskV1AuthenticationExemptionsPost201Response> > AuthenticationExemptionsAsyncWithHttpInfo(AuthenticationExemptionsRequest authenticationExemptionsRequest) { // verify the required parameter 'authenticationExemptionsRequest' is set if (authenticationExemptionsRequest == null) { throw new ApiException(400, "Missing required parameter 'authenticationExemptionsRequest' when calling AuthenticationExemptionsApi->AuthenticationExemptions"); } var localVarPath = $"/risk/v1/authentication-exemptions"; var localVarPathParams = new Dictionary <String, String>(); var localVarQueryParams = new Dictionary <String, String>(); var localVarHeaderParams = new Dictionary <String, String>(Configuration.DefaultHeader); var localVarFormParams = new Dictionary <String, String>(); var localVarFileParams = new Dictionary <String, FileParameter>(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/hal+json;charset=utf-8" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) { localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); } if (authenticationExemptionsRequest != null && authenticationExemptionsRequest.GetType() != typeof(byte[])) { localVarPostBody = Configuration.ApiClient.Serialize(authenticationExemptionsRequest); // http body (model) parameter } else { localVarPostBody = authenticationExemptionsRequest; // byte array } // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("AuthenticationExemptions", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <RiskV1AuthenticationExemptionsPost201Response>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (RiskV1AuthenticationExemptionsPost201Response)Configuration.ApiClient.Deserialize(localVarResponse, typeof(RiskV1AuthenticationExemptionsPost201Response)))); }
/// <summary> /// Authentication Exemptions Service A new CYBS branded service to connect to VISA’s REST API to enable Visa Transaction Advisor (VTA) as a standalone service for merchants to support PSD2/SCA adoption and exemptions processing startegy in Europe.VTA Provides intelligent risk data to merchants as inputs to their in-house fraud management tools for fraud mitigation on Visa transactions. /// </summary> /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="authenticationExemptionsRequest"></param> /// <returns>RiskV1AuthenticationExemptionsPost201Response</returns> public RiskV1AuthenticationExemptionsPost201Response AuthenticationExemptions(AuthenticationExemptionsRequest authenticationExemptionsRequest) { ApiResponse <RiskV1AuthenticationExemptionsPost201Response> localVarResponse = AuthenticationExemptionsWithHttpInfo(authenticationExemptionsRequest); return(localVarResponse.Data); }