WechatUnifiedOrder.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. package com.happy.Model.weixin;
  2. import javax.xml.bind.annotation.XmlRootElement;
  3. import java.io.Serializable;
  4. /**
  5. * 统一下单实体类
  6. * @author QT-666
  7. *
  8. */
  9. @XmlRootElement(name="xml")
  10. public class WechatUnifiedOrder implements Serializable{
  11. private String appid; //微信支付分配的公众账号ID(企业号corpid即为此appId)
  12. private String mch_id; //微信支付分配的商户号
  13. private String nonce_str; //随机字符串,长度要求在32位以内。推荐随机数生成算法
  14. private String sign; //通过签名算法计算得出的签名值,详见签名生成算法
  15. private String body; //商品简单描述,该字段请按照规范传递,具体请见参数规定
  16. private String out_trade_no; // 商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一。详见商户订单号
  17. private int total_fee; //订单总金额,单位为分,详见支付金额
  18. private String spbill_create_ip; //APP和网页支付提交用户端ip,Native支付填调用微信支付API的机器IP。
  19. private String notify_url; //异步接收微信支付结果通知的回调地址,通知url必须为外网可访问的url,不能携带参数。
  20. private String trade_type; //取值如下:JSAPI,NATIVE,APP等,说明详见参数规定
  21. private String openid; //trade_type=JSAPI时(即公众号支付),此参数必传,此参数为微信用户在商户对应appid下的唯一标识
  22. private String attach;//数据包
  23. public String getAttach() {
  24. return attach;
  25. }
  26. public void setAttach(String attach) {
  27. this.attach = attach;
  28. }
  29. public String getAppid() {
  30. return appid;
  31. }
  32. public void setAppid(String appid) {
  33. this.appid = appid;
  34. }
  35. public String getMch_id() {
  36. return mch_id;
  37. }
  38. public void setMch_id(String mch_id) {
  39. this.mch_id = mch_id;
  40. }
  41. public String getNonce_str() {
  42. return nonce_str;
  43. }
  44. public void setNonce_str(String nonce_str) {
  45. this.nonce_str = nonce_str;
  46. }
  47. public String getSign() {
  48. return sign;
  49. }
  50. public void setSign(String sign) {
  51. this.sign = sign;
  52. }
  53. public String getBody() {
  54. return body;
  55. }
  56. public void setBody(String body) {
  57. this.body = body;
  58. }
  59. public String getOut_trade_no() {
  60. return out_trade_no;
  61. }
  62. public void setOut_trade_no(String out_trade_no) {
  63. this.out_trade_no = out_trade_no;
  64. }
  65. public int getTotal_fee() {
  66. return total_fee;
  67. }
  68. public void setTotal_fee(int total_fee) {
  69. this.total_fee = total_fee;
  70. }
  71. public String getSpbill_create_ip() {
  72. return spbill_create_ip;
  73. }
  74. public void setSpbill_create_ip(String spbill_create_ip) {
  75. this.spbill_create_ip = spbill_create_ip;
  76. }
  77. public String getNotify_url() {
  78. return notify_url;
  79. }
  80. public void setNotify_url(String notify_url) {
  81. this.notify_url = notify_url;
  82. }
  83. public String getTrade_type() {
  84. return trade_type;
  85. }
  86. public void setTrade_type(String trade_type) {
  87. this.trade_type = trade_type;
  88. }
  89. public String getOpenid() {
  90. return openid;
  91. }
  92. public void setOpenid(String openid) {
  93. this.openid = openid;
  94. }
  95. }