AlipayViewModel.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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 AlipayTradeCloseViewModel
  130. {
  131. [Display(Name = "out_trade_no")]
  132. public string OutTradeNo { get; set; }
  133. [Display(Name = "trade_no")]
  134. public string TradeNo { get; set; }
  135. }
  136. public class AlipayTransferViewModel
  137. {
  138. [Required]
  139. [Display(Name = "out_biz_no")]
  140. public string OutBizNo { get; set; }
  141. [Required]
  142. [Display(Name = "trans_amount")]
  143. public string TransAmount { get; set; }
  144. [Required]
  145. [Display(Name = "product_code")]
  146. public string ProductCode { get; set; }
  147. [Required]
  148. [Display(Name = "biz_scene")]
  149. public string BizScene { get; set; }
  150. [Required]
  151. [Display(Name = "payee_info_identity")]
  152. public string PayeeIdentity { get; set; }
  153. [Required]
  154. [Display(Name = "payee_info_identity_type")]
  155. public string PayeeIdentityType { get; set; }
  156. [Required]
  157. [Display(Name = "payee_info_name")]
  158. public string PayeeName { get; set; }
  159. [Display(Name = "remark")]
  160. public string Remark { get; set; }
  161. }
  162. public class AlipayTransQueryViewModel
  163. {
  164. [Display(Name = "product_code")]
  165. public string ProductCode { get; set; }
  166. [Display(Name = "biz_scene")]
  167. public string BizScene { get; set; }
  168. [Display(Name = "out_biz_no")]
  169. public string OutBizNo { get; set; }
  170. [Display(Name = "order_id")]
  171. public string OrderId { get; set; }
  172. [Display(Name = "pay_fund_order_id")]
  173. public string PayFundOrderId { get; set; }
  174. }
  175. public class AlipayAccountQueryViewModel
  176. {
  177. [Required]
  178. [Display(Name = "alipay_user_id")]
  179. public string AlipayUserId { get; set; }
  180. [Required]
  181. [Display(Name = "account_type")]
  182. public string AccountType { get; set; }
  183. }
  184. }