@wix/auto_sdk_bookings_pricing 1.0.0 → 1.0.2

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.
Files changed (25) hide show
  1. package/build/cjs/src/bookings-v2-price-info-pricing.types.d.ts +149 -51
  2. package/build/cjs/src/bookings-v2-price-info-pricing.types.js +3 -3
  3. package/build/cjs/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  4. package/build/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +150 -50
  5. package/build/cjs/src/bookings-v2-price-info-pricing.universal.js +3 -3
  6. package/build/cjs/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  7. package/build/es/src/bookings-v2-price-info-pricing.types.d.ts +149 -51
  8. package/build/es/src/bookings-v2-price-info-pricing.types.js +3 -3
  9. package/build/es/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  10. package/build/es/src/bookings-v2-price-info-pricing.universal.d.ts +150 -50
  11. package/build/es/src/bookings-v2-price-info-pricing.universal.js +3 -3
  12. package/build/es/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  13. package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.d.ts +149 -51
  14. package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.js +3 -3
  15. package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  16. package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +150 -50
  17. package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js +3 -3
  18. package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  19. package/build/internal/es/src/bookings-v2-price-info-pricing.types.d.ts +149 -51
  20. package/build/internal/es/src/bookings-v2-price-info-pricing.types.js +3 -3
  21. package/build/internal/es/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  22. package/build/internal/es/src/bookings-v2-price-info-pricing.universal.d.ts +150 -50
  23. package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js +3 -3
  24. package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  25. package/package.json +2 -2
@@ -24,7 +24,10 @@ export interface PriceInfo extends PriceInfoTotalPriceOneOf {
24
24
  * rateType is CUSTOM
25
25
  */
26
26
  priceDescriptionInfo?: PriceDescriptionInfo;
27
- /** List of line items, including the number of participants and the price per participant. */
27
+ /**
28
+ * List of line items, including the number of participants and the price per participant.
29
+ * @maxSize 10
30
+ */
28
31
  bookingLineItems?: BookingLineItem[];
29
32
  /**
30
33
  * Total deposit the customer must pay when booking the service.
@@ -69,9 +72,13 @@ export interface BookingLineItem {
69
72
  *
70
73
  * Optional when using custom pricing logic defined with the
71
74
  * [Bookings Pricing Integration SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
75
+ * @format GUID
72
76
  */
73
77
  serviceId?: string | null;
74
- /** Resource ID. Required for services of type appointment or class. */
78
+ /**
79
+ * Resource ID. Required for services of type appointment or class.
80
+ * @format GUID
81
+ */
75
82
  resourceId?: string | null;
76
83
  /**
77
84
  * Custom choices. Choices are specific values for an option the customer can choose to book.
@@ -79,7 +86,10 @@ export interface BookingLineItem {
79
86
  * Each choice may have a different price.
80
87
  */
81
88
  choices?: ServiceChoice[];
82
- /** Number of participants for the line item. */
89
+ /**
90
+ * Number of participants for the line item.
91
+ * @min 1
92
+ */
83
93
  numberOfParticipants?: number | null;
84
94
  /**
85
95
  * Price per participant for the line item.
@@ -100,6 +110,7 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
100
110
  * ID of the corresponding option for the choice. For example, the choice `child`
101
111
  * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
102
112
  * for the `ageGroup` option.
113
+ * @format GUID
103
114
  */
104
115
  optionId?: string;
105
116
  }
@@ -118,22 +129,35 @@ export interface Duration {
118
129
  /**
119
130
  * Duration of the service in minutes.
120
131
  * Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
132
+ * @min 1
133
+ * @max 44639
121
134
  */
122
135
  minutes?: number;
123
136
  /**
124
137
  * Name of the duration option.
125
138
  * Defaults to the formatted duration e.g. "1 hour, 30 minutes".
139
+ * @maxLength 255
126
140
  */
127
141
  name?: string | null;
128
142
  }
129
143
  export interface PriceDescriptionInfo {
130
- /** The price description in the main site language */
144
+ /**
145
+ * The price description in the main site language
146
+ * @maxLength 50
147
+ */
131
148
  original?: string;
132
- /** The translated price description in case the booking was made in a secondary language */
149
+ /**
150
+ * The translated price description in case the booking was made in a secondary language
151
+ * @maxLength 50
152
+ */
133
153
  translated?: string | null;
134
154
  }
135
155
  export interface PreviewPriceRequest {
136
- /** List of line items to preview the price for. */
156
+ /**
157
+ * List of line items to preview the price for.
158
+ * @minSize 1
159
+ * @maxSize 10
160
+ */
137
161
  bookingLineItems: BookingLineItem[];
138
162
  }
139
163
  export interface PreviewPriceResponse {
@@ -148,32 +172,34 @@ export interface CalculatePriceRequest {
148
172
  export interface Booking extends BookingParticipantsInfoOneOf {
149
173
  /**
150
174
  * Total number of participants. Available only when the relevant service
151
- * doesn't have variants and options
175
+ * doesn't have _variants and options_
152
176
  * ([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)).
177
+ * @min 1
153
178
  */
154
179
  totalParticipants?: number;
155
180
  /**
156
181
  * Information about the booked service choices and participants.
157
- * Available only when the booking includes multiple service variants
182
+ * Available only when the booking includes multiple _service variants_
158
183
  * ([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)).
159
184
  */
160
185
  participantsChoices?: ParticipantChoices;
161
186
  /**
162
187
  * Booking ID.
188
+ * @format GUID
163
189
  * @readonly
164
190
  */
165
191
  id?: string | null;
166
192
  /**
167
- * An object describing the slot
193
+ * An object describing the *slot*
168
194
  * ([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))
169
- * or schedule
195
+ * or *schedule*
170
196
  * ([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))
171
197
  * that was booked.
172
198
  */
173
199
  bookedEntity?: BookedEntity;
174
200
  /**
175
- * Contact details of the site visitor or
176
- * member ([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))
201
+ * Contact details of the site visitor or *member*
202
+ * ([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))
177
203
  * making the booking.
178
204
  */
179
205
  contactDetails?: ContactDetails;
@@ -188,7 +214,8 @@ export interface Booking extends BookingParticipantsInfoOneOf {
188
214
  status?: BookingStatus;
189
215
  /**
190
216
  * The payment status of the booking corresponds to the `paymentStatus` of the
191
- * related eCommerce order ([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)),
217
+ * related *eCommerce order*
218
+ * ([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)),
192
219
  * if one exists. All payment statuses are supported for every booking `status`.
193
220
  */
194
221
  paymentStatus?: PaymentStatus;
@@ -197,8 +224,8 @@ export interface Booking extends BookingParticipantsInfoOneOf {
197
224
  * checkout, they may still change the payment method. Must be one of the payment
198
225
  * 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)),
199
226
  * unless `skipSelectedPaymentOptionValidation` is `true`.
200
- * When undefined during an
201
- * 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)),
227
+ * When undefined during an *eCommerce checkout*
228
+ * ([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)),
202
229
  * Wix Bookings uses the service's default payment option
203
230
  */
204
231
  selectedPaymentOption?: SelectedPaymentOption;
@@ -255,13 +282,14 @@ export interface Booking extends BookingParticipantsInfoOneOf {
255
282
  export interface BookingParticipantsInfoOneOf {
256
283
  /**
257
284
  * Total number of participants. Available only when the relevant service
258
- * doesn't have variants and options
285
+ * doesn't have _variants and options_
259
286
  * ([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)).
287
+ * @min 1
260
288
  */
261
289
  totalParticipants?: number;
262
290
  /**
263
291
  * Information about the booked service choices and participants.
264
- * Available only when the booking includes multiple service variants
292
+ * Available only when the booking includes multiple _service variants_
265
293
  * ([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)).
266
294
  */
267
295
  participantsChoices?: ParticipantChoices;
@@ -279,7 +307,7 @@ export declare enum MultiServiceBookingType {
279
307
  }
280
308
  export interface BookedEntity extends BookedEntityItemOneOf {
281
309
  /**
282
- * Booked slot
310
+ * Booked *slot*
283
311
  * ([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)).
284
312
  * Available only for appointment-based services and classes.
285
313
  * For appointment-based services, a new session is created, while for classes,
@@ -287,7 +315,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
287
315
  */
288
316
  slot?: BookedSlot;
289
317
  /**
290
- * Booked schedule
318
+ * Booked *schedule*
291
319
  * ([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)).
292
320
  * Available only for course bookings.
293
321
  */
@@ -296,6 +324,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
296
324
  * Session title at the time of booking. If there is no pre-existing session,
297
325
  * for example for appointment-based services, `title` is set to the service name.
298
326
  * @readonly
327
+ * @maxLength 6000
299
328
  */
300
329
  title?: string | null;
301
330
  /**
@@ -310,7 +339,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
310
339
  /** @oneof */
311
340
  export interface BookedEntityItemOneOf {
312
341
  /**
313
- * Booked slot
342
+ * Booked *slot*
314
343
  * ([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)).
315
344
  * Available only for appointment-based services and classes.
316
345
  * For appointment-based services, a new session is created, while for classes,
@@ -318,7 +347,7 @@ export interface BookedEntityItemOneOf {
318
347
  */
319
348
  slot?: BookedSlot;
320
349
  /**
321
- * Booked schedule
350
+ * Booked *schedule*
322
351
  * ([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)).
323
352
  * Available only for course bookings.
324
353
  */
@@ -332,12 +361,14 @@ export interface BookedSlot {
332
361
  /** Schedule ID. */
333
362
  scheduleId?: string;
334
363
  /**
335
- * ID of the corresponding event
364
+ * ID of the corresponding *event*
336
365
  * ([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)).
337
366
  * Available for both appointment and class bookings, not available for course bookings.
338
367
  * For appointment-based services, Wix Bookings automatically populates `eventId`
339
368
  * when the booking `status` changes to `CONFIRMED`. For class bookings, it's
340
369
  * automatically populated upon booking creation.
370
+ * @minLength 36
371
+ * @maxLength 250
341
372
  */
342
373
  eventId?: string | null;
343
374
  /**
@@ -353,9 +384,9 @@ export interface BookedSlot {
353
384
  /** The timezone according to which the slot was shown to the user when booking, and should be shown in the future. */
354
385
  timezone?: string | null;
355
386
  /**
356
- * Primary resource
387
+ * Primary *resource*
357
388
  * ([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))
358
- * for the booking. For example, the staff member
389
+ * for the booking. For example, the *staff member*
359
390
  * ([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))
360
391
  * providing the
361
392
  * service.
@@ -365,26 +396,42 @@ export interface BookedSlot {
365
396
  location?: Location;
366
397
  }
367
398
  export interface BookedResource {
368
- /** ID of the booking's primary resource. */
399
+ /**
400
+ * ID of the booking's primary resource.
401
+ * @format GUID
402
+ */
369
403
  id?: string;
370
- /** Resource's name at the time of booking. */
404
+ /**
405
+ * Resource's name at the time of booking.
406
+ * @maxLength 40
407
+ */
371
408
  name?: string | null;
372
- /** Resource's email at the time of booking. */
409
+ /**
410
+ * Resource's email at the time of booking.
411
+ * @maxLength 500
412
+ */
373
413
  email?: string | null;
374
- /** ID of the schedule belonging to the booking's primary resource. */
414
+ /**
415
+ * ID of the schedule belonging to the booking's primary resource.
416
+ * @format GUID
417
+ */
375
418
  scheduleId?: string | null;
376
419
  }
377
420
  export interface Location {
378
421
  /**
379
422
  * Business location ID. Available only for locations that are business locations,
380
423
  * meaning the `location_type` is `"OWNER_BUSINESS"`.
424
+ * @format GUID
381
425
  */
382
426
  id?: string | null;
383
427
  /** Location name. */
384
428
  name?: string | null;
385
429
  /** The full address of this location. */
386
430
  formattedAddress?: string | null;
387
- /** The full translated address of this location. */
431
+ /**
432
+ * The full translated address of this location.
433
+ * @maxLength 512
434
+ */
388
435
  formattedAddressTranslated?: string | null;
389
436
  /**
390
437
  * Location type.
@@ -403,14 +450,17 @@ export declare enum LocationType {
403
450
  }
404
451
  export interface BookedSchedule {
405
452
  /**
406
- * Schedule ID
453
+ * _Schedule ID_
407
454
  * ([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)).
408
455
  */
409
456
  scheduleId?: string;
410
- /** Booked service ID. */
457
+ /**
458
+ * Booked service ID.
459
+ * @format GUID
460
+ */
411
461
  serviceId?: string | null;
412
462
  /**
413
- * Location
463
+ * _Location_
414
464
  * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
415
465
  * where the schedule's sessions take place.
416
466
  * @readonly
@@ -435,7 +485,10 @@ export interface BookedSchedule {
435
485
  lastSessionEnd?: string | null;
436
486
  }
437
487
  export interface ContactDetails {
438
- /** Contact ID. */
488
+ /**
489
+ * Contact ID.
490
+ * @format GUID
491
+ */
439
492
  contactId?: string | null;
440
493
  /**
441
494
  * Contact's first name. When populated from a standard booking form, this
@@ -450,6 +503,7 @@ export interface ContactDetails {
450
503
  * Used to validate coupon usage limitations per contact. If not specified,
451
504
  * the coupon usage limitation will not be enforced. (Coupon usage limitation
452
505
  * validation is not supported yet).
506
+ * @format EMAIL
453
507
  */
454
508
  email?: string | null;
455
509
  /** Contact's phone number. */
@@ -464,6 +518,7 @@ export interface ContactDetails {
464
518
  /**
465
519
  * Contact's country in [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
466
520
  * format.
521
+ * @format COUNTRY
467
522
  */
468
523
  countryCode?: string | null;
469
524
  }
@@ -473,7 +528,10 @@ export interface Address extends AddressStreetOneOf {
473
528
  streetAddress?: StreetAddress;
474
529
  /** Main address line, usually street and number, as free text. */
475
530
  addressLine?: string | null;
476
- /** Country code. */
531
+ /**
532
+ * Country code.
533
+ * @format COUNTRY
534
+ */
477
535
  country?: string | null;
478
536
  /** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
479
537
  subdivision?: string | null;
@@ -522,7 +580,10 @@ export interface Subdivision {
522
580
  name?: string;
523
581
  }
524
582
  export interface CustomFormField {
525
- /** ID of the form field as defined in the form. */
583
+ /**
584
+ * ID of the form field as defined in the form.
585
+ * @format GUID
586
+ */
526
587
  id?: string;
527
588
  /** Value that was submitted for this field. */
528
589
  value?: string | null;
@@ -550,16 +611,16 @@ export declare enum BookingStatus {
550
611
  CREATED = "CREATED",
551
612
  /**
552
613
  * The merchant has confirmed the booking and it appears in the
553
- * business calendar. Merchants can set up their services
614
+ * business calendar. Merchants can set up their *services*
554
615
  * ([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))
555
616
  * to automatically confirm all `PENDING` bookings.
556
617
  */
557
618
  CONFIRMED = "CONFIRMED",
558
619
  /**
559
620
  * The customer has canceled the booking. Depending on the relevant service's
560
- * policy snapshot
621
+ * _policy snapshot_
561
622
  * ([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))
562
- * they may have to pay a cancellation fee
623
+ * they may have to pay a _cancellation fee_
563
624
  * ([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)).
564
625
  */
565
626
  CANCELED = "CANCELED",
@@ -626,6 +687,7 @@ export interface BookingSource {
626
687
  actor?: Actor;
627
688
  /**
628
689
  * Wix site ID of the application that created the booking.
690
+ * @format GUID
629
691
  * @readonly
630
692
  */
631
693
  appDefId?: string | null;
@@ -656,26 +718,53 @@ export interface ParticipantNotification {
656
718
  message?: string | null;
657
719
  }
658
720
  export interface IdentificationData extends IdentificationDataIdOneOf {
659
- /** ID of a site visitor that has not logged in to the site. */
721
+ /**
722
+ * ID of a site visitor that has not logged in to the site.
723
+ * @format GUID
724
+ */
660
725
  anonymousVisitorId?: string;
661
- /** ID of a site visitor that has logged in to the site. */
726
+ /**
727
+ * ID of a site visitor that has logged in to the site.
728
+ * @format GUID
729
+ */
662
730
  memberId?: string;
663
- /** ID of a Wix user (site owner, contributor, etc.). */
731
+ /**
732
+ * ID of a Wix user (site owner, contributor, etc.).
733
+ * @format GUID
734
+ */
664
735
  wixUserId?: string;
665
- /** ID of an app. */
736
+ /**
737
+ * ID of an app.
738
+ * @format GUID
739
+ */
666
740
  appId?: string;
667
- /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
741
+ /**
742
+ * ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
743
+ * @format GUID
744
+ */
668
745
  contactId?: string | null;
669
746
  }
670
747
  /** @oneof */
671
748
  export interface IdentificationDataIdOneOf {
672
- /** ID of a site visitor that has not logged in to the site. */
749
+ /**
750
+ * ID of a site visitor that has not logged in to the site.
751
+ * @format GUID
752
+ */
673
753
  anonymousVisitorId?: string;
674
- /** ID of a site visitor that has logged in to the site. */
754
+ /**
755
+ * ID of a site visitor that has logged in to the site.
756
+ * @format GUID
757
+ */
675
758
  memberId?: string;
676
- /** ID of a Wix user (site owner, contributor, etc.). */
759
+ /**
760
+ * ID of a Wix user (site owner, contributor, etc.).
761
+ * @format GUID
762
+ */
677
763
  wixUserId?: string;
678
- /** ID of an app. */
764
+ /**
765
+ * ID of an app.
766
+ * @format GUID
767
+ */
679
768
  appId?: string;
680
769
  }
681
770
  export declare enum IdentityType {
@@ -690,7 +779,7 @@ export interface FlowControlSettings {
690
779
  skipAvailabilityValidation?: boolean;
691
780
  /**
692
781
  * Whether the booking's `status` is automatically updated to `CONFIRMED` when
693
- * the customer completes the eCommerce checkout
782
+ * the customer completes the *eCommerce checkout*
694
783
  * ([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)),
695
784
  * regardless of whether the relevant service requires manual business confirmation.
696
785
  */
@@ -719,21 +808,30 @@ export interface ExtendedFields {
719
808
  namespaces?: Record<string, Record<string, any>>;
720
809
  }
721
810
  export interface ParticipantChoices {
722
- /** Information about the booked service choices. Includes the number of participants. */
811
+ /**
812
+ * Information about the booked service choices. Includes the number of participants.
813
+ * @minSize 1
814
+ * @maxSize 10
815
+ */
723
816
  serviceChoices?: ServiceChoices[];
724
817
  }
725
818
  export interface ServiceChoices {
726
819
  /**
727
- * Number of participants for this variant
820
+ * Number of participants for this _variant_
728
821
  * ([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)).
822
+ * @min 1
729
823
  */
730
824
  numberOfParticipants?: number | null;
731
- /** Service choices for these participants. */
825
+ /**
826
+ * Service choices for these participants.
827
+ * @maxSize 5
828
+ */
732
829
  choices?: ServiceChoice[];
733
830
  }
734
831
  export interface MultiServiceBookingInfo {
735
832
  /**
736
833
  * Multi-service booking ID.
834
+ * @format GUID
737
835
  * @readonly
738
836
  */
739
837
  id?: string | null;
@@ -39,16 +39,16 @@ var BookingStatus;
39
39
  BookingStatus["CREATED"] = "CREATED";
40
40
  /**
41
41
  * The merchant has confirmed the booking and it appears in the
42
- * business calendar. Merchants can set up their services
42
+ * business calendar. Merchants can set up their *services*
43
43
  * ([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))
44
44
  * to automatically confirm all `PENDING` bookings.
45
45
  */
46
46
  BookingStatus["CONFIRMED"] = "CONFIRMED";
47
47
  /**
48
48
  * The customer has canceled the booking. Depending on the relevant service's
49
- * policy snapshot
49
+ * _policy snapshot_
50
50
  * ([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))
51
- * they may have to pay a cancellation fee
51
+ * they may have to pay a _cancellation fee_
52
52
  * ([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)).
53
53
  */
54
54
  BookingStatus["CANCELED"] = "CANCELED";
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-price-info-pricing.types.js","sourceRoot":"","sources":["../../../../src/bookings-v2-price-info-pricing.types.ts"],"names":[],"mappings":";;;AAwRA;;;;;GAKG;AACH,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,sEAA2C,CAAA;IAC3C,kEAAuC,CAAA;IACvC,kEAAuC,CAAA;AACzC,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC;AA6HD,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AA8ID,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,kDAAkD;IAClD,sCAAyB,CAAA;IACzB,iBAAiB;IACjB,oCAAuB,CAAA;IACvB,sGAAsG;IACtG,oCAAuB,CAAA;AACzB,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB;AAED,sBAAsB;AACtB,IAAY,aAoCX;AApCD,WAAY,aAAa;IACvB;;;OAGG;IACH,oCAAmB,CAAA;IACnB;;;;;OAKG;IACH,wCAAuB,CAAA;IACvB;;;;;;OAMG;IACH,sCAAqB,CAAA;IACrB;;;OAGG;IACH,oCAAmB,CAAA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