WeChatPayScoreViewModel.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. using System.ComponentModel.DataAnnotations;
  2. namespace WebApplicationSample.Models
  3. {
  4. public class WeChatPayScoreServiceOrderViewModel
  5. {
  6. [Required]
  7. [Display(Name = "out_order_no")]
  8. public string OutOrderNo { get; set; }
  9. [Required]
  10. [Display(Name = "service_introduction")]
  11. public string ServiceIntroduction { get; set; }
  12. [Required]
  13. [Display(Name = "start_time")]
  14. public string StartTime { get; set; }
  15. [Required]
  16. [Display(Name = "end_time")]
  17. public string EndTime { get; set; }
  18. [Required]
  19. [Display(Name = "risk_fund_name")]
  20. public string RiskFundName { get; set; }
  21. [Required]
  22. [Display(Name = "risk_fund_amount")]
  23. public long RiskFundAmount { get; set; }
  24. [Required]
  25. [Display(Name = "notify_url")]
  26. public string NotifyUrl { get; set; }
  27. [Display(Name = "openid")]
  28. public string OpenId { get; set; }
  29. }
  30. public class WeChatPayScoreServiceOrderQueryViewModel
  31. {
  32. [Display(Name = "out_order_no")]
  33. public string OutOrderNo { get; set; }
  34. [Display(Name = "query_id")]
  35. public string QueryId { get; set; }
  36. }
  37. public class WeChatPayScoreServiceOrderCancelViewModel
  38. {
  39. [Required]
  40. [Display(Name = "out_order_no")]
  41. public string OutOrderNo { get; set; }
  42. [Required]
  43. [Display(Name = "reason")]
  44. public string Reason { get; set; }
  45. }
  46. public class WeChatPayScoreServiceOrderModifyViewModel
  47. {
  48. [Required]
  49. [Display(Name = "out_order_no")]
  50. public string OutOrderNo { get; set; }
  51. [Required]
  52. [Display(Name = "post_payment_name")]
  53. public string Name { get; set; }
  54. [Required]
  55. [Display(Name = "post_payment_amount")]
  56. public long Amount { get; set; }
  57. [Required]
  58. [Display(Name = "post_payment_count")]
  59. public uint Count { get; set; }
  60. [Required]
  61. [Display(Name = "total_amount")]
  62. public long TotalAmount { get; set; }
  63. [Required]
  64. [Display(Name = "reason")]
  65. public string Reason { get; set; }
  66. }
  67. public class WeChatPayScoreServiceOrderCompleteViewModel
  68. {
  69. [Required]
  70. [Display(Name = "out_order_no")]
  71. public string OutOrderNo { get; set; }
  72. [Required]
  73. [Display(Name = "post_payment_name")]
  74. public string Name { get; set; }
  75. [Required]
  76. [Display(Name = "post_payment_amount")]
  77. public long Amount { get; set; }
  78. [Required]
  79. [Display(Name = "post_payment_count")]
  80. public uint Count { get; set; }
  81. [Required]
  82. [Display(Name = "total_amount")]
  83. public long TotalAmount { get; set; }
  84. }
  85. public class WeChatPayScoreServiceOrderPayViewModel
  86. {
  87. [Required]
  88. [Display(Name = "out_order_no")]
  89. public string OutOrderNo { get; set; }
  90. }
  91. public class WeChatPayScoreServiceOrderSyncViewModel
  92. {
  93. [Required]
  94. [Display(Name = "out_order_no")]
  95. public string OutOrderNo { get; set; }
  96. [Required]
  97. [Display(Name = "type")]
  98. public string Type { get; set; }
  99. [Required]
  100. [Display(Name = "paid_time")]
  101. public string PaidTime { get; set; }
  102. }
  103. public class WeChatPayScoreServiceOrderDirectCompleteViewModel
  104. {
  105. [Required]
  106. [Display(Name = "out_order_no")]
  107. public string OutOrderNo { get; set; }
  108. [Required]
  109. [Display(Name = "service_introduction")]
  110. public string ServiceIntroduction { get; set; }
  111. [Required]
  112. [Display(Name = "post_payment_name")]
  113. public string PostPaymentName { get; set; }
  114. [Required]
  115. [Display(Name = "post_payment_amount")]
  116. public long PostPaymentAmount { get; set; }
  117. [Required]
  118. [Display(Name = "post_payment_count")]
  119. public uint PostPaymentCount { get; set; }
  120. [Required]
  121. [Display(Name = "post_payment_description")]
  122. public string PostPaymentDescription { get; set; }
  123. [Required]
  124. [Display(Name = "start_time")]
  125. public string StartTime { get; set; }
  126. [Required]
  127. [Display(Name = "end_time")]
  128. public string EndTime { get; set; }
  129. [Required]
  130. [Display(Name = "total_amount")]
  131. public long TotalAmount { get; set; }
  132. [Display(Name = "notify_url")]
  133. public string NotifyUrl { get; set; }
  134. [Display(Name = "openid")]
  135. public string OpenId { get; set; }
  136. }
  137. public class PermissionsViewModel
  138. {
  139. [Required]
  140. [Display(Name = "authorization_code")]
  141. public string AuthorizationCode { get; set; }
  142. [Display(Name = "notify_url")]
  143. public string NotifyUrl { get; set; }
  144. }
  145. public class PermissionsQueryForAuthCodeViewModel
  146. {
  147. [Required]
  148. [Display(Name = "authorization_code")]
  149. public string AuthorizationCode { get; set; }
  150. }
  151. public class PermissionsTerminateForAuthCodeViewModel
  152. {
  153. [Required]
  154. [Display(Name = "authorization_code")]
  155. public string AuthorizationCode { get; set; }
  156. [Required]
  157. [Display(Name = "reason")]
  158. public string Reason { get; set; }
  159. }
  160. public class PermissionsQueryForOpenIdViewModel
  161. {
  162. [Required]
  163. [Display(Name = "openid")]
  164. public string OpenId { get; set; }
  165. }
  166. public class PermissionsTerminateForOpenIdViewModel
  167. {
  168. [Required]
  169. [Display(Name = "openid")]
  170. public string OpenID { get; set; }
  171. [Required]
  172. [Display(Name = "reason")]
  173. public string Reason { get; set; }
  174. }
  175. }