public class WechatPayClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WechatPayClient.Executor<M>
The type Executor.
|
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.web.client.RestOperations |
restOperations
The Rest operations.
|
private SignatureProvider |
signatureProvider
The Signature provider.
|
| Constructor and Description |
|---|
WechatPayClient(SignatureProvider signatureProvider)
Instantiates a new Wechat pay service.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
applyDefaultRestTemplate()
Apply default rest template.
|
SignatureProvider |
signatureProvider()
Signature provider signature provider.
|
<M> WechatPayClient.Executor<M> |
withType(WechatPayV3Type wechatPayV3Type,
M m)
|
private final SignatureProvider signatureProvider
private org.springframework.web.client.RestOperations restOperations
public WechatPayClient(SignatureProvider signatureProvider)
signatureProvider - the signature providerpublic <M> WechatPayClient.Executor<M> withType(WechatPayV3Type wechatPayV3Type, M m)
M - the type parameterwechatPayV3Type - the v 3 pay typem - the mpublic SignatureProvider signatureProvider()
private void applyDefaultRestTemplate()
Copyright © 2021. All rights reserved.