File tree Expand file tree Collapse file tree 3 files changed +15
-16
lines changed
src/main/java/com/merge/api Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ publishing {
46
46
maven(MavenPublication ) {
47
47
groupId = ' dev.merge'
48
48
artifactId = ' merge-java-client'
49
- version = ' 1.0.10 '
49
+ version = ' 1.0.11 '
50
50
from components. java
51
51
pom {
52
52
scm {
Original file line number Diff line number Diff line change 16
16
public class MergeApiClient {
17
17
protected final ClientOptions clientOptions ;
18
18
19
- protected final Supplier <FilestorageClient > filestorageClient ;
20
-
21
19
protected final Supplier <AtsClient > atsClient ;
22
20
21
+ protected final Supplier <FilestorageClient > filestorageClient ;
22
+
23
23
protected final Supplier <CrmClient > crmClient ;
24
24
25
25
protected final Supplier <HrisClient > hrisClient ;
@@ -30,22 +30,22 @@ public class MergeApiClient {
30
30
31
31
public MergeApiClient (ClientOptions clientOptions ) {
32
32
this .clientOptions = clientOptions ;
33
- this .filestorageClient = Suppliers .memoize (() -> new FilestorageClient (clientOptions ));
34
33
this .atsClient = Suppliers .memoize (() -> new AtsClient (clientOptions ));
34
+ this .filestorageClient = Suppliers .memoize (() -> new FilestorageClient (clientOptions ));
35
35
this .crmClient = Suppliers .memoize (() -> new CrmClient (clientOptions ));
36
36
this .hrisClient = Suppliers .memoize (() -> new HrisClient (clientOptions ));
37
37
this .ticketingClient = Suppliers .memoize (() -> new TicketingClient (clientOptions ));
38
38
this .accountingClient = Suppliers .memoize (() -> new AccountingClient (clientOptions ));
39
39
}
40
40
41
- public FilestorageClient filestorage () {
42
- return this .filestorageClient .get ();
43
- }
44
-
45
41
public AtsClient ats () {
46
42
return this .atsClient .get ();
47
43
}
48
44
45
+ public FilestorageClient filestorage () {
46
+ return this .filestorageClient .get ();
47
+ }
48
+
49
49
public CrmClient crm () {
50
50
return this .crmClient .get ();
51
51
}
Original file line number Diff line number Diff line change @@ -26,16 +26,15 @@ private ClientOptions(
26
26
this .environment = environment ;
27
27
this .headers = new HashMap <>();
28
28
this .headers .putAll (headers );
29
- this .headers .putAll (Map . of (
30
- "X-Fern-SDK-Name" ,
31
- "com.merge.fern:api-sdk" ,
32
- "X-Fern-SDK-Version" ,
33
- " 1.0.10" ,
34
- "X-Fern-Language" ,
35
- "JAVA" ) );
29
+ this .headers .putAll (new HashMap < String , String >() {
30
+ {
31
+ put ( "X-Fern-Language" , "JAVA" );
32
+ put ( "X-Fern-SDK-Name" , "com.merge.fern:api-sdk" );
33
+ put ( "X-Fern-SDK-Version" , " 1.0.11" );
34
+ }
35
+ } );
36
36
this .headerSuppliers = headerSuppliers ;
37
37
this .httpClient = httpClient ;
38
- ;
39
38
}
40
39
41
40
public Environment environment () {
You can’t perform that action at this time.
0 commit comments