1
0
mirror of synced 2026-02-14 16:57:30 +08:00

🆕 #3327【微信支付】增加平台收付通(注销申请)相关接口

This commit is contained in:
zhuangzibin
2024-10-09 12:36:50 +08:00
committed by GitHub
parent 2226693f59
commit 5821710e07
7 changed files with 269 additions and 7 deletions

View File

@@ -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);
}
}