行业交易系统->分账->发起分账

This commit is contained in:
353259576 2024-10-28 13:56:53 +08:00
parent a8588c620e
commit ca4cd0d441
5 changed files with 48 additions and 0 deletions

View File

@ -2347,6 +2347,16 @@ public class DyAppletClient extends BaseClient {
public DySimpleResult<TradePushDeliveryVo> tradePushDelivery(TradePushDeliveryQuery body){
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).tradePushDelivery(body);
}
/**
* 行业交易系统->分账->发起分账
* @param body 发起分账
* @return
*/
public DySimpleResult<CreateSettleV2Vo> tradeCreateSettle(CreateSettleV2Query body) {
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).tradeCreateSettle(body);
}
/**
* 获取抖音号绑定所需的资质模版列表
*

View File

@ -275,4 +275,13 @@ public interface IndustryTransactionClient {
*/
@Post(value = "${tradePushDelivery}", interceptor = ClientTokenInterceptor.class)
DySimpleResult<TradePushDeliveryVo> tradePushDelivery(@JSONBody TradePushDeliveryQuery body);
/**
* 行业交易系统->分账->发起分账
* @param body 发起分账
* @return
*/
@Post(value = "${tradeCreateSettle}", interceptor = ClientTokenInterceptor.class)
DySimpleResult<CreateSettleV2Vo> tradeCreateSettle(@JSONBody CreateSettleV2Query body);
}

View File

@ -346,4 +346,14 @@ public class IndustryTransactionHandler extends AbstractAppletHandler{
baseQuery(body);
return getIndustryOpenTransactionClient().tradePushDelivery(body);
}
/**
* 行业交易系统->分账->发起分账
* @param body 发起分账
* @return
*/
public DySimpleResult<CreateSettleV2Vo> tradeCreateSettle(CreateSettleV2Query body) {
baseQuery(body);
return getIndustryOpenTransactionClient().tradeCreateSettle(body);
}
}

View File

@ -636,6 +636,12 @@ public enum DyAppletUrlPathEnum {
* 行业交易系统->核销->三方码->推送核销状态
*/
TRADE_PUSH_DELIVERY("tradePushDelivery", "/api/apps/trade/v2/fulfillment/push_delivery"),
/**
* https://developer.toutiao.com
* 行业交易系统->分账->发起分账
*/
TRADE_CREATE_SETTLE("tradeCreateSettle", "/api/apps/trade/v2/create_settle"),
;

View File

@ -778,4 +778,17 @@ public class TransactionTest {
)
);
}
/**
* 行业交易系统->分账->发起分账
*/
@Test
public void tradeCreateSettle(){
DyAppletClient dyAppletClient = new DyAppletClient();
System.out.println(
JSON.toJSONString(
dyAppletClient.tradeCreateSettle(CreateSettleV2Query.builder().build())
)
);
}
}