mirror of
https://gitee.com/dromara/dy-java.git
synced 2024-12-02 03:57:46 +08:00
Merge branch 'v1.0.0.0'
This commit is contained in:
commit
96f4dd794c
@ -2119,6 +2119,7 @@ public class DyAppletClient extends BaseClient {
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->抖音码->撤销核销
|
||||
* 生活服务交易系统->核销->三方码->撤销核销
|
||||
* @param body 撤销核销请求值
|
||||
* @return
|
||||
*/
|
||||
@ -2137,6 +2138,15 @@ public class DyAppletClient extends BaseClient {
|
||||
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).pushDelivery(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
* @param body 查询分账请求值
|
||||
* @return
|
||||
*/
|
||||
public DataAndExtraVo<List<IndustryQuerySettleVo>> industryQuerySettle(IndustryQuerySettleQuery body){
|
||||
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).industryQuerySettle(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取抖音号绑定所需的资质模版列表
|
||||
*
|
||||
|
@ -13,6 +13,8 @@ import com.dyj.common.interceptor.ClientQueryTokenInterceptor;
|
||||
import com.dyj.common.interceptor.ClientTokenInterceptor;
|
||||
import com.dyj.common.interceptor.TokenHeaderInterceptor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 交易系统 生活服务交易系统
|
||||
*/
|
||||
@ -77,7 +79,8 @@ public interface IndustryTransactionClient {
|
||||
DataAndExtraVo<DeliveryVerifyVo> deliveryVerify(@JSONBody DeliveryVerifyQuery body);
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->抖音码->撤销核销
|
||||
* 生活服务交易系统->核销->抖音码->
|
||||
* 生活服务交易系统->核销->三方码->撤销核销
|
||||
* @param body 撤销核销请求值
|
||||
* @return
|
||||
*/
|
||||
@ -91,4 +94,12 @@ public interface IndustryTransactionClient {
|
||||
*/
|
||||
@Post(value = "${pushDelivery}", interceptor = ClientTokenInterceptor.class)
|
||||
DataAndExtraVo<PushDeliveryVo> pushDelivery(@JSONBody PushDeliveryQuery body);
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
* @param body 查询分账请求值
|
||||
* @return
|
||||
*/
|
||||
@Post(value = "${industryQuerySettle}", interceptor = ClientTokenInterceptor.class)
|
||||
DataAndExtraVo<List<IndustryQuerySettleVo>> industryQuerySettle(@JSONBody IndustryQuerySettleQuery body);
|
||||
}
|
||||
|
@ -0,0 +1,119 @@
|
||||
package com.dyj.applet.domain.query;
|
||||
|
||||
import com.dyj.common.domain.query.BaseQuery;
|
||||
|
||||
/**
|
||||
* 查询分账请求值
|
||||
*/
|
||||
public class IndustryQuerySettleQuery 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 IndustryQuerySettleQuery setOrder_id(String order_id) {
|
||||
this.order_id = order_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOut_order_no() {
|
||||
return out_order_no;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQuery 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 IndustryQuerySettleQuery setOut_settle_no(String out_settle_no) {
|
||||
this.out_settle_no = out_settle_no;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_id() {
|
||||
return settle_id;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQuery setSettle_id(String settle_id) {
|
||||
this.settle_id = settle_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public static IndustryQuerySettleQueryBuilder builder() {
|
||||
return new IndustryQuerySettleQueryBuilder();
|
||||
}
|
||||
|
||||
public static final class IndustryQuerySettleQueryBuilder {
|
||||
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 IndustryQuerySettleQueryBuilder() {
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQueryBuilder orderId(String orderId) {
|
||||
this.order_id = orderId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQueryBuilder outOrderNo(String outOrderNo) {
|
||||
this.out_order_no = outOrderNo;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQueryBuilder outSettleNo(String outSettleNo) {
|
||||
this.out_settle_no = outSettleNo;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQueryBuilder settleId(String settleId) {
|
||||
this.settle_id = settleId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQueryBuilder tenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQueryBuilder clientKey(String clientKey) {
|
||||
this.clientKey = clientKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleQuery build() {
|
||||
IndustryQuerySettleQuery industryQuerySettleQuery = new IndustryQuerySettleQuery();
|
||||
industryQuerySettleQuery.setOrder_id(order_id);
|
||||
industryQuerySettleQuery.setOut_order_no(out_order_no);
|
||||
industryQuerySettleQuery.setOut_settle_no(out_settle_no);
|
||||
industryQuerySettleQuery.setSettle_id(settle_id);
|
||||
industryQuerySettleQuery.setTenantId(tenantId);
|
||||
industryQuerySettleQuery.setClientKey(clientKey);
|
||||
return industryQuerySettleQuery;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,151 @@
|
||||
package com.dyj.applet.domain.vo;
|
||||
|
||||
/**
|
||||
* 查询分账返回值
|
||||
*/
|
||||
public class IndustryQuerySettleVo {
|
||||
|
||||
/**
|
||||
* 佣金,单位分
|
||||
*/
|
||||
private Long commission;
|
||||
/**
|
||||
* 开发者自定义透传字段,长度 <= 2048 字节,不支持二进制数据
|
||||
*/
|
||||
private String cp_extra;
|
||||
/**
|
||||
* 抖音开平侧交易订单 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 IndustryQuerySettleVo setCommission(Long commission) {
|
||||
this.commission = commission;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCp_extra() {
|
||||
return cp_extra;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setCp_extra(String cp_extra) {
|
||||
this.cp_extra = cp_extra;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOrder_id() {
|
||||
return order_id;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setOrder_id(String order_id) {
|
||||
this.order_id = order_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOut_order_no() {
|
||||
return out_order_no;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo 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 IndustryQuerySettleVo setOut_settle_no(String out_settle_no) {
|
||||
this.out_settle_no = out_settle_no;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getRake() {
|
||||
return rake;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setRake(Long rake) {
|
||||
this.rake = rake;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getSettle_amount() {
|
||||
return settle_amount;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setSettle_amount(Long settle_amount) {
|
||||
this.settle_amount = settle_amount;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_detail() {
|
||||
return settle_detail;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setSettle_detail(String settle_detail) {
|
||||
this.settle_detail = settle_detail;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_id() {
|
||||
return settle_id;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setSettle_id(String settle_id) {
|
||||
this.settle_id = settle_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSettle_status() {
|
||||
return settle_status;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setSettle_status(String settle_status) {
|
||||
this.settle_status = settle_status;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getSettle_time() {
|
||||
return settle_time;
|
||||
}
|
||||
|
||||
public IndustryQuerySettleVo setSettle_time(Long settle_time) {
|
||||
this.settle_time = settle_time;
|
||||
return this;
|
||||
}
|
||||
}
|
@ -11,6 +11,8 @@ import com.dyj.common.domain.DySimpleResult;
|
||||
import com.dyj.common.domain.vo.BaseVo;
|
||||
import com.dyj.common.interceptor.ClientTokenInterceptor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 交易系统 生活服务交易系统
|
||||
*/
|
||||
@ -92,6 +94,7 @@ public class IndustryTransactionHandler extends AbstractAppletHandler{
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->抖音码->撤销核销
|
||||
* 生活服务交易系统->核销->三方码->撤销核销
|
||||
* @param body 撤销核销请求值
|
||||
* @return
|
||||
*/
|
||||
@ -109,4 +112,14 @@ public class IndustryTransactionHandler extends AbstractAppletHandler{
|
||||
baseQuery(body);
|
||||
return getIndustryOpenTransactionClient().pushDelivery(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
* @param body 查询分账请求值
|
||||
* @return
|
||||
*/
|
||||
public DataAndExtraVo<List<IndustryQuerySettleVo>> industryQuerySettle(IndustryQuerySettleQuery body){
|
||||
baseQuery(body);
|
||||
return getIndustryOpenTransactionClient().industryQuerySettle(body);
|
||||
}
|
||||
}
|
||||
|
@ -504,6 +504,7 @@ public enum DyAppletUrlPathEnum {
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->抖音码->撤销核销
|
||||
* 生活服务交易系统->核销->三方码->撤销核销
|
||||
*/
|
||||
VERIFY_CANCEL("verifyCancel", "/api/trade/v2/fulfillment/verify_cancel"),
|
||||
|
||||
@ -511,6 +512,11 @@ public enum DyAppletUrlPathEnum {
|
||||
* 生活服务交易系统->核销->三方码->推送核销状态
|
||||
*/
|
||||
PUSH_DELIVERY("pushDelivery", "/api/apps/trade/v2/fulfillment/push_delivery"),
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
*/
|
||||
INDUSTRY_QUERY_SETTLE("industryQuerySettle", "/api/apps/trade/v2/settle/query_settle")
|
||||
;
|
||||
|
||||
|
||||
|
@ -443,6 +443,7 @@ public class TransactionTest {
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->抖音码->撤销核销
|
||||
* 生活服务交易系统->核销->三方码->撤销核销
|
||||
*/
|
||||
@Test
|
||||
public void verifyCancel(){
|
||||
@ -467,4 +468,17 @@ public class TransactionTest {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->分账->查询分账
|
||||
*/
|
||||
@Test
|
||||
public void industryQuerySettle(){
|
||||
DyAppletClient dyAppletClient = new DyAppletClient();
|
||||
System.out.println(
|
||||
JSON.toJSONString(
|
||||
dyAppletClient.industryQuerySettle(IndustryQuerySettleQuery.builder().build())
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user