Exemplo n.º 1
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_EFT_DepositRequest ffTgt = request as FFTgt_G2H_EFT_DepositRequest;
     if (ffTgt != null)
     {
         MonTgt_G2H_EFT_DepositRequest monTgt = new MonTgt_G2H_EFT_DepositRequest()
         {
             NonCashableAmount = ffTgt.NonCashableAmount,
             CashableAmount = ffTgt.CashableAmount,
             PlayerCardNumber = ffTgt.PlayerCardNumber,
             Pin = ffTgt.Pin,
         };
         return monTgt;
     }
     return null;
 }
Exemplo n.º 2
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_EFT_DepositRequest ffTgt = request as FFTgt_G2H_EFT_DepositRequest;

            if (ffTgt != null)
            {
                MonTgt_G2H_EFT_DepositRequest monTgt = new MonTgt_G2H_EFT_DepositRequest()
                {
                    NonCashableAmount = ffTgt.NonCashableAmount,
                    CashableAmount    = ffTgt.CashableAmount,
                    PlayerCardNumber  = ffTgt.PlayerCardNumber,
                    Pin = ffTgt.Pin,
                };
                return(monTgt);
            }
            return(null);
        }
Exemplo n.º 3
0
        private bool DoDepositRequest(MonMsg_G2H request, MonTgt_G2H_EFT_DepositRequest monDepositRequest)
        {
            Log.Info("Started Deposit Request");
            Log.Info("Card Value : " + monDepositRequest.CardNumber);
            //Log.Info("Encrypted Pin XXXXXXXXXXXXXXXX");
            Log.Info("Started DepositRequest " + monDepositRequest.CardNumber);
            
            InstallationDetailsForMSMQ installationDetails = ExCommsDataContext.Current.GetInstallationDetailsByDatapak(request.InstallationNo);
            HandlerHelper.Current.SaveSDTRequest(monDepositRequest.CardNumber, request.InstallationNo);
            //HandlerHelper.Current.SaveSDTAccountType(monDepositRequest.CardNumber, );

            string asset = HandlerHelper.Current.GetAssetByStockPrefix(request.Asset);
            DateTime transDate = DateTime.Now;

            //Authentication  - To do
            DepositRequest depositRequest = new DepositRequest
            {
                //AccountType = monDepositRequest.ac,
                CashableFunds = Convert.ToInt32((monDepositRequest.CashableAmount * 100)),
                NonCashableFunds = Convert.ToInt32((monDepositRequest.NonCashableAmount * 100)),
                //Authentication = 
                BarPosition = installationDetails.Bar_Pos_Name,
                CardNo = monDepositRequest.CardNumber,
                //EncryptedPin = 
                InstallationNo = request.InstallationNo,
                SlotIndex = installationDetails.Bar_Pos_Name,
                SlotNumber = asset,
                Stand = installationDetails.Bar_Pos_Name,
                TransactionDate = transDate.ToString("yyyyMMdd").PadLeft(8, '0'),
                TransactionID = installationDetails.TransactionID.ToString(),
                TransactionTime = transDate.ToString("HHmmss").PadLeft(6, '0'),
                SiteCode = request.SiteCode
            };

            HandlerHelper.PlayerGatewayInstance.DepositRequest(depositRequest, this.DepositRequestResp);
            Log.Info("Time taken to send message to Gateway " + DateTime.Now.TimeOfDay.ToString());
            return true;
        }