PaymentData.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using HengshanPaymentTerminal.Support;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace HengshanPaymentTerminal.MessageEntity.Outgoing
  7. {
  8. public class PaymentData : CardMessageBase
  9. {
  10. public PaymentData() : base(Command.PaymentData)
  11. {
  12. }
  13. [Format(10, EncodingType.BcdString, -90)]
  14. public string Asn { get; set; }
  15. [Format(4, EncodingType.BIN, -89)]
  16. public int PosTtc { get; set; }
  17. [Format(2, EncodingType.BIN, -88)]
  18. public ushort SeqNo { get; set; }
  19. [Format(3, EncodingType.BIN, -87)]
  20. public int FillingAmount { get; set; }
  21. [Format(3, EncodingType.BIN, -86)]
  22. public int PayAmount { get; set; }
  23. [Format(3, EncodingType.BIN, -85)]
  24. public int FillingVolume { get; set; }
  25. [Format(2, EncodingType.BIN, -84)]
  26. public ushort Price { get; set; }
  27. [Format(2, EncodingType.BIN, -83)]
  28. public ushort ProductCode { get; set; }
  29. [Format(16, EncodingType.BcdString, -82)]
  30. public string C_Name { get; set; }
  31. [Format(2, EncodingType.BIN, -81)]
  32. public ushort FPCode { get; set; }
  33. [Format(1, EncodingType.BIN, -80)]
  34. public PaymentProcessingResult Result { get; set; }
  35. [Format(1, EncodingType.BIN, -79)]
  36. public byte AdditionalInfoLength { get; set; }
  37. [EnumerableFormat("AdditionalInfoLength", -78)]
  38. public string AdditionalInfo { get; set; }
  39. }
  40. }