예제 #1
0
        //LoginRequestInternal loginRequest = new LoginRequestInternal()
        //{
        //    DeviceType = externalRequest.Request.DeviceType,
        //    Password = externalRequest.Request.Password,
        //    User = externalRequest.Request.Username
        //};
        //LoginResponseInternal loginResponse = AuthenticationProvider.LoginInternal(loginRequest);

        public PayStockResponse PayStock(PayStockRequest externalRequest)
        {
            Log(Logger.LogMessageType.Info, "->   -------------------- Comienza la ejecución del método Stock.PayStock", Logger.LoggingLevelType.Medium);
            PayStockRequestInternal internalRequest = new PayStockRequestInternal()
            {
                SessionID  = externalRequest.Request.SessionID,
                Amount     = externalRequest.Request.Amount,
                DeviceType = externalRequest.Request.DeviceType,
                Bank       = externalRequest.Request.Bank,
                Account    = externalRequest.Request.Account,
                Voucher    = externalRequest.Request.Voucher
            };
            PayStockResponseInternal internalResponse = PayStockInternal(internalRequest);
            PayStockResponse         externalResponse = new PayStockResponse()
            {
                Response = new PayStockResponseBody()
                {
                    ResponseCode    = internalResponse.ResponseCode,
                    ResponseMessage = internalResponse.ResponseMessage,
                    TransactionID   = internalResponse.TransactionID,
                    Fee             = internalResponse.Fee
                }
            };

            Log(Logger.LogMessageType.Info, "->   -------------------- Termina la ejecución del método Stock.PayStock", Logger.LoggingLevelType.Medium);
            return(externalResponse);
        }
예제 #2
0
 public PayStockResponse PayStock(PayStockRequest request)
 {
     return(WrapResponse <PayStockResponse, PayStockResponseBody>(new ServiceExecutionDelegator <PayStockResponseBody, PayStockRequestBody>().ResolveRequest(request.Request,
                                                                                                                                                             ApiTargetPlatform.Utiba, ApiServiceName.PayStock)));
 }