public LoanSimulatorResponse LoanSimulator(string customerId, LoanSimulatorRequest request, Header header)
        {
            header.apikey          = APIKey;
            header.apisecret       = APISecret;
            header.resourceOwnerId = customerId;

            WebClient webC = authenticationService.ConvertHeadertoWebClient(header);

            return(Post <LoanSimulatorResponse, LoanSimulatorRequest>("/v1/loanorigination/simulator/calculate", request, webC));
        }
Ejemplo n.º 2
0
        public LoanSimulatorResponse LoanSimulator([FromBody] LoanSimulatorRequest request)
        {
            string customerId = Request.Headers["resourceOwnerId"];

            Header header = new Header();

            authenticationService.GetOauthAuthorize(header);

            AuthenticationResponse accessToken = authenticationService.OAuthToken(header);

            header.authorization = accessToken.data.tokenType + " " + accessToken.data.accessToken;

            LoanSimulatorResponse response = loanCalculatorService.LoanSimulator(customerId, request, header);

            return(response);
        }