@@ -689,6 +705,7 @@ public interface WxOpenMaService extends WxMaService { /** * 购物订单 + * * @return 购物订单服务 */ WxOpenMaShoppingOrdersService getShoppingOrdersService(); diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java index 146273f4e..71790a44d 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaServiceImpl.java @@ -18,6 +18,7 @@ import me.chanjar.weixin.open.bean.ma.WxMaPrefetchDomain; import me.chanjar.weixin.open.bean.ma.WxMaQrcodeParam; import me.chanjar.weixin.open.bean.ma.WxMaScheme; import me.chanjar.weixin.open.bean.message.WxOpenMaSubmitAuditMessage; +import me.chanjar.weixin.open.bean.message.WxOpenMaVerifybetaweappMessage; import me.chanjar.weixin.open.bean.result.*; import me.chanjar.weixin.open.executor.MaQrCodeRequestExecutor; @@ -218,6 +219,12 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ return wxMaService.execute(MaQrCodeRequestExecutor.create(getRequestHttp()), API_TEST_QRCODE, qrcodeParam); } + @Override + public WxOpenResult verifybetaweapp(WxOpenMaVerifybetaweappMessage verifybetaweappMessage) throws WxErrorException { + String response = post(API_VERIFYBETAWEAPP, GSON.toJson(verifybetaweappMessage)); + return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class); + } + @Override public WxOpenMaCategoryListResult getCategoryList() throws WxErrorException { String response = get(API_GET_CATEGORY, null); diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifybetaweappVerifyInfo.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifybetaweappVerifyInfo.java new file mode 100644 index 000000000..881163b67 --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/ma/WxMaVerifybetaweappVerifyInfo.java @@ -0,0 +1,57 @@ +package me.chanjar.weixin.open.bean.ma; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; + +/** + * 企业法人认证需要的信息 + * + * @author lg + * created on 2023/12/19 + */ +@Data +public class WxMaVerifybetaweappVerifyInfo implements Serializable { + + /** + * 企业名(需与工商部门登记信息一致);如果是“无主体名称个体工商户”则填“个体户+法人姓名”,例如“个体户张三” + */ + @SerializedName("enterprise_name") + private String enterpriseName; + + /** + * 企业代码 + */ + private String code; + + /** + * 企业代码类型 1:统一社会信用代码(18 位) 2:组织机构代码(9 位 xxxxxxxx-x) 3:营业执照注册号(15 位) + */ + @SerializedName("code_type") + private String codeType; + + /** + * 法人微信号 + */ + @SerializedName("legal_persona_wechat") + private String legalPersonaWechat; + + /** + * 法人姓名(绑定银行卡) + */ + @SerializedName("legal_persona_name") + private String legalPersonaName; + + /** + * 第三方联系电话 + */ + @SerializedName("component_phone") + private String componentPhone; + + /** + * 法人身份证号 + */ + @SerializedName("legal_persona_idcard") + private String legalPersonaIdcard; +} diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifybetaweappMessage.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifybetaweappMessage.java new file mode 100644 index 000000000..63a829111 --- /dev/null +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/bean/message/WxOpenMaVerifybetaweappMessage.java @@ -0,0 +1,24 @@ +package me.chanjar.weixin.open.bean.message; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import me.chanjar.weixin.open.bean.ma.WxMaVerifybetaweappVerifyInfo; + +import java.io.Serializable; + +/** + * 试用小程序快速认证(仅供第三方开发者代小程序调用) + * + * @author yqx + * created on 2018/9/13 + */ +@Data +public class WxOpenMaVerifybetaweappMessage implements Serializable { + private static final long serialVersionUID = 4595618023108631478L; + + /** + * 企业法人认证需要的信息 + */ + @SerializedName("verify_info") + private WxMaVerifybetaweappVerifyInfo verifyInfo; +}