public interface WxMpMemberCardService
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
MEMBER_CARD_ACTIVATE |
static String |
MEMBER_CARD_ACTIVATE_URL
获取会员卡开卡插件参数
|
static String |
MEMBER_CARD_ACTIVATEUSERFORM
会员卡激活之微信开卡接口(wx_activate=true情况调用)
|
static String |
MEMBER_CARD_CREAET |
static String |
MEMBER_CARD_UPDATE
会员卡信息更新
|
static String |
MEMBER_CARD_UPDATE_USER |
static String |
MEMBER_CARD_USER_INFO_GET |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
activateMemberCard(WxMpMemberCardActivatedMessage activatedMessage)
会员卡激活接口
|
WxMpCardCreateResult |
createMemberCard(String createJson)
会员卡创建接口
|
WxMpCardCreateResult |
createMemberCard(WxMpMemberCardCreateMessage createMessageMessage)
会员卡创建接口
|
ActivatePluginParam |
getActivatePluginParam(String cardId,
String outStr)
获取会员卡开卡插件参数(跳转型开卡组件需要参数)
|
WxMpMemberCardUserInfoResult |
getUserInfo(String cardId,
String code)
拉取会员信息接口
|
WxMpService |
getWxMpService()
得到WxMpService
|
MemberCardActivateUserFormResult |
setActivateUserForm(MemberCardActivateUserFormRequest userFormRequest)
设置会员卡激活的字段(会员卡设置:wx_activate=true 时需要)
|
CardUpdateResult |
updateCardInfo(MemberCardUpdateRequest memberCardUpdateRequest)
更新会员卡信息
|
WxMpMemberCardUpdateResult |
updateUserMemberCard(WxMpMemberCardUpdateMessage updateUserMessage)
当会员持卡消费后,支持开发者调用该接口更新会员信息。
|
static final String MEMBER_CARD_ACTIVATEUSERFORM
WxMpService getWxMpService()
WxMpCardCreateResult createMemberCard(String createJson) throws WxErrorException
createJson - WxErrorExceptionWxMpCardCreateResult createMemberCard(WxMpMemberCardCreateMessage createMessageMessage) throws WxErrorException
createMessageMessage - WxErrorExceptionString activateMemberCard(WxMpMemberCardActivatedMessage activatedMessage) throws WxErrorException
activatedMessage - 激活所需参数WxErrorException - 接口调用失败抛出的异常WxMpMemberCardUserInfoResult getUserInfo(String cardId, String code) throws WxErrorException
cardId - 会员卡的CardId,微信分配code - 领取会员的会员卡CodeWxErrorException - 接口调用失败抛出的异常WxMpMemberCardUpdateResult updateUserMemberCard(WxMpMemberCardUpdateMessage updateUserMessage) throws WxErrorException
1.开发者可以同时传入add_bonus和bonus解决由于同步失败带来的幂等性问题。同时传入add_bonus和bonus时 add_bonus作为积分变动消息中的变量值,而bonus作为卡面上的总积分额度显示。余额变动同理。 2.开发者可以传入is_notify_bonus控制特殊的积分对账变动不发送消息,余额变动同理。
updateUserMessage - 更新会员信息所需字段消息WxErrorException - 接口调用失败抛出的异常MemberCardActivateUserFormResult setActivateUserForm(MemberCardActivateUserFormRequest userFormRequest) throws WxErrorException
userFormRequest - WxErrorExceptionActivatePluginParam getActivatePluginParam(String cardId, String outStr) throws WxErrorException
cardId - outStr - WxErrorExceptionCardUpdateResult updateCardInfo(MemberCardUpdateRequest memberCardUpdateRequest) throws WxErrorException
memberCardUpdateRequest - WxErrorExceptionCopyright © 2018. All rights reserved.