@Test public void testSendSingle(){ RedPackRequest redPackRequest = new RedPackRequest(); redPackRequest.setActivityName("土豪发红包"); redPackRequest.setAmount(100); redPackRequest.setBillNumber("1292063901201605150012300014"); redPackRequest.setNumber(1); redPackRequest.setOpenId("oELhlt7Q-lRmLbRsPsaKeVX6pqjg"); redPackRequest.setRemark("测试发红包"); redPackRequest.setWishing("恭喜发财"); redPackRequest.setClientIp("127.0.0.1"); redPackRequest.setSendName("创河软件"); RedPackResponse redPackResponse = RedPacks.defaultRedPacks().sendSingle(redPackRequest); Assert.assertNotNull(redPackResponse); }
public RedPackResponse sendSingle(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.single"); return send(url, redPackRequest); }
RedPacks { public RedPackResponse sendSingle(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.single"); return send(url, redPackRequest); } }
RedPacks { public RedPackResponse sendSingle(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.single"); return send(url, redPackRequest); }  }
RedPacks { public RedPackResponse sendSingle(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.single"); return send(url, redPackRequest); }  void setPaySetting(PaySetting paySetting); static RedPacks defaultRedPacks(); static RedPacks with(PaySetting paySetting); void setWxSslClient(WxSslClient wxSslClient); RedPackResponse sendSingle(RedPackRequest redPackRequest); RedPackResponse sendGroup(RedPackRequest redPackRequest); RedPackResult query(String billNumber); }
RedPacks { public RedPackResponse sendSingle(RedPackRequest redPackRequest) { String url = WxEndpoint.get("url.pay.redpack.send.single"); return send(url, redPackRequest); }  void setPaySetting(PaySetting paySetting); static RedPacks defaultRedPacks(); static RedPacks with(PaySetting paySetting); void setWxSslClient(WxSslClient wxSslClient); RedPackResponse sendSingle(RedPackRequest redPackRequest); RedPackResponse sendGroup(RedPackRequest redPackRequest); RedPackResult query(String billNumber);  }