mirror of
https://gitee.com/dromara/dy-java.git
synced 2024-11-29 18:49:37 +08:00
生活服务交易系统->分账->查询分账
This commit is contained in:
parent
34c5f12ea9
commit
d78a7c9003
@ -2285,6 +2285,16 @@ public class DyAppletClient extends BaseClient {
|
||||
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).createSettleV2(body);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
* @param body 查询分账请求值
|
||||
* @return
|
||||
*/
|
||||
public DataAndExtraVo<QuerySettleV2Vo> querySettleV2(QuerySettleV2Query body) {
|
||||
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).querySettleV2(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取抖音号绑定所需的资质模版列表
|
||||
*
|
||||
|
@ -219,4 +219,12 @@ public interface IndustryTransactionClient {
|
||||
@Post(value = "${createSettleV2}", interceptor = ClientTokenInterceptor.class)
|
||||
DataAndExtraVo<CreateSettleV2Vo> createSettleV2(@JSONBody CreateSettleV2Query body);
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
* @param body 查询分账请求值
|
||||
* @return
|
||||
*/
|
||||
@Post(value = "${querySettleV2}", interceptor = ClientTokenInterceptor.class)
|
||||
DataAndExtraVo<QuerySettleV2Vo> querySettleV2(@JSONBody QuerySettleV2Query body);
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,116 @@
|
||||
package com.dyj.applet.domain.query;
|
||||
|
||||
import com.dyj.common.domain.query.BaseQuery;
|
||||
|
||||
public class QuerySettleV2Query extends BaseQuery {
|
||||
|
||||
/**
|
||||
* 抖音开平侧订单 id,长度 <= 64字节 选填
|
||||
*/
|
||||
private String order_id;
|
||||
/**
|
||||
* 开发者侧订单 id,长度 <= 64 字节 选填
|
||||
*/
|
||||
private String out_order_no;
|
||||
/**
|
||||
* 开发者侧分账单 id,长度 <= 64字节 选填
|
||||
*/
|
||||
private String out_settle_no;
|
||||
/**
|
||||
* 抖音开平侧分账单 id,长度 <= 64字节 选填
|
||||
*/
|
||||
private String settle_id;
|
||||
|
||||
public String getOrder_id() {
|
||||
return order_id;
|
||||
}
|
||||
|
||||
public QuerySettleV2Query setOrder_id(String order_id) {
|
||||
this.order_id = order_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOut_order_no() {
|
||||
return out_order_no;
|
||||
}
|
||||
|
||||
public QuerySettleV2Query setOut_order_no(String out_order_no) {
|
||||
this.out_order_no = out_order_no;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOut_settle_no() {
|
||||
return out_settle_no;
|
||||
}
|
||||
|
||||
public QuerySettleV2Query setOut_settle_no(String out_settle_no) {
|
||||
this.out_settle_no = out_settle_no;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_id() {
|
||||
return settle_id;
|
||||
}
|
||||
|
||||
public QuerySettleV2Query setSettle_id(String settle_id) {
|
||||
this.settle_id = settle_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public static QuerySettleV2QueryBuilder builder() {
|
||||
return new QuerySettleV2QueryBuilder();
|
||||
}
|
||||
|
||||
public static final class QuerySettleV2QueryBuilder {
|
||||
private String order_id;
|
||||
private String out_order_no;
|
||||
private String out_settle_no;
|
||||
private String settle_id;
|
||||
private Integer tenantId;
|
||||
private String clientKey;
|
||||
|
||||
private QuerySettleV2QueryBuilder() {
|
||||
}
|
||||
|
||||
public QuerySettleV2QueryBuilder orderId(String orderId) {
|
||||
this.order_id = orderId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public QuerySettleV2QueryBuilder outOrderNo(String outOrderNo) {
|
||||
this.out_order_no = outOrderNo;
|
||||
return this;
|
||||
}
|
||||
|
||||
public QuerySettleV2QueryBuilder outSettleNo(String outSettleNo) {
|
||||
this.out_settle_no = outSettleNo;
|
||||
return this;
|
||||
}
|
||||
|
||||
public QuerySettleV2QueryBuilder settleId(String settleId) {
|
||||
this.settle_id = settleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public QuerySettleV2QueryBuilder tenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public QuerySettleV2QueryBuilder clientKey(String clientKey) {
|
||||
this.clientKey = clientKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public QuerySettleV2Query build() {
|
||||
QuerySettleV2Query querySettleV2Query = new QuerySettleV2Query();
|
||||
querySettleV2Query.setOrder_id(order_id);
|
||||
querySettleV2Query.setOut_order_no(out_order_no);
|
||||
querySettleV2Query.setOut_settle_no(out_settle_no);
|
||||
querySettleV2Query.setSettle_id(settle_id);
|
||||
querySettleV2Query.setTenantId(tenantId);
|
||||
querySettleV2Query.setClientKey(clientKey);
|
||||
return querySettleV2Query;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,173 @@
|
||||
package com.dyj.applet.domain.vo;
|
||||
|
||||
public class QuerySettleV2Vo {
|
||||
/**
|
||||
* 佣金,单位分
|
||||
*/
|
||||
private Long commission;
|
||||
/**
|
||||
* 开发者自定义透传字段,长度 <= 2048 字节,不支持二进制数据
|
||||
*/
|
||||
private String cp_extra;
|
||||
/**
|
||||
* 用于退分账场景,对应退分账接口文档中settle_no,长度<= 64字节
|
||||
*/
|
||||
private String inner_settle_id;
|
||||
/**
|
||||
* 抖音开平侧item单 id,长度 <= 64 字节,由数字、ASCII 字符组成,按券分账时该字段不为空
|
||||
*/
|
||||
private String item_order_id;
|
||||
/**
|
||||
* 抖音开平侧交易订单 id,长度 <= 64 字节,由数字、ASCII 字符组成
|
||||
*/
|
||||
private String order_id;
|
||||
/**
|
||||
* 开发者侧交易订单 id,长度 <= 64 字节,由数字、ASCII 字符组成
|
||||
*/
|
||||
private String out_order_no;
|
||||
/**
|
||||
* 开发者侧分账单 id,长度 <= 64字节,由数字、ASCII 字符组成
|
||||
*/
|
||||
private String out_settle_no;
|
||||
/**
|
||||
* 手续费,单位分
|
||||
*/
|
||||
private Long rake;
|
||||
/**
|
||||
* 分账金额,单位分
|
||||
*/
|
||||
private Long settle_amount;
|
||||
/**
|
||||
* 分账详情
|
||||
*/
|
||||
private String settle_detail;
|
||||
/**
|
||||
* 抖音开平侧分账单id,长度 <= 64 字节,由数字、ASCII 字符组成
|
||||
*/
|
||||
private String settle_id;
|
||||
/**
|
||||
* 分账状态:
|
||||
*/
|
||||
private String settle_status;
|
||||
/**
|
||||
* 分账时间,13 位时间戳,单位毫秒
|
||||
*/
|
||||
private Long settle_time;
|
||||
|
||||
public Long getCommission() {
|
||||
return commission;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setCommission(Long commission) {
|
||||
this.commission = commission;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCp_extra() {
|
||||
return cp_extra;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setCp_extra(String cp_extra) {
|
||||
this.cp_extra = cp_extra;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getInner_settle_id() {
|
||||
return inner_settle_id;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setInner_settle_id(String inner_settle_id) {
|
||||
this.inner_settle_id = inner_settle_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getItem_order_id() {
|
||||
return item_order_id;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setItem_order_id(String item_order_id) {
|
||||
this.item_order_id = item_order_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOrder_id() {
|
||||
return order_id;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setOrder_id(String order_id) {
|
||||
this.order_id = order_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOut_order_no() {
|
||||
return out_order_no;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setOut_order_no(String out_order_no) {
|
||||
this.out_order_no = out_order_no;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOut_settle_no() {
|
||||
return out_settle_no;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setOut_settle_no(String out_settle_no) {
|
||||
this.out_settle_no = out_settle_no;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getRake() {
|
||||
return rake;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setRake(Long rake) {
|
||||
this.rake = rake;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getSettle_amount() {
|
||||
return settle_amount;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setSettle_amount(Long settle_amount) {
|
||||
this.settle_amount = settle_amount;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_detail() {
|
||||
return settle_detail;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setSettle_detail(String settle_detail) {
|
||||
this.settle_detail = settle_detail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_id() {
|
||||
return settle_id;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setSettle_id(String settle_id) {
|
||||
this.settle_id = settle_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_status() {
|
||||
return settle_status;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setSettle_status(String settle_status) {
|
||||
this.settle_status = settle_status;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getSettle_time() {
|
||||
return settle_time;
|
||||
}
|
||||
|
||||
public QuerySettleV2Vo setSettle_time(Long settle_time) {
|
||||
this.settle_time = settle_time;
|
||||
return this;
|
||||
}
|
||||
}
|
@ -274,4 +274,14 @@ public class IndustryTransactionHandler extends AbstractAppletHandler{
|
||||
baseQuery(body);
|
||||
return getIndustryOpenTransactionClient().createSettleV2(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
* @param body 查询分账请求值
|
||||
* @return
|
||||
*/
|
||||
public DataAndExtraVo<QuerySettleV2Vo> querySettleV2(QuerySettleV2Query body) {
|
||||
baseQuery(body);
|
||||
return getIndustryOpenTransactionClient().querySettleV2(body);
|
||||
}
|
||||
}
|
||||
|
@ -596,6 +596,11 @@ public enum DyAppletUrlPathEnum {
|
||||
* 生活服务交易系统->分账->发起分账
|
||||
*/
|
||||
CREATE_SETTLE_V2("createSettleV2", "/api/apps/trade/v2/settle/create_settle"),
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
*/
|
||||
QUERY_SETTLE_V2("querySettleV2", "/api/apps/trade/v2/settle/query_settle"),
|
||||
;
|
||||
|
||||
|
||||
|
@ -689,4 +689,17 @@ public class TransactionTest {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
*/
|
||||
@Test
|
||||
public void querySettleV2(){
|
||||
DyAppletClient dyAppletClient = new DyAppletClient();
|
||||
System.out.println(
|
||||
JSON.toJSONString(
|
||||
dyAppletClient.querySettleV2(QuerySettleV2Query.builder().build())
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user