#178 实现查询代金券批次和信息的接口

This commit is contained in:
Binary Wang
2017-07-15 19:16:52 +08:00
committed by Binary Wang
parent f3752e56d8
commit 74e3cc569b
7 changed files with 1201 additions and 6 deletions

View File

@ -1,8 +1,7 @@
package com.github.binarywang.wxpay.service.impl;
import com.github.binarywang.utils.qrcode.QrcodeUtils;
import com.github.binarywang.wxpay.bean.coupon.WxPayCouponSendRequest;
import com.github.binarywang.wxpay.bean.coupon.WxPayCouponSendResult;
import com.github.binarywang.wxpay.bean.coupon.*;
import com.github.binarywang.wxpay.bean.request.*;
import com.github.binarywang.wxpay.bean.result.*;
import com.github.binarywang.wxpay.exception.WxPayException;
@ -283,4 +282,22 @@ public class WxPayServiceAbstractImplTest {
.build());
this.logger.info(result.toString());
}
@Test
public void testQueryCouponStock() throws Exception {
WxPayCouponStockQueryResult result = this.payService.queryCouponStock(WxPayCouponStockQueryRequest.newBuilder()
.couponStockId("123")
.build());
this.logger.info(result.toString());
}
@Test
public void testQueryCouponInfo() throws Exception {
WxPayCouponInfoQueryResult result = this.payService.queryCouponInfo(WxPayCouponInfoQueryRequest.newBuilder()
.openid("onqOjjrXT-776SpHnfexGm1_P7iE")
.couponId("11")
.stockId("1121")
.build());
this.logger.info(result.toString());
}
}