TongYiReturn.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. package com.happy.Until.weixin;
  2. import javax.xml.bind.annotation.XmlRootElement;
  3. /**
  4. * 调用统一下单接口返回的数据实体类
  5. * @author QT-666
  6. *
  7. */
  8. @XmlRootElement(name="xml")
  9. public class TongYiReturn {
  10. private String return_code; //
  11. private String return_msg; //
  12. private String appid; // 调用接口提交的公众账号ID
  13. private String mch_id; // 调用接口提交的商户号
  14. private String nonce_str; //微信返回的随机字符串
  15. private String sign; //微信返回的签名值,详见签名算法
  16. private String prepay_id; //微信生成的预支付会话标识,用于后续接口调用中使用,该值有效期为2小时
  17. private String result_code; //SUCCESS/FAIL
  18. private String trade_type; //交易类型,取值为:JSAPI,NATIVE,APP等,说明详见参数规定
  19. public String getReturn_code() {
  20. return return_code;
  21. }
  22. public void setReturn_code(String return_code) {
  23. this.return_code = return_code;
  24. }
  25. public String getReturn_msg() {
  26. return return_msg;
  27. }
  28. public void setReturn_msg(String return_msg) {
  29. this.return_msg = return_msg;
  30. }
  31. public String getAppid() {
  32. return appid;
  33. }
  34. public void setAppid(String appid) {
  35. this.appid = appid;
  36. }
  37. public String getMch_id() {
  38. return mch_id;
  39. }
  40. public void setMch_id(String mch_id) {
  41. this.mch_id = mch_id;
  42. }
  43. public String getNonce_str() {
  44. return nonce_str;
  45. }
  46. public void setNonce_str(String nonce_str) {
  47. this.nonce_str = nonce_str;
  48. }
  49. public String getSign() {
  50. return sign;
  51. }
  52. public void setSign(String sign) {
  53. this.sign = sign;
  54. }
  55. public String getPrepay_id() {
  56. return prepay_id;
  57. }
  58. public void setPrepay_id(String prepay_id) {
  59. this.prepay_id = prepay_id;
  60. }
  61. public String getResult_code() {
  62. return result_code;
  63. }
  64. public void setResult_code(String result_code) {
  65. this.result_code = result_code;
  66. }
  67. public String getTrade_type() {
  68. return trade_type;
  69. }
  70. public void setTrade_type(String trade_type) {
  71. this.trade_type = trade_type;
  72. }
  73. @Override
  74. public String toString() {
  75. return "TongYiReturn [return_code=" + return_code + ", return_msg="
  76. + return_msg + ", appid=" + appid + ", mch_id=" + mch_id
  77. + ", nonce_str=" + nonce_str + ", sign=" + sign
  78. + ", prepay_id=" + prepay_id + ", result_code=" + result_code
  79. + ", trade_type=" + trade_type + "]";
  80. }
  81. }