Class CorpPayment
- java.lang.Object
-
- com.foxinmy.weixin4j.http.weixin.XmlResult
-
- com.foxinmy.weixin4j.pay.payment.mch.MerchantResult
-
- com.foxinmy.weixin4j.pay.payment.mch.CorpPayment
-
- All Implemented Interfaces:
Serializable
public class CorpPayment extends MerchantResult
企业付款- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CorpPayment()
CorpPayment(String outTradeNo, String openId, CorpPaymentCheckNameType checkNameType, String desc, double amount, String clientIp)
企业付款
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAmount()
CorpPaymentCheckNameType
getCheckNameType()
String
getClientIp()
String
getDesc()
double
getFormatAmount()
调用接口获取单位为分,get方法转换为元方便使用String
getOpenId()
String
getOutTradeNo()
String
getUserName()
void
setAmount(int amount)
void
setCheckNameType(CorpPaymentCheckNameType checkNameType)
void
setClientIp(String clientIp)
void
setDesc(String desc)
void
setOpenId(String openId)
void
setOutTradeNo(String outTradeNo)
void
setUserName(String userName)
String
toString()
-
Methods inherited from class com.foxinmy.weixin4j.pay.payment.mch.MerchantResult
getAppId, getDeviceInfo, getFormatRecall, 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
-
CorpPayment
protected CorpPayment()
-
CorpPayment
public CorpPayment(String outTradeNo, String openId, CorpPaymentCheckNameType checkNameType, String desc, double amount, String clientIp)
企业付款- Parameters:
outTradeNo
- 商户的订单号openId
- 用户的openidcheckNameType
- 校验用户姓名选项desc
- 描述amount
- 金额 单位元clientIp
- 调用接口IP
-
-
Method Detail
-
getOutTradeNo
public String getOutTradeNo()
-
setOutTradeNo
public void setOutTradeNo(String outTradeNo)
-
getOpenId
public String getOpenId()
-
setOpenId
public void setOpenId(String openId)
-
getCheckNameType
public CorpPaymentCheckNameType getCheckNameType()
-
setCheckNameType
public void setCheckNameType(CorpPaymentCheckNameType checkNameType)
-
getUserName
public String getUserName()
-
setUserName
public void setUserName(String userName)
-
getDesc
public String getDesc()
-
setDesc
public void setDesc(String desc)
-
getAmount
public int getAmount()
-
setAmount
public void setAmount(int amount)
-
getFormatAmount
public double getFormatAmount()
调用接口获取单位为分,get方法转换为元方便使用- Returns:
- 元单位
-
getClientIp
public String getClientIp()
-
setClientIp
public void setClientIp(String clientIp)
-
toString
public String toString()
- Overrides:
toString
in classMerchantResult
-
-