public class CardProxy extends MPlatformProxy
Description:
tokenManagerweixinRequestClient| 构造器和说明 |
|---|
CardProxy(TokenManager tokenManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResult |
activateMemberCard(MemberCardInitInfo memberInitInfo)
激活方式说明 接口激活通常需要开发者开发用户填写资料的网页。
|
String |
createCardCoupon(CardCoupon cardCoupon)
创建卡券:创建卡券接口是微信卡券的基础接口,用于创建一类新的卡券,获取card_id,创建成功并通过审核后,
商家可以通过文档提供的其他接口将卡券下发给用户,每次成功领取,库存数量相应扣除。
|
QrcodeResult |
createCardQR(Integer expireSeconds,
CardQR... cardQRs)
创建卡券二维码: 开发者可调用该接口生成一张卡券二维码供用户扫码后添加卡券到卡包。
|
MemberUserInfo |
getMemberUserInfo(String cardId,
String code)
拉取会员信息接口。
|
CardStatus |
queryCardStatus(String cardId)
查看获取卡券的审核状态
|
ApiResult |
setActivateUserForm(MemberUserForm memberUserForm)
设置开卡字段接口 开发者在创建时填入wx_activate字段后, 需要调用该接口设置用户激活时需要填写的选项,否则一键开卡设置不生效。
|
ApiResult |
setCardPayCell(String cardId,
boolean isOpen)
设置卡券买单:创建卡券之后,开发者可以通过设置微信买单接口设置该card_id支持微信买单功能。
|
ApiResult |
setCardSelfConsumeCell(String cardId,
boolean isOpen)
设置自助核销:创建卡券之后,开发者可以通过设置微信买单接口设置该card_id支持自助核销功能。
|
ApiResult |
setTestWhiteList(List<String> openIds,
List<String> userNames)
由于卡券有审核要求,为方便公众号调试,可以设置一些测试帐号,这些帐号可领取未通过审核的卡券,体验整个流程。
|
Boolean |
updateCardCoupon(String cardId,
CardCoupon card)
支持更新所有卡券类型的部分通用字段及特殊卡券(会员卡、飞机票、电影票、会议门票)中特定字段的信息。
|
com.alibaba.fastjson.JSONObject |
updateMemberUserInfo(MemberCardUpdateInfo updateInfo)
更新会员 result_bonus 当前用户积分总额 result_balance 当前用户预存总金额 openid 用户openid
|
getTokenManagerpublic CardProxy(TokenManager tokenManager)
public String createCardCoupon(CardCoupon cardCoupon) throws WeixinException
cardCoupon - 卡券对象WeixinExceptionCardCoupons,
MediaProxy.uploadImage(java.io.InputStream, String)public ApiResult setCardPayCell(String cardId, boolean isOpen) throws WeixinException
cardId - 卡券IDisOpen - 是否开启买单功能,填true/falseWeixinExceptioncreateCardCoupon(CardCoupon)public ApiResult setCardSelfConsumeCell(String cardId, boolean isOpen) throws WeixinException
cardId - 卡券IDisOpen - 是否开启买单功能,填true/falseWeixinExceptioncreateCardCoupon(CardCoupon)public QrcodeResult createCardQR(Integer expireSeconds, CardQR... cardQRs) throws WeixinException
expireSeconds - 指定二维码的有效时间,范围是60 ~ 1800秒。不填默认为365天有效cardQRs - 二维码参数:二维码领取单张卡券/多张卡券WeixinExceptionQrcodeResult,
QrcodeParameter,
投放卡券public ApiResult setTestWhiteList(List<String> openIds, List<String> userNames) throws WeixinException
openIds - the open idsuserNames - the user namesWeixinExceptionpublic CardStatus queryCardStatus(String cardId) throws WeixinException
WeixinExceptionpublic Boolean updateCardCoupon(String cardId, CardCoupon card) throws WeixinException
cardId - the card idcard - the cardWeixinException - the weixin exceptionpublic ApiResult activateMemberCard(MemberCardInitInfo memberInitInfo) throws WeixinException
WeixinExceptionpublic ApiResult setActivateUserForm(MemberUserForm memberUserForm) throws WeixinException
WeixinExceptionpublic MemberUserInfo getMemberUserInfo(String cardId, String code) throws WeixinException
cardId - the card idcode - the codeWeixinExceptionpublic com.alibaba.fastjson.JSONObject updateMemberUserInfo(MemberCardUpdateInfo updateInfo) throws WeixinException
updateInfo - WeixinExceptionCopyright © 2020. All rights reserved.