1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| package cn.iocoder.yudao.module.pay.framework.pay.core.client;
|
| /**
| * 支付客户端的工厂接口
| *
| * @author 芋道源码
| */
| public interface PayClientFactory {
|
| /**
| * 获得支付客户端
| *
| * @param channelId 渠道编号
| * @return 支付客户端
| */
| PayClient getPayClient(Long channelId);
|
| /**
| * 创建支付客户端
| *
| * @param channelId 渠道编号
| * @param channelCode 渠道编码
| * @param config 支付配置
| * @return 支付客户端
| */
| <Config extends PayClientConfig> PayClient createOrUpdatePayClient(Long channelId, String channelCode,
| Config config);
| }
|
|