@wix/auto_sdk_bookings_pricing 1.0.29 → 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 +3 -2
|
@@ -192,16 +192,19 @@ interface CalculatePriceRequest {
|
|
|
192
192
|
/** An entity representing a scheduled appointment, class session, or course. */
|
|
193
193
|
interface Booking extends BookingParticipantsInfoOneOf {
|
|
194
194
|
/**
|
|
195
|
-
* Total number of participants.
|
|
196
|
-
* doesn't
|
|
197
|
-
* ([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)).
|
|
195
|
+
* Total number of participants.
|
|
196
|
+
* 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)).
|
|
198
197
|
* @min 1
|
|
199
198
|
*/
|
|
200
199
|
totalParticipants?: number;
|
|
201
200
|
/**
|
|
202
|
-
* Information about the booked service choices and
|
|
203
|
-
*
|
|
201
|
+
* Information about the booked service choices and participant count for each choice.
|
|
202
|
+
* When creating a booking, use this field only if the booking includes multiple service variants
|
|
204
203
|
* ([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)).
|
|
204
|
+
*
|
|
205
|
+
* For example, use this for a spa package booking that includes different service levels:
|
|
206
|
+
* - 2 participants chose "Standard Package".
|
|
207
|
+
* - 1 participant chose "VIP Package".
|
|
205
208
|
*/
|
|
206
209
|
participantsChoices?: ParticipantChoices;
|
|
207
210
|
/**
|
|
@@ -211,15 +214,24 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
211
214
|
*/
|
|
212
215
|
_id?: string | null;
|
|
213
216
|
/**
|
|
214
|
-
* An object describing the
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
217
|
+
* An object describing the bookable entity - either a specific time slot or a recurring schedule.
|
|
218
|
+
*
|
|
219
|
+
* The structure depends on the type of service being booked:
|
|
220
|
+
*
|
|
221
|
+
* *For appointment services:** Use `slot` to book a specific time slot with a
|
|
222
|
+
* service provider. Appointments are typically one-time sessions at a specific date and time.
|
|
223
|
+
*
|
|
224
|
+
* *For class services:** Use `slot` to book a specific class session. Classes
|
|
225
|
+
* are individual sessions that can have multiple participants.
|
|
226
|
+
*
|
|
227
|
+
* *For course services:** Use `schedule` to book an entire course consisting of
|
|
228
|
+
* multiple sessions over time. Courses are recurring, multi-session offerings.
|
|
229
|
+
*
|
|
230
|
+
* Choose the appropriate field based on your service type and booking requirements.
|
|
219
231
|
*/
|
|
220
232
|
bookedEntity?: BookedEntity;
|
|
221
233
|
/**
|
|
222
|
-
* Contact details of the site visitor or
|
|
234
|
+
* Contact details of the site visitor or member
|
|
223
235
|
* ([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))
|
|
224
236
|
* making the booking.
|
|
225
237
|
*/
|
|
@@ -234,20 +246,27 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
234
246
|
*/
|
|
235
247
|
status?: BookingStatusWithLiterals;
|
|
236
248
|
/**
|
|
237
|
-
* The payment status of the booking
|
|
238
|
-
*
|
|
239
|
-
* ([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))
|
|
240
|
-
*
|
|
249
|
+
* The payment status of the booking. This field automatically syncs with the
|
|
250
|
+
* `paymentStatus` of the corresponding eCommerce order
|
|
251
|
+
* ([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))
|
|
252
|
+
* when customers use Wix eCommerce checkout.
|
|
253
|
+
*
|
|
254
|
+
* ## Integration patterns
|
|
255
|
+
*
|
|
256
|
+
* *When using Wix eCommerce checkout:** Wix Bookings automatically syncs the payment status based on the eCommerce order's payment status.
|
|
257
|
+
* Do not manually update this field.
|
|
258
|
+
*
|
|
259
|
+
* *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.
|
|
260
|
+
*
|
|
261
|
+
* *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.
|
|
262
|
+
*
|
|
263
|
+
* All payment statuses are supported for every booking `status`.
|
|
241
264
|
*/
|
|
242
265
|
paymentStatus?: PaymentStatusWithLiterals;
|
|
243
266
|
/**
|
|
244
|
-
* Payment option selected by the customer. If the customer hasn't completed their
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
* unless `skipSelectedPaymentOptionValidation` is `true`.
|
|
248
|
-
* When undefined during an *eCommerce checkout*
|
|
249
|
-
* ([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)),
|
|
250
|
-
* Wix Bookings uses the service's default payment option
|
|
267
|
+
* 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`.
|
|
268
|
+
*
|
|
269
|
+
* 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
|
|
251
270
|
*/
|
|
252
271
|
selectedPaymentOption?: SelectedPaymentOptionWithLiterals;
|
|
253
272
|
/**
|
|
@@ -258,10 +277,8 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
258
277
|
/** External user ID that you can provide. */
|
|
259
278
|
externalUserId?: string | null;
|
|
260
279
|
/**
|
|
261
|
-
* Revision number to be used when updating, rescheduling, or cancelling the
|
|
262
|
-
*
|
|
263
|
-
* canceled. To prevent conflicting changes, the current revision must be
|
|
264
|
-
* specified when updating the booking.
|
|
280
|
+
* Revision number to be used when updating, rescheduling, or cancelling the booking.
|
|
281
|
+
* 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.
|
|
265
282
|
*/
|
|
266
283
|
revision?: string | null;
|
|
267
284
|
/**
|
|
@@ -302,21 +319,24 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
302
319
|
/** @oneof */
|
|
303
320
|
interface BookingParticipantsInfoOneOf {
|
|
304
321
|
/**
|
|
305
|
-
* Total number of participants.
|
|
306
|
-
* doesn't
|
|
307
|
-
* ([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)).
|
|
322
|
+
* Total number of participants.
|
|
323
|
+
* 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)).
|
|
308
324
|
* @min 1
|
|
309
325
|
*/
|
|
310
326
|
totalParticipants?: number;
|
|
311
327
|
/**
|
|
312
|
-
* Information about the booked service choices and
|
|
313
|
-
*
|
|
328
|
+
* Information about the booked service choices and participant count for each choice.
|
|
329
|
+
* When creating a booking, use this field only if the booking includes multiple service variants
|
|
314
330
|
* ([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)).
|
|
331
|
+
*
|
|
332
|
+
* For example, use this for a spa package booking that includes different service levels:
|
|
333
|
+
* - 2 participants chose "Standard Package".
|
|
334
|
+
* - 1 participant chose "VIP Package".
|
|
315
335
|
*/
|
|
316
336
|
participantsChoices?: ParticipantChoices;
|
|
317
337
|
}
|
|
318
338
|
/**
|
|
319
|
-
* A multi-service booking is considered available if all
|
|
339
|
+
* A multi-service booking is considered available if all single-service bookings are available as returned from List Multi Service Availability Time Slots.
|
|
320
340
|
* Currently, `SEPARATE_BOOKINGS` and `PARALLEL_BOOKINGS` are not supported.
|
|
321
341
|
* Multi-service booking is available if each of its bookings is available separately.
|
|
322
342
|
* For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
|
|
@@ -330,22 +350,30 @@ declare enum MultiServiceBookingType {
|
|
|
330
350
|
type MultiServiceBookingTypeWithLiterals = MultiServiceBookingType | 'SEQUENTIAL_BOOKINGS' | 'SEPARATE_BOOKINGS' | 'PARALLEL_BOOKINGS';
|
|
331
351
|
interface BookedEntity extends BookedEntityItemOneOf {
|
|
332
352
|
/**
|
|
333
|
-
* Booked
|
|
353
|
+
* Booked slot
|
|
334
354
|
* ([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)).
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
355
|
+
*
|
|
356
|
+
* Specify `slot` when creating bookings for:
|
|
357
|
+
* - **Appointment-based services:** Individual sessions with service providers (consultations, treatments).
|
|
358
|
+
* Wix Bookings creates a new session when the booking is confirmed.
|
|
359
|
+
* - **Class services:** Group sessions at specific times (fitness classes, workshops).
|
|
360
|
+
* Wix Bookings links the booking to an existing scheduled session.
|
|
361
|
+
*
|
|
362
|
+
* For course services, specify `schedule` instead of `slot`.
|
|
338
363
|
*/
|
|
339
364
|
slot?: BookedSlot;
|
|
340
365
|
/**
|
|
341
|
-
* Booked
|
|
366
|
+
* Booked schedule
|
|
342
367
|
* ([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)).
|
|
343
|
-
*
|
|
368
|
+
*
|
|
369
|
+
* Specify `schedule` when creating bookings for:
|
|
370
|
+
* - **Course services:** Multi-session offerings spanning weeks or months (educational courses, training programs).
|
|
371
|
+
* Wix Bookings enrolls participants in all sessions defined by the course schedule.
|
|
344
372
|
*/
|
|
345
373
|
schedule?: BookedSchedule;
|
|
346
374
|
/**
|
|
347
375
|
* Session title at the time of booking. If there is no pre-existing session,
|
|
348
|
-
* for example for appointment-based services, `title`
|
|
376
|
+
* for example for appointment-based services, Wix Bookings sets `title` to the service name.
|
|
349
377
|
* @readonly
|
|
350
378
|
* @maxLength 6000
|
|
351
379
|
*/
|
|
@@ -362,17 +390,25 @@ interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
362
390
|
/** @oneof */
|
|
363
391
|
interface BookedEntityItemOneOf {
|
|
364
392
|
/**
|
|
365
|
-
* Booked
|
|
393
|
+
* Booked slot
|
|
366
394
|
* ([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)).
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
395
|
+
*
|
|
396
|
+
* Specify `slot` when creating bookings for:
|
|
397
|
+
* - **Appointment-based services:** Individual sessions with service providers (consultations, treatments).
|
|
398
|
+
* Wix Bookings creates a new session when the booking is confirmed.
|
|
399
|
+
* - **Class services:** Group sessions at specific times (fitness classes, workshops).
|
|
400
|
+
* Wix Bookings links the booking to an existing scheduled session.
|
|
401
|
+
*
|
|
402
|
+
* For course services, specify `schedule` instead of `slot`.
|
|
370
403
|
*/
|
|
371
404
|
slot?: BookedSlot;
|
|
372
405
|
/**
|
|
373
|
-
* Booked
|
|
406
|
+
* Booked schedule
|
|
374
407
|
* ([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)).
|
|
375
|
-
*
|
|
408
|
+
*
|
|
409
|
+
* Specify `schedule` when creating bookings for:
|
|
410
|
+
* - **Course services:** Multi-session offerings spanning weeks or months (educational courses, training programs).
|
|
411
|
+
* Wix Bookings enrolls participants in all sessions defined by the course schedule.
|
|
376
412
|
*/
|
|
377
413
|
schedule?: BookedSchedule;
|
|
378
414
|
}
|
|
@@ -384,35 +420,25 @@ interface BookedSlot {
|
|
|
384
420
|
/** Schedule ID. */
|
|
385
421
|
scheduleId?: string;
|
|
386
422
|
/**
|
|
387
|
-
* ID of the corresponding
|
|
423
|
+
* ID of the corresponding event
|
|
388
424
|
* ([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)).
|
|
389
425
|
* Available for both appointment and class bookings, not available for course bookings.
|
|
390
|
-
* For appointment-based services, Wix Bookings automatically populates `eventId`
|
|
391
|
-
*
|
|
392
|
-
* automatically populated upon booking creation.
|
|
426
|
+
* For appointment-based services, Wix Bookings automatically populates `eventId` when the booking `status` changes to `CONFIRMED`.
|
|
427
|
+
* For class bookings, Wix Bookings automatically populates `eventId` upon booking creation.
|
|
393
428
|
* @minLength 36
|
|
394
429
|
* @maxLength 250
|
|
395
430
|
*/
|
|
396
431
|
eventId?: string | null;
|
|
397
|
-
/**
|
|
398
|
-
* The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
|
|
399
|
-
* format.
|
|
400
|
-
*/
|
|
432
|
+
/** The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format. */
|
|
401
433
|
startDate?: string | null;
|
|
402
|
-
/**
|
|
403
|
-
* The end time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
|
|
404
|
-
* format.
|
|
405
|
-
*/
|
|
434
|
+
/** The end time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format. */
|
|
406
435
|
endDate?: string | null;
|
|
407
|
-
/** The
|
|
436
|
+
/** The time zone according to which the slot was shown to the user when booking, and should be shown in the future. */
|
|
408
437
|
timezone?: string | null;
|
|
409
438
|
/**
|
|
410
|
-
* Primary
|
|
411
|
-
* ([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))
|
|
412
|
-
*
|
|
413
|
-
* ([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))
|
|
414
|
-
* providing the
|
|
415
|
-
* service.
|
|
439
|
+
* Primary resource
|
|
440
|
+
* ([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.
|
|
441
|
+
* 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.
|
|
416
442
|
*/
|
|
417
443
|
resource?: BookedResource;
|
|
418
444
|
/** Location where the session takes place. */
|
|
@@ -474,10 +500,7 @@ declare enum LocationType {
|
|
|
474
500
|
/** @enumType */
|
|
475
501
|
type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
|
|
476
502
|
interface BookedSchedule {
|
|
477
|
-
/**
|
|
478
|
-
* _Schedule ID_
|
|
479
|
-
* ([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)).
|
|
480
|
-
*/
|
|
503
|
+
/** 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)). */
|
|
481
504
|
scheduleId?: string;
|
|
482
505
|
/**
|
|
483
506
|
* Booked service ID.
|
|
@@ -485,26 +508,22 @@ interface BookedSchedule {
|
|
|
485
508
|
*/
|
|
486
509
|
serviceId?: string | null;
|
|
487
510
|
/**
|
|
488
|
-
*
|
|
489
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
|
|
490
|
-
* where the schedule's sessions take place.
|
|
511
|
+
* 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.
|
|
491
512
|
* @readonly
|
|
492
513
|
*/
|
|
493
514
|
location?: Location;
|
|
494
515
|
/**
|
|
495
|
-
*
|
|
516
|
+
* Time zone in which the slot or session was shown to the customer when they booked.
|
|
496
517
|
* Also used whenever the customer reviews the booking's timing in the future.
|
|
497
518
|
*/
|
|
498
519
|
timezone?: string | null;
|
|
499
520
|
/**
|
|
500
|
-
* Start time of the first session related to the booking in
|
|
501
|
-
* [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
521
|
+
* Start time of the first session related to the booking in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
502
522
|
* @readonly
|
|
503
523
|
*/
|
|
504
524
|
firstSessionStart?: string | null;
|
|
505
525
|
/**
|
|
506
|
-
* End time of the last session related to the booking in
|
|
507
|
-
* [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
526
|
+
* End time of the last session related to the booking in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
|
|
508
527
|
* @readonly
|
|
509
528
|
*/
|
|
510
529
|
lastSessionEnd?: string | null;
|
|
@@ -631,38 +650,26 @@ declare enum ValueType {
|
|
|
631
650
|
type ValueTypeWithLiterals = ValueType | 'SHORT_TEXT' | 'LONG_TEXT' | 'CHECK_BOX';
|
|
632
651
|
/** Booking status. */
|
|
633
652
|
declare enum BookingStatus {
|
|
634
|
-
/**
|
|
635
|
-
* The booking was created, but the customer hasn't completed the related
|
|
636
|
-
* eCommerce order yet.
|
|
637
|
-
*/
|
|
653
|
+
/** The booking was created, but the customer hasn't completed the related eCommerce order yet. */
|
|
638
654
|
CREATED = "CREATED",
|
|
639
655
|
/**
|
|
640
|
-
* The merchant has confirmed the booking and it appears in the
|
|
641
|
-
*
|
|
642
|
-
* ([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))
|
|
643
|
-
* to automatically confirm all `PENDING` bookings.
|
|
656
|
+
* The merchant has confirmed the booking and it appears in the business calendar. Merchants can set up their services
|
|
657
|
+
* ([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.
|
|
644
658
|
*/
|
|
645
659
|
CONFIRMED = "CONFIRMED",
|
|
646
660
|
/**
|
|
647
|
-
* The customer has canceled the booking. Depending on the relevant service's
|
|
648
|
-
* _policy snapshot_
|
|
661
|
+
* The customer has canceled the booking. Depending on the relevant service's policy snapshot
|
|
649
662
|
* ([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))
|
|
650
|
-
* they may have to pay a
|
|
651
|
-
* ([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)).
|
|
663
|
+
* 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)).
|
|
652
664
|
*/
|
|
653
665
|
CANCELED = "CANCELED",
|
|
654
|
-
/**
|
|
655
|
-
* The merchant must manually confirm the booking before it appears
|
|
656
|
-
* in the business calendar.
|
|
657
|
-
*/
|
|
666
|
+
/** The merchant must manually confirm the booking before it appears in the business calendar. */
|
|
658
667
|
PENDING = "PENDING",
|
|
659
668
|
/** The merchant has declined the booking before the customer was charged. */
|
|
660
669
|
DECLINED = "DECLINED",
|
|
661
670
|
/**
|
|
662
671
|
* The booking is on a waitlist.
|
|
663
|
-
* Currently, you can't call Register to Waitlist
|
|
664
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist))
|
|
665
|
-
* for course or appointment bookings, even though this is supported in live sites.
|
|
672
|
+
* 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.
|
|
666
673
|
* You can call Register to Waitlist only for class session bookings.
|
|
667
674
|
*/
|
|
668
675
|
WAITING_LIST = "WAITING_LIST"
|
|
@@ -813,12 +820,25 @@ declare enum IdentityType {
|
|
|
813
820
|
}
|
|
814
821
|
/** @enumType */
|
|
815
822
|
type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
823
|
+
/**
|
|
824
|
+
* Settings that control booking flow behavior and override default business rules.
|
|
825
|
+
*
|
|
826
|
+
* These settings allow administrators to bypass standard validation checks
|
|
827
|
+
* and policies when creating, confirming, rescheduling, or canceling bookings.
|
|
828
|
+
* Most settings require elevated permissions to use.
|
|
829
|
+
*
|
|
830
|
+
* Use flow control settings to handle special scenarios like:
|
|
831
|
+
* - Emergency bookings outside normal business hours
|
|
832
|
+
* - Admin-initiated bookings that bypass availability checks
|
|
833
|
+
* - Custom payment flows that don't use standard eCommerce checkout
|
|
834
|
+
* - Overriding cancellation or rescheduling policies in exceptional cases
|
|
835
|
+
*/
|
|
816
836
|
interface FlowControlSettings {
|
|
817
837
|
/** Whether availability is checked when creating or confirming the booking. */
|
|
818
838
|
skipAvailabilityValidation?: boolean;
|
|
819
839
|
/**
|
|
820
840
|
* Whether the booking's `status` is automatically updated to `CONFIRMED` when
|
|
821
|
-
* the customer completes the
|
|
841
|
+
* the customer completes the eCommerce checkout
|
|
822
842
|
* ([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)),
|
|
823
843
|
* regardless of whether the relevant service requires manual business confirmation.
|
|
824
844
|
*/
|
|
@@ -856,8 +876,7 @@ interface ParticipantChoices {
|
|
|
856
876
|
}
|
|
857
877
|
interface ServiceChoices {
|
|
858
878
|
/**
|
|
859
|
-
* Number of participants for this
|
|
860
|
-
* ([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)).
|
|
879
|
+
* 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)).
|
|
861
880
|
* @min 1
|
|
862
881
|
*/
|
|
863
882
|
numberOfParticipants?: number | null;
|
|
@@ -879,36 +898,36 @@ interface MultiServiceBookingInfo {
|
|
|
879
898
|
}
|
|
880
899
|
interface BookedAddOn {
|
|
881
900
|
/**
|
|
882
|
-
* The ID of the
|
|
901
|
+
* The ID of the add-on.
|
|
883
902
|
* @format GUID
|
|
884
903
|
*/
|
|
885
904
|
_id?: string;
|
|
886
905
|
/**
|
|
887
|
-
* The ID of the
|
|
906
|
+
* The ID of the add-on group.
|
|
888
907
|
* @format GUID
|
|
889
908
|
*/
|
|
890
909
|
groupId?: string;
|
|
891
910
|
/**
|
|
892
|
-
* The
|
|
911
|
+
* The add-on duration in minutes at the time of booking.
|
|
893
912
|
* @min 1
|
|
894
913
|
* @max 1440
|
|
895
914
|
* @readonly
|
|
896
915
|
*/
|
|
897
916
|
durationInMinutes?: number | null;
|
|
898
917
|
/**
|
|
899
|
-
* The quantity of booked
|
|
918
|
+
* The quantity of booked add-ons.
|
|
900
919
|
* @min 1
|
|
901
920
|
* @max 1000
|
|
902
921
|
*/
|
|
903
922
|
quantity?: number | null;
|
|
904
923
|
/**
|
|
905
|
-
* Add-
|
|
924
|
+
* Add-on `name` at the time of booking.
|
|
906
925
|
* @maxLength 100
|
|
907
926
|
* @readonly
|
|
908
927
|
*/
|
|
909
928
|
name?: string | null;
|
|
910
929
|
/**
|
|
911
|
-
* Add-
|
|
930
|
+
* Add-on name translated to the language the customer used during booking.
|
|
912
931
|
* @maxLength 100
|
|
913
932
|
* @readonly
|
|
914
933
|
*/
|