mirror of
https://gitee.com/dromara/dy-java.git
synced 2024-11-29 18:49:37 +08:00
行业交易系统->分账->发起分账
This commit is contained in:
parent
a8588c620e
commit
ca4cd0d441
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取抖音号绑定所需的资质模版列表
|
||||
*
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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"),
|
||||
;
|
||||
|
||||
|
||||
|
@ -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())
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user