1
0
mirror of synced 2026-02-11 22:27:52 +08:00

【小程序】增加新版自定义交易组件获取售后单详情API

This commit is contained in:
liming
2022-08-25 22:48:17 +08:00
parent 4d526dbd7a
commit 6e5800181b
6 changed files with 145 additions and 23 deletions

View File

@@ -4,8 +4,10 @@ import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest;
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleGetRequest;
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleUpdateRequest;
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopEcAfterSaleGetRequest;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleGetResponse;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse;
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopEcAfterSaleGetResponse;
import cn.binarywang.wx.miniapp.test.ApiTestModule;
import com.google.inject.Inject;
import me.chanjar.weixin.common.error.WxErrorException;
@@ -71,4 +73,15 @@ public class WxMaShopAfterSaleServiceImplTest {
WxMaShopBaseResponse response = wxService.getShopAfterSaleService().update(request);
assertThat(response).isNotNull();
}
@Test
public void testEcGet() throws WxErrorException {
WxMaShopEcAfterSaleGetRequest request = WxMaShopEcAfterSaleGetRequest.builder()
.aftersaleId(123L)
.outAftersaleId("aso_123124341")
.build();
WxMaShopEcAfterSaleGetResponse response = wxService.getShopAfterSaleService().get(request);
assertThat(response).isNotNull();
}
}