@wix/auto_sdk_bookings_pricing 1.0.0 → 1.0.1
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 +26 -25
- 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 +24 -23
- 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 +26 -25
- 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 +24 -23
- 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 +26 -25
- 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 +24 -23
- 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 +26 -25
- 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 +24 -23
- 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
|
@@ -142,13 +142,13 @@ export interface CalculatePriceRequest {
|
|
|
142
142
|
export interface Booking extends BookingParticipantsInfoOneOf {
|
|
143
143
|
/**
|
|
144
144
|
* Total number of participants. Available only when the relevant service
|
|
145
|
-
* doesn't have
|
|
145
|
+
* doesn't have _variants and options_
|
|
146
146
|
* ([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)).
|
|
147
147
|
*/
|
|
148
148
|
totalParticipants?: number;
|
|
149
149
|
/**
|
|
150
150
|
* Information about the booked service choices and participants.
|
|
151
|
-
* Available only when the booking includes multiple
|
|
151
|
+
* Available only when the booking includes multiple _service variants_
|
|
152
152
|
* ([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
153
|
*/
|
|
154
154
|
participantsChoices?: ParticipantChoices;
|
|
@@ -158,16 +158,16 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
158
158
|
*/
|
|
159
159
|
_id?: string | null;
|
|
160
160
|
/**
|
|
161
|
-
* An object describing the slot
|
|
161
|
+
* An object describing the *slot*
|
|
162
162
|
* ([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
|
|
163
|
+
* or *schedule*
|
|
164
164
|
* ([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
165
|
* that was booked.
|
|
166
166
|
*/
|
|
167
167
|
bookedEntity?: BookedEntity;
|
|
168
168
|
/**
|
|
169
|
-
* Contact details of the site visitor or
|
|
170
|
-
*
|
|
169
|
+
* Contact details of the site visitor or *member*
|
|
170
|
+
* ([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
171
|
* making the booking.
|
|
172
172
|
*/
|
|
173
173
|
contactDetails?: ContactDetails;
|
|
@@ -196,7 +196,8 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
196
196
|
status?: BookingStatus;
|
|
197
197
|
/**
|
|
198
198
|
* The payment status of the booking corresponds to the `paymentStatus` of the
|
|
199
|
-
* related eCommerce order
|
|
199
|
+
* related *eCommerce order*
|
|
200
|
+
* ([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
201
|
* if one exists. All payment statuses are supported for every booking `status`.
|
|
201
202
|
*/
|
|
202
203
|
paymentStatus?: PaymentStatus;
|
|
@@ -257,13 +258,13 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
257
258
|
export interface BookingParticipantsInfoOneOf {
|
|
258
259
|
/**
|
|
259
260
|
* Total number of participants. Available only when the relevant service
|
|
260
|
-
* doesn't have
|
|
261
|
+
* doesn't have _variants and options_
|
|
261
262
|
* ([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)).
|
|
262
263
|
*/
|
|
263
264
|
totalParticipants?: number;
|
|
264
265
|
/**
|
|
265
266
|
* Information about the booked service choices and participants.
|
|
266
|
-
* Available only when the booking includes multiple
|
|
267
|
+
* Available only when the booking includes multiple _service variants_
|
|
267
268
|
* ([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
269
|
*/
|
|
269
270
|
participantsChoices?: ParticipantChoices;
|
|
@@ -281,7 +282,7 @@ export declare enum MultiServiceBookingType {
|
|
|
281
282
|
}
|
|
282
283
|
export interface BookedEntity extends BookedEntityItemOneOf {
|
|
283
284
|
/**
|
|
284
|
-
* Booked slot
|
|
285
|
+
* Booked *slot*
|
|
285
286
|
* ([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
287
|
* Available only for appointment-based services and classes.
|
|
287
288
|
* For appointment-based services, a new session is created, while for classes,
|
|
@@ -289,7 +290,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
289
290
|
*/
|
|
290
291
|
slot?: BookedSlot;
|
|
291
292
|
/**
|
|
292
|
-
* Booked schedule
|
|
293
|
+
* Booked *schedule*
|
|
293
294
|
* ([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
295
|
* Available only for course bookings.
|
|
295
296
|
*/
|
|
@@ -312,7 +313,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
312
313
|
/** @oneof */
|
|
313
314
|
export interface BookedEntityItemOneOf {
|
|
314
315
|
/**
|
|
315
|
-
* Booked slot
|
|
316
|
+
* Booked *slot*
|
|
316
317
|
* ([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
318
|
* Available only for appointment-based services and classes.
|
|
318
319
|
* For appointment-based services, a new session is created, while for classes,
|
|
@@ -320,7 +321,7 @@ export interface BookedEntityItemOneOf {
|
|
|
320
321
|
*/
|
|
321
322
|
slot?: BookedSlot;
|
|
322
323
|
/**
|
|
323
|
-
* Booked schedule
|
|
324
|
+
* Booked *schedule*
|
|
324
325
|
* ([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
326
|
* Available only for course bookings.
|
|
326
327
|
*/
|
|
@@ -334,7 +335,7 @@ export interface BookedSlot {
|
|
|
334
335
|
/** Schedule ID. */
|
|
335
336
|
scheduleId?: string;
|
|
336
337
|
/**
|
|
337
|
-
* ID of the corresponding event
|
|
338
|
+
* ID of the corresponding *event*
|
|
338
339
|
* ([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
340
|
* Available for both appointment and class bookings, not available for course bookings.
|
|
340
341
|
* For appointment-based services, Wix Bookings automatically populates `eventId`
|
|
@@ -355,9 +356,9 @@ export interface BookedSlot {
|
|
|
355
356
|
/** The timezone according to which the slot was shown to the user when booking, and should be shown in the future. */
|
|
356
357
|
timezone?: string | null;
|
|
357
358
|
/**
|
|
358
|
-
* Primary resource
|
|
359
|
+
* Primary *resource*
|
|
359
360
|
* ([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
|
|
361
|
+
* for the booking. For example, the *staff member*
|
|
361
362
|
* ([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
363
|
* providing the
|
|
363
364
|
* service.
|
|
@@ -405,14 +406,14 @@ export declare enum LocationType {
|
|
|
405
406
|
}
|
|
406
407
|
export interface BookedSchedule {
|
|
407
408
|
/**
|
|
408
|
-
*
|
|
409
|
+
* _Schedule ID_
|
|
409
410
|
* ([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
411
|
*/
|
|
411
412
|
scheduleId?: string;
|
|
412
413
|
/** Booked service ID. */
|
|
413
414
|
serviceId?: string | null;
|
|
414
415
|
/**
|
|
415
|
-
*
|
|
416
|
+
* _Location_
|
|
416
417
|
* ([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
418
|
* where the schedule's sessions take place.
|
|
418
419
|
* @readonly
|
|
@@ -551,16 +552,16 @@ export declare enum BookingStatus {
|
|
|
551
552
|
CREATED = "CREATED",
|
|
552
553
|
/**
|
|
553
554
|
* The merchant has confirmed the booking and it appears in the
|
|
554
|
-
* business calendar. Merchants can set up their services
|
|
555
|
+
* business calendar. Merchants can set up their *services*
|
|
555
556
|
* ([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
557
|
* to automatically confirm all `PENDING` bookings.
|
|
557
558
|
*/
|
|
558
559
|
CONFIRMED = "CONFIRMED",
|
|
559
560
|
/**
|
|
560
561
|
* The customer has canceled the booking. Depending on the relevant service's
|
|
561
|
-
*
|
|
562
|
+
* _policy snapshot_
|
|
562
563
|
* ([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
|
|
564
|
+
* they may have to pay a _cancellation fee_
|
|
564
565
|
* ([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
566
|
*/
|
|
566
567
|
CANCELED = "CANCELED",
|
|
@@ -691,7 +692,7 @@ export interface FlowControlSettings {
|
|
|
691
692
|
skipAvailabilityValidation?: boolean;
|
|
692
693
|
/**
|
|
693
694
|
* Whether the booking's `status` is automatically updated to `CONFIRMED` when
|
|
694
|
-
* the customer completes the eCommerce checkout
|
|
695
|
+
* the customer completes the *eCommerce checkout*
|
|
695
696
|
* ([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
697
|
* regardless of whether the relevant service requires manual business confirmation.
|
|
697
698
|
*/
|
|
@@ -725,7 +726,7 @@ export interface ParticipantChoices {
|
|
|
725
726
|
}
|
|
726
727
|
export interface ServiceChoices {
|
|
727
728
|
/**
|
|
728
|
-
* Number of participants for this
|
|
729
|
+
* Number of participants for this _variant_
|
|
729
730
|
* ([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)).
|
|
730
731
|
*/
|
|
731
732
|
numberOfParticipants?: number | 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;AA6R7F;;;;;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;AA6ID,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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AAC,CAAC;IAE5E,MAAM,OAAO,GAAG,gCAAgC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;YAC7C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAjCD,wCAiCC"}
|
|
@@ -148,13 +148,13 @@ export interface CalculatePriceRequest {
|
|
|
148
148
|
export interface Booking extends BookingParticipantsInfoOneOf {
|
|
149
149
|
/**
|
|
150
150
|
* Total number of participants. Available only when the relevant service
|
|
151
|
-
* doesn't have
|
|
151
|
+
* doesn't have _variants and options_
|
|
152
152
|
* ([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
153
|
*/
|
|
154
154
|
totalParticipants?: number;
|
|
155
155
|
/**
|
|
156
156
|
* Information about the booked service choices and participants.
|
|
157
|
-
* Available only when the booking includes multiple
|
|
157
|
+
* Available only when the booking includes multiple _service variants_
|
|
158
158
|
* ([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
159
|
*/
|
|
160
160
|
participantsChoices?: ParticipantChoices;
|
|
@@ -164,16 +164,16 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
164
164
|
*/
|
|
165
165
|
id?: string | null;
|
|
166
166
|
/**
|
|
167
|
-
* An object describing the slot
|
|
167
|
+
* An object describing the *slot*
|
|
168
168
|
* ([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
|
|
169
|
+
* or *schedule*
|
|
170
170
|
* ([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
171
|
* that was booked.
|
|
172
172
|
*/
|
|
173
173
|
bookedEntity?: BookedEntity;
|
|
174
174
|
/**
|
|
175
|
-
* Contact details of the site visitor or
|
|
176
|
-
*
|
|
175
|
+
* Contact details of the site visitor or *member*
|
|
176
|
+
* ([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
177
|
* making the booking.
|
|
178
178
|
*/
|
|
179
179
|
contactDetails?: ContactDetails;
|
|
@@ -188,7 +188,8 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
188
188
|
status?: BookingStatus;
|
|
189
189
|
/**
|
|
190
190
|
* The payment status of the booking corresponds to the `paymentStatus` of the
|
|
191
|
-
* related eCommerce order
|
|
191
|
+
* related *eCommerce order*
|
|
192
|
+
* ([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
193
|
* if one exists. All payment statuses are supported for every booking `status`.
|
|
193
194
|
*/
|
|
194
195
|
paymentStatus?: PaymentStatus;
|
|
@@ -197,8 +198,8 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
197
198
|
* checkout, they may still change the payment method. Must be one of the payment
|
|
198
199
|
* 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
200
|
* unless `skipSelectedPaymentOptionValidation` is `true`.
|
|
200
|
-
* When undefined during an
|
|
201
|
-
*
|
|
201
|
+
* When undefined during an *eCommerce checkout*
|
|
202
|
+
* ([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
203
|
* Wix Bookings uses the service's default payment option
|
|
203
204
|
*/
|
|
204
205
|
selectedPaymentOption?: SelectedPaymentOption;
|
|
@@ -255,13 +256,13 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
255
256
|
export interface BookingParticipantsInfoOneOf {
|
|
256
257
|
/**
|
|
257
258
|
* Total number of participants. Available only when the relevant service
|
|
258
|
-
* doesn't have
|
|
259
|
+
* doesn't have _variants and options_
|
|
259
260
|
* ([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)).
|
|
260
261
|
*/
|
|
261
262
|
totalParticipants?: number;
|
|
262
263
|
/**
|
|
263
264
|
* Information about the booked service choices and participants.
|
|
264
|
-
* Available only when the booking includes multiple
|
|
265
|
+
* Available only when the booking includes multiple _service variants_
|
|
265
266
|
* ([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
267
|
*/
|
|
267
268
|
participantsChoices?: ParticipantChoices;
|
|
@@ -279,7 +280,7 @@ export declare enum MultiServiceBookingType {
|
|
|
279
280
|
}
|
|
280
281
|
export interface BookedEntity extends BookedEntityItemOneOf {
|
|
281
282
|
/**
|
|
282
|
-
* Booked slot
|
|
283
|
+
* Booked *slot*
|
|
283
284
|
* ([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
285
|
* Available only for appointment-based services and classes.
|
|
285
286
|
* For appointment-based services, a new session is created, while for classes,
|
|
@@ -287,7 +288,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
287
288
|
*/
|
|
288
289
|
slot?: BookedSlot;
|
|
289
290
|
/**
|
|
290
|
-
* Booked schedule
|
|
291
|
+
* Booked *schedule*
|
|
291
292
|
* ([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
293
|
* Available only for course bookings.
|
|
293
294
|
*/
|
|
@@ -310,7 +311,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
310
311
|
/** @oneof */
|
|
311
312
|
export interface BookedEntityItemOneOf {
|
|
312
313
|
/**
|
|
313
|
-
* Booked slot
|
|
314
|
+
* Booked *slot*
|
|
314
315
|
* ([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
316
|
* Available only for appointment-based services and classes.
|
|
316
317
|
* For appointment-based services, a new session is created, while for classes,
|
|
@@ -318,7 +319,7 @@ export interface BookedEntityItemOneOf {
|
|
|
318
319
|
*/
|
|
319
320
|
slot?: BookedSlot;
|
|
320
321
|
/**
|
|
321
|
-
* Booked schedule
|
|
322
|
+
* Booked *schedule*
|
|
322
323
|
* ([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
324
|
* Available only for course bookings.
|
|
324
325
|
*/
|
|
@@ -332,7 +333,7 @@ export interface BookedSlot {
|
|
|
332
333
|
/** Schedule ID. */
|
|
333
334
|
scheduleId?: string;
|
|
334
335
|
/**
|
|
335
|
-
* ID of the corresponding event
|
|
336
|
+
* ID of the corresponding *event*
|
|
336
337
|
* ([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
338
|
* Available for both appointment and class bookings, not available for course bookings.
|
|
338
339
|
* For appointment-based services, Wix Bookings automatically populates `eventId`
|
|
@@ -353,9 +354,9 @@ export interface BookedSlot {
|
|
|
353
354
|
/** The timezone according to which the slot was shown to the user when booking, and should be shown in the future. */
|
|
354
355
|
timezone?: string | null;
|
|
355
356
|
/**
|
|
356
|
-
* Primary resource
|
|
357
|
+
* Primary *resource*
|
|
357
358
|
* ([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
|
|
359
|
+
* for the booking. For example, the *staff member*
|
|
359
360
|
* ([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
361
|
* providing the
|
|
361
362
|
* service.
|
|
@@ -403,14 +404,14 @@ export declare enum LocationType {
|
|
|
403
404
|
}
|
|
404
405
|
export interface BookedSchedule {
|
|
405
406
|
/**
|
|
406
|
-
*
|
|
407
|
+
* _Schedule ID_
|
|
407
408
|
* ([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
409
|
*/
|
|
409
410
|
scheduleId?: string;
|
|
410
411
|
/** Booked service ID. */
|
|
411
412
|
serviceId?: string | null;
|
|
412
413
|
/**
|
|
413
|
-
*
|
|
414
|
+
* _Location_
|
|
414
415
|
* ([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
416
|
* where the schedule's sessions take place.
|
|
416
417
|
* @readonly
|
|
@@ -550,16 +551,16 @@ export declare enum BookingStatus {
|
|
|
550
551
|
CREATED = "CREATED",
|
|
551
552
|
/**
|
|
552
553
|
* The merchant has confirmed the booking and it appears in the
|
|
553
|
-
* business calendar. Merchants can set up their services
|
|
554
|
+
* business calendar. Merchants can set up their *services*
|
|
554
555
|
* ([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
556
|
* to automatically confirm all `PENDING` bookings.
|
|
556
557
|
*/
|
|
557
558
|
CONFIRMED = "CONFIRMED",
|
|
558
559
|
/**
|
|
559
560
|
* The customer has canceled the booking. Depending on the relevant service's
|
|
560
|
-
*
|
|
561
|
+
* _policy snapshot_
|
|
561
562
|
* ([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
|
|
563
|
+
* they may have to pay a _cancellation fee_
|
|
563
564
|
* ([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
565
|
*/
|
|
565
566
|
CANCELED = "CANCELED",
|
|
@@ -690,7 +691,7 @@ export interface FlowControlSettings {
|
|
|
690
691
|
skipAvailabilityValidation?: boolean;
|
|
691
692
|
/**
|
|
692
693
|
* Whether the booking's `status` is automatically updated to `CONFIRMED` when
|
|
693
|
-
* the customer completes the eCommerce checkout
|
|
694
|
+
* the customer completes the *eCommerce checkout*
|
|
694
695
|
* ([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
696
|
* regardless of whether the relevant service requires manual business confirmation.
|
|
696
697
|
*/
|
|
@@ -724,7 +725,7 @@ export interface ParticipantChoices {
|
|
|
724
725
|
}
|
|
725
726
|
export interface ServiceChoices {
|
|
726
727
|
/**
|
|
727
|
-
* Number of participants for this
|
|
728
|
+
* Number of participants for this _variant_
|
|
728
729
|
* ([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)).
|
|
729
730
|
*/
|
|
730
731
|
numberOfParticipants?: number | null;
|
|
@@ -36,16 +36,16 @@ export var BookingStatus;
|
|
|
36
36
|
BookingStatus["CREATED"] = "CREATED";
|
|
37
37
|
/**
|
|
38
38
|
* The merchant has confirmed the booking and it appears in the
|
|
39
|
-
* business calendar. Merchants can set up their services
|
|
39
|
+
* business calendar. Merchants can set up their *services*
|
|
40
40
|
* ([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))
|
|
41
41
|
* to automatically confirm all `PENDING` bookings.
|
|
42
42
|
*/
|
|
43
43
|
BookingStatus["CONFIRMED"] = "CONFIRMED";
|
|
44
44
|
/**
|
|
45
45
|
* The customer has canceled the booking. Depending on the relevant service's
|
|
46
|
-
*
|
|
46
|
+
* _policy snapshot_
|
|
47
47
|
* ([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))
|
|
48
|
-
* they may have to pay a
|
|
48
|
+
* they may have to pay a _cancellation fee_
|
|
49
49
|
* ([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)).
|
|
50
50
|
*/
|
|
51
51
|
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":"
|
|
1
|
+
{"version":3,"file":"bookings-v2-price-info-pricing.types.js","sourceRoot":"","sources":["../../../../src/bookings-v2-price-info-pricing.types.ts"],"names":[],"mappings":"AAyRA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,sEAA2C,CAAA;IAC3C,kEAAuC,CAAA;IACvC,kEAAuC,CAAA;AACzC,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AA6HD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AA8ID,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,kDAAkD;IAClD,sCAAyB,CAAA;IACzB,iBAAiB;IACjB,oCAAuB,CAAA;IACvB,sGAAsG;IACtG,oCAAuB,CAAA;AACzB,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB;AAED,sBAAsB;AACtB,MAAM,CAAN,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;IACnB,6EAA6E;IAC7E,sCAAqB,CAAA;IACrB;;;;;;O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Booking extends BookingParticipantsInfoOneOf {
|
|
143
143
|
/**
|
|
144
144
|
* Total number of participants. Available only when the relevant service
|
|
145
|
-
* doesn't have
|
|
145
|
+
* doesn't have _variants and options_
|
|
146
146
|
* ([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)).
|
|
147
147
|
*/
|
|
148
148
|
totalParticipants?: number;
|
|
149
149
|
/**
|
|
150
150
|
* Information about the booked service choices and participants.
|
|
151
|
-
* Available only when the booking includes multiple
|
|
151
|
+
* Available only when the booking includes multiple _service variants_
|
|
152
152
|
* ([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
153
|
*/
|
|
154
154
|
participantsChoices?: ParticipantChoices;
|
|
@@ -158,16 +158,16 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
158
158
|
*/
|
|
159
159
|
_id?: string | null;
|
|
160
160
|
/**
|
|
161
|
-
* An object describing the slot
|
|
161
|
+
* An object describing the *slot*
|
|
162
162
|
* ([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
|
|
163
|
+
* or *schedule*
|
|
164
164
|
* ([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
165
|
* that was booked.
|
|
166
166
|
*/
|
|
167
167
|
bookedEntity?: BookedEntity;
|
|
168
168
|
/**
|
|
169
|
-
* Contact details of the site visitor or
|
|
170
|
-
*
|
|
169
|
+
* Contact details of the site visitor or *member*
|
|
170
|
+
* ([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
171
|
* making the booking.
|
|
172
172
|
*/
|
|
173
173
|
contactDetails?: ContactDetails;
|
|
@@ -196,7 +196,8 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
196
196
|
status?: BookingStatus;
|
|
197
197
|
/**
|
|
198
198
|
* The payment status of the booking corresponds to the `paymentStatus` of the
|
|
199
|
-
* related eCommerce order
|
|
199
|
+
* related *eCommerce order*
|
|
200
|
+
* ([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
201
|
* if one exists. All payment statuses are supported for every booking `status`.
|
|
201
202
|
*/
|
|
202
203
|
paymentStatus?: PaymentStatus;
|
|
@@ -257,13 +258,13 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
257
258
|
export interface BookingParticipantsInfoOneOf {
|
|
258
259
|
/**
|
|
259
260
|
* Total number of participants. Available only when the relevant service
|
|
260
|
-
* doesn't have
|
|
261
|
+
* doesn't have _variants and options_
|
|
261
262
|
* ([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)).
|
|
262
263
|
*/
|
|
263
264
|
totalParticipants?: number;
|
|
264
265
|
/**
|
|
265
266
|
* Information about the booked service choices and participants.
|
|
266
|
-
* Available only when the booking includes multiple
|
|
267
|
+
* Available only when the booking includes multiple _service variants_
|
|
267
268
|
* ([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
269
|
*/
|
|
269
270
|
participantsChoices?: ParticipantChoices;
|
|
@@ -281,7 +282,7 @@ export declare enum MultiServiceBookingType {
|
|
|
281
282
|
}
|
|
282
283
|
export interface BookedEntity extends BookedEntityItemOneOf {
|
|
283
284
|
/**
|
|
284
|
-
* Booked slot
|
|
285
|
+
* Booked *slot*
|
|
285
286
|
* ([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
287
|
* Available only for appointment-based services and classes.
|
|
287
288
|
* For appointment-based services, a new session is created, while for classes,
|
|
@@ -289,7 +290,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
289
290
|
*/
|
|
290
291
|
slot?: BookedSlot;
|
|
291
292
|
/**
|
|
292
|
-
* Booked schedule
|
|
293
|
+
* Booked *schedule*
|
|
293
294
|
* ([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
295
|
* Available only for course bookings.
|
|
295
296
|
*/
|
|
@@ -312,7 +313,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
312
313
|
/** @oneof */
|
|
313
314
|
export interface BookedEntityItemOneOf {
|
|
314
315
|
/**
|
|
315
|
-
* Booked slot
|
|
316
|
+
* Booked *slot*
|
|
316
317
|
* ([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
318
|
* Available only for appointment-based services and classes.
|
|
318
319
|
* For appointment-based services, a new session is created, while for classes,
|
|
@@ -320,7 +321,7 @@ export interface BookedEntityItemOneOf {
|
|
|
320
321
|
*/
|
|
321
322
|
slot?: BookedSlot;
|
|
322
323
|
/**
|
|
323
|
-
* Booked schedule
|
|
324
|
+
* Booked *schedule*
|
|
324
325
|
* ([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
326
|
* Available only for course bookings.
|
|
326
327
|
*/
|
|
@@ -334,7 +335,7 @@ export interface BookedSlot {
|
|
|
334
335
|
/** Schedule ID. */
|
|
335
336
|
scheduleId?: string;
|
|
336
337
|
/**
|
|
337
|
-
* ID of the corresponding event
|
|
338
|
+
* ID of the corresponding *event*
|
|
338
339
|
* ([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
340
|
* Available for both appointment and class bookings, not available for course bookings.
|
|
340
341
|
* For appointment-based services, Wix Bookings automatically populates `eventId`
|
|
@@ -355,9 +356,9 @@ export interface BookedSlot {
|
|
|
355
356
|
/** The timezone according to which the slot was shown to the user when booking, and should be shown in the future. */
|
|
356
357
|
timezone?: string | null;
|
|
357
358
|
/**
|
|
358
|
-
* Primary resource
|
|
359
|
+
* Primary *resource*
|
|
359
360
|
* ([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
|
|
361
|
+
* for the booking. For example, the *staff member*
|
|
361
362
|
* ([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
363
|
* providing the
|
|
363
364
|
* service.
|
|
@@ -405,14 +406,14 @@ export declare enum LocationType {
|
|
|
405
406
|
}
|
|
406
407
|
export interface BookedSchedule {
|
|
407
408
|
/**
|
|
408
|
-
*
|
|
409
|
+
* _Schedule ID_
|
|
409
410
|
* ([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
411
|
*/
|
|
411
412
|
scheduleId?: string;
|
|
412
413
|
/** Booked service ID. */
|
|
413
414
|
serviceId?: string | null;
|
|
414
415
|
/**
|
|
415
|
-
*
|
|
416
|
+
* _Location_
|
|
416
417
|
* ([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
418
|
* where the schedule's sessions take place.
|
|
418
419
|
* @readonly
|
|
@@ -551,16 +552,16 @@ export declare enum BookingStatus {
|
|
|
551
552
|
CREATED = "CREATED",
|
|
552
553
|
/**
|
|
553
554
|
* The merchant has confirmed the booking and it appears in the
|
|
554
|
-
* business calendar. Merchants can set up their services
|
|
555
|
+
* business calendar. Merchants can set up their *services*
|
|
555
556
|
* ([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
557
|
* to automatically confirm all `PENDING` bookings.
|
|
557
558
|
*/
|
|
558
559
|
CONFIRMED = "CONFIRMED",
|
|
559
560
|
/**
|
|
560
561
|
* The customer has canceled the booking. Depending on the relevant service's
|
|
561
|
-
*
|
|
562
|
+
* _policy snapshot_
|
|
562
563
|
* ([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
|
|
564
|
+
* they may have to pay a _cancellation fee_
|
|
564
565
|
* ([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
566
|
*/
|
|
566
567
|
CANCELED = "CANCELED",
|
|
@@ -691,7 +692,7 @@ export interface FlowControlSettings {
|
|
|
691
692
|
skipAvailabilityValidation?: boolean;
|
|
692
693
|
/**
|
|
693
694
|
* Whether the booking's `status` is automatically updated to `CONFIRMED` when
|
|
694
|
-
* the customer completes the eCommerce checkout
|
|
695
|
+
* the customer completes the *eCommerce checkout*
|
|
695
696
|
* ([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
697
|
* regardless of whether the relevant service requires manual business confirmation.
|
|
697
698
|
*/
|
|
@@ -725,7 +726,7 @@ export interface ParticipantChoices {
|
|
|
725
726
|
}
|
|
726
727
|
export interface ServiceChoices {
|
|
727
728
|
/**
|
|
728
|
-
* Number of participants for this
|
|
729
|
+
* Number of participants for this _variant_
|
|
729
730
|
* ([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)).
|
|
730
731
|
*/
|
|
731
732
|
numberOfParticipants?: number | null;
|
|
@@ -39,16 +39,16 @@ export 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
|
-
*
|
|
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
|
|
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";
|