Package com.foxinmy.weixin4j.pay.api
Class CashApi
- java.lang.Object
-
- com.foxinmy.weixin4j.api.BaseApi
-
- com.foxinmy.weixin4j.pay.api.MchApi
-
- com.foxinmy.weixin4j.pay.api.CashApi
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.pay.api.MchApi
weixinAccount, weixinSignature
-
Fields inherited from class com.foxinmy.weixin4j.api.BaseApi
weixinExecutor
-
-
Constructor Summary
Constructors Constructor Description CashApi(WeixinPayAccount weixinAccount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CorpPaymentRecordqueryCorpPayment(String outTradeNo)企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果doublequeryExchageRate(CurrencyType currencyType, Date date)查询汇率RedpacketRecordqueryRedpack(String outTradeNo)查询红包记录SettlementRecordquerySettlement(boolean status, Pageable pageable, Date start, Date end)查询结算资金CorpPaymentResultsendCorpPayment(CorpPayment payment)企业付款为企业提供付款至用户零钱的能力RedpacketSendResultsendRedpack(Redpacket redpacket)发放红包 企业向微信用户个人发现金红包List<Future<RedpacketSendResult>>sendRedpacks(Redpacket... redpackets)批量发放红包 企业向微信用户个人发现金红包 多个红包信息-
Methods inherited from class com.foxinmy.weixin4j.pay.api.MchApi
createBaseRequestMap, declareMerchant, getWeixinSignature, getWeixinSSLExecutor, weixinBundle
-
Methods inherited from class com.foxinmy.weixin4j.api.BaseApi
getRequestUri
-
-
-
-
Constructor Detail
-
CashApi
public CashApi(WeixinPayAccount weixinAccount)
-
-
Method Detail
-
sendRedpack
public RedpacketSendResult sendRedpack(Redpacket redpacket) throws WeixinException
发放红包 企业向微信用户个人发现金红包- Parameters:
redpacket- 红包信息- Returns:
- 发放结果
- Throws:
WeixinException- See Also:
Redpacket,RedpacketSendResult, 发放现金红包接口, 发放裂变红包接口
-
sendRedpacks
public List<Future<RedpacketSendResult>> sendRedpacks(Redpacket... redpackets)
批量发放红包 企业向微信用户个人发现金红包 多个红包信息- Returns:
- 发放结果
- Throws:
WeixinException- See Also:
sendRedpacks(Redpacket...)
-
queryRedpack
public RedpacketRecord queryRedpack(String outTradeNo) throws WeixinException
查询红包记录- Parameters:
outTradeNo- 商户发放红包的商户订单号- Returns:
- 红包记录
- Throws:
WeixinException- See Also:
RedpacketRecord, 查询现金红包接口, 查询裂变红包接口
-
sendCorpPayment
public CorpPaymentResult sendCorpPayment(CorpPayment payment) throws WeixinException
企业付款为企业提供付款至用户零钱的能力- Parameters:
payment- 付款信息- Returns:
- 付款结果
- Throws:
WeixinException- See Also:
CorpPayment,CorpPaymentResult, 企业付款, 场景介绍(使用条件、付款资金、付款规则等)
-
queryCorpPayment
public CorpPaymentRecord queryCorpPayment(String outTradeNo) throws WeixinException
企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果- Parameters:
outTradeNo- 商户调用企业付款API时使用的商户订单号- Returns:
- 付款记录
- Throws:
WeixinException- See Also:
CorpPaymentRecord, 企业付款查询接口
-
querySettlement
public SettlementRecord querySettlement(boolean status, Pageable pageable, Date start, Date end) throws WeixinException
查询结算资金- Parameters:
status- 是否结算pageable- 分页数据start- 开始日期 查询未结算记录时,该字段可不传end- 结束日期 查询未结算记录时,该字段可不传- Returns:
- 结算金额记录
- Throws:
WeixinException- See Also:
SettlementRecord, 查询结算资金接口
-
queryExchageRate
public double queryExchageRate(CurrencyType currencyType, Date date) throws WeixinException
查询汇率- Parameters:
currencyType- 外币币种date- 日期 不填则默认当天- Returns:
- 汇率 例如美元兑换人民币的比例为6.5
- Throws:
WeixinException- See Also:
- 查询汇率接口
-
-