行业交易系统->退货退款->同步退款审核结果

This commit is contained in:
353259576 2024-11-08 14:05:56 +08:00
parent ddbda6d9d6
commit 168c351ed9
5 changed files with 46 additions and 0 deletions

View File

@ -2375,6 +2375,15 @@ public class DyAppletClient extends BaseClient {
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).tradeCreateRefund(body);
}
/**
* 行业交易系统->退货退款->同步退款审核结果
* @param body 同步退款审核结果请求值
* @return
*/
public DySimpleResult<Void> merchantAuditCallbackV2(MerchantAuditCallbackQuery body) {
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).merchantAuditCallbackV2(body);
}
/**
* 获取抖音号绑定所需的资质模版列表
*

View File

@ -299,4 +299,12 @@ public interface IndustryTransactionClient {
*/
@Post(value = "${tradeCreateRefund}", interceptor = ClientTokenInterceptor.class)
DySimpleResult<CreateRefundVo> tradeCreateRefund(@JSONBody TradeCreateRefundQuery body);
/**
* 行业交易系统->退货退款->同步退款审核结果
* @param body 同步退款审核结果请求值
* @return
*/
@Post(value = "${merchantAuditCallbackV2}", interceptor = ClientTokenInterceptor.class)
DySimpleResult<Void> merchantAuditCallbackV2(@JSONBody MerchantAuditCallbackQuery body);
}

View File

@ -376,4 +376,14 @@ public class IndustryTransactionHandler extends AbstractAppletHandler{
baseQuery(body);
return getIndustryOpenTransactionClient().tradeCreateRefund(body);
}
/**
* 行业交易系统->退货退款->同步退款审核结果
* @param body 同步退款审核结果请求值
* @return
*/
public DySimpleResult<Void> merchantAuditCallbackV2(MerchantAuditCallbackQuery body) {
baseQuery(body);
return getIndustryOpenTransactionClient().merchantAuditCallbackV2(body);
}
}

View File

@ -654,6 +654,12 @@ public enum DyAppletUrlPathEnum {
* 行业交易系统->退货退款->开发者发起退款
*/
TRADE_CREATE_REFUND("tradeCreateRefund", "/api/apps/trade/v2/create_refund"),
/**
* https://developer.toutiao.com
* 行业交易系统->退货退款->同步退款审核结果
*/
MERCHANT_AUDIT_CALLBACK_V2("merchantAuditCallbackV2", "/api/apps/trade/v2/merchant_audit_callback"),
;

View File

@ -817,4 +817,17 @@ public class TransactionTest {
)
);
}
/**
* 行业交易系统->退货退款->同步退款审核结果
*/
@Test
public void merchantAuditCallbackV2(){
DyAppletClient dyAppletClient = new DyAppletClient();
System.out.println(
JSON.toJSONString(
dyAppletClient.merchantAuditCallbackV2(MerchantAuditCallbackQuery.builder().build())
)
);
}
}