feat: 新增发票池接口
parent
a36362799e
commit
cd0fbe825d
|
|
@ -12,7 +12,7 @@ import lombok.experimental.Accessors;
|
|||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("222201")
|
||||
@TransType("222202")
|
||||
public class QueryDetailRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
|
|
|
|||
|
|
@ -88,4 +88,26 @@ public class InvoiceService {
|
|||
request.toJsonRequest(), InvoiceSettleRepayResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* 232301-发票池分页查询
|
||||
*/
|
||||
public InvoicePoolQueryResponse poolQuery(InvoicePoolQueryRequest request) {
|
||||
String url = "/invoice/pool/query";
|
||||
HttpResponse<InvoicePoolQueryResponse> httpResponse = apiClient.post(url, HttpHeaders.apiVersionV2(),
|
||||
request.toJsonRequest(), InvoicePoolQueryResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* 310601-汇总订单清算还款(发票池版)
|
||||
*/
|
||||
public OrderPoolSettleResponse poolSettle(OrderPoolSettleRequest request) {
|
||||
String url = "/order/pool/settle";
|
||||
HttpResponse<OrderPoolSettleResponse> httpResponse = apiClient.post(url, HttpHeaders.apiVersionV2(),
|
||||
request.toJsonRequest(), OrderPoolSettleResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,84 @@
|
|||
package com.czcb.scfs.api.service.v2.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.PageApiRequest;
|
||||
import com.czcb.scfs.api.core.agrs.TransType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 232301-发票池分页查询
|
||||
*
|
||||
* @author yuchuan
|
||||
* @since 2025-06-18
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("232301")
|
||||
public class InvoicePoolQueryRequest implements PageApiRequest {
|
||||
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@SerializedName("channel_no")
|
||||
private String channelNo;
|
||||
|
||||
/**
|
||||
* 应用编号
|
||||
*/
|
||||
@SerializedName("app_no")
|
||||
private String appNo;
|
||||
|
||||
/**
|
||||
* 流水号
|
||||
*/
|
||||
@SerializedName("serial_no")
|
||||
private String serialNo;
|
||||
|
||||
/**
|
||||
* 操作日期
|
||||
*/
|
||||
@SerializedName("trans_date")
|
||||
private String transDate;
|
||||
|
||||
/**
|
||||
* 操作时间
|
||||
*/
|
||||
@SerializedName("trans_tradetime")
|
||||
private String transTradeTime;
|
||||
|
||||
/**
|
||||
* 当前页数
|
||||
*/
|
||||
@SerializedName("current_page")
|
||||
private Long currentPage;
|
||||
|
||||
/**
|
||||
* 每页行数
|
||||
*/
|
||||
@SerializedName("current_rows")
|
||||
private Long currentRows;
|
||||
|
||||
/**
|
||||
* 归集账户账号
|
||||
*/
|
||||
@SerializedName("settle_account_no")
|
||||
private String settleAccountNo;
|
||||
/**
|
||||
* 归集账户户名
|
||||
*/
|
||||
@SerializedName("settle_account_name")
|
||||
private String settleAccountName;
|
||||
/**
|
||||
* 发票池总额度
|
||||
*/
|
||||
@SerializedName("total_limit")
|
||||
private BigDecimal totalLimit;
|
||||
/**
|
||||
* 结算可用额度
|
||||
*/
|
||||
@SerializedName("settle_avail_limit")
|
||||
private BigDecimal settleAvailLimit;
|
||||
}
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
package com.czcb.scfs.api.service.v2.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.PageApiResponse;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 232301-发票池分页查询
|
||||
*
|
||||
* @author yuchuan
|
||||
* @since 2025-06-18
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class InvoicePoolQueryResponse implements PageApiResponse {
|
||||
/**
|
||||
* 000000:表示成功
|
||||
*/
|
||||
@SerializedName("recode")
|
||||
private String recode;
|
||||
|
||||
/**
|
||||
* 结果信息
|
||||
*/
|
||||
@SerializedName("recode_info")
|
||||
private String recodeInfo;
|
||||
|
||||
/**
|
||||
* 系统流水号
|
||||
*/
|
||||
@SerializedName("sys_serial_no")
|
||||
private String sysSerialNo;
|
||||
|
||||
/**
|
||||
* 系统日期(YYYY-MM-DD)
|
||||
*/
|
||||
@SerializedName("sys_date")
|
||||
private String sysDate;
|
||||
|
||||
/**
|
||||
* 系统时间(YYYY-MM-DD hh:mm:ss)
|
||||
*/
|
||||
@SerializedName("sys_time")
|
||||
private String sysTime;
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*/
|
||||
@SerializedName("current_page")
|
||||
private Long currentPage;
|
||||
|
||||
/**
|
||||
* 总页数
|
||||
*/
|
||||
@SerializedName("total_page")
|
||||
private Long totalPage;
|
||||
|
||||
/**
|
||||
* 总条数
|
||||
*/
|
||||
@SerializedName("total_rows")
|
||||
private Long totalRows;
|
||||
|
||||
@SerializedName("data")
|
||||
private List<InvoicePoolData> data;
|
||||
|
||||
@Data
|
||||
public static class InvoicePoolData implements Serializable {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@SerializedName("channel_no")
|
||||
private String channelNo;
|
||||
/**
|
||||
* 应用编号
|
||||
*/
|
||||
@SerializedName("app_no")
|
||||
private String appNo;
|
||||
/**
|
||||
* 归集账户账号
|
||||
*/
|
||||
@SerializedName("settle_account_no")
|
||||
private String settleAccountNo;
|
||||
/**
|
||||
* 归集账户户名
|
||||
*/
|
||||
@SerializedName("settle_account_name")
|
||||
private String settleAccountName;
|
||||
/**
|
||||
* 发票池总额度
|
||||
*/
|
||||
@SerializedName("total_limit")
|
||||
private BigDecimal totalLimit;
|
||||
|
||||
/**
|
||||
* 已匹配额度(结算可用额度)
|
||||
*/
|
||||
@SerializedName("settle_avail_limit")
|
||||
private BigDecimal settleAvailLimit;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package com.czcb.scfs.api.service.v2.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.PageApiRequest;
|
||||
import com.czcb.scfs.api.core.agrs.TransType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 310601-汇总订单清算还款(发票池版)
|
||||
*
|
||||
* @author yuchuan
|
||||
* @since 2025-06-18
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("310601")
|
||||
public class OrderPoolSettleRequest implements PageApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@SerializedName("channel_no")
|
||||
private String channelNo;
|
||||
|
||||
/**
|
||||
* 应用编号
|
||||
*/
|
||||
@SerializedName("app_no")
|
||||
private String appNo;
|
||||
|
||||
/**
|
||||
* 流水号
|
||||
*/
|
||||
@SerializedName("serial_no")
|
||||
private String serialNo;
|
||||
|
||||
/**
|
||||
* 操作日期
|
||||
*/
|
||||
@SerializedName("trans_date")
|
||||
private String transDate;
|
||||
|
||||
/**
|
||||
* 操作时间
|
||||
*/
|
||||
@SerializedName("trans_tradetime")
|
||||
private String transTradeTime;
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
@SerializedName("order_no")
|
||||
private String orderNo;
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package com.czcb.scfs.api.service.v2.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiResponse;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 310601-汇总订单清算还款(发票池版)
|
||||
*
|
||||
* @author yuchuan
|
||||
* @since 2025-06-18
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OrderPoolSettleResponse implements ApiResponse {
|
||||
/**
|
||||
* 000000:表示成功
|
||||
*/
|
||||
@SerializedName("recode")
|
||||
private String recode;
|
||||
|
||||
/**
|
||||
* 结果信息
|
||||
*/
|
||||
@SerializedName("recode_info")
|
||||
private String recodeInfo;
|
||||
|
||||
/**
|
||||
* 系统流水号
|
||||
*/
|
||||
@SerializedName("sys_serial_no")
|
||||
private String sysSerialNo;
|
||||
|
||||
/**
|
||||
* 系统日期(YYYY-MM-DD)
|
||||
*/
|
||||
@SerializedName("sys_date")
|
||||
private String sysDate;
|
||||
|
||||
/**
|
||||
* 系统时间(YYYY-MM-DD hh:mm:ss)
|
||||
*/
|
||||
@SerializedName("sys_time")
|
||||
private String sysTime;
|
||||
}
|
||||
Loading…
Reference in New Issue