类 WechatDiscountCardApi
- java.lang.Object
-
- cn.crushes.cloud.core.pay.wechat.v3.AbstractApi
-
- cn.crushes.cloud.core.pay.wechat.v3.WechatDiscountCardApi
-
public class WechatDiscountCardApi extends AbstractApi
微信支付先享卡.- 作者:
- youta
-
-
构造器概要
构造器 构造器 说明 WechatDiscountCardApi(WechatPayClient wechatPayClient, String tenantId)Instantiates a new Abstract api.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>addUserRecords(UserRecordsParams params)增加用户记录APIWechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>addUserRecords(String outCardCode)查询先享卡订单APIWechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>preRequest(DiscountCardPreRequestParams params)预受理领卡请求API-
从类继承的方法 cn.crushes.cloud.core.pay.wechat.v3.AbstractApi
billDownload, billResource, client, container, downloadFundFlowBill, downloadTradeBill, Get, Get, getMapper, Patch, Post, Post, tenantId, wechatMetaBean
-
-
-
-
构造器详细资料
-
WechatDiscountCardApi
public WechatDiscountCardApi(WechatPayClient wechatPayClient, String tenantId)
Instantiates a new Abstract api.- 参数:
wechatPayClient- the wechat pay clienttenantId- the tenant id
-
-
方法详细资料
-
preRequest
public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> preRequest(DiscountCardPreRequestParams params)
预受理领卡请求API商户在引导用户跳转先享卡领卡前,需要请求先享卡预受理领卡请求接口,再根据返回数据引导用户跳转领卡。
- 参数:
params- the params- 返回:
- the wechat response entity
-
addUserRecords
public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> addUserRecords(UserRecordsParams params)
增加用户记录API当用户在商户侧消费时,用户完成了微信先享卡的目标或者获取使用优惠时,商户需要把这个信息同步给微信先享卡平台,用于在微信先享卡小程序展示及先享卡到期后的用户结算。
- 参数:
params- the params- 返回:
- 返回http状态码 204 处理成功,应答无内容
-
addUserRecords
public WechatResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode> addUserRecords(String outCardCode)
查询先享卡订单API商户可以通过商户领卡号查询指定的先享卡,可用于对账或者界面展示。
- 参数:
outCardCode- 商户领卡号- 返回:
- the wechat response entity
-
-