TransactionData.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Security.Policy;
  5. using System.Text;
  6. namespace Dfs.WayneChina.GilbarcoDispenserPayTerminal.MessageEntities.Incoming
  7. {
  8. public class TransactionData : CardMessageBase
  9. {
  10. public TransactionData() : base(HandleType.TransactionData)
  11. {
  12. }
  13. [Format(4, EncodingType.BIN, -94)]
  14. public int PosTtc { get; set; }
  15. [Format(1, EncodingType.BIN, -93)]
  16. public byte TransType { get; set; }
  17. [Format(7, EncodingType.BcdString, -92)]
  18. public string TransTime { get; set; }
  19. [Format(10, EncodingType.BcdString, -91)]
  20. public string Asn { get; set; }
  21. [Format(4, EncodingType.HexString, -90)]
  22. public string Balance { get; set; }
  23. [Format(3, EncodingType.BIN, -89)]
  24. public int Amount { get; set; }
  25. [Format(2, EncodingType.BIN, -88)]
  26. public int Ctc { get; set; }
  27. [Format(4, EncodingType.BIN, -87)]
  28. public int Tac { get; set; }
  29. [Format(4, EncodingType.BIN, -86)]
  30. public long Gmac { get; set; }
  31. [Format(4, EncodingType.BIN, -85)]
  32. public long PsamTac { get; set; }
  33. [Format(10, EncodingType.BcdString, -84)]
  34. public string PsamAsn { get; set; }
  35. [Format(6, EncodingType.BIN, -83)]
  36. public long PsamTid { get; set; }
  37. [Format(4, EncodingType.BIN, -82)]
  38. public long PsamTtc { get; set; }
  39. /// <summary>
  40. /// Source of fund for deduction
  41. /// 扣款来源
  42. /// </summary>
  43. [Format(1, EncodingType.BIN, -81)]
  44. public byte DeductionSource { get; set; }
  45. [Format(1, EncodingType.BIN, -80)]
  46. public byte ClearingUnit { get; set; }
  47. [Format(1, EncodingType.BIN, -79)]
  48. public byte CardType { get; set; }
  49. [Format(1, EncodingType.BIN, -78)]
  50. public byte Version { get; set; }
  51. [Format(1, EncodingType.BIN, -77)]
  52. public byte NozzleNo { get; set; }
  53. [Format(2, EncodingType.BCD, -76)]
  54. public int GoodsCode { get; set; }
  55. [Format(3, EncodingType.BIN, -75)]
  56. public int Volume { get; set; }
  57. [Format(2, EncodingType.BIN, -74)]
  58. public int Price { get; set; }
  59. [Format(1, EncodingType.BIN, -73)]
  60. public byte EmployeeCode { get; set; }
  61. [Format(4, EncodingType.BIN, -72)]
  62. public long VolumeTotalizer { get; set; }
  63. [Format(11, EncodingType.HexString, -71)]
  64. public string Rfu { get; set; }
  65. [Format(4, EncodingType.BIN, -70)]
  66. public long TMac { get; set; }
  67. }
  68. }