diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/EntPayService.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/EntPayService.java new file mode 100644 index 0000000..619e243 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/EntPayService.java @@ -0,0 +1,70 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay; + +import com.czcb.scfs.api.core.ApiClient; +import com.czcb.scfs.api.core.http.HttpHeaders; +import com.czcb.scfs.api.core.http.HttpResponse; +import com.czcb.scfs.api.service.v2.customization.miyang.entpay.model.*; + +/** + * 米阳受托支付功能 + * + * @author H.T + * @since 2024-07-29 + */ +public class EntPayService { + private final ApiClient apiClient; + + public EntPayService(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * 300307-受托支付协议登记 + */ + public EntPayAgrtCreateResponse agrtCreate(EntPayAgrtCreateRequest request) { + String url = "/entpay/agrt-create"; + HttpResponse httpResponse = apiClient.post(url, HttpHeaders.apiVersionV2(), + request.toJsonRequest(), EntPayAgrtCreateResponse.class); + return httpResponse.getServiceResponse(); + } + + /** + * 300308-受托支付协议删除 + */ + public EntPayAgrtDelResponse agrtDel(EntPayAgrtDelRequest request) { + String url = "/entpay/agrt-del"; + HttpResponse httpResponse = apiClient.post(url, HttpHeaders.apiVersionV2(), + request.toJsonRequest(), EntPayAgrtDelResponse.class); + return httpResponse.getServiceResponse(); + } + + /** + * 300309-受托支付协议列表 + */ + public EntPayAgrtQueryListResponse agrtQueryList(EntPayAgrtQueryListRequest request) { + String url = "/entpay/agrt-query"; + HttpResponse httpResponse = apiClient.post(url, HttpHeaders.apiVersionV2(), + request.toJsonRequest(), EntPayAgrtQueryListResponse.class); + return httpResponse.getServiceResponse(); + } + + /** + * 300310-通用协议支付 + */ + public CommonAgrtPayResponse commonAgrtPay(CommonAgrtPayRequest request) { + String url = "/common-trade/pay"; + HttpResponse httpResponse = apiClient.post(url, HttpHeaders.apiVersionV2(), + request.toJsonRequest(), CommonAgrtPayResponse.class); + return httpResponse.getServiceResponse(); + } + + /** + * 300311-协议支付 + */ + public EntPayAgrtPayResponse commonAgrtPay(EntPayAgrtPayRequest request) { + String url = "/entpay/agrt-pay"; + HttpResponse httpResponse = apiClient.post(url, HttpHeaders.apiVersionV2(), + request.toJsonRequest(), EntPayAgrtPayResponse.class); + return httpResponse.getServiceResponse(); + } +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/CommonAgrtPayRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/CommonAgrtPayRequest.java new file mode 100644 index 0000000..468ba32 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/CommonAgrtPayRequest.java @@ -0,0 +1,104 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiRequest; +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; + +/** + * 300310-通用协议支付 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +@TransType("300310") +public class CommonAgrtPayRequest implements ApiRequest { + /** + * 渠道编号 + */ + @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("account_no") + private String accountNo; + + /** + * 付款账户户名 + */ + @SerializedName("account_name") + private String accountName; + + /** + * 支付金额 + */ + @SerializedName("pay_amount") + private BigDecimal payAmount; + + /** + * 验证码 + */ + @SerializedName("verify_code") + private String verifyCode; + + /** + * 收款账号 + */ + @SerializedName("opp_account_no") + private String oppAccountNo; + + /** + * 收款户名 + */ + @SerializedName("opp_account_name") + private String oppAccountName; + + /** + * 收款账户银行行号 + */ + @SerializedName("opp_bank_no") + private String oppBankNo; + + /** + * 收款账户银行名称 + */ + @SerializedName("opp_bank_name") + private String oppBankName; + + /** + * 摘要 + */ + @SerializedName("remark") + private String remark; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/CommonAgrtPayResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/CommonAgrtPayResponse.java new file mode 100644 index 0000000..328b434 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/CommonAgrtPayResponse.java @@ -0,0 +1,46 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 300310-通用协议支付 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +public class CommonAgrtPayResponse 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; +} \ No newline at end of file diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtCreateRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtCreateRequest.java new file mode 100644 index 0000000..27097ef --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtCreateRequest.java @@ -0,0 +1,120 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiRequest; +import com.czcb.scfs.api.core.agrs.TransType; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 300307-受托支付协议登记 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +@TransType("300307") +public class EntPayAgrtCreateRequest implements ApiRequest { + /** + * 渠道编号 + */ + @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("file_no") + private String fileNo; + + /** + * 付款账户账号(经销商A1) + */ + @SerializedName("account_no") + private String accountNo; + + /** + * 付款账户户名(经销商A1) + */ + @SerializedName("account_name") + private String accountName; + + /** + * 收款账户账号(尚铁A2/物流1A1/配煤) + */ + @SerializedName("opp_account_no") + private String oppAccountNo; + + /** + * 收款账户户名 + */ + @SerializedName("opp_account_name") + private String oppAccountName; + + /** + * 收款账户银行行号 + */ + @SerializedName("opp_bank_no") + private String oppBankNo; + + /** + * 收款账户银行名称 + */ + @SerializedName("opp_bank_name") + private String oppBankName; + + /** + * 收款账户账号1(物流2A1/集采A1) + */ + @SerializedName("opp_account_no_1") + private String oppAccountNo1; + + /** + * 收款账户户名1 + */ + @SerializedName("opp_account_name_1") + private String oppAccountName1; + + /** + * 收款账户银行行号1 + */ + @SerializedName("opp_bank_no_1") + private String oppBankNo1; + + /** + * 收款账户银行名称1 + */ + @SerializedName("opp_bank_name_1") + private String oppBankName1; + + /** + * 备注说明 + */ + @SerializedName("note") + private String note; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtCreateResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtCreateResponse.java new file mode 100644 index 0000000..9eda633 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtCreateResponse.java @@ -0,0 +1,46 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 300307-受托支付协议登记 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +public class EntPayAgrtCreateResponse 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; +} \ No newline at end of file diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtDelRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtDelRequest.java new file mode 100644 index 0000000..d1cbc09 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtDelRequest.java @@ -0,0 +1,54 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiRequest; +import com.czcb.scfs.api.core.agrs.TransType; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 300308-受托支付协议删除 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +@TransType("300308") +public class EntPayAgrtDelRequest implements ApiRequest { + /** + * 渠道编号 + */ + @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("file_no") + private String fileNo; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtDelResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtDelResponse.java new file mode 100644 index 0000000..bfc8dc0 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtDelResponse.java @@ -0,0 +1,46 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 300308-受托支付协议删除 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +public class EntPayAgrtDelResponse 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; +} \ No newline at end of file diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtPayRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtPayRequest.java new file mode 100644 index 0000000..fd5259b --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtPayRequest.java @@ -0,0 +1,134 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiRequest; +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; + +/** + * 300311-协议支付 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +@TransType("300311") +public class EntPayAgrtPayRequest implements ApiRequest { + /** + * 渠道编号 + */ + @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; + + /** + * 付款账户账号A1 + */ + @SerializedName("account_no_a1") + private String accountNoA1; + + /** + * 付款账户户名A1 + */ + @SerializedName("account_name_a1") + private String accountNameA1; + + /** + * 支付金额1 大于等于0 不从A1支付则填0 + */ + @SerializedName("pay_amount_a1") + private BigDecimal payAmountA1; + + /** + * 付款账户账号A2 + */ + @SerializedName("account_no_a2") + private String accountNoA2; + + /** + * 付款账户户名A2 + */ + @SerializedName("account_name_a2") + private String accountNameA2; + + /** + * 支付金额2 大于等于0 + */ + @SerializedName("pay_amount_a2") + private BigDecimal payAmountA2; + + /** + * 验证码 + */ + @SerializedName("verify_code") + private String verifyCode; + + /** + * 收款账户1账号 + */ + @SerializedName("opp_account_no_1") + private String oppAccountNo1; + + /** + *收款账户1户名 + */ + @SerializedName("opp_account_name_1") + private String oppAccountName1; + + /** + * 收款金额1 大于0 + */ + @SerializedName("opp_amount_1") + private BigDecimal oppAmount1; + + /** + * 收款账户2账号 + */ + @SerializedName("opp_account_no_2") + private String oppAccountNo2; + + /** + * 收款账户2户名 + */ + @SerializedName("opp_account_name_2") + private String oppAccountName2; + + /** + * 收款金额2 大于等于0 + */ + @SerializedName("opp_amount_2") + private BigDecimal oppAmount2; + + /** + * 摘要 + */ + @SerializedName("remark") + private String remark; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtPayResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtPayResponse.java new file mode 100644 index 0000000..3408dc4 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtPayResponse.java @@ -0,0 +1,46 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 300311-协议支付 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +public class EntPayAgrtPayResponse 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; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtQueryListRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtQueryListRequest.java new file mode 100644 index 0000000..f690655 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtQueryListRequest.java @@ -0,0 +1,78 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiRequest; +import com.czcb.scfs.api.core.agrs.TransType; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +/** + * 300309-受托支付协议列表 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +@TransType("300309") +public class EntPayAgrtQueryListRequest implements ApiRequest { + /** + * 渠道编号 + */ + @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("file_no") + private String fileNo; + + /** + * 付款账户账号(经销商A1) + */ + @SerializedName("account_no") + private String accountNo; + + /** + * 付款账户户名(经销商A1) + */ + @SerializedName("account_name") + private String accountName; + + /** + * 列表查询开始日期 + */ + @SerializedName("start_date") + private String startDate; + + /** + * 列表查询结束日期 + */ + @SerializedName("end_date") + private String endDate; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtQueryListResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtQueryListResponse.java new file mode 100644 index 0000000..428ea75 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/entpay/model/EntPayAgrtQueryListResponse.java @@ -0,0 +1,148 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.entpay.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.util.List; + +/** + * 300309-受托支付协议列表 + * + * @author H.T + * @since 2024-07-29 + */ +@Data +@Accessors(chain = true) +public class EntPayAgrtQueryListResponse 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; + + /** + * 受托支付协议列表 + */ + @SerializedName("recode_list") + private List data; + + @Data + public static class ContractStPayData implements Serializable { + /** + * 协议编号 + */ + @SerializedName("file_no") + private String fileNo; + + /** + * 付款账户账号 + */ + @SerializedName("account_no") + private String accountNo; + + /** + * 付款账户户名 + */ + @SerializedName("account_name") + private String accountName; + + /** + * 收款账户账号 + */ + @SerializedName("opp_account_no") + private String oppAccountNo; + + /** + * 收款账户户名 + */ + @SerializedName("opp_account_name") + private String oppAccountName; + + /** + * 收款账户银行行号 + */ + @SerializedName("opp_bank_no") + private String oppBankNo; + + /** + * 收款账户银行名称 + */ + @SerializedName("opp_bank_name") + private String oppBankName; + + /** + * 收款账户账号1(物流2A1/集采A1) + */ + @SerializedName("opp_account_no_1") + private String oppAccountNo1; + + /** + * 收款账户户名1 + */ + @SerializedName("opp_account_name_1") + private String oppAccountName1; + + /** + * 收款账户银行行号1 + */ + @SerializedName("opp_bank_no_1") + private String oppBankNo1; + + /** + * 收款账户银行名称1 + */ + @SerializedName("opp_bank_name_1") + private String oppBankName1; + + /** + * 备注说明 + */ + @SerializedName("note") + private String note; + + /** + * 审核状态0、未审核 1、审核通过 2、审核未通过 + */ + @SerializedName("check_status") + private String checkStatus; + + /** + * 审核时间 + */ + @SerializedName("check_time") + private java.util.Date checkTime; + + /** + * 审核说明 + */ + @SerializedName("check_remark") + private String checkRemark; + } +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/waybill/WayBillService.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/waybill/WayBillService.java new file mode 100644 index 0000000..5a8d450 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v2/customization/miyang/waybill/WayBillService.java @@ -0,0 +1,19 @@ +package com.czcb.scfs.api.service.v2.customization.miyang.waybill; + +import com.czcb.scfs.api.core.ApiClient; + +/** + * 米阳运单功能 + * + * @author H.T + * @since 2024-07-29 + */ +public class WayBillService { + + private final ApiClient apiClient; + + public WayBillService(ApiClient apiClient) { + this.apiClient = apiClient; + } + +} diff --git a/scfs-api-spring-boot-starter/src/main/java/com/czcb/scfs/spring/boot/starter/ScfsAutoConfiguration.java b/scfs-api-spring-boot-starter/src/main/java/com/czcb/scfs/spring/boot/starter/ScfsAutoConfiguration.java index c78cb7d..4182e4a 100644 --- a/scfs-api-spring-boot-starter/src/main/java/com/czcb/scfs/spring/boot/starter/ScfsAutoConfiguration.java +++ b/scfs-api-spring-boot-starter/src/main/java/com/czcb/scfs/spring/boot/starter/ScfsAutoConfiguration.java @@ -10,6 +10,8 @@ import com.czcb.scfs.api.service.v2.bmd.BmdService; import com.czcb.scfs.api.service.v2.cat.order.OrderService; import com.czcb.scfs.api.service.v2.cat.project.ProjectService; import com.czcb.scfs.api.service.v2.communal.CommunalDataService; +import com.czcb.scfs.api.service.v2.customization.miyang.entpay.EntPayService; +import com.czcb.scfs.api.service.v2.customization.miyang.waybill.WayBillService; import com.czcb.scfs.api.service.v2.face.FaceService; import com.czcb.scfs.api.service.v2.file.FileService; import com.czcb.scfs.api.service.v2.invoice.InvoiceService; @@ -172,4 +174,23 @@ public class ScfsAutoConfiguration { public OrderService orderService(ApiClient apiClient) { return new OrderService(apiClient); } + + /** + * 米阳受托支付功能 + */ + @Bean + @ConditionalOnMissingBean + public EntPayService entPayService(ApiClient apiClient) { + return new EntPayService(apiClient); + } + + /** + * 米阳运单功能 + */ + @Bean + @ConditionalOnMissingBean + public WayBillService wayBillService(ApiClient apiClient) { + return new WayBillService(apiClient); + } + }