public class WechatDiscountCardApi extends AbstractApi
| Constructor and Description |
|---|
WechatDiscountCardApi(WechatPayClient wechatPayClient,
String tenantId)
Instantiates a new Abstract api.
|
| Modifier and Type | Method and Description |
|---|---|
WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> |
addUserRecords(String outCardCode)
查询先享卡订单API
|
WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> |
addUserRecords(UserRecordsParams params)
增加用户记录API
|
WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> |
preRequest(DiscountCardPreRequestParams params)
预受理领卡请求API
|
billDownload, billResource, client, container, downloadFundFlowBill, downloadTradeBill, Get, Get, getMapper, Post, Post, tenantId, wechatMetaBeanpublic WechatDiscountCardApi(WechatPayClient wechatPayClient, String tenantId)
wechatPayClient - the wechat pay clienttenantId - the tenant idpublic WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> preRequest(DiscountCardPreRequestParams params)
商户在引导用户跳转先享卡领卡前,需要请求先享卡预受理领卡请求接口,再根据返回数据引导用户跳转领卡。
params - the paramspublic WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> addUserRecords(UserRecordsParams params)
当用户在商户侧消费时,用户完成了微信先享卡的目标或者获取使用优惠时,商户需要把这个信息同步给微信先享卡平台,用于在微信先享卡小程序展示及先享卡到期后的用户结算。
params - the paramspublic WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> addUserRecords(String outCardCode)
商户可以通过商户领卡号查询指定的先享卡,可用于对账或者界面展示。
outCardCode - 商户领卡号Copyright © 2021. All rights reserved.