@@ -60,10 +60,7 @@ FinchClient client = FinchOkHttpClient.builder()
6060 .accessToken(" My Access Token" )
6161 .build();
6262
63- HrisDirectoryListParams params = HrisDirectoryListParams . builder()
64- .addEntityId(" 550e8400-e29b-41d4-a716-446655440000" )
65- .build();
66- HrisDirectoryListPage page = client. hris(). directory(). list(params);
63+ HrisDirectoryListPage page = client. hris(). directory(). list();
6764```
6865
6966## Client configuration
@@ -169,10 +166,7 @@ FinchClient client = FinchOkHttpClient.builder()
169166 .accessToken(" My Access Token" )
170167 .build();
171168
172- HrisDirectoryListParams params = HrisDirectoryListParams . builder()
173- .addEntityId(" 550e8400-e29b-41d4-a716-446655440000" )
174- .build();
175- CompletableFuture<HrisDirectoryListPageAsync > page = client. async(). hris(). directory(). list(params);
169+ CompletableFuture<HrisDirectoryListPageAsync > page = client. async(). hris(). directory(). list();
176170```
177171
178172Or create an asynchronous client from the beginning:
@@ -191,10 +185,7 @@ FinchClientAsync client = FinchOkHttpClientAsync.builder()
191185 .accessToken(" My Access Token" )
192186 .build();
193187
194- HrisDirectoryListParams params = HrisDirectoryListParams . builder()
195- .addEntityId(" 550e8400-e29b-41d4-a716-446655440000" )
196- .build();
197- CompletableFuture<HrisDirectoryListPageAsync > page = client. hris(). directory(). list(params);
188+ CompletableFuture<HrisDirectoryListPageAsync > page = client. hris(). directory(). list();
198189```
199190
200191The asynchronous client supports the same options as the synchronous one, except most methods return ` CompletableFuture ` s.
@@ -211,10 +202,7 @@ import com.tryfinch.api.core.http.HttpResponseFor;
211202import com.tryfinch.api.models.HrisDirectoryListPage ;
212203import com.tryfinch.api.models.HrisDirectoryListParams ;
213204
214- HrisDirectoryListParams params = HrisDirectoryListParams . builder()
215- .addEntityId(" 550e8400-e29b-41d4-a716-446655440000" )
216- .build();
217- HttpResponseFor<HrisDirectoryListPage > page = client. hris(). directory(). withRawResponse(). list(params);
205+ HttpResponseFor<HrisDirectoryListPage > page = client. hris(). directory(). withRawResponse(). list();
218206
219207int statusCode = page. statusCode();
220208Headers headers = page. headers();
@@ -267,7 +255,7 @@ When using the synchronous client, the method returns an [`Iterable`](https://do
267255import com.tryfinch.api.models.HrisDirectoryListPage ;
268256import com.tryfinch.api.models.IndividualInDirectory ;
269257
270- HrisDirectoryListPage page = client. hris(). directory(). list(params );
258+ HrisDirectoryListPage page = client. hris(). directory(). list();
271259
272260// Process as an Iterable
273261for (IndividualInDirectory directory : page. autoPager()) {
@@ -290,7 +278,7 @@ import com.tryfinch.api.models.IndividualInDirectory;
290278import java.util.Optional ;
291279import java.util.concurrent.CompletableFuture ;
292280
293- CompletableFuture<HrisDirectoryListPageAsync > pageFuture = client. async(). hris(). directory(). list(params );
281+ CompletableFuture<HrisDirectoryListPageAsync > pageFuture = client. async(). hris(). directory(). list();
294282
295283pageFuture. thenRun(page - > page. autoPager(). subscribe(directory - > {
296284 System . out. println(directory);
@@ -339,7 +327,7 @@ To access individual page items and manually request the next page, use the `ite
339327import com.tryfinch.api.models.HrisDirectoryListPage ;
340328import com.tryfinch.api.models.IndividualInDirectory ;
341329
342- HrisDirectoryListPage page = client. hris(). directory(). list(params );
330+ HrisDirectoryListPage page = client. hris(). directory(). list();
343331while (true ) {
344332 for (IndividualInDirectory directory : page. items()) {
345333 System . out. println(directory);
@@ -434,9 +422,7 @@ To set a custom timeout, configure the method call using the `timeout` method:
434422``` java
435423import com.tryfinch.api.models.HrisDirectoryListPage ;
436424
437- HrisDirectoryListPage page = client. hris(). directory(). list(
438- params, RequestOptions . builder(). timeout(Duration . ofSeconds(30 )). build()
439- );
425+ HrisDirectoryListPage page = client. hris(). directory(). list(RequestOptions . builder(). timeout(Duration . ofSeconds(30 )). build());
440426```
441427
442428Or configure the default for all method calls at the client level:
@@ -558,9 +544,7 @@ To set a documented parameter or property to an undocumented or not yet supporte
558544``` java
559545import com.tryfinch.api.models.HrisDirectoryListParams ;
560546
561- HrisDirectoryListParams params = HrisDirectoryListParams . builder()
562- .addEntityId(" 550e8400-e29b-41d4-a716-446655440000" )
563- .build();
547+ HrisDirectoryListParams params = HrisDirectoryListParams . builder(). build();
564548```
565549
566550The most straightforward way to create a [ ` JsonValue ` ] ( finch-java-core/src/main/kotlin/com/tryfinch/api/core/Values.kt ) is using its ` from(...) ` method:
@@ -608,10 +592,11 @@ To forcibly omit a required parameter or property, pass [`JsonMissing`](finch-ja
608592
609593``` java
610594import com.tryfinch.api.core.JsonMissing ;
595+ import com.tryfinch.api.models.AccessTokenCreateParams ;
611596import com.tryfinch.api.models.HrisDirectoryListParams ;
612597
613- HrisDirectoryListParams params = HrisDirectoryListParams . builder()
614- .entityIds (JsonMissing . of())
598+ HrisDirectoryListParams params = AccessTokenCreateParams . builder()
599+ .code (JsonMissing . of())
615600 .build();
616601```
617602
@@ -688,9 +673,7 @@ Or configure the method call to validate the response using the `responseValidat
688673``` java
689674import com.tryfinch.api.models.HrisDirectoryListPage ;
690675
691- HrisDirectoryListPage page = client. hris(). directory(). list(
692- params, RequestOptions . builder(). responseValidation(true ). build()
693- );
676+ HrisDirectoryListPage page = client. hris(). directory(). list(RequestOptions . builder(). responseValidation(true ). build());
694677```
695678
696679Or configure the default for all method calls at the client level:
0 commit comments