com.zopen.wechat.pay.dto.PayResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zopen-ato-starter Show documentation
Show all versions of zopen-ato-starter Show documentation
Alibaba Tencent And Others For Spring Boot.
package com.zopen.wechat.pay.dto;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "xml")
public class PayResponse extends BaseResponse {
private static final long serialVersionUID = 1L;
private String appid;
// * 商户号
private String mch_id;
private String device_info;
private String nonce_str;
// * 交易类型(JSAPI、NATIVE、APP)
private String trade_type;
// * 预支付交易会话标识(有效期为 2 小时)
private String prepay_id;
// 二维码链接(trade_type=NATIVE时有返回,此url用于生成支付二维码,然后提供给用户进行扫码支付。)
private String code_url;
@Override
public String toString() {
return "PayResponse{" +
"appid='" + appid + '\'' +
", mch_id='" + mch_id + '\'' +
", device_info='" + device_info + '\'' +
", nonce_str='" + nonce_str + '\'' +
", trade_type='" + trade_type + '\'' +
", prepay_id='" + prepay_id + '\'' +
", code_url='" + code_url + '\'' +
"} " + super.toString();
}
public String getAppid() {
return appid;
}
public void setAppid(String appid) {
this.appid = appid;
}
public String getMch_id() {
return mch_id;
}
public String getCode_url() {
return code_url;
}
public void setCode_url(String code_url) {
this.code_url = code_url;
}
public void setMch_id(String mch_id) {
this.mch_id = mch_id;
}
public String getDevice_info() {
return device_info;
}
public void setDevice_info(String device_info) {
this.device_info = device_info;
}
public String getNonce_str() {
return nonce_str;
}
public void setNonce_str(String nonce_str) {
this.nonce_str = nonce_str;
}
public String getTrade_type() {
return trade_type;
}
public void setTrade_type(String trade_type) {
this.trade_type = trade_type;
}
public String getPrepay_id() {
return prepay_id;
}
public void setPrepay_id(String prepay_id) {
this.prepay_id = prepay_id;
}
}