public abstract class AbstractApi extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private com.fasterxml.jackson.databind.ObjectMapper |
mapper
The Mapper.
|
private String |
tenantId
The Tenant id.
|
private WechatPayClient |
wechatPayClient
The Wechat pay client.
|
| 构造器和说明 |
|---|
AbstractApi(WechatPayClient wechatPayClient,
String tenantId)
Instantiates a new Abstract api.
|
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
applyObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Apply object mapper.
|
protected String |
billDownload(String link)
对账单内容下载,非流文件。
|
protected org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
billResource(String link)
对账单下载,流文件。
|
WechatPayClient |
client()
Client wechat pay client.
|
WechatMetaContainer |
container()
Container wechat meta container.
|
void |
downloadFundFlowBill(FundFlowBillParams fundFlowBillParams)
申请资金账单API
微信支付按天提供微信支付账户的资金流水账单文件,商户可以通过该接口获取账单文件的下载地址。
|
void |
downloadTradeBill(TradeBillParams tradeBillParams)
申请交易账单API
微信支付按天提供交易账单文件,商户可以通过该接口获取账单文件的下载地址。
|
protected 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.ObjectMapper |
getMapper()
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请求对象.
|
String |
tenantId()
Tenant id string.
|
WechatMetaBean |
wechatMetaBean()
Wechat meta bean wechat meta bean.
|
private final com.fasterxml.jackson.databind.ObjectMapper mapper
private final WechatPayClient wechatPayClient
private final String tenantId
public AbstractApi(WechatPayClient wechatPayClient, String tenantId)
wechatPayClient - the wechat pay clienttenantId - the tenant idprivate void applyObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper - the mapperpublic com.fasterxml.jackson.databind.ObjectMapper getMapper()
public WechatPayClient client()
public String tenantId()
public WechatMetaContainer container()
public WechatMetaBean wechatMetaBean()
protected org.springframework.http.RequestEntity<?> Post(URI uri, Object params)
uri - the uriparams - the paramsprotected org.springframework.http.RequestEntity<?> Post(URI uri, Object params, org.springframework.http.HttpHeaders httpHeaders)
uri - the uriparams - the paramshttpHeaders - the http headersprotected org.springframework.http.RequestEntity<?> Get(URI uri)
uri - the uriprotected org.springframework.http.RequestEntity<?> Get(URI uri, org.springframework.http.HttpHeaders httpHeaders)
uri - the urihttpHeaders - the http headersprotected org.springframework.http.RequestEntity<?> Patch(URI uri, Object params)
uri - the uriparams - the paramsprotected String billDownload(String link)
link - the linkprotected org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> billResource(String link)
link - the linkpublic final void downloadTradeBill(TradeBillParams tradeBillParams)
微信支付按天提供交易账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含交易相关的金额、时间、营销等信息,供商户核对订单、退款、银行到账等情况。
注意:
tradeBillParams - tradeBillParamspublic final void downloadFundFlowBill(FundFlowBillParams fundFlowBillParams)
微信支付按天提供微信支付账户的资金流水账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含该账户资金操作相关的业务单号、收支金额、记账时间等信息,供商户进行核对。
注意:
fundFlowBillParams - fundFlowBillParamsCopyright © 2021. All rights reserved.