From afab60e57296722c5e10b0c9ccdf35ecaabc5899 Mon Sep 17 00:00:00 2001 From: lyf <1357764963@qq> Date: Mon, 6 Mar 2023 18:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B6=E7=9B=9B=E6=96=B0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ys/impl/v20220527/entity/BusInfo.java | 64 +++++++++ .../ys/impl/v20220527/entity/CrpInfo.java | 51 +++++++ .../ys/impl/v20220527/entity/CustInfo.java | 54 ++++++++ .../ys/impl/v20220527/entity/MercInfo.java | 16 +++ .../ys/impl/v20220527/entity/Meta.java | 38 ++++++ .../ys/impl/v20220527/entity/Notify.java | 127 ++++++++++++++++++ .../ys/impl/v20220527/entity/PersonInfo.java | 41 ++++++ .../impl/v20220527/entity/RateFeeDetail.java | 22 +++ .../ys/impl/v20220527/entity/RateFeeInfo.java | 21 +++ .../ys/impl/v20220527/entity/RateInfo.java | 23 ++++ .../ys/impl/v20220527/entity/StlAccInfo.java | 60 +++++++++ 11 files changed, 517 insertions(+) create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/BusInfo.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CrpInfo.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CustInfo.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/MercInfo.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Meta.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Notify.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/PersonInfo.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeDetail.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeInfo.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateInfo.java create mode 100644 pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/StlAccInfo.java diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/BusInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/BusInfo.java new file mode 100644 index 0000000..320021d --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/BusInfo.java @@ -0,0 +1,64 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import lombok.Getter; +import lombok.Setter; + +/** + * @author lyf + */ +@Getter +@Setter +/** + * 经营信息详情 + */ +public class BusInfo { + /** + * 营业执照号,非小微必填 + */ + private String busNo; + + /** + * 营业执照名称,非小微必填 + */ + private String busNm; + + /** + * 营业执照有效开始日期,非小微必填 格式为yyyyMMdd + */ + private String busCertBgn; + + /** + * 营业执照有效期,非小微必填 格式为yyyyMMdd + */ + private String busCertExpire; + + /** + * 营业归属省代码,通过"地区信息查询"接口获取cityCd, + */ + private String busProviceCode; + + /** + * 营业归属市代码,通过"地区信息查询"接口获取cityCd, + */ + private String busCityCode; + + /** + * 营业归属区(县)代码,通过"地区信息查询"接口获取cityCd,城市下有区(县必填),城市下无区(县)则不上送,如广东省中山市,广东省东莞市 + */ + private String busAreaCode; + + /** + * 营业执照证件类型,默认 19 社会统一信用代码 + */ + private String busCertType; + + /** + * 营业详细地址,需包含省市区,示例:广东省深圳市龙华新区大道513号远景大厦 + */ + private String busAddr; + + /** + * 注册地址,默认 营业地址一致 + */ + private String regAddr; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CrpInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CrpInfo.java new file mode 100644 index 0000000..2878511 --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CrpInfo.java @@ -0,0 +1,51 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import com.alipay.api.domain.PersonInfo; +import lombok.Getter; +import lombok.Setter; + +import java.util.List; +/** + * 法人信息 + * @author lyf + */ +@Getter +@Setter +public class CrpInfo { + private String crpCertNo; + + /** + * 法人证件类型,暂时只支持 00 身份证 + */ + private String crpCertType = "00"; + + /** + * 证件开始日期,证件开始日期yyyyMMdd + */ + private String certBgn; + + /** + * 证件有效期,日期格式yyyyMMdd ,如果为长期或者永久,请填值“29991231” + */ + private String certExpire; + + /** + * 法人国籍,法人国籍(默认中国(249)) + */ + private String crpNati; + + private String crpNm; + + private String crpPhone; + + private String crpAddr; + + /** + * 可不填 + */ + private PersonInfo actContrInfo; + + private PersonInfo authInfo; + + private List bnfList; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CustInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CustInfo.java new file mode 100644 index 0000000..7400eb7 --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/CustInfo.java @@ -0,0 +1,54 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import lombok.Getter; +import lombok.Setter; + +/** + * 基本信息 + */ +@Getter +@Setter +public class CustInfo { + /** + * 代理商编号,默认同发起方代理商编号 + */ + private String agtMercId; + + /** + * 商户名称 + */ + private String mercName; + + private String mercShortName; + + /** + * 商户类型,2 小微 3个体 4企业 + */ + private String mercType; + + /** + * mcc码,通过"查询MCC码"接口获取mccCd + */ + private String mccCd; + + /** + * 联系人邮箱 + */ + private String contactMail; + + /** + * 联系人电话, 默认同法人电话号码 + */ + private String contactMan; + + private String cusMgrNm; + + /** + * 是否开通营销,Y开通N不开通,默认不开通 + */ + private String isOpenMarket; + + private String notifyUrl; + + private String remark; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/MercInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/MercInfo.java new file mode 100644 index 0000000..3cd735d --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/MercInfo.java @@ -0,0 +1,16 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class MercInfo { + private CustInfo custInfo; + + private CrpInfo crpInfo; + + private StlAccInfo stlAccInfo; + + private BusInfo busInfo; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Meta.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Meta.java new file mode 100644 index 0000000..fe3247d --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Meta.java @@ -0,0 +1,38 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + + +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class Meta { + /** + * 图片类别,A001-营业执照 A002-法人身份证正面(头像面) A003-法人身份证反面(国徽面) A004-结算账户正面(卡号面) + * A005-结算账户反面 A006-商户门头照片 A007-内景照片 A008-收银台照片 A009-手持身份证合影照片 + * A010-收单协议盖章页 A011-开户许可证 A012-收单协议首页 A013-非法人身份证头像面 A014-非法人身份证国徽面 + * B001-租赁合同 第一页 B002-租赁合同 第二页 B003-租赁合同 第三页 B004-法人/非法人手持授权书 + * B005-法人/非法人结算授权书 B006-租赁面积图片 B007-经营业务图片 B008-其他1 B009-其他2 + */ + private String picType; + + /** + * 文件名 + */ + private String picNm; + + /** + * 入网申请流水号,调用商户入网申请接口成功会返回入网申请流水号。 + */ + private String sysFlowId; + + /** + * 入网申请流水号,调用商户入网申请接口成功会返回入网申请流水号。 + */ + private String changeFlowId; + + /** + * 文件摘要,图片文件的文件摘要,即对图片文件的二进制内容进行sha256计算得到的值。 示例值:hjkahkjsjkfsjk78687dhjahdajhk + */ + private String sha256; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Notify.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Notify.java new file mode 100644 index 0000000..51b9623 --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/Notify.java @@ -0,0 +1,127 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +@Setter +@Getter +public class Notify { + /** + * 商户资料确认回调 + */ + public static final String TYPE_MERC_APPLY = "1"; + + /** + * 签约回调 + */ + public static final String TYPE_MERC_SIGN = "2"; + + /** + * 商户资料变更回调 + */ + public static final String TYPE_MERC_CHANGE = "3"; + + /** + * 费率变更 + */ + public static final String TYPE_MERC_RATE_CHANGE = "5"; + + /** + * 报备 + */ + public static final String TYPE_MERC_REPORT = "6"; + + + private String notifyType; + + private String status; + + private Cust cust; + + private Change change; + + private Auth auth; + + private Report report; + + @Setter + @Getter + public static class Cust { + + private String sysFlowId; + + private String note; + + private String custId; + + private String status; + + private String mercNm; + + private String mercShortNm; + + } + + @Setter + @Getter + public static class Change { + + private String changeSysFlowId; + + private String note; + + private String status; + } + + @Setter + @Getter + public static class Auth { + + private String authId; + + private String mercId; + + private String note; + + private String signId; + + private String status; + } + + @Setter + @Getter + public static class Report { + + private String authId; + + private String mercId; + + private String status; + + private List thridMercList; + } + + @Setter + @Getter + public static class ThirdMerc { + + private String apprSts; + + private String mercId; + + private String thridMercId; + + /** + * 备注 + */ + private String remark; + + /** + * 报备渠道 NUCC_WECHAT:微信支付(网联)、CUPS_WECHAT:微信支付(银联总部)、CUPS_ALIPAY:支付宝(银联总部)、NUCC_ALIPAY:支付宝(网联) + */ + private String reportChannel; + + } +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/PersonInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/PersonInfo.java new file mode 100644 index 0000000..6a90835 --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/PersonInfo.java @@ -0,0 +1,41 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import lombok.Getter; +import lombok.Setter; + +/** + * 身份信息 + */ +@Setter +@Getter +public class PersonInfo { + /** + * 实际控制人姓名 + */ + private String name; + + /** + * 实际控制人证件类型 + */ + private String certType; + + /** + * 实际控制人证件号 + */ + private String certNo; + + /** + * 实际控制人证件起始日期,格式:YYYYMMDD + */ + private String certBgn; + + /** + * 实际控制人证件有效期,格式:YYYYMMDD + */ + private String certExpire; + + /** + * 实际控制人证件地址 + */ + private String addr; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeDetail.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeDetail.java new file mode 100644 index 0000000..cde6ff0 --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeDetail.java @@ -0,0 +1,22 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +@AllArgsConstructor +public class RateFeeDetail { + private String rateType; + + private String rateFee; + + private String rateBottom; + + private String rateTop; + + public RateFeeDetail(String rateType, String rateFee, String rateBottom) { + this(rateType, rateFee, rateBottom, null); + } +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeInfo.java new file mode 100644 index 0000000..5b412d1 --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateFeeInfo.java @@ -0,0 +1,21 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class RateFeeInfo { + private RateFeeDetail wxPayFee; + + private RateFeeDetail aliPayFee; + + private RateFeeDetail bank1debitPayFee; + + private RateFeeDetail bank1creditPayFee; + + private RateFeeDetail bank2debitPayFee; + + private RateFeeDetail bank2creditPayFee; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateInfo.java new file mode 100644 index 0000000..945e6aa --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/RateInfo.java @@ -0,0 +1,23 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class RateInfo { + + private String busOpenType; + + private String contractType; + + private String isSendConMsg; + + private String notifyUrl; + + private RateFeeInfo codeScanT1Fee; + + private RateFeeDetail codeScanD0Fee; + + private String custId; +} diff --git a/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/StlAccInfo.java b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/StlAccInfo.java new file mode 100644 index 0000000..268db41 --- /dev/null +++ b/pluss-service-bundle/src/main/java/cn/pluss/platform/ys/impl/v20220527/entity/StlAccInfo.java @@ -0,0 +1,60 @@ +package cn.pluss.platform.ys.impl.v20220527.entity; + + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class StlAccInfo { + + /** + * 是否平台内账户,Y是 N否,默认否 + */ + private String isSettInPlatAcc; + + /** + * 是否非法人结算,Y是 N否,默认否 + */ + private String isUncrpSett; + + /** + * 结算户名,默认法人姓名, 非法人结算必填 + */ + private String stlAccNm; + + /** + * 结算账号 + */ + private String stlAccNo; + + /** + * 开户支行联行号,通过"行名行号查询"获取bankCode + */ + private String bankSubCode; + + /** + * 结算账户类型,11 对私 21 对公 23 对公存折 24 单位结算卡 + */ + private String stlAccType; + + /** + * 银行预留手机号,非法人结算必填 + */ + private String bankMobile; + + /** + * 开开户证件号,默认法人证件号,非法人结算必填 + */ + private String openCertNo; + + /** + * 银行开户行所属省代码,银行开户行所属市代码都填或都不填 + */ + private String bankProince; + + /** + * 银行开户行所属市代码,银行开户行所属省代码都填或都不填 + */ + private String bankCity; +}