com.foxinmy.weixin4j.payment
Class PayPackage

java.lang.Object
  extended by com.foxinmy.weixin4j.http.weixin.XmlResult
      extended by com.foxinmy.weixin4j.payment.mch.MerchantResult
          extended by com.foxinmy.weixin4j.payment.PayPackage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MchPayPackage

public class PayPackage
extends MerchantResult

订单信息

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
Serialized Form

Constructor Summary
PayPackage(String body, String detail, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, String goodsTag)
          订单对象
PayPackage(String body, String detail, String outTradeNo, long totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, String goodsTag)
          订单对象
 
Method Summary
 String getAttach()
           
 String getBody()
           
 String getCreateIp()
           
 String getDetail()
           
 double getFormatTotalFee()
          调用接口获取单位为分,get方法转换为元方便使用
 String getGoodsTag()
           
 String getNotifyUrl()
           
 String getOutTradeNo()
           
 String getTimeExpire()
           
 String getTimeStart()
           
 int getTotalFee()
           
 void setAttach(String attach)
           
 void setBody(String body)
           
 void setCreateIp(String createIp)
           
 void setDetail(String detail)
           
 void setGoodsTag(String goodsTag)
           
 void setNotifyUrl(String notifyUrl)
           
 void setOutTradeNo(String outTradeNo)
           
 void setTimeExpire(Date timeExpire)
           
 void setTimeExpire(String timeExpire)
           
 void setTimeStart(Date timeStart)
           
 void setTimeStart(String timeStart)
           
 void setTotalFee(double totalFee)
          单位为元,自动格式化为分
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PayPackage

public PayPackage(String body,
                  String detail,
                  String outTradeNo,
                  double totalFee,
                  String notifyUrl,
                  String createIp,
                  String attach,
                  Date timeStart,
                  Date timeExpire,
                  String goodsTag)
订单对象

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)
订单对象

Parameters:
body - 订单描述 必填
detail - 订单详情 非必填
outTradeNo - 商户内部ID 必填
totalFee - 订单总额 必填 单位为分
notifyUrl - 回调地址 必填
createIp - 生成订单数据的机器IP 必填
attach - 附加数据 非必填
timeStart - 订单生成时间 非必填
timeExpire - 订单失效时间 非必填
goodsTag - 订单标记 非必填
Method Detail

getBody

public String getBody()

setBody

public void setBody(String body)

getDetail

public String getDetail()

setDetail

public void setDetail(String detail)

getOutTradeNo

public String getOutTradeNo()

setOutTradeNo

public void setOutTradeNo(String outTradeNo)

getTotalFee

public int getTotalFee()

getFormatTotalFee

public double getFormatTotalFee()
调用接口获取单位为分,get方法转换为元方便使用

Returns:
元单位

setTotalFee

public void setTotalFee(double totalFee)
单位为元,自动格式化为分

Parameters:
totalFee - 订单总额 单位为元

getNotifyUrl

public String getNotifyUrl()

setNotifyUrl

public void setNotifyUrl(String notifyUrl)

getCreateIp

public String getCreateIp()

setCreateIp

public void setCreateIp(String createIp)

getAttach

public String getAttach()

setAttach

public void setAttach(String attach)

getTimeStart

public String getTimeStart()

setTimeStart

public void setTimeStart(String timeStart)

setTimeExpire

public void setTimeExpire(String timeExpire)

setTimeStart

public void setTimeStart(Date timeStart)

getTimeExpire

public String getTimeExpire()

setTimeExpire

public void setTimeExpire(Date timeExpire)

getGoodsTag

public String getGoodsTag()

setGoodsTag

public void setGoodsTag(String goodsTag)

toString

public String toString()
Overrides:
toString in class MerchantResult


Copyright © 2014–2017. All rights reserved.