WeChatPayV3ViewModel.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. using System.ComponentModel.DataAnnotations;
  2. namespace WebApplicationSample.Models
  3. {
  4. public class WeChatPayAppPayV3ViewModel
  5. {
  6. [Required]
  7. [Display(Name = "out_trade_no")]
  8. public string OutTradeNo { get; set; }
  9. [Required]
  10. [Display(Name = "description")]
  11. public string Description { get; set; }
  12. [Required]
  13. [Display(Name = "total")]
  14. public int Total { get; set; }
  15. [Required]
  16. [Display(Name = "notify_url")]
  17. public string NotifyUrl { get; set; }
  18. }
  19. public class WeChatPayPubPayV3ViewModel
  20. {
  21. [Required]
  22. [Display(Name = "out_trade_no")]
  23. public string OutTradeNo { get; set; }
  24. [Required]
  25. [Display(Name = "description")]
  26. public string Description { get; set; }
  27. [Required]
  28. [Display(Name = "total")]
  29. public int Total { get; set; }
  30. [Required]
  31. [Display(Name = "notify_url")]
  32. public string NotifyUrl { get; set; }
  33. [Required]
  34. [Display(Name = "openid")]
  35. public string OpenId { get; set; }
  36. }
  37. public class WeChatPayQrCodePayV3ViewModel
  38. {
  39. [Required]
  40. [Display(Name = "out_trade_no")]
  41. public string OutTradeNo { get; set; }
  42. [Required]
  43. [Display(Name = "description")]
  44. public string Description { get; set; }
  45. [Required]
  46. [Display(Name = "total")]
  47. public int Total { get; set; }
  48. [Required]
  49. [Display(Name = "notify_url")]
  50. public string NotifyUrl { get; set; }
  51. }
  52. public class WeChatPayH5PayV3ViewModel
  53. {
  54. [Required]
  55. [Display(Name = "out_trade_no")]
  56. public string OutTradeNo { get; set; }
  57. [Required]
  58. [Display(Name = "description")]
  59. public string Description { get; set; }
  60. [Required]
  61. [Display(Name = "total")]
  62. public int Total { get; set; }
  63. [Required]
  64. [Display(Name = "notify_url")]
  65. public string NotifyUrl { get; set; }
  66. }
  67. public class WeChatPayQueryByTransactionIdViewModel
  68. {
  69. [Required]
  70. [Display(Name = "transaction_id")]
  71. public string TransactionId { get; set; }
  72. }
  73. public class WeChatPayQueryByOutTradeNoViewModel
  74. {
  75. [Required]
  76. [Display(Name = "out_trade_no")]
  77. public string OutTradeNo { get; set; }
  78. }
  79. }