Example #1
0
        public TransferStockResponse TransferStock(TransferStockRequest externalRequest)
        {
            Log(Logger.LogMessageType.Info, "->   -------------------- Comienza la ejecución del método Stock.TransferStock", Logger.LoggingLevelType.Medium);
            TransferStockRequestInternal internalRequest = new TransferStockRequestInternal()
            {
                Agent      = externalRequest.Request.Agent,
                Amount     = externalRequest.Request.Amount,
                DeviceType = externalRequest.Request.DeviceType,
                SessionID  = externalRequest.Request.SessionID
            };
            TransferStockResponseInternal internalResponse = TransferStockInternal(internalRequest);
            TransferStockResponse         externalResponse = new TransferStockResponse()
            {
                Response = new TransferStockResponseBody()
                {
                    ResponseCode    = internalResponse.ResponseCode,
                    ResponseMessage = internalResponse.ResponseMessage,
                    TransactionID   = internalResponse.TransactionID,
                    Fee             = internalResponse.Fee
                }
            };

            Log(Logger.LogMessageType.Info, "->   -------------------- Termina la ejecución del método Stock.TransferStock", Logger.LoggingLevelType.Medium);
            return(externalResponse);
        }
Example #2
0
 public TransferStockResponse TransferStock(TransferStockRequest request)
 {
     //TODO SECURE EXECUTION NO SE UTILIZA
     return(WrapResponse <TransferStockResponse, TransferStockResponseBody>(new ServiceExecutionDelegator <TransferStockResponseBody, TransferStockRequestBody>().ResolveRequest(request.Request,
                                                                                                                                                                                 ApiTargetPlatform.Utiba, ApiServiceName.TransferStock)));
 }