mirror of
https://gitee.com/dromara/dy-java.git
synced 2024-12-01 19:47:44 +08:00
行业交易系统->退货退款->同步退款审核结果
This commit is contained in:
parent
ddbda6d9d6
commit
168c351ed9
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取抖音号绑定所需的资质模版列表
|
||||
*
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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"),
|
||||
;
|
||||
|
||||
|
||||
|
@ -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())
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user