AlipayViewModel.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. using System.ComponentModel.DataAnnotations;
  2. namespace WebApplicationSample.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. }
  40. public class AlipayTradeAppPayViewModel
  41. {
  42. [Required]
  43. [Display(Name = "out_trade_no")]
  44. public string OutTradeNo { get; set; }
  45. [Required]
  46. [Display(Name = "subject")]
  47. public string Subject { get; set; }
  48. [Display(Name = "product_code")]
  49. public string ProductCode { get; set; }
  50. [Display(Name = "body")]
  51. public string Body { get; set; }
  52. [Required]
  53. [Display(Name = "total_amount")]
  54. public string TotalAmount { get; set; }
  55. [Display(Name = "notify_url")]
  56. public string NotifyUrl { get; set; }
  57. }
  58. public class AlipayTradePagePayViewModel
  59. {
  60. [Required]
  61. [Display(Name = "out_trade_no")]
  62. public string OutTradeNo { get; set; }
  63. [Required]
  64. [Display(Name = "subject")]
  65. public string Subject { get; set; }
  66. [Required]
  67. [Display(Name = "product_code")]
  68. public string ProductCode { get; set; }
  69. [Display(Name = "body")]
  70. public string Body { get; set; }
  71. [Required]
  72. [Display(Name = "total_amount")]
  73. public string TotalAmount { get; set; }
  74. [Display(Name = "notify_url")]
  75. public string NotifyUrl { get; set; }
  76. [Display(Name = "return_url")]
  77. public string ReturnUrl { get; set; }
  78. }
  79. public class AlipayTradeWapPayViewModel
  80. {
  81. [Required]
  82. [Display(Name = "out_trade_no")]
  83. public string OutTradeNo { get; set; }
  84. [Required]
  85. [Display(Name = "subject")]
  86. public string Subject { get; set; }
  87. [Required]
  88. [Display(Name = "product_code")]
  89. public string ProductCode { get; set; }
  90. [Display(Name = "body")]
  91. public string Body { get; set; }
  92. [Required]
  93. [Display(Name = "total_amount")]
  94. public string TotalAmount { get; set; }
  95. [Display(Name = "notify_url")]
  96. public string NotifyUrl { get; set; }
  97. [Display(Name = "return_url")]
  98. public string ReturnUrl { get; set; }
  99. }
  100. public class AlipayTradeQueryViewModel
  101. {
  102. [Display(Name = "out_trade_no")]
  103. public string OutTradeNo { get; set; }
  104. [Display(Name = "trade_no")]
  105. public string TradeNo { get; set; }
  106. }
  107. public class AlipayTradeRefundViewModel
  108. {
  109. [Display(Name = "out_trade_no")]
  110. public string OutTradeNo { get; set; }
  111. [Display(Name = "trade_no")]
  112. public string TradeNo { get; set; }
  113. [Display(Name = "refund_amount")]
  114. public string RefundAmount { get; set; }
  115. [Display(Name = "out_request_no")]
  116. public string OutRequestNo { get; set; }
  117. [Display(Name = "refund_reason")]
  118. public string RefundReason { get; set; }
  119. }
  120. public class AlipayTradeRefundQueryViewModel
  121. {
  122. [Display(Name = "out_trade_no")]
  123. public string OutTradeNo { get; set; }
  124. [Display(Name = "trade_no")]
  125. public string TradeNo { get; set; }
  126. [Display(Name = "out_request_no")]
  127. public string OutRequestNo { get; set; }
  128. }
  129. public class AlipayTransferViewModel
  130. {
  131. [Required]
  132. [Display(Name = "out_biz_no")]
  133. public string OutBizNo { get; set; }
  134. [Required]
  135. [Display(Name = "payee_account")]
  136. public string PayeeAccount { get; set; }
  137. [Required]
  138. [Display(Name = "payee_type")]
  139. public string PayeeType { get; set; }
  140. [Required]
  141. [Display(Name = "amount")]
  142. public string Amount { get; set; }
  143. [Display(Name = "remark")]
  144. public string Remark { get; set; }
  145. }
  146. public class AlipayTransQueryViewModel
  147. {
  148. [Display(Name = "out_biz_no")]
  149. public string OutBizNo { get; set; }
  150. [Display(Name = "order_id")]
  151. public string OrderId { get; set; }
  152. }
  153. public class AlipayBillDownloadurlQueryViewModel
  154. {
  155. [Required]
  156. [Display(Name = "bill_type")]
  157. public string BillType { get; set; }
  158. [Required]
  159. [Display(Name = "bill_date")]
  160. public string BillDate { get; set; }
  161. }
  162. }