Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

156 строки
4.1 KiB

  1. package com.simple.pay;
  2. /**
  3. * Created by Stormeye on 2018/8/10.
  4. * 普通商户模式
  5. */
  6. public class WxPayOrderP {
  7. private String appid; // 小程序ID
  8. private String mch_id; // 商户号
  9. private String nonce_str; // 随机字符串
  10. private String sign; // 签名
  11. private String body; // 商品简单描述 128
  12. private String out_trade_no; // 商户订单号
  13. private Integer total_fee; // 支付金额
  14. private String spbill_create_ip; // 支付IP
  15. private String notify_url; // 通知地址
  16. private String trade_type; // 支付类型
  17. private String product_id; // 商品ID - 扫码必传
  18. private String time_start; // 开始时间
  19. private String time_expire; // 失效时间
  20. private String openid; // openId
  21. public String getTime_start() {
  22. return time_start;
  23. }
  24. public void setTime_start(String time_start) {
  25. this.time_start = time_start;
  26. }
  27. public String getTime_expire() {
  28. return time_expire;
  29. }
  30. public void setTime_expire(String time_expire) {
  31. this.time_expire = time_expire;
  32. }
  33. public String getAppid() {
  34. return appid;
  35. }
  36. public void setAppid(String appid) {
  37. this.appid = appid;
  38. }
  39. public String getMch_id() {
  40. return mch_id;
  41. }
  42. public void setMch_id(String mch_id) {
  43. this.mch_id = mch_id;
  44. }
  45. public String getNonce_str() {
  46. return nonce_str;
  47. }
  48. public void setNonce_str(String nonce_str) {
  49. this.nonce_str = nonce_str;
  50. }
  51. public String getSign() {
  52. return sign;
  53. }
  54. public void setSign(String sign) {
  55. this.sign = sign;
  56. }
  57. public String getBody() {
  58. return body;
  59. }
  60. public void setBody(String body) {
  61. this.body = body;
  62. }
  63. public String getOut_trade_no() {
  64. return out_trade_no;
  65. }
  66. public void setOut_trade_no(String out_trade_no) {
  67. this.out_trade_no = out_trade_no;
  68. }
  69. public Integer getTotal_fee() {
  70. return total_fee;
  71. }
  72. public void setTotal_fee(Integer total_fee) {
  73. this.total_fee = total_fee;
  74. }
  75. public String getSpbill_create_ip() {
  76. return spbill_create_ip;
  77. }
  78. public void setSpbill_create_ip(String spbill_create_ip) {
  79. this.spbill_create_ip = spbill_create_ip;
  80. }
  81. public String getNotify_url() {
  82. return notify_url;
  83. }
  84. public void setNotify_url(String notify_url) {
  85. this.notify_url = notify_url;
  86. }
  87. public String getTrade_type() {
  88. return trade_type;
  89. }
  90. public void setTrade_type(String trade_type) {
  91. this.trade_type = trade_type;
  92. }
  93. public String getProduct_id() {
  94. return product_id;
  95. }
  96. public void setProduct_id(String product_id) {
  97. this.product_id = product_id;
  98. }
  99. public String getOpenid() {
  100. return openid;
  101. }
  102. public void setOpenid(String openid) {
  103. this.openid = openid;
  104. }
  105. @Override
  106. public String toString() {
  107. final StringBuilder sb = new StringBuilder("WxPayOrder{");
  108. sb.append("appid='").append(appid).append('\'');
  109. sb.append(", mch_id='").append(mch_id).append('\'');
  110. sb.append(", nonce_str='").append(nonce_str).append('\'');
  111. sb.append(", sign='").append(sign).append('\'');
  112. sb.append(", body='").append(body).append('\'');
  113. sb.append(", out_trade_no='").append(out_trade_no).append('\'');
  114. sb.append(", total_fee=").append(total_fee);
  115. sb.append(", spbill_create_ip='").append(spbill_create_ip).append('\'');
  116. sb.append(", notify_url='").append(notify_url).append('\'');
  117. sb.append(", trade_type='").append(trade_type).append('\'');
  118. sb.append(", product_id='").append(product_id).append('\'');
  119. sb.append(", time_start='").append(time_start).append('\'');
  120. sb.append(", time_expire='").append(time_expire).append('\'');
  121. sb.append(", openid='").append(openid).append('\'');
  122. sb.append('}');
  123. return sb.toString();
  124. }
  125. }