Package com.foxinmy.weixin4j.payment
Class PayPackage
- java.lang.Object
-
- com.foxinmy.weixin4j.http.weixin.XmlResult
-
- com.foxinmy.weixin4j.payment.mch.MerchantResult
-
- com.foxinmy.weixin4j.payment.PayPackage
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MchPayPackage
,PayPackageV2
@Deprecated public class PayPackage extends MerchantResult
Deprecated.迁移到子模块weixin4j-pay订单信息- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PayPackage()
Deprecated.PayPackage(String body, String detail, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, String goodsTag)
Deprecated.订单对象PayPackage(String body, String detail, String outTradeNo, long totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, String goodsTag)
Deprecated.订单对象
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getAttach()
Deprecated.String
getBody()
Deprecated.String
getCreateIp()
Deprecated.String
getDetail()
Deprecated.double
getFormatTotalFee()
Deprecated.调用接口获取单位为分,get方法转换为元方便使用String
getGoodsTag()
Deprecated.String
getNotifyUrl()
Deprecated.String
getOutTradeNo()
Deprecated.String
getTimeExpire()
Deprecated.String
getTimeStart()
Deprecated.int
getTotalFee()
Deprecated.void
setAttach(String attach)
Deprecated.void
setBody(String body)
Deprecated.void
setCreateIp(String createIp)
Deprecated.void
setDetail(String detail)
Deprecated.void
setGoodsTag(String goodsTag)
Deprecated.void
setNotifyUrl(String notifyUrl)
Deprecated.void
setOutTradeNo(String outTradeNo)
Deprecated.void
setTimeExpire(String timeExpire)
Deprecated.void
setTimeExpire(Date timeExpire)
Deprecated.void
setTimeStart(String timeStart)
Deprecated.void
setTimeStart(Date timeStart)
Deprecated.void
setTotalFee(double totalFee)
Deprecated.单位为元,自动格式化为分String
toString()
Deprecated.-
Methods inherited from class com.foxinmy.weixin4j.payment.mch.MerchantResult
getAppId, getDeviceInfo, getFormatRecall, getFormatSignType, getMchId, getNonceStr, getRecall, getSign, getSignType, getSubAppId, getSubMchId, setAppId, setDeviceInfo, setMchId, setNonceStr, setRecall, setSign, setSignType, setSubAppId, setSubMchId
-
Methods inherited from class com.foxinmy.weixin4j.http.weixin.XmlResult
getErrCode, getErrCodeDes, getResultCode, getReturnCode, getReturnMsg, setErrCode, setErrCodeDes, setResultCode, setReturnCode, setReturnMsg
-
-
-
-
Constructor Detail
-
PayPackage
protected PayPackage()
Deprecated.
-
PayPackage
public PayPackage(String body, String detail, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, String goodsTag)
Deprecated.订单对象- Parameters:
body
- 订单描述 必填detail
- 订单详情 非必填outTradeNo
- 商户内部ID 必填totalFee
- 订单总额 必填 单位为元notifyUrl
- 回调地址 必填createIp
- 生成订单数据的机器IP 必填attach
- 附加数据 非必填timeStart
- 订单生成时间 非必填timeExpire
- 订单失效时间 非必填goodsTag
- 订单标记 非必填
-
PayPackage
public PayPackage(String body, String detail, String outTradeNo, long totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, String goodsTag)
Deprecated.订单对象- Parameters:
body
- 订单描述 必填detail
- 订单详情 非必填outTradeNo
- 商户内部ID 必填totalFee
- 订单总额 必填 单位为分notifyUrl
- 回调地址 必填createIp
- 生成订单数据的机器IP 必填attach
- 附加数据 非必填timeStart
- 订单生成时间 非必填timeExpire
- 订单失效时间 非必填goodsTag
- 订单标记 非必填
-
-
Method Detail
-
getBody
public String getBody()
Deprecated.
-
setBody
public void setBody(String body)
Deprecated.
-
getDetail
public String getDetail()
Deprecated.
-
setDetail
public void setDetail(String detail)
Deprecated.
-
getOutTradeNo
public String getOutTradeNo()
Deprecated.
-
setOutTradeNo
public void setOutTradeNo(String outTradeNo)
Deprecated.
-
getTotalFee
public int getTotalFee()
Deprecated.
-
getFormatTotalFee
public double getFormatTotalFee()
Deprecated.调用接口获取单位为分,get方法转换为元方便使用- Returns:
- 元单位
-
setTotalFee
public void setTotalFee(double totalFee)
Deprecated.单位为元,自动格式化为分- Parameters:
totalFee
- 订单总额 单位为元
-
getNotifyUrl
public String getNotifyUrl()
Deprecated.
-
setNotifyUrl
public void setNotifyUrl(String notifyUrl)
Deprecated.
-
getCreateIp
public String getCreateIp()
Deprecated.
-
setCreateIp
public void setCreateIp(String createIp)
Deprecated.
-
getAttach
public String getAttach()
Deprecated.
-
setAttach
public void setAttach(String attach)
Deprecated.
-
getTimeStart
public String getTimeStart()
Deprecated.
-
setTimeStart
public void setTimeStart(String timeStart)
Deprecated.
-
setTimeExpire
public void setTimeExpire(String timeExpire)
Deprecated.
-
setTimeStart
public void setTimeStart(Date timeStart)
Deprecated.
-
getTimeExpire
public String getTimeExpire()
Deprecated.
-
setTimeExpire
public void setTimeExpire(Date timeExpire)
Deprecated.
-
getGoodsTag
public String getGoodsTag()
Deprecated.
-
setGoodsTag
public void setGoodsTag(String goodsTag)
Deprecated.
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classMerchantResult
-
-