Uses of Class
com.foxinmy.weixin4j.exception.WeixinException
-
-
Uses of WeixinException in com.foxinmy.weixin4j.api
Methods in com.foxinmy.weixin4j.api that throw WeixinException Modifier and Type Method Description RefundResultPayApi. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee)Deprecated.退款申请(全额退款)RefundResultPayApi. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, CurrencyType refundFeeType, String opUserId, String refundDesc, RefundAccountType refundAccountType)Deprecated.申请退款(请求需要双向证书)OpenIdResultPayApi. authCode2openId(String authCode)Deprecated.授权码查询OPENID接口MerchantResultPayApi. closeOrder(String outTradeNo)Deprecated.关闭订单MchPayRequestPayApi. createAppPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoStore store)Deprecated.创建APP支付请求对象MchPayRequestPayApi. createJSPayRequest(String openId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建JSAPI支付请求对象MchPayRequestPayApi. createMicroPayRequest(String authCode, String body, String outTradeNo, double totalFee, String createIp, String attach, SceneInfoStore store)Deprecated.提交被扫支付MchPayRequestPayApi. createNativePayRequest(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)链接【模式二】NativePayResponsePayApi. createNativePayResponse(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)回调对象【模式一】MchPayRequestPayApi. createPayRequest(MchPayPackage payPackage)Deprecated.创建支付请求对象PrePayPayApi. createPrePay(MchPayPackage payPackage)Deprecated.统一下单接口 除被扫支付场景以外,商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易回话标识后再按扫码、JSAPI 、APP等不同场景生成交易串调起支付。MchPayRequestPayApi. createWapPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoApp app)Deprecated.创建WAP支付请求对象:正常流程用户支付完成后会返回至发起支付的页面,如需返回至指定页面, 则可以在MWEB_URL后拼接上redirect_url参数,来指定回调页面CustomsOrderResultCustomsApi. declareCustomsOrder(CustomsOrder customsOrder)Deprecated.订单附加信息提交voidPayApi. downloadBill(Date billDate, BillType billType, OutputStream outputStream, TarType tarType)Deprecated.下载对账单
1.微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账 单中,跟原支付单订单号一致,bill_type 为 REVOKED;
2.微信在次日 9 点启动生成前一天的对账单,建议商户 9 点半后再获取;
3.对账单中涉及金额的字段单位为“元”。StringPayApi. getShorturl(String url)Deprecated.native支付URL转短链接:用于扫码原生支付模式一中的二维码链接转成短链接(weixin://wxpay/s/XXXXXX),减小二维码数据量 ,提升扫描速度和精确度。protected WeixinRequestExecutorMchApi. getWeixinSSLExecutor()Deprecated.微信SSLCorpPaymentRecordCashApi. queryCorpPayment(String outTradeNo)Deprecated.企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果CouponDetailCouponApi. queryCouponDetail(String openId, String couponId, String stockId)Deprecated.查询代金券详细CouponStockCouponApi. queryCouponStock(String couponStockId)Deprecated.查询代金券批次CustomsOrderRecordCustomsApi. queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity)Deprecated.订单附加信息查询doubleCashApi. queryExchageRate(CurrencyType currencyType, Date date)Deprecated.查询汇率OrderPayApi. queryOrder(IdQuery idQuery)Deprecated.订单查询RedpacketRecordCashApi. queryRedpack(String outTradeNo)Deprecated.查询红包记录RefundRecordPayApi. queryRefund(IdQuery idQuery)Deprecated.退款查询SettlementRecordCashApi. querySettlement(boolean status, Pageable pageable, Date start, Date end)Deprecated.查询结算资金XmlResultPayApi. reportInterface(String interfaceUrl, int executeTime, String outTradeNo, String ip, Date time, XmlResult returnXml)Deprecated.接口上报MerchantResultPayApi. reverseOrder(IdQuery idQuery)Deprecated.冲正订单(需要证书) 当支付返回失败,或收银系统超时需要取消交易,可以调用该接口 接口逻辑:支 付失败的关单,支付成功的撤销支付 7天以内的单可撤销,其他正常支付的单 如需实现相同功能请调用退款接口 调用扣款接口后请勿立即调用撤销,需要等待5秒以上。先调用查单接口,如果没有确切的返回,再调用撤销CorpPaymentResultCashApi. sendCorpPayment(CorpPayment payment)Deprecated.企业付款为企业提供付款至用户零钱的能力CouponResultCouponApi. sendCoupon(String couponStockId, String partnerTradeNo, String openId, String opUserId)Deprecated.发放代金券(需要证书)RedpacketSendResultCashApi. sendRedpack(Redpacket redpacket)Deprecated.发放红包 企业向微信用户个人发现金红包 -
Uses of WeixinException in com.foxinmy.weixin4j.cache
Methods in com.foxinmy.weixin4j.cache that throw WeixinException Modifier and Type Method Description TCacheCreator. create()创建CacheTCacheManager. getCache()获取缓存对象TCacheManager. refreshCache()刷新缓存对象 -
Uses of WeixinException in com.foxinmy.weixin4j.http.weixin
Methods in com.foxinmy.weixin4j.http.weixin that throw WeixinException Modifier and Type Method Description WeixinRequestExecutorWeixinRequestExecutor. createSSLRequestExecutor(String password, InputStream inputStream)创建 SSL微信请求对象WeixinRequestExecutorWeixinRequestExecutor. createSSLRequestExecutor(String password, String pemCertificate, String pemPrivateKey)使用PEM格式证书创建SSL微信请求对象WeixinResponseWeixinRequestExecutor. doRequest(HttpRequest request)执行微信请求WeixinResponseWeixinRequestExecutor. get(String url, URLParameter... parameters)Get方法执行微信请求protected voidWeixinRequestExecutor. handleResponse(WeixinResponse response)handle the weixin responseWeixinResponseWeixinRequestExecutor. post(String url, FormBodyPart... bodyParts)Post方法执行微信请求,用于文件上传WeixinResponseWeixinRequestExecutor. post(String url, String body)Post方法执行微信请求 -
Uses of WeixinException in com.foxinmy.weixin4j.jssdk
Methods in com.foxinmy.weixin4j.jssdk that throw WeixinException Modifier and Type Method Description StringJSSDKConfigurator. toJSONConfig(String url)生成config配置JSON串 -
Uses of WeixinException in com.foxinmy.weixin4j.mp
Methods in com.foxinmy.weixin4j.mp that throw WeixinException Modifier and Type Method Description StringWeixinProxy. addGiftCardPage(GiftCardPage page)微信礼品卡货架创建接口,开发者可以通过该接口创建一个礼品卡货架并且用于公众号、门店的礼品卡售卖。StringWeixinProxy. addGiftCardPayWhitelist(String subMchId)申请礼品卡的微信支付权限ApiResultWeixinProxy. batchBlacklist(boolean blacklist, String... openIds)黑名单操作List<ChangeOpenidResult>WeixinProxy. batchChangeOpenid(String fromAppid, List<String> openIds)公众号迁移批量转换openidApiResultWeixinProxy. bindGiftCardPaySubMch(String wxaAppid, String subMchId)绑定商户号到礼品卡小程序voidWeixinComponentProxy. cacheComponentTicket(String componentId, String componentTicket)缓存组件ticketList<ChangeOpenidResult>WeixinProxy. changeAllOpenid(String fromAppid)公众号迁移转换所有openidApiResultWeixinProxy. clearQuota()接口调用次数调用清零:公众号调用接口并不是无限制的。为了防止公众号的程序错误而引发微信服务器负载异常,默认情况下, 每个公众号调用接口都不能超过一定限制 ,当超过一定限制时,调用对应接口会收到{"errcode":45009,"errmsg":"api freq out of limit" }错误返回码。ApiResultWeixinProxy. closeKfSession(String userOpenId, String kfAccount, String text)关闭客服会话ApiResultWeixinProxy. consumeGiftCard(String code, String cardId)当礼品卡被使用完毕或者发生转存、绑定等操作后,开发者可以通过该接口核销用户的礼品卡,使礼品卡在列表中沉底并不再被使用。 注意:需在礼品卡核销前调用,否则会报40099 已核销的错误MediaCounterWeixinProxy. countMaterialMedia()获取永久媒体素材的总数 .图片和图文消息素材(包括单图文和多图文)的总数上限为5000,其他素材的总数上限为1000StringWeixinProxy. createCardCoupon(CardCoupon cardCoupon)创建卡券:创建卡券接口是微信卡券的基础接口,用于创建一类新的卡券,获取card_id,创建成功并通过审核后, 商家可以通过文档提供的其他接口将卡券下发给用户,每次成功领取,库存数量相应扣除。 1.需自定义Code码的商家必须在创建卡券时候,设定use_custom_code为true,且在调用投放卡券接口时填入指定的Code码。 指定OpenID同理。特别注意:在公众平台创建的卡券均为非自定义Code类型。 2.can_share字段指领取卡券原生页面是否可分享,建议指定Code码、指定OpenID等强限制条件的卡券填写false。 3.创建成功后该卡券会自动提交审核 ,审核结果将通过事件通知商户。开发者可调用设置白名单接口设置用户白名单,领取未通过审核的卡券,测试整个卡券的使用流程。QRResultWeixinProxy. createCardQR(Integer expireSeconds, CardQR... cardQRs)创建卡券二维码: 开发者可调用该接口生成一张卡券二维码供用户扫码后添加卡券到卡包。StringWeixinProxy. createCustomMenu(List<Button> buttons, MenuMatchRule matchRule)创建个性化菜单GroupWeixinProxy. createGroup(String name)创建分组ApiResultWeixinProxy. createKfAccount(String id, String name)新增客服账号ApiResultWeixinProxy. createKfSession(String userOpenId, String kfAccount, String text)创建客服会话ApiResultWeixinProxy. createMenu(List<Button> buttons)自定义菜单QRResultWeixinProxy. createQR(QRParameter parameter)生成带参数的二维码TagWeixinProxy. createTag(String name)创建标签List<?>WeixinProxy. datacube(DatacubeType datacubeType, int offset, Date endDate)数据统计List<?>WeixinProxy. datacube(DatacubeType datacubeType, Date date)查询日期跨度为0的统计数据(当天)List<?>WeixinProxy. datacube(DatacubeType datacubeType, Date beginDate, int offset)数据统计List<?>WeixinProxy. datacube(DatacubeType datacubeType, Date beginDate, Date endDate)数据统计ApiResultWeixinProxy. deleteComment(String msgid, int index, String commentId)删除评论ApiResultWeixinProxy. deleteCommentReply(String msgid, int index, String commentId)删除回复ApiResultWeixinProxy. deleteCustomMenu(String menuId)删除个性化菜单ApiResultWeixinProxy. deleteGroup(int groupId)删除用户分组,所有该分组内的用户自动进入默认分组.ApiResultWeixinProxy. deleteKfAccount(String id)删除客服账号ApiResultWeixinProxy. deleteMassNews(String msgid)删除群发消息ApiResultWeixinProxy. deleteMassNews(String msgid, int articleIndex)删除群发消息ApiResultWeixinProxy. deleteMaterialMedia(String mediaId)删除永久媒体素材ApiResultWeixinProxy. deleteMenu()删除菜单ApiResultWeixinProxy. deleteTag(int tagId)删除标签ApiResultWeixinProxy. deleteTemplate(String templateId)删除模板List<MpArticle>WeixinProxy. downloadArticle(String mediaId)下载永久图文素材MediaDownloadResultWeixinProxy. downloadMedia(String mediaId, boolean isMaterial)下载媒体文件List<String>WeixinProxy. getAllBalcklistOpenIds()获取公众号全部的黑名单列表 请慎重使用List<User>WeixinProxy. getAllFollowing()获取公众号全部的关注者列表 请慎重使用List<String>WeixinProxy. getAllFollowingOpenIds()获取公众号全部的关注者列表 请慎重使用List<Menu>WeixinProxy. getAllMenu()查询全部菜单(包含个性化菜单)List<User>WeixinProxy. getAllTagFollowing(int tagId)获取标签下全部的粉丝列表 请慎重使用List<String>WeixinProxy. getAllTagFollowingOpenIds(int tagId)获取标签下全部的粉丝列表 请慎重使用List<TemplateMessageInfo>WeixinProxy. getAllTemplates()获取模板列表AutoReplySettingWeixinProxy. getAutoReplySetting()获取公众号当前使用的自动回复规则,包括关注后自动回复、消息自动回复(60分钟内触发一次)、关键词自动回复。FollowingWeixinProxy. getBalcklistOpenIds(String nextOpenId)获取公众号的黑名单列表com.alibaba.fastjson.JSONObjectWeixinProxy. getCardInfo(String cardId)查询某个card_id的创建信息、审核状态以及库存数量。StringWeixinComponentProxy. getComponentAuthorizationURL(String componentId)应用组件授权 需先缓存ticket redirectUri默认填写weixin4j.properties#component.oauth.redirect.uri state默认填写stateStringWeixinComponentProxy. getComponentAuthorizationURL(String componentId, String redirectUri, String state)应用组件授权 需先缓存ticket,在授权完成之后需要调用ComponentApi# exchangeAuthorizerToken方法 ,否则无法缓存token相关导致后续的组件接口调用失败FollowingWeixinProxy. getFollowing(String nextOpenId)获取公众号一定数量(10000)的关注者列表 请慎重使用FollowingWeixinProxy. getFollowingOpenIds(String nextOpenId)获取公众号一定数量(10000)的关注者列表com.alibaba.fastjson.JSONObjectWeixinProxy. getGiftCardInfo(String code, String cardId)开发者可以通过该接口查询到code对应的信息,如余额、有效期、订单号等,主要用于防止在交易完成后丢单的情况下,用于核销/余额变动时兜底处理。com.alibaba.fastjson.JSONObjectWeixinProxy. getGiftCardOrderInfo(String orderId)查询某个订单号对应的订单详情com.alibaba.fastjson.JSONObjectWeixinProxy. getGiftCardOrders(long beginTime, long endTime, String sortType, int offset, int limit)批量查询礼品卡订单信息接口com.alibaba.fastjson.JSONObjectWeixinProxy. getGiftCardPage(String pageId)查询礼品卡货架信息接口String[]WeixinProxy. getGiftCardPageIdList()查询当前商户下所有的礼品卡货架idintWeixinProxy. getGroupByOpenId(String openId)查询用户所在分组List<Group>WeixinProxy. getGroups()查询所有分组List<KfChatRecord>WeixinProxy. getKfChatRecord(Date startTime, Date endTime, int number)客服聊天记录KfSessionWeixinProxy. getKfSession(String userOpenId)获取客户的会话状态:获取客户当前的会话状态。StringWeixinProxy. getMassNewStatus(String msgId)查询群发发送状态List<Button>WeixinProxy. getMenu()查询菜单MenuSettingWeixinProxy. getMenuSetting()获取公众号当前使用的自定义菜单的配置,如果公众号是通过API调用设置的菜单,则返回菜单的开发配置, 而如果公众号是在公众平台官网通过网站功能发布菜单,则本接口返回运营者设置的菜单配置。StringWeixinComponentProxy. getPreComponentTicket(String componentId)获取组件的预授权码 需先缓存ticketStringWeixinProxy. getShorturl(String url)长链接转短链接FollowingWeixinProxy. getTagFollowing(int tagId, String nextOpenId)获取标签下粉丝列表 请慎重使用FollowingWeixinProxy. getTagFollowingOpenIds(int tagId, String nextOpenId)获取标签下粉丝列表StringWeixinProxy. getTemplateId(String shortId)获取模板IDUserWeixinProxy. getUser(String openId)获取用户信息UserWeixinProxy. getUser(String openId, Lang lang)获取用户信息List<User>WeixinProxy. getUsers(Lang lang, String... openIds)批量获取用户信息List<User>WeixinProxy. getUsers(String... openIds)批量获取用户信息Integer[]WeixinProxy. getUserTags(String openId)获取用户身上的标签列表List<String>WeixinProxy. getWechatServerIp()获取微信服务器IP地址ApiResultWeixinProxy. giftCardOrderRefund(String orderId)对一笔礼品卡订单操作退款ApiResultWeixinProxy. inviteKfAccount(String kfAccount, String inviteAccount)邀请绑定客服帐号 新添加的客服帐号是不能直接使用的,只有客服人员用微信号绑定了客服账号后,方可登录Web客服进行操作。此接口发起一个绑定邀请到客服人员微信号 ,客服人员需要在微信客户端上用该微信号确认后帐号才可用。尚未绑定微信号的帐号可以进行绑定邀请操作,邀请未失效时不能对该帐号进行再次绑定微信号邀请。List<ArticleComment>WeixinProxy. listAllArticleComments(ArticleComment.ArticleCommentType commentType, String msgid, int index)获取评论列表List<MediaItem>WeixinProxy. listAllMaterialMedia(MediaType mediaType)获取全部的媒体素材Pagedata<ArticleComment>WeixinProxy. listArticleComments(Pageable page, ArticleComment.ArticleCommentType commentType, String msgid, int index)获取评论列表List<KfAccount>WeixinProxy. listKfAccount()获取公众号中所设置的客服基本信息,包括客服工号、客服昵称、客服登录账号List<KfSession>WeixinProxy. listKfSession(String kfAccount)获取客服的会话列表:获取某个客服正在接待的会话列表。KfSession.KfSessionCounterWeixinProxy. listKfWaitSession()获取未接入会话列表:获取当前正在等待队列中的会话列表,此接口最多返回最早进入队列的100个未接入会话MediaRecordWeixinProxy. listMaterialMedia(MediaType mediaType, Pageable pageable)获取媒体素材记录列表List<KfOnlineAccount>WeixinProxy. listOnlineKfAccount()获取在线客服在线状态(手机在线、PC客户端在线、手机和PC客户端全都在线)、客服自动接入最大值、 客服当前接待客户数List<Tag>WeixinProxy. listTags()获取标签ApiResultWeixinProxy. maintainAllGiftCardPage()下架所有礼品卡货架ApiResultWeixinProxy. maintainGiftCardPage(String pageId)下架一个礼品卡货架ApiResultWeixinProxy. markelectComment(boolean markelect, String msgid, int index, String commentId)评论标记/取消精选String[]WeixinProxy. massArticleByGroupId(List<MpArticle> articles, int groupId)分组ID群发图文消息String[]WeixinProxy. massArticleByOpenIds(List<MpArticle> articles, boolean ignoreReprint, String... openIds)openid群发图文消息String[]WeixinProxy. massArticleByTagId(List<MpArticle> articles, int tagId, boolean ignoreReprint)标签群发图文消息String[]WeixinProxy. massByGroupId(MassTuple tuple, boolean isToAll, int groupId)群发消息String[]WeixinProxy. massByOpenIds(MassTuple tuple, String... openIds)openId群发消息String[]WeixinProxy. massByTagId(MassTuple tuple, int tagId)标签群发消息String[]WeixinProxy. massToAll(MassTuple tuple)群发消息给所有粉丝List<Button>WeixinProxy. matchCustomMenu(String userId)测试个性化菜单匹配结果ApiResultWeixinProxy. modifyGroup(int groupId, String name)修改分组名ApiResultWeixinProxy. moveGroup(int groupId, String openId)移动用户到分组ApiResultWeixinProxy. moveGroup(int groupId, String... openIds)批量移动分组ApiResultWeixinProxy. openComment(boolean open, String msgid, int index)打开/关闭已群发文章评论ApiResultWeixinProxy. previewMassNews(String toUser, String toWxName, MassTuple tuple)预览群发消息 开发者可通过该接口发送消息给指定用户,在手机端查看消息的样式和排版ApiResultWeixinProxy. remarkUserName(String openId, String remark)设置用户备注名ApiResultWeixinProxy. replyComment(String msgid, int index, String commentId, String content)回复评论SemResultWeixinProxy. semantic(SemQuery semQuery)语义理解ApiResultWeixinProxy. sendNotify(NotifyMessage notify)发送客服消息(在48小时内不限制发送次数)ApiResultWeixinProxy. sendNotify(NotifyMessage notify, String kfAccount)发送客服消息(在48小时内不限制发送次数)StringWeixinProxy. sendTmplMessage(TemplateMessage tplMessage)发送模板消息ApiResultWeixinProxy. setCardPayCell(String cardId, boolean isOpen)设置卡券买单:创建卡券之后,开发者可以通过设置微信买单接口设置该card_id支持微信买单功能。值得开发者注意的是, 设置买单的card_id必须已经配置了门店,否则会报错。ApiResultWeixinProxy. setCardSelfConsumeCell(String cardId, boolean isOpen)设置自助核销:创建卡券之后,开发者可以通过设置微信买单接口设置该card_id支持自助核销功能。值得开发者注意的是, 设置自助核销的card_id必须已经配置了门店,否则会报错。ApiResultWeixinProxy. setGiftCardWxaCode(String wxaAppid, String pageId)上传礼品卡小程序代码 (提供小程序APPID及货架ID,由微信平台为你小程序帐号上传一套现成的礼品卡小程序,直接用于礼品卡售卖)ApiResultWeixinProxy. setTmplIndustry(IndustryType... industryTypes)设置所属行业(每月可修改行业1次,账号仅可使用所属行业中相关的模板)ApiResultWeixinProxy. taggingUsers(int tagId, String... openIds)批量为用户打标签:标签功能目前支持公众号为用户打上最多三个标签ApiResultWeixinProxy. untaggingUsers(int tagId, String... openIds)批量为用户取消标签ApiResultWeixinProxy. updateGiftCardPage(GiftCardPage page)修改礼品卡货架信息接口com.alibaba.fastjson.JSONObjectWeixinProxy. updateGiftCardUserBalance(CardInfo cardInfo)更新用户礼品卡信息 当礼品卡被使用后,可以通过该接口变更某个礼品卡的余额信息。ApiResultWeixinProxy. updateKfAccount(String id, String name)更新客服账号ApiResultWeixinProxy. updateMaterialArticle(String mediaId, int index, MpArticle article)更新永久图文素材ApiResultWeixinProxy. updateTag(Tag tag)更新标签StringWeixinProxy. uploadImage(InputStream is, String fileName)上传图文消息内的图片获取URL 请注意,本接口所上传的图片不占用公众号的素材库中图片数量的5000个的限制。图片仅支持jpg/png格式,大小必须在1MB以下。ApiResultWeixinProxy. uploadKfAvatar(String accountId, InputStream is, String fileName)上传客服头像StringWeixinProxy. uploadMassArticle(List<MpArticle> articles)上传群发的图文消息,一个图文消息支持1到10条图文StringWeixinProxy. uploadMaterialArticle(List<MpArticle> articles)上传永久图文素材StringWeixinProxy. uploadMaterialVideo(InputStream is, String fileName, String title, String introduction)上传永久视频素材MediaUploadResultWeixinProxy. uploadMedia(boolean isMaterial, InputStream is, String fileName)上传媒体文件 此接口只包含图片、语音、缩略图、视频(临时)四种媒体类型的上传MpVideoWeixinProxy. uploadVideo(InputStream is, String fileName, String title, String description)上传群发中的视频素材 -
Uses of WeixinException in com.foxinmy.weixin4j.mp.api
Methods in com.foxinmy.weixin4j.mp.api that throw WeixinException Modifier and Type Method Description ApiResultCardApi. activateMemberCard(MemberInitInfo memberInitInfo)激活方式说明 接口激活通常需要开发者开发用户填写资料的网页。通常有两种激活流程: 1.StringCardApi. addGiftCardPage(GiftCardPage page)创建一个礼品卡货架StringCardApi. addGiftCardPayWhitelist(String subMchId)申请礼品卡的微信支付权限RefundResultV2PayOldApi. applyRefund(InputStream certificate, IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, String opUserId, String opUserPasswd)退款申请RefundResultV2PayOldApi. applyRefund(InputStream certificate, IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, String opUserId, String opUserPasswd, String recvUserId, String reccvUserName, RefundType refundType)退款申请protected RefundResultV2PayOldApi. applyRefund(InputStream certificate, IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, String opUserId, Map<String,String> mopara)申请退款(需要证书)ApiResultTagApi. batchBlacklist(boolean blacklist, String... openIds)黑名单操作List<ChangeOpenidResult>UserApi. batchChangeOpenid(String fromAppid, List<String> openIds)批量转换openidApiResultCardApi. bindGiftCardPaySubMch(String wxaAppid, String subMchId)绑定商户号到礼品卡小程序List<ChangeOpenidResult>UserApi. changeAllOpenid(String fromAppid)转换所有openidApiResultHelperApi. clearQuota(String appId)接口调用次数调用清零:公众号调用接口并不是无限制的。为了防止公众号的程序错误而引发微信服务器负载异常,默认情况下, 每个公众号调用接口都不能超过一定限制 ,当超过一定限制时,调用对应接口会收到{"errcode":45009,"errmsg":"api freq out of limit" }错误返回码。ApiResultCustomApi. closeKfSession(String userOpenId, String kfAccount, String text)关闭会话ApiResultCardApi. consumeGiftCard(String code, String cardId)当礼品卡被使用完毕或者发生转存、绑定等操作后,开发者可以通过该接口核销用户的礼品卡,使礼品卡在列表中沉底并不再被使用。MediaCounterMediaApi. countMaterialMedia()获取永久媒体素材的总数 .图片和图文消息素材(包括单图文和多图文)的总数上限为5000,其他素材的总数上限为1000StringCardApi. createCardCoupon(CardCoupon cardCoupon)创建卡券:创建卡券接口是微信卡券的基础接口,用于创建一类新的卡券,获取card_id,创建成功并通过审核后, 商家可以通过文档提供的其他接口将卡券下发给用户,每次成功领取,库存数量相应扣除。 1.需自定义Code码的商家必须在创建卡券时候,设定use_custom_code为true,且在调用投放卡券接口时填入指定的Code码。 指定OpenID同理。特别注意:在公众平台创建的卡券均为非自定义Code类型。 2.can_share字段指领取卡券原生页面是否可分享,建议指定Code码、指定OpenID等强限制条件的卡券填写false。 3.创建成功后该卡券会自动提交审核 ,审核结果将通过事件通知商户。开发者可调用设置白名单接口设置用户白名单,领取未通过审核的卡券,测试整个卡券的使用流程。QRResultCardApi. createCardQR(Integer expireSeconds, CardQR... cardQRs)创建卡券二维码: 开发者可调用该接口生成一张卡券二维码供用户扫码后添加卡券到卡包。StringMenuApi. createCustomMenu(List<Button> buttons, MenuMatchRule matchRule)创建个性化菜单GroupGroupApi. createGroup(String name)Deprecated.创建分组ApiResultCustomApi. createKfAccount(String id, String name)新增客服账号ApiResultCustomApi. createKfSession(String userOpenId, String kfAccount, String text)创建会话ApiResultMenuApi. createMenu(List<Button> buttons)自定义菜单QRResultQrApi. createQR(QRParameter parameter)生成带参数的二维码TagTagApi. createTag(String name)创建标签List<?>DataApi. datacube(DatacubeType datacubeType, int offset, Date endDate)数据统计List<?>DataApi. datacube(DatacubeType datacubeType, Date date)查询日期跨度为0的统计数据(当天)List<?>DataApi. datacube(DatacubeType datacubeType, Date beginDate, int offset)数据统计List<?>DataApi. datacube(DatacubeType datacubeType, Date beginDate, Date endDate)数据统计ApiResultCommentApi. deleteComment(String msgid, int index, String commentId)删除评论ApiResultCommentApi. deleteCommentReply(String msgid, int index, String commentId)删除回复ApiResultMenuApi. deleteCustomMenu(String menuId)删除个性化菜单ApiResultGroupApi. deleteGroup(int groupId)Deprecated.删除用户分组,所有该分组内的用户自动进入默认分组.ApiResultCustomApi. deleteKfAccount(String id)删除客服账号ApiResultMassApi. deleteMassNews(String msgid)删除群发消息ApiResultMassApi. deleteMassNews(String msgid, int articleIndex)删除群发消息ApiResultMediaApi. deleteMaterialMedia(String mediaId)删除永久媒体素材ApiResultMenuApi. deleteMenu()删除菜单ApiResultTagApi. deleteTag(int tagId)删除标签ApiResultTmplApi. deleteTemplate(String templateId)删除模板ApiResultPayOldApi. deliverNotify(String openId, String transid, String outTradeNo, boolean status, String statusMsg)发货通知DeviceAuditStateShakeAroundApi. deviceApply(Integer quantity, String applyReason, String comment)申请配置设备所需的UUID、Major、Minor。申请成功后返回批次ID,可用返回的批次ID通过“查询设备ID申请状态”接口查询目前申请的审核状态。 若单次申请的设备ID数量小于500个,系统会进行快速审核;若单次申请的设备ID数量大于等 500个 ,会在三个工作日内完成审核。 如果已审核通过,可用返回的批次ID通过“查询设备列表”接口拉取本次申请的设备ID。 通过接口申请的设备ID,需先配置页面,若未配置页面,则摇不出页面信息。DeviceAuditStateShakeAroundApi. deviceQueryApplyStatus(int applyId)查询设备ID申请的审核状态。若单次申请的设备ID数量小于等于500个, 系统会进行快速审核;若单次申请的设备ID数量大于500个,则在三个工作日内完成审核。Pagedata<Device>ShakeAroundApi. deviceSearchDevices(int pageSize)查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息。 按照分页信息查询设备Pagedata<Device>ShakeAroundApi. deviceSearchDevices(int lastDeviceId, int pageSize)查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息 根据上次查询的最后的设备编号按照分页查询List<Device>ShakeAroundApi. deviceSearchDevices(List<Device> device)查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息。 查询指定设备的信息List<Device>ShakeAroundApi. deviceSearchDevicesByApplyId(Integer applyId)查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息 查询 设备Id 下的所有的设备Pagedata<Device>ShakeAroundApi. deviceSearchDevicesByApplyId(Integer applyId, int pageSize)查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息 分页获取设备id下的前多少设备Pagedata<Device>ShakeAroundApi. deviceSearchDevicesByApplyId(Integer applyId, int lastDeviceId, int pageSize)查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息 分页获取设备id下的根据上次查询的最后的设备编号前多少设备ApiResultShakeAroundApi. deviceUpdateComment(Device device, String comment)编辑设备的备注信息。可用设备ID或完整的UUID、Major、Minor指定设备,二者选其一。List<MpArticle>MediaApi. downloadArticle(String mediaId)下载永久图文素材FilePayOldApi. downloadBill(Date billDate, BillType billType, String billPath)下载对账单
1.微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账 单中,跟原支付单订单号一致,bill_type 为 REVOKED;
2.微信在次日 9 点启动生成前一天的对账单,建议商户 9 点半后再获取;
3.对账单中涉及金额的字段单位为“元”。MediaDownloadResultMediaApi. downloadMedia(String mediaId, boolean isMaterial)下载媒体素材ComponentAuthorizerTokenComponentApi. exchangeAuthorizerToken(String authCode)使用授权码换取公众号的接口调用凭据和授权信息:用于使用授权码换取授权公众号的授权信息, 并换取authorizer_access_token和authorizer_refresh_token。 授权码的获取,需要在用户在第三方平台授权页中完成授权流程后 ,在回调URI中通过URL参数提供给第三方平台方。请注意,由于现在公众号可以自定义选择部分权限授权给第三方平台 ,因此第三方平台开发者需要通过该接口来获取公众号具体授权了哪些权限,而不是简单地认为自己声明的权限就是公众号授权的权限。List<String>TagApi. getAllBalcklistOpenIds()获取公众号全部的黑名单列表 请慎重使用List<User>UserApi. getAllFollowing()获取公众号全部的关注者列表 请慎重使用List<String>UserApi. getAllFollowingOpenIds()获取公众号全部的关注者列表 请慎重使用List<Menu>MenuApi. getAllMenu()查询全部菜单(包含个性化菜单)List<User>TagApi. getAllTagFollowing(int tagId)获取标签下全部的粉丝列表 请慎重使用List<String>TagApi. getAllTagFollowingOpenIds(int tagId)获取标签下全部的粉丝列表 请慎重使用List<TemplateMessageInfo>TmplApi. getAllTemplates()获取模板列表OauthTokenComponentApi. getAuthorizationToken(String authAppId, String code)第三方组件代替授权公众号发起网页授权:换取tokenOauthTokenOauthApi. getAuthorizationToken(String code)公众号网页获取用户资料oauth授权:code换取tokenUserOauthApi. getAuthorizationUser(OauthToken token)oauth授权获取用户信息(需scope为 snsapi_userinfo)UserOauthApi. getAuthorizationUser(String oauthToken, String openid, Lang lang)oauth获取用户信息(需scope为 snsapi_userinfo)ComponentAuthorizerComponentApi. getAuthorizerInfo(String authAppId)获取授权方的公众号帐号基本信息:获取授权方的公众号基本信息,包括头像、昵称、帐号类型、认证类型、微信号、原始ID和二维码图片URL。 需要特别记录授权方的帐号类型,在消息及事件推送时,对于不具备客服接口的公众号,需要在5秒内立即响应;而若有客服接口,则可以选择暂时不响应, 而选择后续通过客服接口来发送消息触达粉丝AuthorizerOptionComponentApi. getAuthorizerOption(String authAppId, AuthorizerOption.AuthorizerOptionName optionName)获取授权方的公众号的选项设置信息,如:地理位置上报,语音识别开关,多客服开关。注意,获取各项选项设置信息AutoReplySettingHelperApi. getAutoReplySetting()获取公众号当前使用的自动回复规则,包括关注后自动回复、消息自动回复(60分钟内触发一次)、关键词自动回复。FollowingTagApi. getBalcklistOpenIds(String nextOpenId)获取公众号的黑名单列表com.alibaba.fastjson.JSONObjectCardApi. getCardInfo(String cardId)查询某个card_id的创建信息、审核状态以及库存数量。FollowingUserApi. getFollowing(String nextOpenId)获取公众号一定数量(10000)的关注者列表 请慎重使用FollowingUserApi. getFollowingOpenIds(String nextOpenId)获取公众号一定数量(10000)的关注者列表com.alibaba.fastjson.JSONObjectCardApi. getGiftCardInfo(String code, String cardId)开发者可以通过该接口查询到code对应的信息,如余额、有效期、订单号等,主要用于防止在交易完成后丢单的情况下,用于核销/余额变动时兜底处理。 注意:需在礼品卡核销前调用,否则会报40099 已核销的错误com.alibaba.fastjson.JSONObjectCardApi. getGiftCardPage(String pageId)查询礼品卡货架信息String[]CardApi. getGiftCardPageIdList()查询当前商户下所有的礼品卡货架idintGroupApi. getGroupByOpenId(String openId)Deprecated.查询用户所在分组List<Group>GroupApi. getGroups()Deprecated.查询所有分组List<KfChatRecord>CustomApi. getKfChatRecord(Date startTime, Date endTime, int number)客服聊天记录KfSessionCustomApi. getKfSession(String userOpenId)获取客户的会话状态:获取客户当前的会话状态。StringMassApi. getMassNewStatus(String msgId)查询群发发送状态MemberUserInfoCardApi. getMemberUserInfo(String cardId, String code)拉取会员信息接口。List<Button>MenuApi. getMenu()查询菜单MenuSettingHelperApi. getMenuSetting()获取公众号当前使用的自定义菜单的配置,如果公众号是通过API调用设置的菜单,则返回菜单的开发配置, 而如果公众号是在公众平台官网通过网站功能发布菜单,则本接口返回运营者设置的菜单配置。com.alibaba.fastjson.JSONObjectCardApi. getOrderInfo(String orderId)查询某个订单号对应的订单详情com.alibaba.fastjson.JSONObjectCardApi. getOrders(long beginTime, long endTime, String sortType, int offset, int limit)批量查询礼品卡订单信息接口ShakeUserInfoShakeAroundApi. getShakeUserInfo(String ticket)获取设备信息,包括UUID、major、minor,以及距离、openID等信息.StringHelperApi. getShorturl(String url)长链接转短链接FollowingTagApi. getTagFollowing(int tagId, String nextOpenId)获取标签下粉丝列表 请慎重使用FollowingTagApi. getTagFollowingOpenIds(int tagId, String nextOpenId)获取标签下粉丝列表StringTmplApi. getTemplateId(String shortId)获取模板IDIndustryType[]TmplApi. getTmplIndustry()获取设置的行业信息UserUserApi. getUser(String openId)获取用户信息UserUserApi. getUser(String openId, Lang lang)获取用户信息List<User>UserApi. getUsers(Lang lang, String... openIds)批量获取用户信息List<User>UserApi. getUsers(String... openIds)批量获取用户信息Integer[]TagApi. getUserTags(String openId)获取用户身上的标签列表List<String>HelperApi. getWechatServerIp()获取微信服务器IP地址ApiResultCustomApi. inviteKfAccount(String kfAccount, String inviteAccount)邀请绑定客服帐号 新添加的客服帐号是不能直接使用的,只有客服人员用微信号绑定了客服账号后,方可登录Web客服进行操作。此接口发起一个绑定邀请到客服人员微信号 ,客服人员需要在微信客户端上用该微信号确认后帐号才可用。尚未绑定微信号的帐号可以进行绑定邀请操作,邀请未失效时不能对该帐号进行再次绑定微信号邀请。List<ArticleComment>CommentApi. listAllArticleComments(ArticleComment.ArticleCommentType commentType, String msgid, int index)获取评论列表List<MediaItem>MediaApi. listAllMaterialMedia(MediaType mediaType)获取全部的媒体素材Pagedata<ArticleComment>CommentApi. listArticleComments(Pageable page, ArticleComment.ArticleCommentType commentType, String msgid, int index)获取评论列表List<KfAccount>CustomApi. listKfAccount()获取公众号中所设置的客服基本信息,包括客服工号、客服昵称、客服登录账号List<KfSession>CustomApi. listKfSession(String kfAccount)获取客服的会话列表:获取某个客服正在接待的会话列表。KfSession.KfSessionCounterCustomApi. listKfWaitSession()获取未接入会话列表:获取当前正在等待队列中的会话列表,此接口最多返回最早进入队列的100个未接入会话。 缺陷:没有count字段MediaRecordMediaApi. listMaterialMedia(MediaType mediaType, Pageable pageable)获取媒体素材记录列表List<KfOnlineAccount>CustomApi. listOnlineKfAccount()获取在线客服在线状态(手机在线、PC客户端在线、手机和PC客户端全都在线)、客服自动接入最大值、 客服当前接待客户数List<Tag>TagApi. listTags()获取标签ApiResultCardApi. maintainAllGiftCardPage()下架所有礼品卡货架ApiResultCardApi. maintainGiftCardPage(String pageId)下架礼品卡货架ApiResultCommentApi. markelectComment(boolean markelect, String msgid, int index, String commentId)评论标记/取消精选String[]MassApi. massArticleByGroupId(List<MpArticle> articles, int groupId)Deprecated.String[]MassApi. massArticleByOpenIds(List<MpArticle> articles, boolean ignoreReprint, String... openIds)openid群发图文消息String[]MassApi. massArticleByTagId(List<MpArticle> articles, int tagId, boolean ignoreReprint)标签群发图文消息String[]MassApi. massByGroupId(MassTuple tuple, boolean isToAll, int groupId)Deprecated.String[]MassApi. massByOpenIds(MassTuple tuple, String... openIds)openId群发消息String[]MassApi. massByTagId(MassTuple tuple, int tagId)标签群发消息String[]MassApi. massToAll(MassTuple tuple)群发消息给所有粉丝List<Button>MenuApi. matchCustomMenu(String userId)测试个性化菜单匹配结果ApiResultGroupApi. modifyGroup(int groupId, String name)Deprecated.修改分组名ApiResultGroupApi. moveGroup(int groupId, String openId)Deprecated.移动用户到分组ApiResultGroupApi. moveGroup(int groupId, String... openIds)Deprecated.批量移动分组ApiResultCommentApi. openComment(boolean open, String msgid, int index)打开/关闭已群发文章评论ApiResultCardApi. orderRefund(String orderId)对一笔礼品卡订单操作退款ApiResultMassApi. previewMassNews(String toUser, String toWxName, MassTuple tuple)预览群发消息 开发者可通过该接口发送消息给指定用户,在手机端查看消息的样式和排版CardStatusCardApi. queryCardStatus(String cardId)查看获取卡券的审核状态OrderV2PayOldApi. queryOrder(IdQuery idQuery)订单查询RefundRecordV2PayOldApi. queryRefund(IdQuery idQuery)退款查询 退款有一定延时,用零钱支付的退款20分钟内到账,银行卡支付的退款 3 个工作日后重新查询退款状态OauthTokenComponentApi. refreshAuthorizationToken(String authAppId, String refreshToken)第三方组件代替授权公众号发起网页授权:刷新tokenOauthTokenOauthApi. refreshAuthorizationToken(String refreshToken)公众号网页获取用户资料oauth授权:刷新token,由于access_token拥有较短的有效期,当access_token超时后, 可以使用refresh_token进行刷新, refresh_token有效期为30天,当refresh_token失效之后,需要用户重新授权。ApiResultUserApi. remarkUserName(String openId, String remark)设置用户备注名ApiResultCommentApi. replyComment(String msgid, int index, String commentId, String content)回复评论SemResultHelperApi. semantic(SemQuery semQuery)语义理解ApiResultNotifyApi. sendNotify(NotifyMessage notify)发送客服消息(在48小时内不限制发送次数)ApiResultNotifyApi. sendNotify(NotifyMessage notify, String kfAccount)发送客服消息(在48小时内不限制发送次数)StringTmplApi. sendTmplMessage(TemplateMessage tplMessage)发送模板消息ApiResultCardApi. setActivateUserForm(MemberUserForm memberUserForm)设置开卡字段接口 开发者在创建时填入wx_activate字段后, 需要调用该接口设置用户激活时需要填写的选项,否则一键开卡设置不生效。ApiResultComponentApi. setAuthorizerOption(String authAppId, AuthorizerOption option)设置授权方的公众号的选项信息,如:地理位置上报,语音识别开关,多客服开关。注意,获取各项选项设置信息ApiResultCardApi. setCardPayCell(String cardId, boolean isOpen)设置卡券买单:创建卡券之后,开发者可以通过设置微信买单接口设置该card_id支持微信买单功能。值得开发者注意的是, 设置买单的card_id必须已经配置了门店,否则会报错。ApiResultCardApi. setCardSelfConsumeCell(String cardId, boolean isOpen)设置自助核销:创建卡券之后,开发者可以通过设置微信买单接口设置该card_id支持自助核销功能。值得开发者注意的是, 设置自助核销的card_id必须已经配置了门店,否则会报错。ApiResultCardApi. setGiftCardWxaCode(String wxaAppid, String pageId)上传礼品卡小程序代码 (提供小程序APPID及货架ID,由微信平台为你小程序帐号上传一套现成的礼品卡小程序,直接用于礼品卡售卖)ApiResultCardApi. setTestWhiteList(List<String> openIds, List<String> userNames)由于卡券有审核要求,为方便公众号调试,可以设置一些测试帐号,这些帐号可领取未通过审核的卡券,体验整个流程。 1.同时支持“openid”、“username”两种字段设置白名单,总数上限为10个。 2.设置测试白名单接口为全量设置,即测试名单发生变化时需调用该接口重新传入所有测试人员的ID.ApiResultTmplApi. setTmplIndustry(IndustryType... industryTypes)设置所属行业(每月可修改行业1次,账号仅可使用所属行业中相关的模板)ApiResultTagApi. taggingUsers(int tagId, String... openIds)批量为用户打标签:标签功能目前支持公众号为用户打上最多三个标签ApiResultTagApi. untaggingUsers(int tagId, String... openIds)批量为用户取消标签BooleanCardApi. updateCardCoupon(String cardId, CardCoupon card)支持更新所有卡券类型的部分通用字段及特殊卡券(会员卡、飞机票、电影票、会议门票)中特定字段的信息。ApiResultPayOldApi. updateFeedback(String openId, String feedbackId)维权处理ApiResultCardApi. updateGiftCardPage(GiftCardPage page)更新礼品卡货架com.alibaba.fastjson.JSONObjectCardApi. updateGiftCardUserBalance(CardInfo cardInfo)更新用户礼品卡信息 当礼品卡被使用后,可以通过该接口变更某个礼品卡的余额信息。ApiResultCustomApi. updateKfAccount(String id, String name)更新客服账号ApiResultMediaApi. updateMaterialArticle(String mediaId, int index, MpArticle article)更新永久图文素材com.alibaba.fastjson.JSONObjectCardApi. updateMemberUserInfo(MemberUpdateInfo updateInfo)更新会员 result_bonus 当前用户积分总额 result_balance 当前用户预存总金额 openid 用户openidApiResultTagApi. updateTag(Tag tag)更新标签StringMassApi. uploadArticle(List<MpArticle> articles)上传图文消息,一个图文消息支持1到10条图文 具备微信支付权限的公众号,在使用高级群发接口上传、群发图文消息类型时,可使用<a>\u6807\u7b7e\u52a0\u5165\u5916\u94feStringMediaApi. uploadImage(InputStream is, String fileName)上传图片获取URL 请注意,本接口所上传的图片不占用公众号的素材库中图片数量的5000个的限制。图片仅支持jpg/png格式,大小必须在1MB以下。ApiResultCustomApi. uploadKfAvatar(String accountId, InputStream is, String fileName)上传客服头像StringMediaApi. uploadMaterialArticle(List<MpArticle> articles)上传永久图文素材StringMediaApi. uploadMaterialVideo(InputStream is, String fileName, String title, String introduction)上传永久视频素材MediaUploadResultMediaApi. uploadMedia(boolean isMaterial, InputStream is, String fileName)上传媒体文件:图片(image)、语音(voice)、视频(video)和缩略图(thumb) 此接口只包含图片、语音、缩略图、视频(临时)四种媒体类型的上传MpVideoMediaApi. uploadVideo(InputStream is, String fileName, String title, String description)上传群发中的视频素材 -
Uses of WeixinException in com.foxinmy.weixin4j.mp.component
Methods in com.foxinmy.weixin4j.mp.component that throw WeixinException Modifier and Type Method Description TokenWeixinComponentPreCodeCreator. create()TokenWeixinComponentTokenCreator. create()TokenWeixinTokenComponentCreator. create() -
Uses of WeixinException in com.foxinmy.weixin4j.mp.token
Methods in com.foxinmy.weixin4j.mp.token that throw WeixinException Modifier and Type Method Description TokenWeixinTicketCreator. create()TokenWeixinTokenCreator. create() -
Uses of WeixinException in com.foxinmy.weixin4j.pay
Methods in com.foxinmy.weixin4j.pay that throw WeixinException Modifier and Type Method Description ReceiverResultWeixinPayProxy. addProfitSharingReceiver(Receiver receiver)添加分账接收方 服务商代子商户发起添加分账接收方请求,后续可通过发起分账请求将结算后的钱分到该分账接收方。RefundResultWeixinPayProxy. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee)申请退款RefundResultWeixinPayProxy. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, CurrencyType refundFeeType, String opUserId, String refundDesc, RefundAccountType refundAccountType)申请退款OpenIdResultWeixinPayProxy. authCode2openId(String authCode)授权码查询OPENIDMerchantResultWeixinPayProxy. closeOrder(String outTradeNo)关闭订单MchPayRequestWeixinPayProxy. createAppPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoStore store)创建APP支付请求对象MchPayRequestWeixinPayProxy. createDepositPayRequest(String code, String body, String outTradeNo, double totalFee, String createIp, String openId, String attach, SceneInfoStore store, boolean isFacePay)押金支付请求 注意:(此功能微信已下架,改为邀请开通,因此暂未使用)MchPayRequestWeixinPayProxy. createJSPayRequest(String openId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)创建JSAPI支付请求对象MchPayRequestWeixinPayProxy. createMicroPayRequest(String authCode, String body, String outTradeNo, double totalFee, String createIp, String attach, SceneInfoStore store)提交被扫支付MchPayRequestWeixinPayProxy. createNativePayRequest(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)创建Native支付(扫码支付)链接【模式二】NativePayResponseWeixinPayProxy. createNativePayResponse(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)创建Native支付(扫码支付)回调对象【模式一】MchPayRequestWeixinPayProxy. createPayRequest(MchPayPackage payPackage)创建支付请求对象PrePayWeixinPayProxy. createPrePay(MchPayPackage payPackage)统一下单接口 除被扫支付场景以外,商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易回话标识后再按扫码、JSAPI 、APP等不同场景生成交易串调起支付。MchPayRequestWeixinPayProxy. createWapPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoApp app)创建WAP支付请求对象CustomsOrderResultWeixinPayProxy. declareCustomsOrder(CustomsOrder customsOrder)订单附加信息提交voidWeixinPayProxy. downloadBill(Date billDate, BillType billType, OutputStream outputStream, TarType tarType)下载对账单
1.微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账 单中,跟原支付单订单号一致,bill_type 为 REVOKED;
2.微信在次日 9 点启动生成前一天的对账单,建议商户 9 点半后再获取;
3.对账单中涉及金额的字段单位为“元”。StringWeixinPayProxy. getPayShorturl(String url)native支付URL转短链接:用于扫码原生支付模式一中的二维码链接转成短链接(weixin://wxpay/s/XXXXXX),减小二维码数据量 ,提升扫描速度和精确度。PayfaceAuthinfoWeixinPayProxy. getWxPayfaceAuthinfo(String storeId, String storeName, String deviceId, String attach, String rawdata)微信刷脸支付,获取调用凭证ProfitSharingResultWeixinPayProxy. profitSharing(String transactionId, String outOrderNo, List<ReceiverProfit> receivers, Boolean multi)请求分帐ProfitSharingResultWeixinPayProxy. profitSharingFinish(String transactionId, String outOrderNo, String description)完结分账 1、不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给本商户 2、调用多次分账接口后,需要解冻剩余资金时,调用本接口将剩余的分账金额全部解冻给特约商户 3、已调用请求单次分账后,剩余待分账金额为零,不需要再调用此接口。ProfitSharingResultWeixinPayProxy. profitSharingQuery(String transactionId, String outOrderNo)分帐查询ProfitSharingReturnResultWeixinPayProxy. profitSharingReturn(ProfitId id, String outReturnNo, ReturnAccountType returnAccountType, String returnAccount, int returnAmount, String description)分账回退ProfitSharingReturnResultWeixinPayProxy. profitSharingReturnQuery(ProfitId id, String outReturnNo)回退结果查询CorpPaymentRecordWeixinPayProxy. queryCorpPayment(String outTradeNo)企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果CouponDetailWeixinPayProxy. queryCouponDetail(String openId, String couponId, String stockId)查询代金券详细CouponStockWeixinPayProxy. queryCouponStock(String couponStockId)查询代金券批次CustomsOrderRecordWeixinPayProxy. queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity)订单附加信息查询doubleWeixinPayProxy. queryExchageRate(CurrencyType currencyType, Date date)查询汇率OrderWeixinPayProxy. queryOrder(IdQuery idQuery)订单查询RedpacketRecordWeixinPayProxy. queryRedpack(String outTradeNo)查询红包记录RefundRecordWeixinPayProxy. queryRefund(IdQuery idQuery)退款查询SettlementRecordWeixinPayProxy. querySettlement(boolean status, Pageable pageable, Date start, Date end)查询结算资金ReceiverResultWeixinPayProxy. removeProfitSharingReceiver(Receiver receiver)删除分账接收方 商户发起删除分账接收方请求,删除后不支持将结算后的钱分到该分账接收方。XmlResultWeixinPayProxy. reportInterface(String interfaceUrl, int executeTime, String outTradeNo, String ip, Date time, XmlResult returnXml)接口上报MerchantResultWeixinPayProxy. reverseOrder(IdQuery idQuery)冲正订单(需要证书) 当支付返回失败,或收银系统超时需要取消交易,可以调用该接口 接口逻辑:支 付失败的关单,支付成功的撤销支付 7天以内的单可撤销,其他正常支付的单 如需实现相同功能请调用退款接口 调用扣款接口后请勿立即调用撤销,需要等待5秒以上。先调用查单接口,如果没有确切的返回,再调用撤销CorpPaymentResultWeixinPayProxy. sendCorpPayment(CorpPayment payment)企业付款CouponResultWeixinPayProxy. sendCoupon(String couponStockId, String partnerTradeNo, String openId, String opUserId)发放代金券(需要证书)RedpacketSendResultWeixinPayProxy. sendRedpack(Redpacket redpacket)发放红包 企业向微信用户个人发现金红包 -
Uses of WeixinException in com.foxinmy.weixin4j.pay.api
Methods in com.foxinmy.weixin4j.pay.api that throw WeixinException Modifier and Type Method Description ReceiverResultProfitSharingApi. addReceiver(Receiver receiver)添加分账接收方 服务商代子商户发起添加分账接收方请求,后续可通过发起分账请求将结算后的钱分到该分账接收方。RefundResultPayApi. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee)退款申请(全额退款)RefundResultPayApi. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, CurrencyType refundFeeType, String opUserId, String refundDesc, RefundAccountType refundAccountType)申请退款(请求需要双向证书)OpenIdResultPayApi. authCode2openId(String authCode)授权码查询OPENID接口MerchantResultPayApi. closeOrder(String outTradeNo)关闭订单MchPayRequestPayApi. createAppPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoStore store)创建APP支付请求对象MchPayRequestPayApi. createDepositPayRequest(String code, String body, String outTradeNo, double totalFee, String createIp, String openId, String attach, SceneInfoStore store, boolean isFacePay)创建押金支付MchPayRequestPayApi. createJSPayRequest(String openId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)创建JSAPI支付请求对象MchPayRequestPayApi. createMicroPayRequest(String authCode, String body, String outTradeNo, double totalFee, String createIp, String attach, SceneInfoStore store)提交被扫支付MchPayRequestPayApi. createNativePayRequest(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)创建Native支付(扫码支付)链接【模式二】NativePayResponsePayApi. createNativePayResponse(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)创建Native支付(扫码支付)回调对象【模式一】MchPayRequestPayApi. createPayRequest(MchPayPackage payPackage)创建支付请求对象PrePayPayApi. createPrePay(MchPayPackage payPackage)统一下单接口 除被扫支付场景以外,商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易回话标识后再按扫码、JSAPI 、APP等不同场景生成交易串调起支付。MchPayRequestPayApi. createWapPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoApp app)创建WAP支付请求对象:正常流程用户支付完成后会返回至发起支付的页面,如需返回至指定页面, 则可以在MWEB_URL后拼接上redirect_url参数,来指定回调页面CustomsOrderResultCustomsApi. declareCustomsOrder(CustomsOrder customsOrder)订单附加信息提交voidPayApi. downloadBill(Date billDate, BillType billType, OutputStream outputStream, TarType tarType)下载对账单
1.微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账 单中,跟原支付单订单号一致,bill_type 为 REVOKED;
2.微信在次日 9 点启动生成前一天的对账单,建议商户 9 点半后再获取;
3.对账单中涉及金额的字段单位为“元”。StringPayApi. getShorturl(String url)native支付URL转短链接:用于扫码原生支付模式一中的二维码链接转成短链接(weixin://wxpay/s/XXXXXX),减小二维码数据量 ,提升扫描速度和精确度。protected WeixinRequestExecutorMchApi. getWeixinSSLExecutor()微信SSLPayfaceAuthinfoPayApi. getWxPayfaceAuthinfo(PayfaceAuthinfoRequest request)微信刷脸支付,获取调用凭证ProfitSharingResultProfitSharingApi. profitSharing(String transactionId, String outOrderNo, List<ReceiverProfit> receivers, Boolean multi)请求分帐ProfitSharingResultProfitSharingApi. profitSharingFinish(String transactionId, String outOrderNo, String description)完结分账 1、不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给本商户 2、调用多次分账接口后,需要解冻剩余资金时,调用本接口将剩余的分账金额全部解冻给特约商户 3、已调用请求单次分账后,剩余待分账金额为零,不需要再调用此接口。ProfitSharingResultProfitSharingApi. profitSharingQuery(String transactionId, String outOrderNo)分帐查询ProfitSharingReturnResultProfitSharingApi. profitSharingReturn(ProfitId id, String outReturnNo, ReturnAccountType returnAccountType, String returnAccount, int returnAmount, String description)分账回退ProfitSharingReturnResultProfitSharingApi. profitSharingReturnQuery(ProfitId id, String outReturnNo)回退结果查询CorpPaymentRecordCashApi. queryCorpPayment(String outTradeNo)企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果CouponDetailCouponApi. queryCouponDetail(String openId, String couponId, String stockId)查询代金券详细CouponStockCouponApi. queryCouponStock(String couponStockId)查询代金券批次CustomsOrderRecordCustomsApi. queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity)订单附加信息查询doubleCashApi. queryExchageRate(CurrencyType currencyType, Date date)查询汇率OrderPayApi. queryOrder(IdQuery idQuery)订单查询RedpacketRecordCashApi. queryRedpack(String outTradeNo)查询红包记录RefundRecordPayApi. queryRefund(IdQuery idQuery)退款查询SettlementRecordCashApi. querySettlement(boolean status, Pageable pageable, Date start, Date end)查询结算资金ReceiverResultProfitSharingApi. removeReceiver(Receiver receiver)删除分账接收方 商户发起删除分账接收方请求,删除后不支持将结算后的钱分到该分账接收方。XmlResultPayApi. reportInterface(String interfaceUrl, int executeTime, String outTradeNo, String ip, Date time, XmlResult returnXml)接口上报MerchantResultPayApi. reverseOrder(IdQuery idQuery)冲正订单(需要证书) 当支付返回失败,或收银系统超时需要取消交易,可以调用该接口 接口逻辑:支 付失败的关单,支付成功的撤销支付 7天以内的单可撤销,其他正常支付的单 如需实现相同功能请调用退款接口 调用扣款接口后请勿立即调用撤销,需要等待5秒以上。先调用查单接口,如果没有确切的返回,再调用撤销CorpPaymentResultCashApi. sendCorpPayment(CorpPayment payment)企业付款为企业提供付款至用户零钱的能力CouponResultCouponApi. sendCoupon(String couponStockId, String partnerTradeNo, String openId, String opUserId)发放代金券(需要证书)RedpacketSendResultCashApi. sendRedpack(Redpacket redpacket)发放红包 企业向微信用户个人发现金红包 -
Uses of WeixinException in com.foxinmy.weixin4j.payment
Methods in com.foxinmy.weixin4j.payment that throw WeixinException Modifier and Type Method Description RefundResultWeixinPayProxy. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee)Deprecated.申请退款RefundResultWeixinPayProxy. applyRefund(IdQuery idQuery, String outRefundNo, double totalFee, double refundFee, CurrencyType refundFeeType, String opUserId, String refundDesc, RefundAccountType refundAccountType)Deprecated.申请退款OpenIdResultWeixinPayProxy. authCode2openId(String authCode)Deprecated.授权码查询OPENIDMerchantResultWeixinPayProxy. closeOrder(String outTradeNo)Deprecated.关闭订单MchPayRequestWeixinPayProxy. createAppPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoStore store)Deprecated.创建APP支付请求对象MchPayRequestWeixinPayProxy. createJSPayRequest(String openId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建JSAPI支付请求对象MchPayRequestWeixinPayProxy. createMicroPayRequest(String authCode, String body, String outTradeNo, double totalFee, String createIp, String attach, SceneInfoStore store)Deprecated.提交被扫支付MchPayRequestWeixinPayProxy. createNativePayRequest(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)链接【模式二】NativePayResponseWeixinPayProxy. createNativePayResponse(String productId, String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach)Deprecated.创建Native支付(扫码支付)回调对象【模式一】MchPayRequestWeixinPayProxy. createPayRequest(MchPayPackage payPackage)Deprecated.创建支付请求对象PrePayWeixinPayProxy. createPrePay(MchPayPackage payPackage)Deprecated.统一下单接口 除被扫支付场景以外,商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易回话标识后再按扫码、JSAPI 、APP等不同场景生成交易串调起支付。MchPayRequestWeixinPayProxy. createWapPayRequest(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, String attach, SceneInfoApp app)Deprecated.创建WAP支付请求对象CustomsOrderResultWeixinPayProxy. declareCustomsOrder(CustomsOrder customsOrder)Deprecated.订单附加信息提交voidWeixinPayProxy. downloadBill(Date billDate, BillType billType, OutputStream outputStream, TarType tarType)Deprecated.下载对账单
1.微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账 单中,跟原支付单订单号一致,bill_type 为 REVOKED;
2.微信在次日 9 点启动生成前一天的对账单,建议商户 9 点半后再获取;
3.对账单中涉及金额的字段单位为“元”。StringWeixinPayProxy. getPayShorturl(String url)Deprecated.native支付URL转短链接:用于扫码原生支付模式一中的二维码链接转成短链接(weixin://wxpay/s/XXXXXX),减小二维码数据量 ,提升扫描速度和精确度。CorpPaymentRecordWeixinPayProxy. queryCorpPayment(String outTradeNo)Deprecated.企业付款查询 用于商户的企业付款操作进行结果查询,返回付款操作详细结果CouponDetailWeixinPayProxy. queryCouponDetail(String openId, String couponId, String stockId)Deprecated.查询代金券详细CouponStockWeixinPayProxy. queryCouponStock(String couponStockId)Deprecated.查询代金券批次CustomsOrderRecordWeixinPayProxy. queryCustomsOrder(IdQuery idQuery, CustomsCity customsCity)Deprecated.订单附加信息查询doubleWeixinPayProxy. queryExchageRate(CurrencyType currencyType, Date date)Deprecated.查询汇率OrderWeixinPayProxy. queryOrder(IdQuery idQuery)Deprecated.订单查询RedpacketRecordWeixinPayProxy. queryRedpack(String outTradeNo)Deprecated.查询红包记录RefundRecordWeixinPayProxy. queryRefund(IdQuery idQuery)Deprecated.退款查询SettlementRecordWeixinPayProxy. querySettlement(boolean status, Pageable pageable, Date start, Date end)Deprecated.查询结算资金XmlResultWeixinPayProxy. reportInterface(String interfaceUrl, int executeTime, String outTradeNo, String ip, Date time, XmlResult returnXml)Deprecated.接口上报MerchantResultWeixinPayProxy. reverseOrder(IdQuery idQuery)Deprecated.冲正订单(需要证书) 当支付返回失败,或收银系统超时需要取消交易,可以调用该接口 接口逻辑:支 付失败的关单,支付成功的撤销支付 7天以内的单可撤销,其他正常支付的单 如需实现相同功能请调用退款接口 调用扣款接口后请勿立即调用撤销,需要等待5秒以上。先调用查单接口,如果没有确切的返回,再调用撤销CorpPaymentResultWeixinPayProxy. sendCorpPayment(CorpPayment payment)Deprecated.企业付款CouponResultWeixinPayProxy. sendCoupon(String couponStockId, String partnerTradeNo, String openId, String opUserId)Deprecated.发放代金券(需要证书)RedpacketSendResultWeixinPayProxy. sendRedpack(Redpacket redpacket)Deprecated.发放红包 企业向微信用户个人发现金红包 -
Uses of WeixinException in com.foxinmy.weixin4j.qy
Methods in com.foxinmy.weixin4j.qy that throw WeixinException Modifier and Type Method Description IdParameterWeixinProxy. addTagUsers(int tagId, List<String> userIds, List<Integer> partyIds)新增标签成员(标签对管理组可见且未加锁,成员属于管理组管辖范围)ApiResultWeixinProxy. batchDeleteUser(List<String> userIds)批量删除成员StringWeixinProxy. batchInviteUser(IdParameter parameter, Callback callback, String tips)批量邀请成员关注StringWeixinProxy. batchReplaceParty(String mediaId, Callback callback)批量覆盖部门,本接口以partyid为键,全量覆盖企业号通讯录组织架构,任务完成后企业号通讯录组织架构与提交的文件完全保持一致。StringWeixinProxy. batchReplaceUser(String mediaId, Callback callback)批量覆盖成员,本接口以userid为主键,全量覆盖企业号通讯录成员,任务完成后企业号通讯录成员与提交的文件完全保持一致。StringWeixinProxy. batchSyncUser(String mediaId, Callback callback)批量更新成员,本接口以userid为主键,增量更新企业号通讯录成员。StringWeixinProxy. batchUploadParties(List<Party> parties)批量上传部门StringWeixinProxy. batchUploadUsers(List<User> users)批量上传成员voidWeixinSuiteProxy. cacheSuiteTicket(String suiteId, String suiteTicket)缓存套件ticketApiResultWeixinProxy. clearChatNotify(String targetId, String owner, ChatType chatType)清除会话未读状态MediaCounterWeixinProxy. countMaterialMedia(int agentid)获取永久媒体素材的总数StringWeixinProxy. createChat(ChatInfo chatInfo)创建会话 如果会话id为空,程序会自动生成一个唯一IDApiResultWeixinProxy. createMenu(int agentid, List<Button> buttons)自定义菜单(管理员须拥有应用的管理权限 并且应用必须设置在回调模式)intWeixinProxy. createParty(Party party)创建部门(根部门的parentid为1)intWeixinProxy. createTag(Tag tag)创建标签(创建的标签属于管理组;默认为未加锁状态)ApiResultWeixinProxy. createUser(User user)创建成员ApiResultWeixinProxy. createUser(User user, InputStream avatar)创建成员ApiResultWeixinProxy. deleteMaterialMedia(int agentid, String mediaId)删除永久媒体素材ApiResultWeixinProxy. deleteMenu(int agentid)删除菜单(管理员须拥有应用的管理权限 并且应用必须设置在回调模式)ApiResultWeixinProxy. deleteParty(int partyId)删除部门(不能删除根部门;不能删除含有子部门、成员的部门)ApiResultWeixinProxy. deleteTag(int tagId)删除标签(管理组必须是指定标签的创建者 并且标签的成员列表为空)IdParameterWeixinProxy. deleteTagUsers(int tagId, List<String> userIds, List<Integer> partyIds)删除标签成员(标签对管理组可见且未加锁,成员属于管理组管辖范围)ApiResultWeixinProxy. deleteUser(String userid)删除成员List<MpArticle>WeixinProxy. downloadArticle(int agentid, String mediaId)下载永久图文素材MediaDownloadResultWeixinProxy. downloadMedia(int agentid, String mediaId)下载媒体文件AgentInfoWeixinProxy. getAgent(int agentid)获取企业号某个应用的基本信息,包括头像、昵称、帐号类型、认证类型、可见范围等信息BatchResultWeixinProxy. getBatchResult(String jobId)获取异步任务执行的结果ChatInfoWeixinProxy. getChat(String chatId)获取会话IdParameter[]WeixinProxy. getKfList(KfType kfType)获取客服列表StringWeixinSuiteProxy. getLoginUrl(String corpId, LoginTargetType targetType, int agentId)获取登录企业号官网的urlList<Button>WeixinProxy. getMenu(int agentid)查询菜单(管理员须拥有应用的管理权限 并且应用必须设置在回调模式。)OUserInfoWeixinProxy. getOUserInfoByCode(String authCode)获取企业号管理员登录信息OUserInfoWeixinSuiteProxy. getOUserInfoByCode(String authCode)第三方套件获取企业号管理员登录信息StringWeixinSuiteProxy. getPreSuiteTicket(String suiteId)获取套件的预授权码 需先缓存ticketStringWeixinSuiteProxy. getSuiteAuthorizationURL(String suiteId)应用套件授权 需先缓存ticket redirectUri默认填写weixin4j.properties#suite.oauth.redirect.uri state默认填写stateStringWeixinSuiteProxy. getSuiteAuthorizationURL(String suiteId, String redirectUri, String state)应用套件授权 需先缓存ticket,在授权完成之后需要调用SuiteApi#exchangeAuthInfo方法 ,否则无法缓存token相关导致后续的组件接口调用失败ContactsWeixinProxy. getTagUsers(int tagId)获取标签成员(管理组须拥有“获取标签成员”的接口权限,标签须对管理组可见;返回列表仅包含管理组管辖范围的成员)UserWeixinProxy. getUser(String userid)获取成员信息UserWeixinProxy. getUserByCode(String code)code获取userid(管理员须拥有agent的使用权限;agentid必须和跳转链接时所在的企业应用ID相同。)com.alibaba.fastjson.JSONObjectWeixinProxy. getUserIdByCode(String code)根据code获取成员ID信息List<String>WeixinProxy. getWechatServerIp()获取微信服务器IP地址InviteTypeWeixinProxy. inviteUser(String userId, String tips)邀请成员关注(管理员须拥有该成员的查看权限)List<AgentOverview>WeixinProxy. listAgentOverview()获取应用概况列表List<MediaItem>WeixinProxy. listAllMaterialMedia(int agentid, MediaType mediaType)获取全部的媒体素材List<User>WeixinProxy. listAllUser(UserStatus userStatus)获取权限范围内的所有成员列表MediaRecordWeixinProxy. listMaterialMedia(int agentid, MediaType mediaType, Pageable pageable)获取媒体素材记录列表List<Party>WeixinProxy. listParty(int partyId)查询部门列表(以部门的order字段从小到大排列)List<Tag>WeixinProxy. listTag()获取标签列表List<User>WeixinProxy. listUser(int partyId)获取部门下所有状态成员(不进行递归)List<User>WeixinProxy. listUser(int partyId, boolean fetchChild, UserStatus userStatus, boolean findDetail)获取部门成员StringWeixinProxy. openid2userid(String openid)openid转换成userid:该接口主要应用于使用微信支付、微信红包和企业转账之后的结果查询, 开发者需要知道某个结果事件的openid对应企业号内成员的信息时,可以通过调用该接口进行转换查询。ApiResultWeixinProxy. quitChat(String chatId, String operator)退出会话ApiResultWeixinProxy. sendChatMessage(ChatMessage message)发送会话消息ApiResultWeixinProxy. sendCustomeMessage(CustomeMessage message)发送客服消息IdParameterWeixinProxy. sendNotifyMessage(NotifyMessage message)发送消息提醒(需要管理员对应用有使用权限,对收件人touser、toparty、totag有查看权限,否则本次调用失败)ApiResultWeixinProxy. setAgent(AgentSetter agentSet)设置企业应用的选项设置信息,如:地理位置上报等List<String>WeixinProxy. setChatMute(List<ChatMute> chatMutes)设置成员接收到的消息是否提醒。主要场景是用于对接企业im的在线状态,如成员处于在线状态时,可以设置该成员的消息免打扰。当成员离线时,关闭免打扰状态 ,对微信端进行提醒。ApiResultWeixinProxy. updateChat(ChatInfo chatInfo, String operator, List<String> addUsers, List<String> deleteUsers)更新会话StringWeixinProxy. updateMaterialArticle(int agentid, String mediaId, List<MpArticle> articles)修改永久图文素材ApiResultWeixinProxy. updateParty(Party party)更新部门(如果非必须的字段未指定 则不更新该字段之前的设置值)ApiResultWeixinProxy. updateTag(Tag tag)更新标签(管理组必须是指定标签的创建者)ApiResultWeixinProxy. updateUser(User user)更新用户(如果非必须的字段未指定 则不更新该字段之前的设置值)ApiResultWeixinProxy. updateUser(User user, InputStream avatar)更新用户(如果非必须的字段未指定 则不更新该字段之前的设置值)StringWeixinProxy. uploadImage(InputStream is, String fileName)上传图文消息内的图片:用于上传图片到企业号服务端,接口返回图片url,请注意,该url仅可用于图文消息的发送, 且每个企业每天最多只能上传100张图片。StringWeixinProxy. uploadMaterialArticle(int agentid, List<MpArticle> articles)上传永久图文素材MediaUploadResultWeixinProxy. uploadMedia(int agentid, InputStream is, String fileName)上传媒体文件ApiResultWeixinProxy. userAuthsucc(String userId)开启二次验证成功时调用(管理员须拥有userid对应员工的管理权限)String[]WeixinProxy. userid2openid(String userid, int agentid)userid转换成openid:该接口使用场景为微信支付、微信红包和企业转账,企业号用户在使用微信支付的功能时, 需要自行将企业号的userid转成openid。 在使用微信红包功能时,需要将应用id和userid转成appid和openid才能使用。 -
Uses of WeixinException in com.foxinmy.weixin4j.qy.api
Methods in com.foxinmy.weixin4j.qy.api that throw WeixinException Modifier and Type Method Description IdParameterTagApi. addTagUsers(int tagId, List<String> userIds, List<Integer> partyIds)新增标签成员(标签对管理组可见且未加锁,成员属于管理组管辖范围。)ApiResultUserApi. authsucc(String userId)开启二次验证成功时调用(管理员须拥有userid对应员工的管理权限)ApiResultUserApi. batchDeleteUser(List<String> userIds)批量删除成员StringMediaApi. batchUploadParties(List<Party> parties)批量上传部门StringMediaApi. batchUploadUsers(List<User> users)批量上传成员ApiResultChatApi. clearChatNotify(String targetId, String owner, ChatType chatType)清除会话未读状态MediaCounterMediaApi. countMaterialMedia(int agentid)获取永久媒体素材的总数StringChatApi. createChat(ChatInfo chatInfo)创建会话 如果会话id为空,程序会自动生成一个唯一IDApiResultMenuApi. createMenu(int agentid, List<Button> buttons)自定义菜单(管理员须拥有应用的管理权限 并且应用必须设置在回调模式)intPartyApi. createParty(Party party)创建部门(根部门的parentid为1)intTagApi. createTag(Tag tag)创建标签(创建的标签属于管理组;默认为加锁状态。加锁状态下只有本管理组才可以增删成员,解锁状态下其它管理组也可以增删成员)ApiResultUserApi. createUser(User user)创建成员ApiResultUserApi. createUser(User user, InputStream avatar)创建成员ApiResultMediaApi. deleteMaterialMedia(int agentid, String mediaId)删除永久媒体素材ApiResultMenuApi. deleteMenu(int agentid)删除菜单(管理员须拥有应用的管理权限 并且应用必须设置在回调模式)ApiResultPartyApi. deleteParty(int partId)删除部门(不能删除根部门;不能删除含有子部门、成员的部门)ApiResultTagApi. deleteTag(int tagId)删除标签(管理组必须是指定标签的创建者,并且标签的成员列表为空。)IdParameterTagApi. deleteTagUsers(int tagId, List<String> userIds, List<Integer> partyIds)删除标签成员(标签对管理组未加锁,成员属于管理组管辖范围)ApiResultUserApi. deleteUser(String userid)删除成员List<MpArticle>MediaApi. downloadArticle(int agentid, String mediaId)下载永久图文素材MediaDownloadResultMediaApi. downloadMedia(int agentid, String mediaId)下载媒体文件OUserInfoSuiteApi. exchangeAuthInfo(String authCode)临时授权码换取授权方的永久授权码,并换取授权信息、企业access_tokenAgentInfoAgentApi. getAgent(int agentid)获取企业号某个应用的基本信息,包括头像、昵称、帐号类型、认证类型、可见范围等信息AgentInfoSuiteApi. getAgent(String authCorpId, int agentid)获取企业号应用OUserInfoSuiteApi. getAuthInfo(String authCorpId)获取企业号的授权信息BatchResultBatchApi. getBatchResult(String jobId)获取异步任务执行的结果ChatInfoChatApi. getChat(String chatId)获取会话IdParameter[]NotifyApi. getKfList(KfType kfType)获取客服列表StringProviderApi. getLoginUrl(String corpId, LoginTargetType targetType, int agentId)获取登录企业号官网的urlList<Button>MenuApi. getMenu(int agentid)查询菜单(管理员须拥有应用的管理权限 并且应用必须设置在回调模式。)OUserInfoProviderApi. getOUserInfoByCode(String authCode)第三方套件获取企业号管理员登录信息OUserInfoUserApi. getOUserInfoByCode(String authCode)获取企业号管理员登录信息ContactsTagApi. getTagUsers(int tagId)获取标签成员(管理组须拥有“获取标签成员”的接口权限,返回列表仅包含管理组管辖范围的成员。)UserUserApi. getUser(String userid)获取成员UserUserApi. getUserByCode(String code)根据code获取用户信息com.alibaba.fastjson.JSONObjectUserApi. getUserIdByCode(String code)根据code获取成员ID信息List<String>HelperApi. getWechatServerIp()获取微信服务器IP地址StringBatchApi. inviteUser(IdParameter parameter, Callback callback, String tips)批量邀请成员关注InviteTypeUserApi. inviteUser(String userId, String tips)邀请成员关注(管理员须拥有该成员的查看权限)List<AgentOverview>AgentApi. listAgentOverview()获取应用概况列表List<MediaItem>MediaApi. listAllMaterialMedia(int agentid, MediaType mediaType)获取全部的媒体素材List<User>UserApi. listAllUser(UserStatus userStatus)获取权限范围内的所有成员列表MediaRecordMediaApi. listMaterialMedia(int agentid, MediaType mediaType, Pageable pageable)获取媒体素材记录列表List<Party>PartyApi. listParty(int partId)查询部门列表(以部门的order字段从小到大排列)List<Tag>TagApi. listTag()获取标签列表List<User>UserApi. listUser(int partyId)获取部门下所有状态成员(不进行递归)List<User>UserApi. listUser(int partyId, boolean fetchChild, UserStatus userStatus, boolean findDetail)获取部门成员StringUserApi. openid2userid(String openid)openid转换成userid:该接口主要应用于使用微信支付、微信红包和企业转账之后的结果查询, 开发者需要知道某个结果事件的openid对应企业号内成员的信息时,可以通过调用该接口进行转换查询。ApiResultChatApi. quitChat(String chatId, String operator)退出会话StringBatchApi. replaceParty(String mediaId, Callback callback)批量覆盖部门,本接口以partyid为键,全量覆盖企业号通讯录组织架构,任务完成后企业号通讯录组织架构与提交的文件完全保持一致。StringBatchApi. replaceUser(String mediaId, Callback callback)批量覆盖成员,本接口以userid为主键,全量覆盖企业号通讯录成员,任务完成后企业号通讯录成员与提交的文件完全保持一致。ApiResultChatApi. sendChatMessage(ChatMessage message)发送消息ApiResultNotifyApi. sendCustomeMessage(CustomeMessage message)发送客服消息IdParameterNotifyApi. sendNotifyMessage(NotifyMessage message)发送消息提醒(需要管理员对应用有使用权限,对收件人touser、toparty、totag有查看权限,否则本次调用失败)ApiResultAgentApi. setAgent(AgentSetter agentSet)设置企业应用的选项设置信息,如:地理位置上报等ApiResultSuiteApi. setAgent(String authCorpId, AgentSetter agentSet)设置企业应用的选项设置信息,如:地理位置上报等List<String>ChatApi. setChatMute(List<ChatMute> chatMutes)设置成员接收到的消息是否提醒。主要场景是用于对接企业im的在线状态,如成员处于在线状态时,可以设置该成员的消息免打扰。当成员离线时,关闭免打扰状态 ,对微信端进行提醒。ApiResultSuiteApi. setSuiteSession(int... appids)设置套件授权配置:如果需要对某次授权进行配置,则调用本接口,目前仅可以设置哪些应用可以授权,不调用则默认允许所有应用进行授权。StringBatchApi. syncUser(String mediaId, Callback callback)批量更新成员,本接口以userid为主键,增量更新企业号通讯录成员。ApiResultChatApi. updateChat(ChatInfo chatInfo, String operator, List<String> addUsers, List<String> deleteUsers)更新会话StringMediaApi. updateMaterialArticle(int agentid, String mediaId, List<MpArticle> articles)修改永久图文素材ApiResultPartyApi. updateParty(Party party)更新部门(如果非必须的字段未指定 则不更新该字段之前的设置值)ApiResultTagApi. updateTag(Tag tag)更新标签(管理组必须是指定标签的创建者)ApiResultUserApi. updateUser(User user)更新用户(如果非必须的字段未指定 则不更新该字段之前的设置值)ApiResultUserApi. updateUser(User user, InputStream avatar)更新用户(如果非必须的字段未指定 则不更新该字段之前的设置值)StringMediaApi. uploadImage(InputStream is, String fileName)上传图文消息内的图片:用于上传图片到企业号服务端,接口返回图片url,请注意,该url仅可用于图文消息的发送, 且每个企业每天最多只能上传100张图片。StringMediaApi. uploadMaterialArticle(int agentid, List<MpArticle> articles)上传永久图文素材MediaUploadResultMediaApi. uploadMedia(int agentid, InputStream is, String fileName)上传媒体文件:分别有图片(image)、语音(voice)、视频(video),普通文件(file)String[]UserApi. userid2openid(String userid, int agentid)userid转换成openid:该接口使用场景为微信支付、微信红包和企业转账,企业号用户在使用微信支付的功能时, 需要自行将企业号的userid转成openid。 在使用微信红包功能时,需要将应用id和userid转成appid和openid才能使用。 -
Uses of WeixinException in com.foxinmy.weixin4j.qy.jssdk
Methods in com.foxinmy.weixin4j.qy.jssdk that throw WeixinException Modifier and Type Method Description StringJSSDKContactConfigurator. toJSONConfig(String url)生成config配置JSON串StringJSSDKContactConfigurator. toJSONConfig(String url, JSSDKContactParameter parameter)生成config配置JSON串 -
Uses of WeixinException in com.foxinmy.weixin4j.qy.suite
Methods in com.foxinmy.weixin4j.qy.suite that throw WeixinException Modifier and Type Method Description TokenWeixinSuitePreCodeCreator. create()TokenWeixinSuiteTokenCreator. create()TokenWeixinTokenSuiteCreator. create() -
Uses of WeixinException in com.foxinmy.weixin4j.qy.token
Methods in com.foxinmy.weixin4j.qy.token that throw WeixinException Modifier and Type Method Description TokenWeixinProviderTokenCreator. create()TokenWeixinTicketCreator. create()TokenWeixinTokenCreator. create() -
Uses of WeixinException in com.foxinmy.weixin4j.token
Methods in com.foxinmy.weixin4j.token that throw WeixinException Modifier and Type Method Description voidTicketManager. cachingTicket(String ticket)缓存ticketStringTicketManager. getAccessTicket()获取ticketStringTokenManager. getAccessToken()获取token字符串TokenTicketManager. getTicket()获取ticket对象 -
Uses of WeixinException in com.foxinmy.weixin4j.wxa.api
Methods in com.foxinmy.weixin4j.wxa.api that throw WeixinException Modifier and Type Method Description StringTemplateApi. addTemplate(String id, int[] keywordIds)组合模板并添加至帐号下的个人模板库byte[]QrCodeApi. createWxaQrCode(String path, Integer width)获取小程序二维码.voidTemplateApi. deleteTemplate(String id)删除帐号下的某个模板TemplateTemplateApi. getTemplateInLibrary(String id)获取模板库某个模板标题下关键词库List<Template>TemplateApi. getTemplates(Pageable pageable)获取帐号下已存在的模板列表Pagedata<Template>TemplateApi. getTemplatesInLibrary(Pageable pageable)获取小程序模板库标题列表byte[]QrCodeApi. getWxaCode(String path, Integer width, Boolean autoColor, Color lineColor, Boolean hyaline)获取小程序码.byte[]QrCodeApi. getWxaCodeUnlimit(String scene, String page, Integer width, Boolean autoColor, Color lineColor, Boolean hyaline)获取小程序码.voidSecCheckApi. imgSecCheck(InputStream inputStream)校验一张图片是否含有违法违规内容。voidSecCheckApi. imgSecCheck(InputStream inputStream, int maxWidth, int maxHeight)SessionLoginApi. jscode2session(String jsCode)SessionLoginApi. jscode2session(String jsCode, String grantType)登录凭证校验StringSecCheckApi. mediaCheckAsync(String mediaUrl, int mediaType)异步校验图片/音频是否含有违法违规内容。voidSecCheckApi. msgSecCheck(String content)检查一段文本是否含有违法违规内容。voidCustomMessageApi. sendCustomMessage(CustomMessage customMessage)发送客服消息。voidSubscribeMessageApi. sendSubscribeMessage(String toUser, String templateId, String page, Map<String,String> data)发送订阅消息voidTemplateMessageApi. sendTemplateMessage(String toUser, String templateId, String page, String formId, Map<String,String> data, String emphasisKeyword)发送模板消息voidCustomMessageApi. typingCustomMessage(String toUser, Command command)客服输入状态。
-