org.thlws.payment.wechat.entity.request.OrderQueryRequest Maven / Gradle / Ivy
The newest version!
package org.thlws.payment.wechat.entity.request;
import org.thlws.utils.JsonUtil;
import org.thlws.utils.ThlwsBeanUtil;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* 微信订单查询对象
* @author Hanley | [email protected]
* @version 1.0
*/
@XmlRootElement(name="xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class OrderQueryRequest {
/**公众账号ID*/
@XmlElement(name="appid")
private String appId;
/**商户号*/
@XmlElement(name="mch_id")
private String mchId;
/**微信订单号 ,transaction_id ,out_trade_no 二选一即可*/
@XmlElement(name="transaction_id")
private String transactionId;
/**商户订单号,transaction_id ,out_trade_no 二选一即可*/
@XmlElement(name="out_trade_no")
private String outTradeNo;
/**随机字符串-32个字符内*/
@XmlElement(name="nonce_str")
private final String nonceStr = ThlwsBeanUtil.getRandomString(32);
/**子商户公众账号ID*/
@XmlElement(name="sub_appid")
private String subAppId;
/**子商户号*/
@XmlElement(name="sub_mch_id")
private String subMchId;
/**
* Instantiates a new Order query request.
*/
public OrderQueryRequest(){}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public String getMchId() {
return mchId;
}
public void setMchId(String mchId) {
this.mchId = mchId;
}
public String getTransactionId() {
return transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public String getOutTradeNo() {
return outTradeNo;
}
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getSubAppId() {
return subAppId;
}
public void setSubAppId(String subAppId) {
this.subAppId = subAppId;
}
public String getSubMchId() {
return subMchId;
}
public void setSubMchId(String subMchId) {
this.subMchId = subMchId;
}
@Override
public String toString() {
return JsonUtil.format(this);
}
}