CancelAuthResult.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace HengshanPaymentTerminal.MessageEntity.Outgoing
  6. {
  7. public class CancelAuthResult : CardMessageBase
  8. {
  9. public CancelAuthResult() : base(Command.CancelAuthResult)
  10. {
  11. }
  12. /// <summary>
  13. /// Logical card number.
  14. /// 逻辑卡号,10字节,BCD。
  15. /// </summary>
  16. [Format(10, EncodingType.BcdString, -89)]
  17. public string Asn { get; set; }
  18. [Format(4, EncodingType.BIN, -88)]
  19. public int PosTtc { get; set; }
  20. [Format(2, EncodingType.BIN, -87)]
  21. public ushort SeqNo { get; set; }
  22. [Format(2, EncodingType.BIN, -86)]
  23. public ushort FPCode { get; set; }
  24. [Format(1, EncodingType.BIN, -85)]
  25. public byte Result { get; set; }
  26. /// <summary>
  27. /// Length of additional information.
  28. /// 附加信息长度,1字节。
  29. /// </summary>
  30. [Format(1, EncodingType.BIN, -84)]
  31. public byte AdditionalInfoLength { get; set; }
  32. /// <summary>
  33. /// Additional information.
  34. /// 附加信息,2-20字节。
  35. /// </summary>
  36. [EnumerableFormat("AdditionalInfoLength", 1)]
  37. public string AdditionalInfo { get; set; }
  38. }
  39. }