Ejemplo n.º 1
0
        protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (DeviceResponseCode == "000000")
            {
                TotalRecords    = int.Parse(br.ReadToCode(ControlCodes.FS));
                RecordNumber    = int.Parse(br.ReadToCode(ControlCodes.FS));
                HostResponse    = new HostResponse(br);
                CardType        = ((TerminalCardType)int.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");
                TransactionType = ((TerminalTransactionType)int.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");

                int originalTransactionTypeId;
                if (int.TryParse(br.ReadToCode(ControlCodes.FS), out originalTransactionTypeId))
                {
                    TerminalTransactionType transType = (TerminalTransactionType)originalTransactionTypeId;
                    OriginalTransactionType = transType.ToString().Replace("_", " ");
                }

                AmountResponse     = new AmountResponse(br);
                AccountResponse    = new AccountResponse(br);
                TraceResponse      = new TraceResponse(br);
                CashierResponse    = new CashierSubGroup(br);
                CommercialResponse = new CommercialResponse(br);
                CheckSubResponse   = new CheckSubGroup(br);
                ExtDataResponse    = new ExtDataSubGroup(br);

                MapResponse();
            }
        }
        protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (DeviceResponseCode == "000000")
            {
                HostResponse     = new HostResponse(br);
                TransactionType  = ((TerminalTransactionType)Int32.Parse(br.ReadToCode(ControlCodes.FS))).ToString().Replace("_", " ");
                AmountResponse   = new AmountResponse(br);
                CheckSubResponse = new CheckSubGroup(br);
                TraceResponse    = new TraceResponse(br);
                ExtDataResponse  = new ExtDataSubGroup(br);
            }

            MapResponse();
        }
Ejemplo n.º 3
0
        protected override void ParseResponse(BinaryReader br)
        {
            base.ParseResponse(br);

            if (DeviceResponseCode == "000000")
            {
                HostResponse     = new HostResponse(br);
                TransactionType  = br.ReadToCode(ControlCodes.FS);
                AmountResponse   = new AmountResponse(br);
                CheckSubResponse = new CheckSubGroup(br);
                TraceResponse    = new TraceResponse(br);
                ExtDataResponse  = new ExtDataSubGroup(br);
            }

            MapResponse();
        }
Ejemplo n.º 4
0
        internal CheckSubResponse DoCheck(string txnType, AmountRequest amounts, CheckSubGroup check, TraceRequest trace, CashierSubGroup cashier, ExtDataSubGroup extData)
        {
            var response = DoTransaction(PAX_MSG_ID.T12_DO_CHECK, txnType, amounts, check, trace, cashier, extData);

            return(new CheckSubResponse(response));
        }
Ejemplo n.º 5
0
 internal IDeviceMessage BuildCheck(string txnType, AmountRequest amounts, CheckSubGroup check, TraceRequest trace, CashierSubGroup cashier, ExtDataSubGroup extData)
 {
     return(BuildRequest(PAX_MSG_ID.T12_DO_CHECK, txnType, amounts, check, trace, cashier, extData));
 }