|
16 | 16 | public class MergeApiClient {
|
17 | 17 | protected final ClientOptions clientOptions;
|
18 | 18 |
|
19 |
| - protected final Supplier<CrmClient> crmClient; |
20 |
| - |
21 | 19 | protected final Supplier<AtsClient> atsClient;
|
22 | 20 |
|
23 |
| - protected final Supplier<FilestorageClient> filestorageClient; |
| 21 | + protected final Supplier<CrmClient> crmClient; |
24 | 22 |
|
25 |
| - protected final Supplier<HrisClient> hrisClient; |
| 23 | + protected final Supplier<FilestorageClient> filestorageClient; |
26 | 24 |
|
27 | 25 | protected final Supplier<TicketingClient> ticketingClient;
|
28 | 26 |
|
| 27 | + protected final Supplier<HrisClient> hrisClient; |
| 28 | + |
29 | 29 | protected final Supplier<AccountingClient> accountingClient;
|
30 | 30 |
|
31 | 31 | public MergeApiClient(ClientOptions clientOptions) {
|
32 | 32 | this.clientOptions = clientOptions;
|
33 |
| - this.crmClient = Suppliers.memoize(() -> new CrmClient(clientOptions)); |
34 | 33 | this.atsClient = Suppliers.memoize(() -> new AtsClient(clientOptions));
|
| 34 | + this.crmClient = Suppliers.memoize(() -> new CrmClient(clientOptions)); |
35 | 35 | this.filestorageClient = Suppliers.memoize(() -> new FilestorageClient(clientOptions));
|
36 |
| - this.hrisClient = Suppliers.memoize(() -> new HrisClient(clientOptions)); |
37 | 36 | this.ticketingClient = Suppliers.memoize(() -> new TicketingClient(clientOptions));
|
| 37 | + this.hrisClient = Suppliers.memoize(() -> new HrisClient(clientOptions)); |
38 | 38 | this.accountingClient = Suppliers.memoize(() -> new AccountingClient(clientOptions));
|
39 | 39 | }
|
40 | 40 |
|
41 |
| - public CrmClient crm() { |
42 |
| - return this.crmClient.get(); |
43 |
| - } |
44 |
| - |
45 | 41 | public AtsClient ats() {
|
46 | 42 | return this.atsClient.get();
|
47 | 43 | }
|
48 | 44 |
|
49 |
| - public FilestorageClient filestorage() { |
50 |
| - return this.filestorageClient.get(); |
| 45 | + public CrmClient crm() { |
| 46 | + return this.crmClient.get(); |
51 | 47 | }
|
52 | 48 |
|
53 |
| - public HrisClient hris() { |
54 |
| - return this.hrisClient.get(); |
| 49 | + public FilestorageClient filestorage() { |
| 50 | + return this.filestorageClient.get(); |
55 | 51 | }
|
56 | 52 |
|
57 | 53 | public TicketingClient ticketing() {
|
58 | 54 | return this.ticketingClient.get();
|
59 | 55 | }
|
60 | 56 |
|
| 57 | + public HrisClient hris() { |
| 58 | + return this.hrisClient.get(); |
| 59 | + } |
| 60 | + |
61 | 61 | public AccountingClient accounting() {
|
62 | 62 | return this.accountingClient.get();
|
63 | 63 | }
|
|
0 commit comments