AlipayViewModel.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. using System.ComponentModel.DataAnnotations;
  2. namespace NewWebApplicationSample.Models
  3. {
  4. public class AlipayTradePreCreateViewModel
  5. {
  6. [Required]
  7. [Display(Name = "out_trade_no")]
  8. public string OutTradeNo { get; set; }
  9. [Required]
  10. [Display(Name = "subject")]
  11. public string Subject { get; set; }
  12. [Display(Name = "body")]
  13. public string Body { get; set; }
  14. [Required]
  15. [Display(Name = "total_amount")]
  16. public string TotalAmount { get; set; }
  17. [Display(Name = "notify_url")]
  18. public string NotifyUrl { get; set; }
  19. }
  20. public class AlipayTradePayViewModel
  21. {
  22. [Required]
  23. [Display(Name = "out_trade_no")]
  24. public string OutTradeNo { get; set; }
  25. [Required]
  26. [Display(Name = "subject")]
  27. public string Subject { get; set; }
  28. [Required]
  29. [Display(Name = "scene")]
  30. public string Scene { get; set; }
  31. [Required]
  32. [Display(Name = "auth_code")]
  33. public string AuthCode { get; set; }
  34. [Display(Name = "body")]
  35. public string Body { get; set; }
  36. [Required]
  37. [Display(Name = "total_amount")]
  38. public string TotalAmount { get; set; }
  39. [Display(Name = "notify_url")]
  40. public string NotifyUrl { get; set; }
  41. }
  42. public class AlipayTradeAppPayViewModel
  43. {
  44. [Required]
  45. [Display(Name = "out_trade_no")]
  46. public string OutTradeNo { get; set; }
  47. [Required]
  48. [Display(Name = "subject")]
  49. public string Subject { get; set; }
  50. [Required]
  51. [Display(Name = "product_code")]
  52. public string ProductCode { get; set; }
  53. [Display(Name = "body")]
  54. public string Body { get; set; }
  55. [Required]
  56. [Display(Name = "total_amount")]
  57. public string TotalAmount { get; set; }
  58. [Display(Name = "notify_url")]
  59. public string NotifyUrl { get; set; }
  60. }
  61. public class AlipayTradePagePayViewModel
  62. {
  63. [Required]
  64. [Display(Name = "out_trade_no")]
  65. public string OutTradeNo { get; set; }
  66. [Required]
  67. [Display(Name = "subject")]
  68. public string Subject { get; set; }
  69. [Required]
  70. [Display(Name = "product_code")]
  71. public string ProductCode { get; set; }
  72. [Display(Name = "body")]
  73. public string Body { get; set; }
  74. [Required]
  75. [Display(Name = "total_amount")]
  76. public string TotalAmount { get; set; }
  77. [Display(Name = "notify_url")]
  78. public string NotifyUrl { get; set; }
  79. [Display(Name = "return_url")]
  80. public string ReturnUrl { get; set; }
  81. }
  82. public class AlipayTradeWapPayViewModel
  83. {
  84. [Required]
  85. [Display(Name = "out_trade_no")]
  86. public string OutTradeNo { get; set; }
  87. [Required]
  88. [Display(Name = "subject")]
  89. public string Subject { get; set; }
  90. [Required]
  91. [Display(Name = "product_code")]
  92. public string ProductCode { get; set; }
  93. [Display(Name = "body")]
  94. public string Body { get; set; }
  95. [Required]
  96. [Display(Name = "total_amount")]
  97. public string TotalAmount { get; set; }
  98. [Display(Name = "notify_url")]
  99. public string NotifyUrl { get; set; }
  100. [Display(Name = "return_url")]
  101. public string ReturnUrl { get; set; }
  102. }
  103. public class AlipayTradeQueryViewModel
  104. {
  105. [Display(Name = "out_trade_no")]
  106. public string OutTradeNo { get; set; }
  107. [Display(Name = "trade_no")]
  108. public string TradeNo { get; set; }
  109. }
  110. public class AlipayTradeRefundViewModel
  111. {
  112. [Display(Name = "out_trade_no")]
  113. public string OutTradeNo { get; set; }
  114. [Display(Name = "trade_no")]
  115. public string TradeNo { get; set; }
  116. [Display(Name = "refund_amount")]
  117. public string RefundAmount { get; set; }
  118. [Display(Name = "out_request_no")]
  119. public string OutRequestNo { get; set; }
  120. [Display(Name = "refund_reason")]
  121. public string RefundReason { get; set; }
  122. }
  123. public class AlipayTradeRefundQueryViewModel
  124. {
  125. [Display(Name = "out_trade_no")]
  126. public string OutTradeNo { get; set; }
  127. [Display(Name = "trade_no")]
  128. public string TradeNo { get; set; }
  129. [Display(Name = "out_request_no")]
  130. public string OutRequestNo { get; set; }
  131. }
  132. public class AlipayTransferViewModel
  133. {
  134. [Required]
  135. [Display(Name = "out_biz_no")]
  136. public string OutBizNo { get; set; }
  137. [Required]
  138. [Display(Name = "payee_account")]
  139. public string PayeeAccount { get; set; }
  140. [Required]
  141. [Display(Name = "payee_type")]
  142. public string PayeeType { get; set; }
  143. [Required]
  144. [Display(Name = "amount")]
  145. public string Amount { get; set; }
  146. [Display(Name = "remark")]
  147. public string Remark { get; set; }
  148. }
  149. public class AlipayTransQueryViewModel
  150. {
  151. [Display(Name = "out_biz_no")]
  152. public string OutBizNo { get; set; }
  153. [Display(Name = "order_id")]
  154. public string OrderId { get; set; }
  155. }
  156. public class AlipayBillDownloadurlQueryViewModel
  157. {
  158. [Required]
  159. [Display(Name = "bill_type")]
  160. public string BillType { get; set; }
  161. [Required]
  162. [Display(Name = "bill_date")]
  163. public string BillDate { get; set; }
  164. }
  165. }