PaymentResponse.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SinochemCloudClient.Models
  8. {
  9. public class PaymentResponse : ResponseBase
  10. {
  11. public const string QRCodeResponse = "777";
  12. public const string PlainUserResponse = "888";
  13. public Data result { get; set; }
  14. public class Data
  15. {
  16. public double amount { get; set; }
  17. public double real_Pay_Amount { get; set; }
  18. public string display_Msg { get; set; }
  19. public string bill_ID { get; set; }
  20. public string shift_ID { get; set; }
  21. public string business_Date { get; set; }
  22. public string card_No { get; set; }
  23. public string cardNo_Hide { get; set; }
  24. public string pay_url { get; set; }
  25. public string invoiceUrl { get; set; }
  26. public string payMethod { get; set; }
  27. public string openId { get; set; }
  28. public override string ToString()
  29. {
  30. PropertyInfo[] _PropertyInfos = this.GetType().GetProperties();
  31. var sb = new StringBuilder();
  32. sb.Append(Environment.NewLine + "{" + Environment.NewLine);
  33. foreach (var info in _PropertyInfos)
  34. {
  35. var value = info.GetValue(this, null) ?? "(null)";
  36. sb.AppendLine(info.Name + ": " + value.ToString());
  37. }
  38. sb.Append("}");
  39. return sb.ToString();
  40. }
  41. }
  42. }
  43. }