All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.thlws.payment.wechat.entity.response.WechatReverseResponse Maven / Gradle / Ivy

The newest version!
package org.thlws.payment.wechat.entity.response;

import org.thlws.payment.wechat.entity.WechatResponse;
import org.thlws.utils.JsonUtil;

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 WechatReverseResponse extends WechatResponse {

    /**公众账号ID*/
    @XmlElement(name="appid")
    private String appId           ;

    /**商户号*/
    @XmlElement(name="mch_id")
    private String mchId          ;

    /**子商户公众账号ID*/
    @XmlElement(name="sub_appid")
    private String subAppId       ;

    /**子商户号*/
    @XmlElement(name="sub_mch_id")
    private String subMchId      ;

    /**随机字符串*/
    @XmlElement(name="nonce_str")
    private String nonceStr       ;

    /**签名*/
    @XmlElement(name="sign")
    private String sign            ;

    /**是否重调,是否需要继续调用撤销,Y-需要,N-不需要*/
    @XmlElement(name="recall")
    private String reCall;

    /**
     * Instantiates a new Wechat reverse response.
     */
    public WechatReverseResponse() {
    }

    @Override
    public String toString() {
        return JsonUtil.format(this);
    }


    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 getSubAppId() {
        return subAppId;
    }

    public void setSubAppId(String subAppId) {
        this.subAppId = subAppId;
    }

    public String getSubMchId() {
        return subMchId;
    }

    public void setSubMchId(String subMchId) {
        this.subMchId = subMchId;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getReCall() {
        return reCall;
    }

    public void setReCall(String reCall) {
        this.reCall = reCall;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy