com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderResult Maven / Gradle / Ivy
package com.github.binarywang.wxpay.bean.result;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
*
* 在发起微信支付前,需要调用统一下单接口,获取"预支付交易会话标识"返回的结果
* 统一下单(详见http://com.github.binarywang.wechat.pay.bean.pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1)
*
*
* @author chanjarster
*/
@XStreamAlias("xml")
public class WxPayUnifiedOrderResult extends WxPayBaseResult {
/**
* 微信生成的预支付回话标识,用于后续接口调用中使用,该值有效期为2小时
*/
@XStreamAlias("prepay_id")
private String prepayId;
/**
* 交易类型,取值为:JSAPI,NATIVE,APP等
*/
@XStreamAlias("trade_type")
private String tradeType;
/**
* mweb_url 支付跳转链接
*/
@XStreamAlias("mweb_url")
private String mwebUrl;
/**
* trade_type为NATIVE时有返回,用于生成二维码,展示给用户进行扫码支付
*/
@XStreamAlias("code_url")
private String codeURL;
public String getPrepayId() {
return this.prepayId;
}
public void setPrepayId(String prepayId) {
this.prepayId = prepayId;
}
public String getTradeType() {
return this.tradeType;
}
public void setTradeType(String tradeType) {
this.tradeType = tradeType;
}
public String getCodeURL() {
return this.codeURL;
}
public void setCodeURL(String codeURL) {
this.codeURL = codeURL;
}
public String getMwebUrl() {
return mwebUrl;
}
public void setMwebUrl(String mwebUrl) {
this.mwebUrl = mwebUrl;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy