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