package com.hx.corp.entity;
|
|
/**企业付款返回参数实体
|
*
|
*/
|
public class CorpPayResponse {
|
|
/*(Y)业务结果,SUCCESS/FAIL,注意:当状态为FAIL时,存在业务结果未明确的情况。如果状态为FAIL,请务必关注错误代码(err_code字段),通过查询接口确认此次付款的结果*/
|
private String result_code = "FAIL";
|
/*(Y)返回状态码,SUCCESS/FAIL,此字段是通信标识,非交易标识,交易是否成功需要查看result_code来判断*/
|
private String return_code = "FAIL";
|
/*(Y) 返回信息 */
|
private String return_msg;
|
/*(Y)错误代码*/
|
private String err_code;
|
/*(Y)错误代码描述*/
|
private String err_code_des;
|
/*(Y)商户appid*/
|
private String mch_appid;
|
/*(Y)商户号*/
|
private String mchid;
|
/*(N)设备号*/
|
private String device_info;
|
/*(Y)随机字符串*/
|
private String nonce_str;
|
|
//以下字段在return_code 和result_code都为SUCCESS的时候有返回
|
/*(O)商户订单号*/
|
private String partner_trade_no;
|
/*(O)商户订单号*/
|
private String payment_no;
|
/*(O)付款成功时间*/
|
private String payment_time;
|
|
|
public CorpPayResponse() {
|
}
|
|
public static final String CODE_SUC = "SUCCESS";
|
public static final String CODE_FAIL = "FAIL";
|
|
////////////////////////////////////////////////////////
|
|
public String getMch_appid() {
|
return mch_appid;
|
}
|
|
public void setMch_appid(String mch_appid) {
|
this.mch_appid = mch_appid;
|
}
|
|
public String getMchid() {
|
return mchid;
|
}
|
|
public void setMchid(String mchid) {
|
this.mchid = mchid;
|
}
|
|
public String getDevice_info() {
|
return device_info;
|
}
|
|
public void setDevice_info(String device_info) {
|
this.device_info = device_info;
|
}
|
|
public String getResult_code() {
|
return result_code;
|
}
|
|
public void setResult_code(String result_code) {
|
this.result_code = result_code;
|
}
|
|
public String getErr_code() {
|
return err_code;
|
}
|
|
public void setErr_code(String err_code) {
|
this.err_code = err_code;
|
}
|
|
public String getErr_code_des() {
|
return err_code_des;
|
}
|
|
public void setErr_code_des(String err_code_des) {
|
this.err_code_des = err_code_des;
|
}
|
|
public String getNonce_str() {
|
return nonce_str;
|
}
|
|
public void setNonce_str(String nonce_str) {
|
this.nonce_str = nonce_str;
|
}
|
|
public String getPartner_trade_no() {
|
return partner_trade_no;
|
}
|
|
public void setPartner_trade_no(String partner_trade_no) {
|
this.partner_trade_no = partner_trade_no;
|
}
|
|
public String getPayment_no() {
|
return payment_no;
|
}
|
|
public void setPayment_no(String payment_no) {
|
this.payment_no = payment_no;
|
}
|
|
public String getPayment_time() {
|
return payment_time;
|
}
|
|
public void setPayment_time(String payment_time) {
|
this.payment_time = payment_time;
|
}
|
|
public String getReturn_code() {
|
return return_code;
|
}
|
|
public void setReturn_code(String return_code) {
|
this.return_code = return_code;
|
}
|
|
public String getReturn_msg() {
|
return return_msg;
|
}
|
|
public void setReturn_msg(String return_msg) {
|
this.return_msg = return_msg;
|
}
|
|
@Override
|
public String toString() {
|
return "CorpPayResponse{" +
|
"result_code='" + result_code + '\'' +
|
", return_code='" + return_code + '\'' +
|
", return_msg='" + return_msg + '\'' +
|
", err_code='" + err_code + '\'' +
|
", err_code_des='" + err_code_des + '\'' +
|
", mch_appid='" + mch_appid + '\'' +
|
", mchid='" + mchid + '\'' +
|
", device_info='" + device_info + '\'' +
|
", nonce_str='" + nonce_str + '\'' +
|
", partner_trade_no='" + partner_trade_no + '\'' +
|
", payment_no='" + payment_no + '\'' +
|
", payment_time='" + payment_time + '\'' +
|
'}';
|
}
|
}
|