Esempio n. 1
0
        public DE22_PosDataCode FromByteArray(byte[] buffer)
        {
            StringParser sp = new StringParser(buffer);

            //CardDataInputCapability = sp.ReadStringConstant<CardDataInputCapability>(1);
            //CardHolderAuthenticationCapability = sp.ReadStringConstant<CardHolderAuthenticationCapability>(1);
            CardDataInputCapability            = EnumConverter.FromMapping <CardDataInputCapability>(Target.NWS, sp.ReadString(1));
            CardHolderAuthenticationCapability = EnumConverter.FromMapping <CardHolderAuthenticationCapability>(Target.NWS, sp.ReadString(1));
            CardCaptureCapability          = sp.ReadBoolean();
            OperatingEnvironment           = EnumConverter.FromMapping <OperatingEnvironment>(Target.NWS, sp.ReadString(1));
            CardHolderPresence             = EnumConverter.FromMapping <DE22_CardHolderPresence>(Target.NWS, sp.ReadString(1));
            CardPresence                   = EnumConverter.FromMapping <DE22_CardPresence>(Target.NWS, sp.ReadString(1));
            CardDataInputMode              = EnumConverter.FromMapping <DE22_CardDataInputMode>(Target.NWS, sp.ReadString(1));
            CardHolderAuthenticationMethod = EnumConverter.FromMapping <CardHolderAuthenticationMethod>(Target.NWS, sp.ReadString(1));
            CardHolderAuthenticationEntity = EnumConverter.FromMapping <CardHolderAuthenticationEntity>(Target.NWS, sp.ReadString(1));
            CardDataOutputCapability       = EnumConverter.FromMapping <CardDataOutputCapability>(Target.NWS, sp.ReadString(1));
            TerminalOutputCapability       = EnumConverter.FromMapping <TerminalOutputCapability>(Target.NWS, sp.ReadString(1));
            PinCaptureCapability           = EnumConverter.FromMapping <PinCaptureCapability>(Target.NWS, sp.ReadString(1));
            //OperatingEnvironment = sp.ReadStringConstant<OperatingEnvironment>(1);
            //CardHolderPresence = sp.ReadStringConstant<DE22_CardHolderPresence>(1);
            //CardPresence = sp.ReadStringConstant<DE22_CardPresence>(1);
            //CardDataInputMode = sp.ReadStringConstant<DE22_CardDataInputMode>(1);
            //CardHolderAuthenticationMethod = sp.ReadStringConstant<DE22_CardHolderAuthenticationMethod>(1);
            //CardHolderAuthenticationEntity = sp.ReadStringConstant<CardHolderAuthenticationEntity>(1);
            //CardDataOutputCapability = sp.ReadStringConstant<CardDataOutputCapability>(1);
            //TerminalOutputCapability = sp.ReadStringConstant<TerminalOutputCapability>(1);
            //PinCaptureCapability = sp.ReadStringConstant<PinCaptureCapability>(1);
            return(this);
        }
Esempio n. 2
0
 public AcceptorConfig()
 {
     CardDataInputCapability            = CardDataInputCapability.MagStripe_KeyEntry;
     CardHolderAuthenticationCapability = CardHolderAuthenticationCapability.None;
     OperatingEnvironment           = OperatingEnvironment.OnPremises_CardAcceptor_Attended;
     CardHolderAuthenticationEntity = CardHolderAuthenticationEntity.NotAuthenticated;
     CardDataOutputCapability       = CardDataOutputCapability.None;
     TerminalOutputCapability       = TerminalOutputCapability.None;
     PinCaptureCapability           = PinCaptureCapability.TwelveCharacters;
 }
Esempio n. 3
0
 public DE22_PosDataCode()
 {
     CardDataInputCapability            = CardDataInputCapability.MagStripe_KeyEntry;
     CardHolderAuthenticationCapability = CardHolderAuthenticationCapability.None;
     CardCaptureCapability          = false;
     OperatingEnvironment           = OperatingEnvironment.NoTerminalUsed;
     CardHolderPresence             = DE22_CardHolderPresence.CardHolder_Present;
     CardPresence                   = DE22_CardPresence.CardPresent;
     CardDataInputMode              = DE22_CardDataInputMode.MagStripe;
     CardHolderAuthenticationMethod = CardHolderAuthenticationMethod.NotAuthenticated;
     CardHolderAuthenticationEntity = CardHolderAuthenticationEntity.NotAuthenticated;
     CardDataOutputCapability       = CardDataOutputCapability.None;
     TerminalOutputCapability       = TerminalOutputCapability.None;
     PinCaptureCapability           = PinCaptureCapability.TwelveCharacters;
 }
 public void SetPinCaptureCapability(PinCaptureCapability pinCaptureCapability)
 {
     this.pinCaptureCapability = pinCaptureCapability;
 }