@wix/auto_sdk_bookings_pricing 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +123 -104
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +102 -96
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +123 -104
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +102 -96
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +123 -104
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +102 -96
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +123 -104
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +102 -96
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -193,16 +193,19 @@ interface CalculatePriceRequest {
|
|
|
193
193
|
/** An entity representing a scheduled appointment, class session, or course. */
|
|
194
194
|
interface Booking extends BookingParticipantsInfoOneOf {
|
|
195
195
|
/**
|
|
196
|
-
* Total number of participants.
|
|
197
|
-
* doesn't
|
|
198
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
196
|
+
* Total number of participants.
|
|
197
|
+
* When creating a booking, use this field only if the relevant service has fixed pricing and doesn't offer variants and options ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
199
198
|
* @min 1
|
|
200
199
|
*/
|
|
201
200
|
totalParticipants?: number;
|
|
202
201
|
/**
|
|
203
|
-
* Information about the booked service choices and
|
|
204
|
-
*
|
|
202
|
+
* Information about the booked service choices and participant count for each choice.
|
|
203
|
+
* When creating a booking, use this field only if the booking includes multiple service variants
|
|
205
204
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
205
|
+
*
|
|
206
|
+
* For example, use this for a spa package booking that includes different service levels:
|
|
207
|
+
* - 2 participants chose "Standard Package".
|
|
208
|
+
* - 1 participant chose "VIP Package".
|
|
206
209
|
*/
|
|
207
210
|
participantsChoices?: ParticipantChoices;
|
|
208
211
|
/**
|
|
@@ -212,15 +215,24 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
212
215
|
*/
|
|
213
216
|
id?: string | null;
|
|
214
217
|
/**
|
|
215
|
-
* An object describing the
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
218
|
+
* An object describing the bookable entity - either a specific time slot or a recurring schedule.
|
|
219
|
+
*
|
|
220
|
+
* The structure depends on the type of service being booked:
|
|
221
|
+
*
|
|
222
|
+
* *For appointment services:** Use `slot` to book a specific time slot with a
|
|
223
|
+
* service provider. Appointments are typically one-time sessions at a specific date and time.
|
|
224
|
+
*
|
|
225
|
+
* *For class services:** Use `slot` to book a specific class session. Classes
|
|
226
|
+
* are individual sessions that can have multiple participants.
|
|
227
|
+
*
|
|
228
|
+
* *For course services:** Use `schedule` to book an entire course consisting of
|
|
229
|
+
* multiple sessions over time. Courses are recurring, multi-session offerings.
|
|
230
|
+
*
|
|
231
|
+
* Choose the appropriate field based on your service type and booking requirements.
|
|
220
232
|
*/
|
|
221
233
|
bookedEntity?: BookedEntity;
|
|
222
234
|
/**
|
|
223
|
-
* Contact details of the site visitor or
|
|
235
|
+
* Contact details of the site visitor or member
|
|
224
236
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/members/members/introduction) | [REST](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/introduction))
|
|
225
237
|
* making the booking.
|
|
226
238
|
*/
|
|
@@ -235,20 +247,27 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
235
247
|
*/
|
|
236
248
|
status?: BookingStatusWithLiterals;
|
|
237
249
|
/**
|
|
238
|
-
* The payment status of the booking
|
|
239
|
-
*
|
|
240
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup)| [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction))
|
|
241
|
-
*
|
|
250
|
+
* The payment status of the booking. This field automatically syncs with the
|
|
251
|
+
* `paymentStatus` of the corresponding eCommerce order
|
|
252
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup)| [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction))
|
|
253
|
+
* when customers use Wix eCommerce checkout.
|
|
254
|
+
*
|
|
255
|
+
* ## Integration patterns
|
|
256
|
+
*
|
|
257
|
+
* *When using Wix eCommerce checkout:** Wix Bookings automatically syncs the payment status based on the eCommerce order's payment status.
|
|
258
|
+
* Do not manually update this field.
|
|
259
|
+
*
|
|
260
|
+
* *When using custom payment flows:** You can manually update the payment status with Confirm Booking or Decline Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)) to reflect the customer's payment state.
|
|
261
|
+
*
|
|
262
|
+
* *For membership/pricing plan payments:** Wix Bookings automatically manages the payment status when customers pay with an active pricing plan ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/pricing-plans/introduction)) subscription.
|
|
263
|
+
*
|
|
264
|
+
* All payment statuses are supported for every booking `status`.
|
|
242
265
|
*/
|
|
243
266
|
paymentStatus?: PaymentStatusWithLiterals;
|
|
244
267
|
/**
|
|
245
|
-
* Payment option selected by the customer. If the customer hasn't completed their
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
* unless `skipSelectedPaymentOptionValidation` is `true`.
|
|
249
|
-
* When undefined during an *eCommerce checkout*
|
|
250
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)),
|
|
251
|
-
* Wix Bookings uses the service's default payment option
|
|
268
|
+
* Payment option selected by the customer. If the customer hasn't completed their checkout, they may still change the payment method. Must be one of the payment options offered by the service ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction)), unless `skipSelectedPaymentOptionValidation` is `true`.
|
|
269
|
+
*
|
|
270
|
+
* When undefined during an eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)), Wix Bookings uses the service's default payment option
|
|
252
271
|
*/
|
|
253
272
|
selectedPaymentOption?: SelectedPaymentOptionWithLiterals;
|
|
254
273
|
/**
|
|
@@ -259,10 +278,8 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
259
278
|
/** External user ID that you can provide. */
|
|
260
279
|
externalUserId?: string | null;
|
|
261
280
|
/**
|
|
262
|
-
* Revision number to be used when updating, rescheduling, or cancelling the
|
|
263
|
-
*
|
|
264
|
-
* canceled. To prevent conflicting changes, the current revision must be
|
|
265
|
-
* specified when updating the booking.
|
|
281
|
+
* Revision number to be used when updating, rescheduling, or cancelling the booking.
|
|
282
|
+
* Increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes, the current revision must be specified when updating the booking.
|
|
266
283
|
*/
|
|
267
284
|
revision?: string | null;
|
|
268
285
|
/**
|
|
@@ -303,37 +320,48 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
303
320
|
/** @oneof */
|
|
304
321
|
interface BookingParticipantsInfoOneOf {
|
|
305
322
|
/**
|
|
306
|
-
* Total number of participants.
|
|
307
|
-
* doesn't
|
|
308
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
323
|
+
* Total number of participants.
|
|
324
|
+
* When creating a booking, use this field only if the relevant service has fixed pricing and doesn't offer variants and options ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
309
325
|
* @min 1
|
|
310
326
|
*/
|
|
311
327
|
totalParticipants?: number;
|
|
312
328
|
/**
|
|
313
|
-
* Information about the booked service choices and
|
|
314
|
-
*
|
|
329
|
+
* Information about the booked service choices and participant count for each choice.
|
|
330
|
+
* When creating a booking, use this field only if the booking includes multiple service variants
|
|
315
331
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
332
|
+
*
|
|
333
|
+
* For example, use this for a spa package booking that includes different service levels:
|
|
334
|
+
* - 2 participants chose "Standard Package".
|
|
335
|
+
* - 1 participant chose "VIP Package".
|
|
316
336
|
*/
|
|
317
337
|
participantsChoices?: ParticipantChoices;
|
|
318
338
|
}
|
|
319
339
|
interface BookedEntity extends BookedEntityItemOneOf {
|
|
320
340
|
/**
|
|
321
|
-
* Booked
|
|
341
|
+
* Booked slot
|
|
322
342
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
343
|
+
*
|
|
344
|
+
* Specify `slot` when creating bookings for:
|
|
345
|
+
* - **Appointment-based services:** Individual sessions with service providers (consultations, treatments).
|
|
346
|
+
* Wix Bookings creates a new session when the booking is confirmed.
|
|
347
|
+
* - **Class services:** Group sessions at specific times (fitness classes, workshops).
|
|
348
|
+
* Wix Bookings links the booking to an existing scheduled session.
|
|
349
|
+
*
|
|
350
|
+
* For course services, specify `schedule` instead of `slot`.
|
|
326
351
|
*/
|
|
327
352
|
slot?: BookedSlot;
|
|
328
353
|
/**
|
|
329
|
-
* Booked
|
|
354
|
+
* Booked schedule
|
|
330
355
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
|
|
331
|
-
*
|
|
356
|
+
*
|
|
357
|
+
* Specify `schedule` when creating bookings for:
|
|
358
|
+
* - **Course services:** Multi-session offerings spanning weeks or months (educational courses, training programs).
|
|
359
|
+
* Wix Bookings enrolls participants in all sessions defined by the course schedule.
|
|
332
360
|
*/
|
|
333
361
|
schedule?: BookedSchedule;
|
|
334
362
|
/**
|
|
335
363
|
* Session title at the time of booking. If there is no pre-existing session,
|
|
336
|
-
* for example for appointment-based services, `title`
|
|
364
|
+
* for example for appointment-based services, Wix Bookings sets `title` to the service name.
|
|
337
365
|
* @readonly
|
|
338
366
|
* @maxLength 6000
|
|
339
367
|
*/
|
|
@@ -350,17 +378,25 @@ interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
350
378
|
/** @oneof */
|
|
351
379
|
interface BookedEntityItemOneOf {
|
|
352
380
|
/**
|
|
353
|
-
* Booked
|
|
381
|
+
* Booked slot
|
|
354
382
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
383
|
+
*
|
|
384
|
+
* Specify `slot` when creating bookings for:
|
|
385
|
+
* - **Appointment-based services:** Individual sessions with service providers (consultations, treatments).
|
|
386
|
+
* Wix Bookings creates a new session when the booking is confirmed.
|
|
387
|
+
* - **Class services:** Group sessions at specific times (fitness classes, workshops).
|
|
388
|
+
* Wix Bookings links the booking to an existing scheduled session.
|
|
389
|
+
*
|
|
390
|
+
* For course services, specify `schedule` instead of `slot`.
|
|
358
391
|
*/
|
|
359
392
|
slot?: BookedSlot;
|
|
360
393
|
/**
|
|
361
|
-
* Booked
|
|
394
|
+
* Booked schedule
|
|
362
395
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
|
|
363
|
-
*
|
|
396
|
+
*
|
|
397
|
+
* Specify `schedule` when creating bookings for:
|
|
398
|
+
* - **Course services:** Multi-session offerings spanning weeks or months (educational courses, training programs).
|
|
399
|
+
* Wix Bookings enrolls participants in all sessions defined by the course schedule.
|
|
364
400
|
*/
|
|
365
401
|
schedule?: BookedSchedule;
|
|
366
402
|
}
|
|
@@ -372,35 +408,25 @@ interface BookedSlot {
|
|
|
372
408
|
/** Schedule ID. */
|
|
373
409
|
scheduleId?: string;
|
|
374
410
|
/**
|
|
375
|
-
* ID of the corresponding
|
|
411
|
+
* ID of the corresponding event
|
|
376
412
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)).
|
|
377
413
|
* Available for both appointment and class bookings, not available for course bookings.
|
|
378
|
-
* For appointment-based services, Wix Bookings automatically populates `eventId`
|
|
379
|
-
*
|
|
380
|
-
* automatically populated upon booking creation.
|
|
414
|
+
* For appointment-based services, Wix Bookings automatically populates `eventId` when the booking `status` changes to `CONFIRMED`.
|
|
415
|
+
* For class bookings, Wix Bookings automatically populates `eventId` upon booking creation.
|
|
381
416
|
* @minLength 36
|
|
382
417
|
* @maxLength 250
|
|
383
418
|
*/
|
|
384
419
|
eventId?: string | null;
|
|
385
|
-
/**
|
|
386
|
-
* The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
|
|
387
|
-
* format.
|
|
388
|
-
*/
|
|
420
|
+
/** The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format. */
|
|
389
421
|
startDate?: string | null;
|
|
390
|
-
/**
|
|
391
|
-
* The end time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
|
|
392
|
-
* format.
|
|
393
|
-
*/
|
|
422
|
+
/** The end time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format. */
|
|
394
423
|
endDate?: string | null;
|
|
395
|
-
/** The
|
|
424
|
+
/** The time zone according to which the slot was shown to the user when booking, and should be shown in the future. */
|
|
396
425
|
timezone?: string | null;
|
|
397
426
|
/**
|
|
398
|
-
* Primary
|
|
399
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction))
|
|
400
|
-
*
|
|
401
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction))
|
|
402
|
-
* providing the
|
|
403
|
-
* service.
|
|
427
|
+
* Primary resource
|
|
428
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)) for the booking.
|
|
429
|
+
* For example, the staff member ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction)) providing the service.
|
|
404
430
|
*/
|
|
405
431
|
resource?: BookedResource;
|
|
406
432
|
/** Location where the session takes place. */
|
|
@@ -462,10 +488,7 @@ declare enum LocationType {
|
|
|
462
488
|
/** @enumType */
|
|
463
489
|
type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
|
|
464
490
|
interface BookedSchedule {
|
|
465
|
-
/**
|
|
466
|
-
* _Schedule ID_
|
|
467
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
|
|
468
|
-
*/
|
|
491
|
+
/** Schedule ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)). */
|
|
469
492
|
scheduleId?: string;
|
|
470
493
|
/**
|
|
471
494
|
* Booked service ID.
|
|
@@ -473,26 +496,22 @@ interface BookedSchedule {
|
|
|
473
496
|
*/
|
|
474
497
|
serviceId?: string | null;
|
|
475
498
|
/**
|
|
476
|
-
*
|
|
477
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
|
|
478
|
-
* where the schedule's sessions take place.
|
|
499
|
+
* Location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)) where the schedule's sessions take place.
|
|
479
500
|
* @readonly
|
|
480
501
|
*/
|
|
481
502
|
location?: Location;
|
|
482
503
|
/**
|
|
483
|
-
*
|
|
504
|
+
* Time zone in which the slot or session was shown to the customer when they booked.
|
|
484
505
|
* Also used whenever the customer reviews the booking's timing in the future.
|
|
485
506
|
*/
|
|
486
507
|
timezone?: string | null;
|
|
487
508
|
/**
|
|
488
|
-
* Start time of the first session related to the booking in
|
|
489
|
-
* [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
509
|
+
* Start time of the first session related to the booking in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
490
510
|
* @readonly
|
|
491
511
|
*/
|
|
492
512
|
firstSessionStart?: string | null;
|
|
493
513
|
/**
|
|
494
|
-
* End time of the last session related to the booking in
|
|
495
|
-
* [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
514
|
+
* End time of the last session related to the booking in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
496
515
|
* @readonly
|
|
497
516
|
*/
|
|
498
517
|
lastSessionEnd?: string | null;
|
|
@@ -619,38 +638,26 @@ declare enum ValueType {
|
|
|
619
638
|
type ValueTypeWithLiterals = ValueType | 'SHORT_TEXT' | 'LONG_TEXT' | 'CHECK_BOX';
|
|
620
639
|
/** Booking status. */
|
|
621
640
|
declare enum BookingStatus {
|
|
622
|
-
/**
|
|
623
|
-
* The booking was created, but the customer hasn't completed the related
|
|
624
|
-
* eCommerce order yet.
|
|
625
|
-
*/
|
|
641
|
+
/** The booking was created, but the customer hasn't completed the related eCommerce order yet. */
|
|
626
642
|
CREATED = "CREATED",
|
|
627
643
|
/**
|
|
628
|
-
* The merchant has confirmed the booking and it appears in the
|
|
629
|
-
*
|
|
630
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction))
|
|
631
|
-
* to automatically confirm all `PENDING` bookings.
|
|
644
|
+
* The merchant has confirmed the booking and it appears in the business calendar. Merchants can set up their services
|
|
645
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction)) to automatically confirm all `PENDING` bookings.
|
|
632
646
|
*/
|
|
633
647
|
CONFIRMED = "CONFIRMED",
|
|
634
648
|
/**
|
|
635
|
-
* The customer has canceled the booking. Depending on the relevant service's
|
|
636
|
-
* _policy snapshot_
|
|
649
|
+
* The customer has canceled the booking. Depending on the relevant service's policy snapshot
|
|
637
650
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policy-snapshots/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction))
|
|
638
|
-
* they may have to pay a
|
|
639
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-fees/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/booking-fees/introduction)).
|
|
651
|
+
* they may have to pay a cancellation fee ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-fees/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/booking-fees/introduction)).
|
|
640
652
|
*/
|
|
641
653
|
CANCELED = "CANCELED",
|
|
642
|
-
/**
|
|
643
|
-
* The merchant must manually confirm the booking before it appears
|
|
644
|
-
* in the business calendar.
|
|
645
|
-
*/
|
|
654
|
+
/** The merchant must manually confirm the booking before it appears in the business calendar. */
|
|
646
655
|
PENDING = "PENDING",
|
|
647
656
|
/** The merchant has declined the booking before the customer was charged. */
|
|
648
657
|
DECLINED = "DECLINED",
|
|
649
658
|
/**
|
|
650
659
|
* The booking is on a waitlist.
|
|
651
|
-
* Currently, you can't call Register to Waitlist
|
|
652
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist))
|
|
653
|
-
* for course or appointment bookings, even though this is supported in live sites.
|
|
660
|
+
* Currently, you can't call Register to Waitlist ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist)) for course or appointment bookings, even though this is supported in live sites.
|
|
654
661
|
* You can call Register to Waitlist only for class session bookings.
|
|
655
662
|
*/
|
|
656
663
|
WAITING_LIST = "WAITING_LIST"
|
|
@@ -772,8 +779,7 @@ interface ParticipantChoices {
|
|
|
772
779
|
}
|
|
773
780
|
interface ServiceChoices {
|
|
774
781
|
/**
|
|
775
|
-
* Number of participants for this
|
|
776
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
782
|
+
* Number of participants for this variant ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
777
783
|
* @min 1
|
|
778
784
|
*/
|
|
779
785
|
numberOfParticipants?: number | null;
|