public Response Send(IHostedPciDataConverter converter, ApiCredentials credentials, BaseRequest request)
 {
     request.SetRequestCredentials(credentials);
     var queryString = converter.ConvertToQueryString(request);
     var responseString = Post(queryString, credentials.GetUrl(request.RequestType));
     return converter.ConvertToResponse(responseString);
 }
Пример #2
0
        public Response Send(IHostedPciDataConverter converter, ApiCredentials credentials, BaseRequest request)
        {
            request.SetRequestCredentials(credentials);
            var queryString    = converter.ConvertToQueryString(request);
            var responseString = Post(queryString, credentials.GetUrl(request.RequestType));

            return(converter.ConvertToResponse(responseString));
        }
        public Response Send(IHostedPciDataConverter converter, ApiCredentials credentials, BaseRequest request,
             out string url, out string rawRquest, out string rawResponse)
        {
            var requestUrl = credentials.GetUrl(request.RequestType);
            
            request.SetRequestCredentials(credentials);
            var queryString = converter.ConvertToQueryString(request);
            var responseString = Post(queryString, requestUrl);
            var response = converter.ConvertToResponse(responseString);
            
            url = requestUrl;
            rawRquest = queryString;
            rawResponse = responseString;

            return response;
        }
Пример #4
0
        public Response Send(IHostedPciDataConverter converter, ApiCredentials credentials, BaseRequest request,
                             out string url, out string rawRquest, out string rawResponse)
        {
            var requestUrl = credentials.GetUrl(request.RequestType);

            request.SetRequestCredentials(credentials);
            var queryString    = converter.ConvertToQueryString(request);
            var responseString = Post(queryString, requestUrl);
            var response       = converter.ConvertToResponse(responseString);

            url         = requestUrl;
            rawRquest   = queryString;
            rawResponse = responseString;

            return(response);
        }