Class PayPackageV2
- java.lang.Object
-
- com.foxinmy.weixin4j.http.weixin.XmlResult
-
- com.foxinmy.weixin4j.payment.mch.MerchantResult
-
- com.foxinmy.weixin4j.payment.PayPackage
-
- com.foxinmy.weixin4j.mp.oldpayment.PayPackageV2
-
- All Implemented Interfaces:
Serializable
public class PayPackageV2 extends PayPackage
V2支付的订单详情- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PayPackageV2()
PayPackageV2(String partner, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp)
支付信息PayPackageV2(String partner, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, double transportFee, double productFee, String goodsTag)
支付信息 完整参数
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBankType()
String
getFeeType()
double
getFormatProductFee()
调用接口获取单位为分,get方法转换为元方便使用double
getFormatTransportFee()
调用接口获取单位为分,get方法转换为元方便使用String
getInputCharset()
String
getPartner()
Integer
getProductFee()
Integer
getTransportFee()
void
setPartner(String partner)
void
setProductFee(double productFee)
单位为元,自动格式化为分void
setTransportFee(double transportFee)
单位为元,自动格式化为分String
toString()
-
Methods inherited from class com.foxinmy.weixin4j.payment.PayPackage
getAttach, getBody, getCreateIp, getDetail, getFormatTotalFee, getGoodsTag, getNotifyUrl, getOutTradeNo, getTimeExpire, getTimeStart, getTotalFee, setAttach, setBody, setCreateIp, setDetail, setGoodsTag, setNotifyUrl, setOutTradeNo, setTimeExpire, setTimeExpire, setTimeStart, setTimeStart, setTotalFee
-
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
-
PayPackageV2
protected PayPackageV2()
-
PayPackageV2
public PayPackageV2(String partner, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp)
支付信息- Parameters:
partner
- 商户号 必填body
- 支付详情 必填outTradeNo
- 订单号 必填totalFee
- 订单总额(元) 必填notifyUrl
- 支付回调URL 必填createIp
- 订单生成的机器 IP 必填
-
PayPackageV2
public PayPackageV2(String partner, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, Date timeStart, Date timeExpire, double transportFee, double productFee, String goodsTag)
支付信息 完整参数- Parameters:
partner
- 商户号 必填body
- 支付详情 必填outTradeNo
- 订单号 必填totalFee
- 订单总额(元) 必填notifyUrl
- 支付回调URL 必填createIp
- 订单生成的机器 IP 必填attach
- 附加数据,在查询API和支付通知中原样返回,该字段主要用于商户携带订单的自定义数据timeStart
- 订单生成时间,格式为yyyyMMddHHmmsstimeExpire
- 订单失效时间,格式为yyyyMMddHHmmss;注意:最短失效时间间隔必须大于5分钟transportFee
- 物流费用 如有值 必须保证 transportFee+productFee=totalFeetransportFee
- 商品费用 如有值 必须保证 transportFee+productFee=totalFeegoodsTag
- 商品标记,代金券或立减优惠功能的参数
-
-
Method Detail
-
getBankType
public String getBankType()
-
getPartner
public String getPartner()
-
setPartner
public void setPartner(String partner)
-
getFeeType
public String getFeeType()
-
getTransportFee
public Integer getTransportFee()
-
getFormatTransportFee
public double getFormatTransportFee()
调用接口获取单位为分,get方法转换为元方便使用- Returns:
- 元单位
-
setTransportFee
public void setTransportFee(double transportFee)
单位为元,自动格式化为分- Parameters:
transportFee
- 物流费用 单位为元
-
getProductFee
public Integer getProductFee()
-
getFormatProductFee
public double getFormatProductFee()
调用接口获取单位为分,get方法转换为元方便使用- Returns:
- 元单位
-
setProductFee
public void setProductFee(double productFee)
单位为元,自动格式化为分- Parameters:
productFee
- 商品 单位为元
-
getInputCharset
public String getInputCharset()
-
toString
public String toString()
- Overrides:
toString
in classPayPackage
-
-