示例#1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public GcrResponse()
        {
            this.RSP_LEN1     = new RegionProperty("RSP_LEN1", 3);
            this.GCR_CARDTYPE = new FixedLengthProperty <ApplicationType>("GCR_CARDTYPE", 2, false,
                                                                          StringFormatter.EnumStringFormatter <ApplicationType>, StringParser.EnumStringParser <ApplicationType>);
            this.GCR_STATCHIP = new FixedLengthProperty <FallbackStatus>("GCR_STATCHIP", 1, false,
                                                                         StringFormatter.EnumStringFormatter <FallbackStatus>, StringParser.EnumStringParser <FallbackStatus>);
            this.GCR_APPTYPE = new FixedLengthProperty <int?>("GCR_APPTYPE", 2, false,
                                                              StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GCR_ACQIDX = new FixedLengthProperty <int?>("GCR_ACQIDX", 2, false,
                                                             StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GCR_RECIDX = new FixedLengthProperty <int?>("GCR_RECIDX", 2, false,
                                                             StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GCR_TRK1 = new VariableLengthProperty <string>("GCR_TRK1", 2, 76, 1.0f, true, true,
                                                                StringFormatter.StringStringFormatter, StringParser.StringStringParser, String.Empty.PadLeft(76));
            this.GCR_TRK2 = new VariableLengthProperty <string>("GCR_TRK2", 2, 37, 1.0f, true, true,
                                                                StringFormatter.StringStringFormatter, StringParser.StringStringParser, String.Empty.PadLeft(37));
            this.GCR_TRK3 = new VariableLengthProperty <string>("GCR_TRK3", 3, 104, 1.0f, true, true,
                                                                StringFormatter.StringStringFormatter, StringParser.StringStringParser, String.Empty.PadLeft(104));
            this.GCR_PAN = new VariableLengthProperty <string>("GCR_PAN", 2, 19, 1.0f, true, true,
                                                               StringFormatter.StringStringFormatter, StringParser.StringStringParser, "");
            this.GCR_PANSEQNO = new FixedLengthProperty <int?>("GCR_PANSEQNO", 2, true,
                                                               StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GCR_APPLABEL = new FixedLengthProperty <string>("GCR_APPLABEL", 16, false,
                                                                 StringFormatter.LeftPaddingWithSpacesStringFormatter, StringParser.StringStringParser);
            this.GCR_SRVCODE = new TextProperty <ServiceCode>("GCR_SRVCODE", false, ServiceCode.StringFormatter,
                                                              ServiceCode.StringParser, String.Empty.PadLeft(3));
            this.GCR_CHNAME = new FixedLengthProperty <string>("GCR_CHNAME", 26, false,
                                                               StringFormatter.LeftPaddingWithSpacesStringFormatter, StringParser.StringStringParser);
            this.GCR_CARDEXP = new TextProperty <Nullable <DateTime> >("GCR_CARDEXP", true,
                                                                       StringFormatter.DateStringFormatter, StringParser.DateStringParser, "000000");
            this.GCR_RUF1 = new FixedLengthProperty <string>("GCR_RUF1", 29, false,
                                                             StringFormatter.LeftPaddingWithSpacesStringFormatter, StringParser.StringStringParser, null, String.Empty.PadLeft(29));
            this.GCR_ISSCNTRY = new FixedLengthProperty <int?>("GCR_ISSCNTRY", 3, false,
                                                               StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GCR_ACQRD = new VariableLengthProperty <string>("GCR_ACQRD", 3, 66, 1.0f, false, true,
                                                                 StringFormatter.StringStringFormatter, StringParser.StringStringParser);

            this.StartRegion(this.RSP_LEN1);
            {
                this.AddProperty(this.GCR_CARDTYPE);
                this.AddProperty(this.GCR_STATCHIP);
                this.AddProperty(this.GCR_APPTYPE);
                this.AddProperty(this.GCR_ACQIDX);
                this.AddProperty(this.GCR_RECIDX);
                this.AddProperty(this.GCR_TRK1);
                this.AddProperty(this.GCR_TRK2);
                this.AddProperty(this.GCR_TRK3);
                this.AddProperty(this.GCR_PAN);
                this.AddProperty(this.GCR_PANSEQNO);
                this.AddProperty(this.GCR_APPLABEL);
                this.AddProperty(this.GCR_SRVCODE);
                this.AddProperty(this.GCR_CHNAME);
                this.AddProperty(this.GCR_CARDEXP);
                this.AddProperty(this.GCR_RUF1);
                this.AddProperty(this.GCR_ISSCNTRY);
                this.AddProperty(this.GCR_ACQRD);
            }
            this.EndLastRegion();
        }
        /// <summary>
        /// Creates the response with it's properties.
        /// </summary>
        public GavResponse()
        {
            this.GAV_APPVER = new VariableLengthProperty <string>("GAV_APPVER", 3,
                                                                  16, 1, false, false,
                                                                  StringFormatter.StringStringFormatter,
                                                                  StringParser.StringStringParser);

            this.AddProperty(this.GAV_APPVER);
        }
		public GertecEx07Response ()
			: base(new GertecContext())
		{
			this.RSP_RESULT = new VariableLengthProperty<string>("RSP_RESULT", 2, 32, 1f, false, true, 
                StringFormatter.StringStringFormatter, StringParser.StringStringParser);

			// Start region
			{
				this.AddProperty(this.RSP_RESULT);
			}
			// End region
		}
        /// <summary>
        /// Creates a LFI request and it's properties.
        /// </summary>
        public LfiRequest()
            : base(new IngenicoContext())
        {
            this.CMD_LEN1     = new RegionProperty("CMD_LEN1", 3);
            this.LFI_FILENAME = new VariableLengthProperty <string>("LFI_FILENAME", 3,
                                                                    64, 1f, false, false, StringFormatter.StringStringFormatter, StringParser.StringStringParser);

            this.StartRegion(this.CMD_LEN1);
            {
                this.AddProperty(this.LFI_FILENAME);
            }
            this.EndLastRegion();
        }
        // Constructor
        /// <summary>
        /// Constructor.
        /// </summary>
        public DexRequest()
        {
            this.CMD_LEN1 = new RegionProperty("CMD_LEN1", 3);
            this.DEX_MSG  = new VariableLengthProperty <MultilineMessageProperty>("DEX_MSG", 3, 160, 1.0f, false, false,
                                                                                  StringFormatter.PropertyControllerStringFormatter, StringParser.PropertyControllerStringParser <MultilineMessageProperty>,
                                                                                  null, new MultilineMessageProperty());

            this.StartRegion(this.CMD_LEN1);
            {
                this.AddProperty(this.DEX_MSG);
            }
            this.EndLastRegion();
        }
        /// <summary>
        /// Creates the command and all it's fields.
        /// </summary>
        public LfrRequest()
            : base(new IngenicoContext())
        {
            this.CMD_LEN1 = new RegionProperty("CMD_LEN1", 3);
            this.LFR_Data = new VariableLengthProperty <string>(
                "LFR_Data", 3, 999, 0.5f, false, false, StringFormatter.StringStringFormatter,
                StringParser.StringStringParser);

            this.StartRegion(this.CMD_LEN1);
            {
                this.AddProperty(this.LFR_Data);
            }
            this.EndLastRegion();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public FncResponse()
        {
            this.RSP_LEN1     = new RegionProperty("RSP_LEN1", 3);
            this.FNC_DECISION = new FixedLengthProperty <OnlineTransactionStatus>("FNC_DECISION", 1, false,
                                                                                  StringFormatter.EnumStringFormatter <OnlineTransactionStatus>, StringParser.EnumStringParser <OnlineTransactionStatus>);
            this.FNC_EMVDAT = new VariableLengthProperty <HexadecimalData>("FNC_EMVDAT", 3, 512, 1.0f / 2, false,
                                                                           true, StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.FNC_ISR = new VariableLengthProperty <HexadecimalData>("FNC_ISR", 2, 100, 1.0f / 2, false, true,
                                                                        StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.FNC_ACQRD = new VariableLengthProperty <string>("FNC_ACQRD", 3, 0, 1.0f, false, true,
                                                                 StringFormatter.StringStringFormatter, StringParser.StringStringParser, string.Empty);

            this.StartRegion(this.RSP_LEN1);
            {
                this.AddProperty(this.FNC_DECISION);
                this.AddProperty(this.FNC_EMVDAT);
                this.AddProperty(this.FNC_ISR);
                this.AddProperty(this.FNC_ACQRD);
            }
            this.EndLastRegion();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public GocResponse()
        {
            this.RSP_LEN1     = new RegionProperty("RSP_LEN1", 3);
            this.GOC_DECISION = new FixedLengthProperty <OfflineTransactionStatus>("GOC_DECISION", 1, false,
                                                                                   StringFormatter.EnumStringFormatter <OfflineTransactionStatus>,
                                                                                   StringParser.EnumStringParser <OfflineTransactionStatus>);
            this.GOC_SIGNAT = new TextProperty <bool?>("GOC_SIGNAT", false,
                                                       StringFormatter.BooleanStringFormatter, StringParser.BooleanStringParser);
            this.GOC_PINOFF = new TextProperty <bool?>("GOC_PINOFF", false,
                                                       StringFormatter.BooleanStringFormatter, StringParser.BooleanStringParser);
            this.GOC_ERRPINOFF = new FixedLengthProperty <int?>("GOC_ERRPINOFF", 1, false,
                                                                StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GOC_PBLOCKED = new TextProperty <bool?>("GOC_PBLOCKED", false,
                                                         StringFormatter.BooleanStringFormatter, StringParser.BooleanStringParser);
            this.GOC_PINONL = new TextProperty <bool?>("GOC_PINONL", false,
                                                       StringFormatter.BooleanStringFormatter, StringParser.BooleanStringParser);
            this.GOC_PINBLK = new FixedLengthProperty <HexadecimalData>("GOC_PINBLK", 16, false,
                                                                        StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.GOC_KSN = new FixedLengthProperty <HexadecimalData>("GOC_KSN", 20, false,
                                                                     StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.GOC_EMVDAT = new VariableLengthProperty <HexadecimalData>("GOC_EMVDAT", 3, 512, 1.0f / 2, false,
                                                                           false, StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.GOC_ACQRD = new VariableLengthProperty <string>("GOC_ACQRD", 3, 0, 1.0f, false, true,
                                                                 StringFormatter.StringStringFormatter, StringParser.StringStringParser, String.Empty);

            this.StartRegion(this.RSP_LEN1);
            {
                this.AddProperty(this.GOC_DECISION);
                this.AddProperty(this.GOC_SIGNAT);
                this.AddProperty(this.GOC_PINOFF);
                this.AddProperty(this.GOC_ERRPINOFF);
                this.AddProperty(this.GOC_PBLOCKED);
                this.AddProperty(this.GOC_PINONL);
                this.AddProperty(this.GOC_PINBLK);
                this.AddProperty(this.GOC_KSN);
                this.AddProperty(this.GOC_EMVDAT);
                this.AddProperty(this.GOC_ACQRD);
            }
            this.EndLastRegion();
        }
示例#9
0
        /// <summary>
        /// Constructor
        /// </summary>
        public GocRequest()
        {
            this.CMD_LEN1   = new RegionProperty("CMD_LEN1", 3);
            this.GOC_AMOUNT = new FixedLengthProperty <long?>("GOC_AMOUNT", 12, false,
                                                              StringFormatter.LongIntegerStringFormatter, StringParser.LongIntegerStringParser);
            this.GOC_CASHBACK = new FixedLengthProperty <long?>("GOC_CASHBACK", 12, false,
                                                                StringFormatter.LongIntegerStringFormatter, StringParser.LongIntegerStringParser);
            this.GOC_EXCLIST = new TextProperty <bool?>("GOC_EXCLIST", false,
                                                        StringFormatter.BooleanStringFormatter, StringParser.BooleanStringParser);
            this.GOC_CONNECT = new TextProperty <bool?>("GOC_CONNECT", false,
                                                        StringFormatter.BooleanStringFormatter, StringParser.BooleanStringParser);
            this.GOC_RUF1 = new FixedLengthProperty <int?>("GOC_RUF1", 1, false,
                                                           StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser, null, 0);
            this.GOC_METHOD = new TextProperty <CryptographyMethod>("GOC_METHOD", false,
                                                                    CryptographyMethod.StringFormatter, CryptographyMethod.CustomStringParser);
            this.GOC_KEYIDX = new FixedLengthProperty <int?>("GOC_KEYIDX", 2, false,
                                                             StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GOC_WKENC = new FixedLengthProperty <HexadecimalData>("GOC_WKENC", 32, false,
                                                                       StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.GOC_RISKMAN = new TextProperty <bool?>("GOC_RISKMAN", false,
                                                        StringFormatter.BooleanStringFormatter, StringParser.BooleanStringParser);
            this.GOC_FLRLIMIT = new FixedLengthProperty <HexadecimalData>("GOC_FLRLIMIT", 8, false,
                                                                          StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.GOC_TPBRS = new FixedLengthProperty <int?>("GOC_TPBRS", 2, false,
                                                            StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GOC_TVBRS = new FixedLengthProperty <HexadecimalData>("GOC_TVBRS", 8, false,
                                                                       StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.GOC_MTPBRS = new FixedLengthProperty <int?>("GOC_MTPBRS", 2, false,
                                                             StringFormatter.IntegerStringFormatter, StringParser.IntegerStringParser);
            this.GOC_ACQPR = new VariableLengthProperty <string>("GOC_ACQPR", 3, 32, 1.0f, false, true,
                                                                 StringFormatter.StringStringFormatter, StringParser.StringStringParser);
            this.CMD_LEN2  = new RegionProperty("CMD_LEN2", 3);
            this.GOC_TAGS1 = new VariableLengthProperty <HexadecimalData>("GOC_TAGS1", 3, 256, 1.0f / 2, false,
                                                                          false, StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);
            this.CMD_LEN3  = new RegionProperty("CMD_LEN3", 3);
            this.GOC_TAGS2 = new VariableLengthProperty <HexadecimalData>("GOC_TAGS2", 3, 256, 1.0f / 2, false,
                                                                          false, StringFormatter.HexadecimalStringFormatter, StringParser.HexadecimalStringParser);

            this.StartRegion(this.CMD_LEN1);
            {
                this.AddProperty(this.GOC_AMOUNT);
                this.AddProperty(this.GOC_CASHBACK);
                this.AddProperty(this.GOC_EXCLIST);
                this.AddProperty(this.GOC_CONNECT);
                this.AddProperty(this.GOC_RUF1);
                this.AddProperty(this.GOC_METHOD);
                this.AddProperty(this.GOC_KEYIDX);
                this.AddProperty(this.GOC_WKENC);
                this.AddProperty(this.GOC_RISKMAN);
                this.AddProperty(this.GOC_FLRLIMIT);
                this.AddProperty(this.GOC_TPBRS);
                this.AddProperty(this.GOC_TVBRS);
                this.AddProperty(this.GOC_MTPBRS);
                this.AddProperty(this.GOC_ACQPR);
            }
            this.EndLastRegion();
            this.StartRegion(this.CMD_LEN2);
            {
                this.AddProperty(this.GOC_TAGS1);
            }
            this.EndLastRegion();
            this.StartRegion(this.CMD_LEN3);
            {
                this.AddProperty(this.GOC_TAGS2);
            }
            this.EndLastRegion();
        }