@@ -55,14 +55,7 @@ def list_bookings(limit: nil,
55
55
## Example Usage
56
56
57
57
``` ruby
58
- limit = 172
59
- cursor = ' cursor6'
60
- team_member_id = ' team_member_id0'
61
- location_id = ' location_id4'
62
- start_at_min = ' start_at_min8'
63
- start_at_max = ' start_at_max8'
64
-
65
- result = bookings_api.list_bookings(limit: limit, cursor: cursor, team_member_id: team_member_id, location_id: location_id, start_at_min: start_at_min, start_at_max: start_at_max)
58
+ result = bookings_api.list_bookings()
66
59
67
60
if result.success?
68
61
puts result.data
@@ -79,6 +72,9 @@ Creates a booking.
79
72
To call this endpoint with buyer-level permissions, set ` APPOINTMENTS_WRITE ` for the OAuth scope.
80
73
To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
81
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* .
77
+
82
78
``` ruby
83
79
def create_booking (body: )
84
80
```
@@ -97,13 +93,7 @@ def create_booking(body:)
97
93
98
94
``` ruby
99
95
body = {}
100
- body[:idempotency_key ] = ' idempotency_key2'
101
96
body[:booking ] = {}
102
- body[:booking ][:id ] = ' id8'
103
- body[:booking ][:version ] = 148
104
- body[:booking ][:status ] = ' ACCEPTED'
105
- body[:booking ][:created_at ] = ' created_at6'
106
- body[:booking ][:updated_at ] = ' updated_at4'
107
97
108
98
result = bookings_api.create_booking(body: body)
109
99
@@ -143,27 +133,6 @@ body = {}
143
133
body[:query ] = {}
144
134
body[:query ][:filter ] = {}
145
135
body[:query ][:filter ][:start_at_range ] = {}
146
- body[:query ][:filter ][:start_at_range ][:start_at ] = ' start_at8'
147
- body[:query ][:filter ][:start_at_range ][:end_at ] = ' end_at4'
148
- body[:query ][:filter ][:location_id ] = ' location_id6'
149
- body[:query ][:filter ][:segment_filters ] = []
150
-
151
-
152
- body[:query ][:filter ][:segment_filters ][0 ] = {}
153
- body[:query ][:filter ][:segment_filters ][0 ][:service_variation_id ] = ' service_variation_id8'
154
- body[:query ][:filter ][:segment_filters ][0 ][:team_member_id_filter ] = {}
155
- body[:query ][:filter ][:segment_filters ][0 ][:team_member_id_filter ][:all ] = [' all7' ]
156
- body[:query ][:filter ][:segment_filters ][0 ][:team_member_id_filter ][:any ] = [' any0' , ' any1' ]
157
- body[:query ][:filter ][:segment_filters ][0 ][:team_member_id_filter ][:none ] = [' none5' ]
158
-
159
- body[:query ][:filter ][:segment_filters ][1 ] = {}
160
- body[:query ][:filter ][:segment_filters ][1 ][:service_variation_id ] = ' service_variation_id7'
161
- body[:query ][:filter ][:segment_filters ][1 ][:team_member_id_filter ] = {}
162
- body[:query ][:filter ][:segment_filters ][1 ][:team_member_id_filter ][:all ] = [' all6' , ' all7' , ' all8' ]
163
- body[:query ][:filter ][:segment_filters ][1 ][:team_member_id_filter ][:any ] = [' any1' , ' any2' , ' any3' ]
164
- body[:query ][:filter ][:segment_filters ][1 ][:team_member_id_filter ][:none ] = [' none6' , ' none7' ]
165
-
166
- body[:query ][:filter ][:booking_id ] = ' booking_id6'
167
136
168
137
result = bookings_api.search_availability(body: body)
169
138
@@ -228,11 +197,8 @@ def list_team_member_booking_profiles(bookable_only: false,
228
197
229
198
``` ruby
230
199
bookable_only = false
231
- limit = 172
232
- cursor = ' cursor6'
233
- location_id = ' location_id4'
234
200
235
- result = bookings_api.list_team_member_booking_profiles(bookable_only: bookable_only, limit: limit, cursor: cursor, location_id: location_id )
201
+ result = bookings_api.list_team_member_booking_profiles(bookable_only: bookable_only, )
236
202
237
203
if result.success?
238
204
puts result.data
@@ -318,6 +284,9 @@ Updates a booking.
318
284
To call this endpoint with buyer-level permissions, set ` APPOINTMENTS_WRITE ` for the OAuth scope.
319
285
To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
320
286
287
+ For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to * Appointments Plus*
288
+ or * Appointments Premium* .
289
+
321
290
``` ruby
322
291
def update_booking (booking_id: ,
323
292
body: )
@@ -339,13 +308,7 @@ def update_booking(booking_id:,
339
308
``` ruby
340
309
booking_id = ' booking_id4'
341
310
body = {}
342
- body[:idempotency_key ] = ' idempotency_key2'
343
311
body[:booking ] = {}
344
- body[:booking ][:id ] = ' id8'
345
- body[:booking ][:version ] = 148
346
- body[:booking ][:status ] = ' ACCEPTED'
347
- body[:booking ][:created_at ] = ' created_at6'
348
- body[:booking ][:updated_at ] = ' updated_at4'
349
312
350
313
result = bookings_api.update_booking(booking_id: booking_id, body: body)
351
314
@@ -364,6 +327,9 @@ Cancels an existing booking.
364
327
To call this endpoint with buyer-level permissions, set ` APPOINTMENTS_WRITE ` for the OAuth scope.
365
328
To call this endpoint with seller-level permissions, set ` APPOINTMENTS_ALL_WRITE ` and ` APPOINTMENTS_WRITE ` for the OAuth scope.
366
329
330
+ For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to * Appointments Plus*
331
+ or * Appointments Premium* .
332
+
367
333
``` ruby
368
334
def cancel_booking (booking_id: ,
369
335
body: )
@@ -385,8 +351,6 @@ def cancel_booking(booking_id:,
385
351
``` ruby
386
352
booking_id = ' booking_id4'
387
353
body = {}
388
- body[:idempotency_key ] = ' idempotency_key2'
389
- body[:booking_version ] = 8
390
354
391
355
result = bookings_api.cancel_booking(booking_id: booking_id, body: body)
392
356
0 commit comments