public static class WechatPayApi.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
baseUrl |
private okhttp3.ConnectionPool |
connectionPool |
private static String |
DEFAULT_BASE_URL |
private okhttp3.logging.HttpLoggingInterceptor.Level |
logLevel |
private TenpayKeyCache |
tenpayKeyCache |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
WechatPayApi.Builder |
baseUrl(String baseUrl)
Base url builder.
|
WechatPayApi |
build()
Build wechat pay api.
|
WechatPayApi.Builder |
connectionPool(okhttp3.ConnectionPool connectionPool)
Connection pool builder.
|
WechatPayApi.Builder |
logLevel(okhttp3.logging.HttpLoggingInterceptor.Level logLevel)
Log level builder.
|
WechatPayApi.Builder |
tenpayKeyCache(TenpayKeyCache tenpayKeyCache)
Instantiates a new Builder.
|
private static final String DEFAULT_BASE_URL
private String baseUrl
private TenpayKeyCache tenpayKeyCache
private okhttp3.ConnectionPool connectionPool
private okhttp3.logging.HttpLoggingInterceptor.Level logLevel
public WechatPayApi.Builder tenpayKeyCache(TenpayKeyCache tenpayKeyCache)
tenpayKeyCache - the tenpay key cachepublic WechatPayApi.Builder baseUrl(String baseUrl)
baseUrl - the base urlpublic WechatPayApi.Builder connectionPool(okhttp3.ConnectionPool connectionPool)
connectionPool - the connection poolpublic WechatPayApi.Builder logLevel(okhttp3.logging.HttpLoggingInterceptor.Level logLevel)
logLevel - the log levelpublic WechatPayApi build()
Copyright © 2025. All rights reserved.