AlipayViewModel.cs 5.4 KB

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