🆕 #3327【微信支付】增加平台收付通(注销申请)相关接口
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
package com.github.binarywang.wxpay.service.impl;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.CombineTransactionsRequest;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.PartnerTransactionsQueryRequest;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.PartnerTransactionsResult;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverRequest;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverResult;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.TransactionsResult;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.*;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.enums.SpAccountTypeEnum;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.enums.TradeTypeEnum;
|
||||
import com.github.binarywang.wxpay.exception.WxPayException;
|
||||
@@ -19,6 +14,8 @@ import me.chanjar.weixin.common.util.RandomUtils;
|
||||
import org.testng.annotations.Guice;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -151,4 +148,29 @@ public class EcommerceServiceImplTest {
|
||||
String date = "";
|
||||
wxPayService.getEcommerceService().subDayEndBalance(subMchid, date);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreatedAccountCancelApplication() throws WxPayException {
|
||||
AccountCancelApplicationsRequest request = new AccountCancelApplicationsRequest();
|
||||
request.setSubMchid("");
|
||||
request.setOutApplyNo("");
|
||||
request.setApplicationInfo(Lists.newArrayList());
|
||||
|
||||
AccountCancelApplicationsResult result = wxPayService.getEcommerceService().createdAccountCancelApplication(request);
|
||||
log.info("请求参数:{} 响应结果:{}", request, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetAccountCancelApplication() throws WxPayException {
|
||||
String request = "申请单号";
|
||||
AccountCancelApplicationsResult result = wxPayService.getEcommerceService().getAccountCancelApplication(request);
|
||||
log.info("请求参数:{} 响应结果:{}", request, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUploadMediaAccountCancelApplication() throws WxPayException, IOException {
|
||||
AccountCancelApplicationsMediaResult result = wxPayService.getEcommerceService()
|
||||
.uploadMediaAccountCancelApplication(new File("src\\test\\resources\\mm.jpeg"));
|
||||
log.info("响应结果:{}", result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user