Package com.foxinmy.weixin4j.payment.mch
Class Redpacket
- java.lang.Object
-
- com.foxinmy.weixin4j.http.weixin.XmlResult
-
- com.foxinmy.weixin4j.payment.mch.MerchantResult
-
- com.foxinmy.weixin4j.payment.mch.Redpacket
-
- All Implemented Interfaces:
Serializable
@Deprecated public class Redpacket extends MerchantResult
Deprecated.迁移到子模块weixin4j-pay红包- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- 普通红包, 裂变红包, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Redpacket
copy(String outTradeNo, String openId)
Deprecated.批量发送时可能需要String
getActName()
Deprecated.String
getAmtType()
Deprecated.String
getClientIp()
Deprecated.String
getConsumeMchId()
Deprecated.double
getFormatTotalAmount()
Deprecated.调用接口获取单位为分,get方法转换为元方便使用String
getMsgAppId()
Deprecated.String
getOpenId()
Deprecated.String
getOutTradeNo()
Deprecated.String
getRemark()
Deprecated.String
getRisk()
Deprecated.RedpacketSceneType
getSceneType()
Deprecated.String
getSendName()
Deprecated.int
getTotalAmount()
Deprecated.int
getTotalNum()
Deprecated.String
getWishing()
Deprecated.void
setConsumeMchId(String consumeMchId)
Deprecated.void
setMsgAppId(String msgAppId)
Deprecated.void
setRisk(RedpacketRisk risk)
Deprecated.void
setRisk(String risk)
Deprecated.void
setSceneType(RedpacketSceneType sceneType)
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
-
Redpacket
protected Redpacket()
Deprecated.
-
Redpacket
public Redpacket(String outTradeNo, String openId, String sendName, double totalAmount, int totalNum, String wishing, String clientIp, String actName, String remark)
Deprecated.红包- Parameters:
outTradeNo
- 商户侧一天内不可重复的订单号 接口根据商户订单号支持重入 如出现超时可再调用 必填openId
- 接受收红包的用户的openid 必填sendName
- 红包发送者名称 必填totalAmount
- 付款金额 单位为元,自动格式化为分 必填totalNum
- 红包发放总人数 大于1视为裂变红包 必填wishing
- 红包祝福语 必填clientIp
- Ip地址 必填actName
- 活动名称 必填remark
- 备注 必填
-
-
Method Detail
-
copy
public Redpacket copy(String outTradeNo, String openId)
Deprecated.批量发送时可能需要- Parameters:
outTradeNo
- 订单号openId
- 用户ID- Returns:
- 红包实体
-
getOutTradeNo
public String getOutTradeNo()
Deprecated.
-
getOpenId
public String getOpenId()
Deprecated.
-
getSendName
public String getSendName()
Deprecated.
-
getTotalAmount
public int getTotalAmount()
Deprecated.
-
getFormatTotalAmount
public double getFormatTotalAmount()
Deprecated.调用接口获取单位为分,get方法转换为元方便使用- Returns:
- 元单位
-
getTotalNum
public int getTotalNum()
Deprecated.
-
getWishing
public String getWishing()
Deprecated.
-
getAmtType
public String getAmtType()
Deprecated.
-
getClientIp
public String getClientIp()
Deprecated.
-
getActName
public String getActName()
Deprecated.
-
getRemark
public String getRemark()
Deprecated.
-
getMsgAppId
public String getMsgAppId()
Deprecated.
-
setMsgAppId
public void setMsgAppId(String msgAppId)
Deprecated.
-
getConsumeMchId
public String getConsumeMchId()
Deprecated.
-
setConsumeMchId
public void setConsumeMchId(String consumeMchId)
Deprecated.
-
getSceneType
public RedpacketSceneType getSceneType()
Deprecated.
-
setSceneType
public void setSceneType(RedpacketSceneType sceneType)
Deprecated.
-
getRisk
public String getRisk()
Deprecated.
-
setRisk
public void setRisk(String risk)
Deprecated.
-
setRisk
public void setRisk(RedpacketRisk risk)
Deprecated.
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classMerchantResult
-
-