@@ -56,14 +56,7 @@ CompletableFuture<ListBookingsResponse> listBookingsAsync(
5656## Example Usage
5757
5858``` java
59- Integer limit = 172 ;
60- String cursor = " cursor6" ;
61- String teamMemberId = " team_member_id0" ;
62- String locationId = " location_id4" ;
63- String startAtMin = " start_at_min8" ;
64- String startAtMax = " start_at_max8" ;
65-
66- bookingsApi. listBookingsAsync(limit, cursor, teamMemberId, locationId, startAtMin, startAtMax). thenAccept(result - > {
59+ bookingsApi. listBookingsAsync(null , null , null , null , null , null ). thenAccept(result - > {
6760 // TODO success callback handler
6861}). exceptionally(exception - > {
6962 // TODO failure callback handler
@@ -77,7 +70,10 @@ bookingsApi.listBookingsAsync(limit, cursor, teamMemberId, locationId, startAtMi
7770Creates a booking.
7871
7972To call this endpoint with buyer-level permissions, set ` APPOINTMENTS_WRITE ` for the OAuth scope.
80- To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
73+ To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
74+
75+ For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to * Appointments Plus*
76+ or * Appointments Premium* .
8177
8278``` java
8379CompletableFuture<CreateBookingResponse > createBookingAsync(
@@ -98,15 +94,9 @@ CompletableFuture<CreateBookingResponse> createBookingAsync(
9894
9995``` java
10096Booking booking = new Booking .Builder ()
101- .id(" id8" )
102- .version(148 )
103- .status(" ACCEPTED" )
104- .createdAt(" created_at6" )
105- .updatedAt(" updated_at4" )
10697 .build();
10798CreateBookingRequest body = new CreateBookingRequest .Builder (
10899 booking)
109- .idempotencyKey(" idempotency_key2" )
110100 .build();
111101
112102bookingsApi. createBookingAsync(body). thenAccept(result - > {
@@ -144,56 +134,9 @@ CompletableFuture<SearchAvailabilityResponse> searchAvailabilityAsync(
144134
145135``` java
146136TimeRange timeRange = new TimeRange .Builder ()
147- .startAt(" start_at8" )
148- .endAt(" end_at4" )
149- .build();
150- List<SegmentFilter > bodyQueryFilterSegmentFilters = new LinkedList<> ();
151-
152- List<String > bodyQueryFilterSegmentFilters0TeamMemberIdFilterAll = new LinkedList<> ();
153- bodyQueryFilterSegmentFilters0TeamMemberIdFilterAll. add(" all7" );
154- List<String > bodyQueryFilterSegmentFilters0TeamMemberIdFilterAny = new LinkedList<> ();
155- bodyQueryFilterSegmentFilters0TeamMemberIdFilterAny. add(" any0" );
156- bodyQueryFilterSegmentFilters0TeamMemberIdFilterAny. add(" any1" );
157- List<String > bodyQueryFilterSegmentFilters0TeamMemberIdFilterNone = new LinkedList<> ();
158- bodyQueryFilterSegmentFilters0TeamMemberIdFilterNone. add(" none5" );
159- FilterValue filterValue = new FilterValue .Builder ()
160- .all(filterValueAll)
161- .any(filterValueAny)
162- .none(filterValueNone)
163- .build();
164- SegmentFilter bodyQueryFilterSegmentFilters0 = new SegmentFilter .Builder (
165- " service_variation_id8" )
166- .teamMemberIdFilter(bodyQueryFilterSegmentFilters0TeamMemberIdFilter)
167137 .build();
168- bodyQueryFilterSegmentFilters. add(bodyQueryFilterSegmentFilters0);
169-
170- List<String > bodyQueryFilterSegmentFilters1TeamMemberIdFilterAll = new LinkedList<> ();
171- bodyQueryFilterSegmentFilters1TeamMemberIdFilterAll. add(" all6" );
172- bodyQueryFilterSegmentFilters1TeamMemberIdFilterAll. add(" all7" );
173- bodyQueryFilterSegmentFilters1TeamMemberIdFilterAll. add(" all8" );
174- List<String > bodyQueryFilterSegmentFilters1TeamMemberIdFilterAny = new LinkedList<> ();
175- bodyQueryFilterSegmentFilters1TeamMemberIdFilterAny. add(" any1" );
176- bodyQueryFilterSegmentFilters1TeamMemberIdFilterAny. add(" any2" );
177- bodyQueryFilterSegmentFilters1TeamMemberIdFilterAny. add(" any3" );
178- List<String > bodyQueryFilterSegmentFilters1TeamMemberIdFilterNone = new LinkedList<> ();
179- bodyQueryFilterSegmentFilters1TeamMemberIdFilterNone. add(" none6" );
180- bodyQueryFilterSegmentFilters1TeamMemberIdFilterNone. add(" none7" );
181- FilterValue filterValue = new FilterValue .Builder ()
182- .all(filterValueAll)
183- .any(filterValueAny)
184- .none(filterValueNone)
185- .build();
186- SegmentFilter bodyQueryFilterSegmentFilters1 = new SegmentFilter .Builder (
187- " service_variation_id7" )
188- .teamMemberIdFilter(bodyQueryFilterSegmentFilters1TeamMemberIdFilter)
189- .build();
190- bodyQueryFilterSegmentFilters. add(bodyQueryFilterSegmentFilters1);
191-
192138SearchAvailabilityFilter searchAvailabilityFilter = new SearchAvailabilityFilter .Builder (
193139 startAtRange)
194- .locationId(" location_id6" )
195- .segmentFilters(searchAvailabilityFilterSegmentFilters)
196- .bookingId(" booking_id6" )
197140 .build();
198141SearchAvailabilityQuery searchAvailabilityQuery = new SearchAvailabilityQuery .Builder (
199142 filter)
@@ -264,11 +207,8 @@ CompletableFuture<ListTeamMemberBookingProfilesResponse> listTeamMemberBookingPr
264207
265208``` java
266209Boolean bookableOnly = false ;
267- Integer limit = 172 ;
268- String cursor = " cursor6" ;
269- String locationId = " location_id4" ;
270210
271- bookingsApi. listTeamMemberBookingProfilesAsync(bookableOnly, limit, cursor, locationId ). thenAccept(result - > {
211+ bookingsApi. listTeamMemberBookingProfilesAsync(bookableOnly, null , null , null ). thenAccept(result - > {
272212 // TODO success callback handler
273213}). exceptionally(exception - > {
274214 // TODO failure callback handler
@@ -351,7 +291,10 @@ bookingsApi.retrieveBookingAsync(bookingId).thenAccept(result -> {
351291Updates a booking.
352292
353293To call this endpoint with buyer-level permissions, set ` APPOINTMENTS_WRITE ` for the OAuth scope.
354- To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
294+ To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
295+
296+ For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to * Appointments Plus*
297+ or * Appointments Premium* .
355298
356299``` java
357300CompletableFuture<UpdateBookingResponse > updateBookingAsync(
@@ -375,15 +318,9 @@ CompletableFuture<UpdateBookingResponse> updateBookingAsync(
375318``` java
376319String bookingId = " booking_id4" ;
377320Booking booking = new Booking .Builder ()
378- .id(" id8" )
379- .version(148 )
380- .status(" ACCEPTED" )
381- .createdAt(" created_at6" )
382- .updatedAt(" updated_at4" )
383321 .build();
384322UpdateBookingRequest body = new UpdateBookingRequest .Builder (
385323 booking)
386- .idempotencyKey(" idempotency_key2" )
387324 .build();
388325
389326bookingsApi. updateBookingAsync(bookingId, body). thenAccept(result - > {
@@ -400,7 +337,10 @@ bookingsApi.updateBookingAsync(bookingId, body).thenAccept(result -> {
400337Cancels an existing booking.
401338
402339To call this endpoint with buyer-level permissions, set ` APPOINTMENTS_WRITE ` for the OAuth scope.
403- To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
340+ To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
341+
342+ For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to * Appointments Plus*
343+ or * Appointments Premium* .
404344
405345``` java
406346CompletableFuture<CancelBookingResponse > cancelBookingAsync(
@@ -424,8 +364,6 @@ CompletableFuture<CancelBookingResponse> cancelBookingAsync(
424364``` java
425365String bookingId = " booking_id4" ;
426366CancelBookingRequest body = new CancelBookingRequest .Builder ()
427- .idempotencyKey(" idempotency_key2" )
428- .bookingVersion(8 )
429367 .build();
430368
431369bookingsApi. cancelBookingAsync(bookingId, body). thenAccept(result - > {
0 commit comments