提交 | 用户 | age
|
826b66
|
1 |
package com.hx.corp.entity; |
C |
2 |
|
|
3 |
/**企业付款返回参数实体 |
|
4 |
* |
|
5 |
*/ |
|
6 |
public class CorpPayResponse { |
|
7 |
|
|
8 |
/*(Y)业务结果,SUCCESS/FAIL,注意:当状态为FAIL时,存在业务结果未明确的情况。如果状态为FAIL,请务必关注错误代码(err_code字段),通过查询接口确认此次付款的结果*/ |
|
9 |
private String result_code = "FAIL"; |
|
10 |
/*(Y)返回状态码,SUCCESS/FAIL,此字段是通信标识,非交易标识,交易是否成功需要查看result_code来判断*/ |
|
11 |
private String return_code = "FAIL"; |
|
12 |
/*(Y) 返回信息 */ |
|
13 |
private String return_msg; |
|
14 |
/*(Y)错误代码*/ |
|
15 |
private String err_code; |
|
16 |
/*(Y)错误代码描述*/ |
|
17 |
private String err_code_des; |
|
18 |
/*(Y)商户appid*/ |
|
19 |
private String mch_appid; |
|
20 |
/*(Y)商户号*/ |
|
21 |
private String mchid; |
|
22 |
/*(N)设备号*/ |
|
23 |
private String device_info; |
|
24 |
/*(Y)随机字符串*/ |
|
25 |
private String nonce_str; |
|
26 |
|
|
27 |
//以下字段在return_code 和result_code都为SUCCESS的时候有返回 |
|
28 |
/*(O)商户订单号*/ |
|
29 |
private String partner_trade_no; |
|
30 |
/*(O)商户订单号*/ |
|
31 |
private String payment_no; |
|
32 |
/*(O)付款成功时间*/ |
|
33 |
private String payment_time; |
|
34 |
|
|
35 |
|
|
36 |
public CorpPayResponse() { |
|
37 |
} |
|
38 |
|
|
39 |
public static final String CODE_SUC = "SUCCESS"; |
|
40 |
public static final String CODE_FAIL = "FAIL"; |
|
41 |
|
|
42 |
//////////////////////////////////////////////////////// |
|
43 |
|
|
44 |
public String getMch_appid() { |
|
45 |
return mch_appid; |
|
46 |
} |
|
47 |
|
|
48 |
public void setMch_appid(String mch_appid) { |
|
49 |
this.mch_appid = mch_appid; |
|
50 |
} |
|
51 |
|
|
52 |
public String getMchid() { |
|
53 |
return mchid; |
|
54 |
} |
|
55 |
|
|
56 |
public void setMchid(String mchid) { |
|
57 |
this.mchid = mchid; |
|
58 |
} |
|
59 |
|
|
60 |
public String getDevice_info() { |
|
61 |
return device_info; |
|
62 |
} |
|
63 |
|
|
64 |
public void setDevice_info(String device_info) { |
|
65 |
this.device_info = device_info; |
|
66 |
} |
|
67 |
|
|
68 |
public String getResult_code() { |
|
69 |
return result_code; |
|
70 |
} |
|
71 |
|
|
72 |
public void setResult_code(String result_code) { |
|
73 |
this.result_code = result_code; |
|
74 |
} |
|
75 |
|
|
76 |
public String getErr_code() { |
|
77 |
return err_code; |
|
78 |
} |
|
79 |
|
|
80 |
public void setErr_code(String err_code) { |
|
81 |
this.err_code = err_code; |
|
82 |
} |
|
83 |
|
|
84 |
public String getErr_code_des() { |
|
85 |
return err_code_des; |
|
86 |
} |
|
87 |
|
|
88 |
public void setErr_code_des(String err_code_des) { |
|
89 |
this.err_code_des = err_code_des; |
|
90 |
} |
|
91 |
|
|
92 |
public String getNonce_str() { |
|
93 |
return nonce_str; |
|
94 |
} |
|
95 |
|
|
96 |
public void setNonce_str(String nonce_str) { |
|
97 |
this.nonce_str = nonce_str; |
|
98 |
} |
|
99 |
|
|
100 |
public String getPartner_trade_no() { |
|
101 |
return partner_trade_no; |
|
102 |
} |
|
103 |
|
|
104 |
public void setPartner_trade_no(String partner_trade_no) { |
|
105 |
this.partner_trade_no = partner_trade_no; |
|
106 |
} |
|
107 |
|
|
108 |
public String getPayment_no() { |
|
109 |
return payment_no; |
|
110 |
} |
|
111 |
|
|
112 |
public void setPayment_no(String payment_no) { |
|
113 |
this.payment_no = payment_no; |
|
114 |
} |
|
115 |
|
|
116 |
public String getPayment_time() { |
|
117 |
return payment_time; |
|
118 |
} |
|
119 |
|
|
120 |
public void setPayment_time(String payment_time) { |
|
121 |
this.payment_time = payment_time; |
|
122 |
} |
|
123 |
|
|
124 |
public String getReturn_code() { |
|
125 |
return return_code; |
|
126 |
} |
|
127 |
|
|
128 |
public void setReturn_code(String return_code) { |
|
129 |
this.return_code = return_code; |
|
130 |
} |
|
131 |
|
|
132 |
public String getReturn_msg() { |
|
133 |
return return_msg; |
|
134 |
} |
|
135 |
|
|
136 |
public void setReturn_msg(String return_msg) { |
|
137 |
this.return_msg = return_msg; |
|
138 |
} |
|
139 |
|
|
140 |
@Override |
|
141 |
public String toString() { |
|
142 |
return "CorpPayResponse{" + |
|
143 |
"result_code='" + result_code + '\'' + |
|
144 |
", return_code='" + return_code + '\'' + |
|
145 |
", return_msg='" + return_msg + '\'' + |
|
146 |
", err_code='" + err_code + '\'' + |
|
147 |
", err_code_des='" + err_code_des + '\'' + |
|
148 |
", mch_appid='" + mch_appid + '\'' + |
|
149 |
", mchid='" + mchid + '\'' + |
|
150 |
", device_info='" + device_info + '\'' + |
|
151 |
", nonce_str='" + nonce_str + '\'' + |
|
152 |
", partner_trade_no='" + partner_trade_no + '\'' + |
|
153 |
", payment_no='" + payment_no + '\'' + |
|
154 |
", payment_time='" + payment_time + '\'' + |
|
155 |
'}'; |
|
156 |
} |
|
157 |
} |