类 AbstractApi
- java.lang.Object
-
- cn.crushes.cloud.core.pay.wechat.v3.AbstractApi
-
- 直接已知子类:
WechatBatchTransferApi,WechatCombinePayApi,WechatDirectPayApi,WechatDiscountCardApi,WechatMarketingBusiFavorApi,WechatMarketingFavorApi,WechatPartnerPayApi,WechatPayScoreApi
public abstract class AbstractApi extends Object
The type Abstract api.- 作者:
- youta
-
-
字段概要
字段 修饰符和类型 字段 说明 private com.fasterxml.jackson.databind.ObjectMappermapperThe Mapper.private StringtenantIdThe Tenant id.private WechatPayClientwechatPayClientThe Wechat pay client.
-
构造器概要
构造器 构造器 说明 AbstractApi(WechatPayClient wechatPayClient, String tenantId)Instantiates a new Abstract api.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidapplyObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)Apply object mapper.protected StringbillDownload(String link)对账单内容下载,非流文件。protected org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>billResource(String link)对账单下载,流文件。WechatPayClientclient()Client wechat pay client.WechatMetaContainercontainer()Container wechat meta container.voiddownloadFundFlowBill(FundFlowBillParams fundFlowBillParams)申请资金账单APIvoiddownloadTradeBill(TradeBillParams tradeBillParams)申请交易账单APIprotected org.springframework.http.RequestEntity<?>Get(URI uri)构建Get请求对象.protected org.springframework.http.RequestEntity<?>Get(URI uri, org.springframework.http.HttpHeaders httpHeaders)构建Get请求对象.com.fasterxml.jackson.databind.ObjectMappergetMapper()Gets mapper.protected org.springframework.http.RequestEntity<?>Patch(URI uri, Object params)构建Post请求对象.protected org.springframework.http.RequestEntity<?>Post(URI uri, Object params)构建Post请求对象.protected org.springframework.http.RequestEntity<?>Post(URI uri, Object params, org.springframework.http.HttpHeaders httpHeaders)构建Post请求对象.StringtenantId()Tenant id string.WechatMetaBeanwechatMetaBean()Wechat meta bean wechat meta bean.
-
-
-
字段详细资料
-
mapper
private final com.fasterxml.jackson.databind.ObjectMapper mapper
The Mapper.
-
wechatPayClient
private final WechatPayClient wechatPayClient
The Wechat pay client.
-
tenantId
private final String tenantId
The Tenant id.
-
-
构造器详细资料
-
AbstractApi
public AbstractApi(WechatPayClient wechatPayClient, String tenantId)
Instantiates a new Abstract api.- 参数:
wechatPayClient- the wechat pay clienttenantId- the tenant id
-
-
方法详细资料
-
applyObjectMapper
private void applyObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Apply object mapper.- 参数:
mapper- the mapper
-
getMapper
public com.fasterxml.jackson.databind.ObjectMapper getMapper()
Gets mapper.- 返回:
- the mapper
-
client
public WechatPayClient client()
Client wechat pay client.- 返回:
- the wechat pay client
-
tenantId
public String tenantId()
Tenant id string.- 返回:
- the string
-
container
public WechatMetaContainer container()
Container wechat meta container.- 返回:
- the wechat meta container
-
wechatMetaBean
public WechatMetaBean wechatMetaBean()
Wechat meta bean wechat meta bean.- 返回:
- the wechat meta bean
-
Post
protected org.springframework.http.RequestEntity<?> Post(URI uri, Object params)
构建Post请求对象.- 参数:
uri- the uriparams- the params- 返回:
- the request entity
-
Post
protected org.springframework.http.RequestEntity<?> Post(URI uri, Object params, org.springframework.http.HttpHeaders httpHeaders)
构建Post请求对象.- 参数:
uri- the uriparams- the paramshttpHeaders- the http headers- 返回:
- request entity
-
Get
protected org.springframework.http.RequestEntity<?> Get(URI uri)
构建Get请求对象.- 参数:
uri- the uri- 返回:
- the request entity
-
Get
protected org.springframework.http.RequestEntity<?> Get(URI uri, org.springframework.http.HttpHeaders httpHeaders)
构建Get请求对象.- 参数:
uri- the urihttpHeaders- the http headers- 返回:
- the request entity
-
Patch
protected org.springframework.http.RequestEntity<?> Patch(URI uri, Object params)
构建Post请求对象.- 参数:
uri- the uriparams- the params- 返回:
- the request entity
-
billDownload
protected String billDownload(String link)
对账单内容下载,非流文件。- 参数:
link- the link- 返回:
- 对账单内容 ,有可能为空字符 “”
-
billResource
protected org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> billResource(String link)
对账单下载,流文件。- 参数:
link- the link- 返回:
- response entity
-
downloadTradeBill
public final void downloadTradeBill(TradeBillParams tradeBillParams)
申请交易账单API微信支付按天提供交易账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含交易相关的金额、时间、营销等信息,供商户核对订单、退款、银行到账等情况。
注意:
- 微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账单中,跟原支付单订单号一致;
- 对账单中涉及金额的字段单位为“元”;
- 对账单接口只能下载三个月以内的账单。
- 小微商户不单独提供对账单下载,如有需要,可在调取“下载对账单”API接口时不传sub_mch_id,获取服务商下全量电商二级商户(包括小微商户和非小微商户)的对账单。
- 参数:
tradeBillParams- tradeBillParams
-
downloadFundFlowBill
public final void downloadFundFlowBill(FundFlowBillParams fundFlowBillParams)
申请资金账单API微信支付按天提供微信支付账户的资金流水账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含该账户资金操作相关的业务单号、收支金额、记账时间等信息,供商户进行核对。
注意:
- 资金账单中的数据反映的是商户微信支付账户资金变动情况;
- 对账单中涉及金额的字段单位为“元”。
- 参数:
fundFlowBillParams- fundFlowBillParams
-
-