类 WechatPayClient
- java.lang.Object
-
- cn.crushes.cloud.core.pay.wechat.v3.WechatPayClient
-
public class WechatPayClient extends Object
The type Wechat pay client.- 作者:
- youta
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classWechatPayClient.Executor<M>The type Executor.
-
字段概要
字段 修饰符和类型 字段 说明 private org.springframework.web.client.RestOperationsrestOperationsThe Rest operations.private SignatureProvidersignatureProviderThe Signature provider.
-
构造器概要
构造器 构造器 说明 WechatPayClient(SignatureProvider signatureProvider)Instantiates a new Wechat pay service.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidapplyDefaultRestTemplate()Apply default rest template.SignatureProvidersignatureProvider()Signature provider signature provider.<M> WechatPayClient.Executor<M>withType(WechatPayV3Type wechatPayV3Type, M m)
-
-
-
字段详细资料
-
signatureProvider
private final SignatureProvider signatureProvider
The Signature provider.
-
restOperations
private org.springframework.web.client.RestOperations restOperations
The Rest operations.
-
-
构造器详细资料
-
WechatPayClient
public WechatPayClient(SignatureProvider signatureProvider)
Instantiates a new Wechat pay service.- 参数:
signatureProvider- the signature provider
-
-
方法详细资料
-
withType
public <M> WechatPayClient.Executor<M> withType(WechatPayV3Type wechatPayV3Type, M m)
- 类型参数:
M- the type parameter- 参数:
wechatPayV3Type- the v 3 pay typem- the m- 返回:
- the executor
-
signatureProvider
public SignatureProvider signatureProvider()
Signature provider signature provider.- 返回:
- the signature provider
-
applyDefaultRestTemplate
private void applyDefaultRestTemplate()
Apply default rest template.
-
-