@wix/auto_sdk_bookings_bookings 1.0.24 → 1.0.26
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/{es/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.mts} +668 -260
- package/build/{cjs/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.ts} +668 -260
- package/build/{es/src/bookings-v2-booking-bookings.public.d.ts → index.d.mts} +84 -34
- package/build/{internal/cjs/src/bookings-v2-booking-bookings.public.d.ts → index.d.ts} +84 -34
- package/build/index.js +2387 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +2323 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.mts} +668 -260
- package/build/internal/{es/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.ts} +668 -260
- package/build/{cjs/src/bookings-v2-booking-bookings.public.d.ts → internal/index.d.mts} +84 -34
- package/build/internal/{es/src/bookings-v2-booking-bookings.public.d.ts → index.d.ts} +84 -34
- package/build/internal/index.js +2387 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +2323 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +1666 -0
- package/build/internal/meta.d.ts +1666 -0
- package/build/internal/meta.js +1522 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1475 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +1666 -0
- package/build/meta.d.ts +1666 -0
- package/build/meta.js +1522 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1475 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/cjs/src/bookings-v2-booking-bookings.context.js +0 -77
- package/build/cjs/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/cjs/src/bookings-v2-booking-bookings.http.js +0 -1579
- package/build/cjs/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/cjs/src/bookings-v2-booking-bookings.meta.js +0 -427
- package/build/cjs/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.public.js +0 -313
- package/build/cjs/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.types.js +0 -165
- package/build/cjs/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/cjs/src/bookings-v2-booking-bookings.universal.d.ts +0 -4333
- package/build/cjs/src/bookings-v2-booking-bookings.universal.js +0 -1654
- package/build/cjs/src/bookings-v2-booking-bookings.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/es/src/bookings-v2-booking-bookings.context.js +0 -61
- package/build/es/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/es/src/bookings-v2-booking-bookings.http.js +0 -1555
- package/build/es/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/es/src/bookings-v2-booking-bookings.meta.js +0 -380
- package/build/es/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.public.js +0 -276
- package/build/es/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.types.js +0 -162
- package/build/es/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/es/src/bookings-v2-booking-bookings.universal.d.ts +0 -4333
- package/build/es/src/bookings-v2-booking-bookings.universal.js +0 -1607
- package/build/es/src/bookings-v2-booking-bookings.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js +0 -77
- package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js +0 -1579
- package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js +0 -427
- package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js +0 -313
- package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js +0 -165
- package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.d.ts +0 -4333
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js +0 -1654
- package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.context.d.ts +0 -61
- package/build/internal/es/src/bookings-v2-booking-bookings.context.js +0 -61
- package/build/internal/es/src/bookings-v2-booking-bookings.context.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.http.d.ts +0 -510
- package/build/internal/es/src/bookings-v2-booking-bookings.http.js +0 -1555
- package/build/internal/es/src/bookings-v2-booking-bookings.http.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.js +0 -380
- package/build/internal/es/src/bookings-v2-booking-bookings.meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.public.js +0 -276
- package/build/internal/es/src/bookings-v2-booking-bookings.public.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.types.js +0 -162
- package/build/internal/es/src/bookings-v2-booking-bookings.types.js.map +0 -1
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.d.ts +0 -4333
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.js +0 -1607
- package/build/internal/es/src/bookings-v2-booking-bookings.universal.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** An entity representing a scheduled appointment, class session, or course. */
|
|
2
|
-
|
|
2
|
+
interface Booking extends BookingParticipantsInfoOneOf {
|
|
3
3
|
/**
|
|
4
4
|
* Total number of participants. Available only when the relevant service
|
|
5
5
|
* doesn't have _variants and options_
|
|
@@ -18,7 +18,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
18
18
|
* @format GUID
|
|
19
19
|
* @readonly
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
_id?: string | null;
|
|
22
22
|
/**
|
|
23
23
|
* An object describing the *slot*
|
|
24
24
|
* ([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))
|
|
@@ -41,14 +41,14 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
41
41
|
* double booking and the customer hasn't paid or is eligible for an automatic
|
|
42
42
|
* refund. Currently, only payments with pricing plans are automatically refundable.
|
|
43
43
|
*/
|
|
44
|
-
status?:
|
|
44
|
+
status?: BookingStatusWithLiterals;
|
|
45
45
|
/**
|
|
46
46
|
* The payment status of the booking corresponds to the `paymentStatus` of the
|
|
47
47
|
* related *eCommerce order*
|
|
48
48
|
* ([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)),
|
|
49
49
|
* if one exists. All payment statuses are supported for every booking `status`.
|
|
50
50
|
*/
|
|
51
|
-
paymentStatus?:
|
|
51
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
52
52
|
/**
|
|
53
53
|
* Payment option selected by the customer. If the customer hasn't completed their
|
|
54
54
|
* checkout, they may still change the payment method. Must be one of the payment
|
|
@@ -58,12 +58,12 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
58
58
|
* ([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)),
|
|
59
59
|
* Wix Bookings uses the service's default payment option
|
|
60
60
|
*/
|
|
61
|
-
selectedPaymentOption?:
|
|
61
|
+
selectedPaymentOption?: SelectedPaymentOptionWithLiterals;
|
|
62
62
|
/**
|
|
63
63
|
* Date and time the booking was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
64
64
|
* @readonly
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
_createdDate?: Date | null;
|
|
67
67
|
/** External user ID that you can provide. */
|
|
68
68
|
externalUserId?: string | null;
|
|
69
69
|
/**
|
|
@@ -95,7 +95,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
95
95
|
* Date and time the booking was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
96
96
|
* @readonly
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
_updatedDate?: Date | null;
|
|
99
99
|
/**
|
|
100
100
|
* Custom field data for this object.
|
|
101
101
|
* Extended fields must be configured in the app dashboard before they can be accessed with API calls.
|
|
@@ -109,7 +109,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
109
109
|
doubleBooked?: boolean | null;
|
|
110
110
|
}
|
|
111
111
|
/** @oneof */
|
|
112
|
-
|
|
112
|
+
interface BookingParticipantsInfoOneOf {
|
|
113
113
|
/**
|
|
114
114
|
* Total number of participants. Available only when the relevant service
|
|
115
115
|
* doesn't have _variants and options_
|
|
@@ -130,12 +130,14 @@ export interface BookingParticipantsInfoOneOf {
|
|
|
130
130
|
* Multi-service booking is available if each of its bookings is available separately.
|
|
131
131
|
* For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
declare enum MultiServiceBookingType {
|
|
134
134
|
SEQUENTIAL_BOOKINGS = "SEQUENTIAL_BOOKINGS",
|
|
135
135
|
SEPARATE_BOOKINGS = "SEPARATE_BOOKINGS",
|
|
136
136
|
PARALLEL_BOOKINGS = "PARALLEL_BOOKINGS"
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
/** @enumType */
|
|
139
|
+
type MultiServiceBookingTypeWithLiterals = MultiServiceBookingType | 'SEQUENTIAL_BOOKINGS' | 'SEPARATE_BOOKINGS' | 'PARALLEL_BOOKINGS';
|
|
140
|
+
interface BookedEntity extends BookedEntityItemOneOf {
|
|
139
141
|
/**
|
|
140
142
|
* Booked *slot*
|
|
141
143
|
* ([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)).
|
|
@@ -167,7 +169,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
167
169
|
tags?: string[] | null;
|
|
168
170
|
}
|
|
169
171
|
/** @oneof */
|
|
170
|
-
|
|
172
|
+
interface BookedEntityItemOneOf {
|
|
171
173
|
/**
|
|
172
174
|
* Booked *slot*
|
|
173
175
|
* ([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)).
|
|
@@ -183,7 +185,7 @@ export interface BookedEntityItemOneOf {
|
|
|
183
185
|
*/
|
|
184
186
|
schedule?: BookedSchedule;
|
|
185
187
|
}
|
|
186
|
-
|
|
188
|
+
interface BookedSlot {
|
|
187
189
|
/** Session ID. */
|
|
188
190
|
sessionId?: string | null;
|
|
189
191
|
/** Service ID. */
|
|
@@ -225,12 +227,12 @@ export interface BookedSlot {
|
|
|
225
227
|
/** Location where the session takes place. */
|
|
226
228
|
location?: Location;
|
|
227
229
|
}
|
|
228
|
-
|
|
230
|
+
interface BookedResource {
|
|
229
231
|
/**
|
|
230
232
|
* ID of the booking's primary resource.
|
|
231
233
|
* @format GUID
|
|
232
234
|
*/
|
|
233
|
-
|
|
235
|
+
_id?: string;
|
|
234
236
|
/**
|
|
235
237
|
* Resource's name at the time of booking.
|
|
236
238
|
* @maxLength 40
|
|
@@ -247,13 +249,13 @@ export interface BookedResource {
|
|
|
247
249
|
*/
|
|
248
250
|
scheduleId?: string | null;
|
|
249
251
|
}
|
|
250
|
-
|
|
252
|
+
interface Location {
|
|
251
253
|
/**
|
|
252
254
|
* Business location ID. Available only for locations that are business locations,
|
|
253
255
|
* meaning the `location_type` is `"OWNER_BUSINESS"`.
|
|
254
256
|
* @format GUID
|
|
255
257
|
*/
|
|
256
|
-
|
|
258
|
+
_id?: string | null;
|
|
257
259
|
/** Location name. */
|
|
258
260
|
name?: string | null;
|
|
259
261
|
/** The full address of this location. */
|
|
@@ -270,15 +272,17 @@ export interface Location {
|
|
|
270
272
|
* - `"OWNER_CUSTOM"`: The address as set when creating the service.
|
|
271
273
|
* - `"CUSTOM"`: The address as set for the individual session.
|
|
272
274
|
*/
|
|
273
|
-
locationType?:
|
|
275
|
+
locationType?: LocationTypeWithLiterals;
|
|
274
276
|
}
|
|
275
|
-
|
|
277
|
+
declare enum LocationType {
|
|
276
278
|
UNDEFINED = "UNDEFINED",
|
|
277
279
|
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
278
280
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
279
281
|
CUSTOM = "CUSTOM"
|
|
280
282
|
}
|
|
281
|
-
|
|
283
|
+
/** @enumType */
|
|
284
|
+
type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
|
|
285
|
+
interface BookedSchedule {
|
|
282
286
|
/**
|
|
283
287
|
* _Schedule ID_
|
|
284
288
|
* ([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)).
|
|
@@ -314,7 +318,7 @@ export interface BookedSchedule {
|
|
|
314
318
|
*/
|
|
315
319
|
lastSessionEnd?: string | null;
|
|
316
320
|
}
|
|
317
|
-
|
|
321
|
+
interface ContactDetails {
|
|
318
322
|
/**
|
|
319
323
|
* Contact ID.
|
|
320
324
|
* @format GUID
|
|
@@ -353,7 +357,7 @@ export interface ContactDetails {
|
|
|
353
357
|
countryCode?: string | null;
|
|
354
358
|
}
|
|
355
359
|
/** Physical address */
|
|
356
|
-
|
|
360
|
+
interface Address extends AddressStreetOneOf {
|
|
357
361
|
/** Street name, number and apartment number. */
|
|
358
362
|
streetAddress?: StreetAddress;
|
|
359
363
|
/** Main address line, usually street and number, as free text. */
|
|
@@ -383,13 +387,13 @@ export interface Address extends AddressStreetOneOf {
|
|
|
383
387
|
subdivisions?: Subdivision[];
|
|
384
388
|
}
|
|
385
389
|
/** @oneof */
|
|
386
|
-
|
|
390
|
+
interface AddressStreetOneOf {
|
|
387
391
|
/** Street name, number and apartment number. */
|
|
388
392
|
streetAddress?: StreetAddress;
|
|
389
393
|
/** Main address line, usually street and number, as free text. */
|
|
390
394
|
addressLine?: string | null;
|
|
391
395
|
}
|
|
392
|
-
|
|
396
|
+
interface StreetAddress {
|
|
393
397
|
/** Street number. */
|
|
394
398
|
number?: string;
|
|
395
399
|
/** Street name. */
|
|
@@ -397,24 +401,24 @@ export interface StreetAddress {
|
|
|
397
401
|
/** Apartment number. */
|
|
398
402
|
apt?: string;
|
|
399
403
|
}
|
|
400
|
-
|
|
404
|
+
interface AddressLocation {
|
|
401
405
|
/** Address latitude. */
|
|
402
406
|
latitude?: number | null;
|
|
403
407
|
/** Address longitude. */
|
|
404
408
|
longitude?: number | null;
|
|
405
409
|
}
|
|
406
|
-
|
|
410
|
+
interface Subdivision {
|
|
407
411
|
/** Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
408
412
|
code?: string;
|
|
409
413
|
/** Subdivision full name. */
|
|
410
414
|
name?: string;
|
|
411
415
|
}
|
|
412
|
-
|
|
416
|
+
interface CustomFormField {
|
|
413
417
|
/**
|
|
414
418
|
* ID of the form field as defined in the form.
|
|
415
419
|
* @format GUID
|
|
416
420
|
*/
|
|
417
|
-
|
|
421
|
+
_id?: string;
|
|
418
422
|
/** Value that was submitted for this field. */
|
|
419
423
|
value?: string | null;
|
|
420
424
|
/**
|
|
@@ -422,9 +426,9 @@ export interface CustomFormField {
|
|
|
422
426
|
* @readonly
|
|
423
427
|
*/
|
|
424
428
|
label?: string | null;
|
|
425
|
-
valueType?:
|
|
429
|
+
valueType?: ValueTypeWithLiterals;
|
|
426
430
|
}
|
|
427
|
-
|
|
431
|
+
declare enum ValueType {
|
|
428
432
|
/** Short text. This is the default value type. */
|
|
429
433
|
SHORT_TEXT = "SHORT_TEXT",
|
|
430
434
|
/** Long text. */
|
|
@@ -432,8 +436,10 @@ export declare enum ValueType {
|
|
|
432
436
|
/** A text that represents the check box value. If selected the value is `true`, otherwise `false`. */
|
|
433
437
|
CHECK_BOX = "CHECK_BOX"
|
|
434
438
|
}
|
|
439
|
+
/** @enumType */
|
|
440
|
+
type ValueTypeWithLiterals = ValueType | 'SHORT_TEXT' | 'LONG_TEXT' | 'CHECK_BOX';
|
|
435
441
|
/** Booking status. */
|
|
436
|
-
|
|
442
|
+
declare enum BookingStatus {
|
|
437
443
|
/**
|
|
438
444
|
* The booking was created, but the customer hasn't completed the related
|
|
439
445
|
* eCommerce order yet.
|
|
@@ -470,11 +476,13 @@ export declare enum BookingStatus {
|
|
|
470
476
|
*/
|
|
471
477
|
WAITING_LIST = "WAITING_LIST"
|
|
472
478
|
}
|
|
479
|
+
/** @enumType */
|
|
480
|
+
type BookingStatusWithLiterals = BookingStatus | 'CREATED' | 'CONFIRMED' | 'CANCELED' | 'PENDING' | 'DECLINED' | 'WAITING_LIST';
|
|
473
481
|
/**
|
|
474
482
|
* Payment status.
|
|
475
483
|
* Automatically updated when using eCommerce checkout APIs.
|
|
476
484
|
*/
|
|
477
|
-
|
|
485
|
+
declare enum PaymentStatus {
|
|
478
486
|
/** Undefined payment status. */
|
|
479
487
|
UNDEFINED = "UNDEFINED",
|
|
480
488
|
/** The booking isn't paid. */
|
|
@@ -488,6 +496,8 @@ export declare enum PaymentStatus {
|
|
|
488
496
|
/** The booking is free of charge. */
|
|
489
497
|
EXEMPT = "EXEMPT"
|
|
490
498
|
}
|
|
499
|
+
/** @enumType */
|
|
500
|
+
type PaymentStatusWithLiterals = PaymentStatus | 'UNDEFINED' | 'NOT_PAID' | 'PAID' | 'PARTIALLY_PAID' | 'REFUNDED' | 'EXEMPT';
|
|
491
501
|
/**
|
|
492
502
|
* Selected payment option.
|
|
493
503
|
*
|
|
@@ -495,7 +505,7 @@ export declare enum PaymentStatus {
|
|
|
495
505
|
* This field is set when the user selects an option during booking.
|
|
496
506
|
* If left undefined, the payment option is resolved by the service configuration on checkout.
|
|
497
507
|
*/
|
|
498
|
-
|
|
508
|
+
declare enum SelectedPaymentOption {
|
|
499
509
|
/** Undefined payment option. */
|
|
500
510
|
UNDEFINED = "UNDEFINED",
|
|
501
511
|
/** Offline payment. */
|
|
@@ -510,11 +520,13 @@ export declare enum SelectedPaymentOption {
|
|
|
510
520
|
*/
|
|
511
521
|
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
|
|
512
522
|
}
|
|
513
|
-
|
|
523
|
+
/** @enumType */
|
|
524
|
+
type SelectedPaymentOptionWithLiterals = SelectedPaymentOption | 'UNDEFINED' | 'OFFLINE' | 'ONLINE' | 'MEMBERSHIP' | 'MEMBERSHIP_OFFLINE';
|
|
525
|
+
interface BookingSource {
|
|
514
526
|
/** Platform from which a booking was created. */
|
|
515
|
-
platform?:
|
|
527
|
+
platform?: PlatformWithLiterals;
|
|
516
528
|
/** Actor that created this booking. */
|
|
517
|
-
actor?:
|
|
529
|
+
actor?: ActorWithLiterals;
|
|
518
530
|
/**
|
|
519
531
|
* Wix site ID of the application that created the booking.
|
|
520
532
|
* @format GUID
|
|
@@ -527,17 +539,21 @@ export interface BookingSource {
|
|
|
527
539
|
*/
|
|
528
540
|
appName?: string | null;
|
|
529
541
|
}
|
|
530
|
-
|
|
542
|
+
declare enum Platform {
|
|
531
543
|
UNDEFINED_PLATFORM = "UNDEFINED_PLATFORM",
|
|
532
544
|
WEB = "WEB",
|
|
533
545
|
MOBILE_APP = "MOBILE_APP"
|
|
534
546
|
}
|
|
535
|
-
|
|
547
|
+
/** @enumType */
|
|
548
|
+
type PlatformWithLiterals = Platform | 'UNDEFINED_PLATFORM' | 'WEB' | 'MOBILE_APP';
|
|
549
|
+
declare enum Actor {
|
|
536
550
|
UNDEFINED_ACTOR = "UNDEFINED_ACTOR",
|
|
537
551
|
BUSINESS = "BUSINESS",
|
|
538
552
|
CUSTOMER = "CUSTOMER"
|
|
539
553
|
}
|
|
540
|
-
|
|
554
|
+
/** @enumType */
|
|
555
|
+
type ActorWithLiterals = Actor | 'UNDEFINED_ACTOR' | 'BUSINESS' | 'CUSTOMER';
|
|
556
|
+
interface ParticipantNotification {
|
|
541
557
|
/**
|
|
542
558
|
* Whether to send the message about the changes to the customer.
|
|
543
559
|
*
|
|
@@ -547,7 +563,7 @@ export interface ParticipantNotification {
|
|
|
547
563
|
/** Custom message to send to the participants about the changes to the booking. */
|
|
548
564
|
message?: string | null;
|
|
549
565
|
}
|
|
550
|
-
|
|
566
|
+
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
551
567
|
/**
|
|
552
568
|
* ID of a site visitor that has not logged in to the site.
|
|
553
569
|
* @format GUID
|
|
@@ -575,7 +591,7 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
575
591
|
contactId?: string | null;
|
|
576
592
|
}
|
|
577
593
|
/** @oneof */
|
|
578
|
-
|
|
594
|
+
interface CommonIdentificationDataIdOneOf {
|
|
579
595
|
/**
|
|
580
596
|
* ID of a site visitor that has not logged in to the site.
|
|
581
597
|
* @format GUID
|
|
@@ -597,14 +613,14 @@ export interface CommonIdentificationDataIdOneOf {
|
|
|
597
613
|
*/
|
|
598
614
|
appId?: string;
|
|
599
615
|
}
|
|
600
|
-
|
|
616
|
+
declare enum IdentificationDataIdentityType {
|
|
601
617
|
UNKNOWN = "UNKNOWN",
|
|
602
618
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
603
619
|
MEMBER = "MEMBER",
|
|
604
620
|
WIX_USER = "WIX_USER",
|
|
605
621
|
APP = "APP"
|
|
606
622
|
}
|
|
607
|
-
|
|
623
|
+
interface FlowControlSettings {
|
|
608
624
|
/** Whether availability is checked when creating or confirming the booking. */
|
|
609
625
|
skipAvailabilityValidation?: boolean;
|
|
610
626
|
/**
|
|
@@ -626,7 +642,7 @@ export interface FlowControlSettings {
|
|
|
626
642
|
*/
|
|
627
643
|
withRefund?: boolean | null;
|
|
628
644
|
}
|
|
629
|
-
|
|
645
|
+
interface ExtendedFields {
|
|
630
646
|
/**
|
|
631
647
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
632
648
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -637,7 +653,7 @@ export interface ExtendedFields {
|
|
|
637
653
|
*/
|
|
638
654
|
namespaces?: Record<string, Record<string, any>>;
|
|
639
655
|
}
|
|
640
|
-
|
|
656
|
+
interface ParticipantChoices {
|
|
641
657
|
/**
|
|
642
658
|
* Information about the booked service choices. Includes the number of participants.
|
|
643
659
|
* @minSize 1
|
|
@@ -645,7 +661,7 @@ export interface ParticipantChoices {
|
|
|
645
661
|
*/
|
|
646
662
|
serviceChoices?: ServiceChoices[];
|
|
647
663
|
}
|
|
648
|
-
|
|
664
|
+
interface ServiceChoices {
|
|
649
665
|
/**
|
|
650
666
|
* Number of participants for this _variant_
|
|
651
667
|
* ([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)).
|
|
@@ -658,7 +674,7 @@ export interface ServiceChoices {
|
|
|
658
674
|
*/
|
|
659
675
|
choices?: ServiceChoice[];
|
|
660
676
|
}
|
|
661
|
-
|
|
677
|
+
interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
662
678
|
/**
|
|
663
679
|
* Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
|
|
664
680
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -676,7 +692,7 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
|
676
692
|
optionId?: string;
|
|
677
693
|
}
|
|
678
694
|
/** @oneof */
|
|
679
|
-
|
|
695
|
+
interface ServiceChoiceChoiceOneOf {
|
|
680
696
|
/**
|
|
681
697
|
* Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
|
|
682
698
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -686,7 +702,7 @@ export interface ServiceChoiceChoiceOneOf {
|
|
|
686
702
|
custom?: string;
|
|
687
703
|
duration?: Duration;
|
|
688
704
|
}
|
|
689
|
-
|
|
705
|
+
interface Duration {
|
|
690
706
|
/**
|
|
691
707
|
* Duration of the service in minutes.
|
|
692
708
|
* Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
|
|
@@ -701,22 +717,22 @@ export interface Duration {
|
|
|
701
717
|
*/
|
|
702
718
|
name?: string | null;
|
|
703
719
|
}
|
|
704
|
-
|
|
720
|
+
interface MultiServiceBookingInfo {
|
|
705
721
|
/**
|
|
706
722
|
* Multi-service booking ID.
|
|
707
723
|
* @format GUID
|
|
708
724
|
* @readonly
|
|
709
725
|
*/
|
|
710
|
-
|
|
726
|
+
_id?: string | null;
|
|
711
727
|
/** Type of the multi-service booking. */
|
|
712
|
-
type?:
|
|
728
|
+
type?: MultiServiceBookingTypeWithLiterals;
|
|
713
729
|
}
|
|
714
|
-
|
|
730
|
+
interface BookedAddOn {
|
|
715
731
|
/**
|
|
716
732
|
* The ID of the Add-On.
|
|
717
733
|
* @format GUID
|
|
718
734
|
*/
|
|
719
|
-
|
|
735
|
+
_id?: string;
|
|
720
736
|
/**
|
|
721
737
|
* The ID of the Add-Ons group.
|
|
722
738
|
* @format GUID
|
|
@@ -748,7 +764,7 @@ export interface BookedAddOn {
|
|
|
748
764
|
*/
|
|
749
765
|
nameTranslated?: string | null;
|
|
750
766
|
}
|
|
751
|
-
|
|
767
|
+
interface BookingFormFilled {
|
|
752
768
|
/** The booking object that form was filled for. */
|
|
753
769
|
booking?: Booking;
|
|
754
770
|
/**
|
|
@@ -764,7 +780,7 @@ export interface BookingFormFilled {
|
|
|
764
780
|
*/
|
|
765
781
|
formId?: string | null;
|
|
766
782
|
}
|
|
767
|
-
|
|
783
|
+
interface SetBookingFormAndSubmissionIdRequest extends SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
|
|
768
784
|
/**
|
|
769
785
|
* The visitor who created the booking.
|
|
770
786
|
* @format GUID
|
|
@@ -807,7 +823,7 @@ export interface SetBookingFormAndSubmissionIdRequest extends SetBookingFormAndS
|
|
|
807
823
|
instanceId?: string | null;
|
|
808
824
|
}
|
|
809
825
|
/** @oneof */
|
|
810
|
-
|
|
826
|
+
interface SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
|
|
811
827
|
/**
|
|
812
828
|
* The visitor who created the booking.
|
|
813
829
|
* @format GUID
|
|
@@ -824,17 +840,17 @@ export interface SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
|
|
|
824
840
|
*/
|
|
825
841
|
appId?: string | null;
|
|
826
842
|
}
|
|
827
|
-
|
|
843
|
+
interface SetBookingFormAndSubmissionIdResponse {
|
|
828
844
|
/** Updated booking. */
|
|
829
845
|
booking?: Booking;
|
|
830
846
|
}
|
|
831
|
-
|
|
847
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
832
848
|
createdEvent?: EntityCreatedEvent;
|
|
833
849
|
updatedEvent?: EntityUpdatedEvent;
|
|
834
850
|
deletedEvent?: EntityDeletedEvent;
|
|
835
851
|
actionEvent?: ActionEvent;
|
|
836
852
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
837
|
-
|
|
853
|
+
_id?: string;
|
|
838
854
|
/**
|
|
839
855
|
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
840
856
|
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
@@ -863,36 +879,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
863
879
|
entityEventSequence?: string | null;
|
|
864
880
|
}
|
|
865
881
|
/** @oneof */
|
|
866
|
-
|
|
882
|
+
interface DomainEventBodyOneOf {
|
|
867
883
|
createdEvent?: EntityCreatedEvent;
|
|
868
884
|
updatedEvent?: EntityUpdatedEvent;
|
|
869
885
|
deletedEvent?: EntityDeletedEvent;
|
|
870
886
|
actionEvent?: ActionEvent;
|
|
871
887
|
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
875
|
-
restoreInfo?: RestoreInfo;
|
|
888
|
+
interface EntityCreatedEvent {
|
|
889
|
+
entity?: string;
|
|
876
890
|
}
|
|
877
|
-
|
|
891
|
+
interface RestoreInfo {
|
|
878
892
|
deletedDate?: Date | null;
|
|
879
893
|
}
|
|
880
|
-
|
|
894
|
+
interface EntityUpdatedEvent {
|
|
881
895
|
/**
|
|
882
896
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
883
897
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
884
898
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
885
899
|
*/
|
|
886
|
-
|
|
900
|
+
currentEntity?: string;
|
|
887
901
|
}
|
|
888
|
-
|
|
902
|
+
interface EntityDeletedEvent {
|
|
889
903
|
/** Entity that was deleted. */
|
|
890
|
-
|
|
904
|
+
deletedEntity?: string | null;
|
|
891
905
|
}
|
|
892
|
-
|
|
893
|
-
|
|
906
|
+
interface ActionEvent {
|
|
907
|
+
body?: string;
|
|
894
908
|
}
|
|
895
|
-
|
|
909
|
+
interface MessageEnvelope {
|
|
896
910
|
/**
|
|
897
911
|
* App instance ID.
|
|
898
912
|
* @format GUID
|
|
@@ -908,7 +922,7 @@ export interface MessageEnvelope {
|
|
|
908
922
|
/** Stringify payload. */
|
|
909
923
|
data?: string;
|
|
910
924
|
}
|
|
911
|
-
|
|
925
|
+
interface WebhooksIdentificationData extends WebhooksIdentificationDataIdOneOf {
|
|
912
926
|
/**
|
|
913
927
|
* ID of a site visitor that has not logged in to the site.
|
|
914
928
|
* @format GUID
|
|
@@ -930,10 +944,10 @@ export interface WebhooksIdentificationData extends WebhooksIdentificationDataId
|
|
|
930
944
|
*/
|
|
931
945
|
appId?: string;
|
|
932
946
|
/** @readonly */
|
|
933
|
-
identityType?:
|
|
947
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
934
948
|
}
|
|
935
949
|
/** @oneof */
|
|
936
|
-
|
|
950
|
+
interface WebhooksIdentificationDataIdOneOf {
|
|
937
951
|
/**
|
|
938
952
|
* ID of a site visitor that has not logged in to the site.
|
|
939
953
|
* @format GUID
|
|
@@ -955,14 +969,16 @@ export interface WebhooksIdentificationDataIdOneOf {
|
|
|
955
969
|
*/
|
|
956
970
|
appId?: string;
|
|
957
971
|
}
|
|
958
|
-
|
|
972
|
+
declare enum WebhookIdentityType {
|
|
959
973
|
UNKNOWN = "UNKNOWN",
|
|
960
974
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
961
975
|
MEMBER = "MEMBER",
|
|
962
976
|
WIX_USER = "WIX_USER",
|
|
963
977
|
APP = "APP"
|
|
964
978
|
}
|
|
965
|
-
|
|
979
|
+
/** @enumType */
|
|
980
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
981
|
+
interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
|
|
966
982
|
/**
|
|
967
983
|
* Information about the slot to create a booking for.
|
|
968
984
|
* If you set `slot.location.locationType` to `CUSTOM`, the created slot's
|
|
@@ -999,7 +1015,7 @@ export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableIt
|
|
|
999
1015
|
* + Invoking eCommerce checkout API and the order declined event has been sent.
|
|
1000
1016
|
* + Invoking eCommerce checkout API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
1001
1017
|
*/
|
|
1002
|
-
status?:
|
|
1018
|
+
status?: BookingStatusWithLiterals;
|
|
1003
1019
|
/**
|
|
1004
1020
|
* Additional custom fields of the booking form. The customer must provide
|
|
1005
1021
|
* information for each field when booking the service. For example, that they
|
|
@@ -1027,7 +1043,7 @@ export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableIt
|
|
|
1027
1043
|
* Must be one of the payment options defined for the service, unless
|
|
1028
1044
|
* you pass `flowControlSettings.skipSelectedPaymentOptionValidation` as `true`.
|
|
1029
1045
|
*/
|
|
1030
|
-
selectedPaymentOption?:
|
|
1046
|
+
selectedPaymentOption?: SelectedPaymentOptionWithLiterals;
|
|
1031
1047
|
/**
|
|
1032
1048
|
* Identifies the source (platform, actor and app) that created this booking.
|
|
1033
1049
|
* This property of the booking cannot be changed.
|
|
@@ -1058,7 +1074,7 @@ export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableIt
|
|
|
1058
1074
|
flowControlSettings?: CreateBookingRequestFlowControlSettings;
|
|
1059
1075
|
}
|
|
1060
1076
|
/** @oneof */
|
|
1061
|
-
|
|
1077
|
+
interface V2CreateBookingRequestBookableItemOneOf {
|
|
1062
1078
|
/**
|
|
1063
1079
|
* Information about the slot to create a booking for.
|
|
1064
1080
|
* If you set `slot.location.locationType` to `CUSTOM`, the created slot's
|
|
@@ -1070,9 +1086,9 @@ export interface V2CreateBookingRequestBookableItemOneOf {
|
|
|
1070
1086
|
schedule?: BookedSchedule;
|
|
1071
1087
|
}
|
|
1072
1088
|
/** @oneof */
|
|
1073
|
-
|
|
1089
|
+
interface V2CreateBookingRequestParticipantsInfoOneOf {
|
|
1074
1090
|
}
|
|
1075
|
-
|
|
1091
|
+
interface Slot {
|
|
1076
1092
|
/**
|
|
1077
1093
|
* ID for the slot's corresponding session, when the session is either a single session
|
|
1078
1094
|
* or a specific session generated from a recurring session.
|
|
@@ -1130,20 +1146,20 @@ export interface Slot {
|
|
|
1130
1146
|
*/
|
|
1131
1147
|
eventId?: string | null;
|
|
1132
1148
|
}
|
|
1133
|
-
|
|
1149
|
+
interface SlotResource {
|
|
1134
1150
|
/**
|
|
1135
1151
|
* Resource ID.
|
|
1136
1152
|
* @format GUID
|
|
1137
1153
|
* @readonly
|
|
1138
1154
|
*/
|
|
1139
|
-
|
|
1155
|
+
_id?: string | null;
|
|
1140
1156
|
/**
|
|
1141
1157
|
* Resource name. Read only.
|
|
1142
1158
|
* @maxLength 1200
|
|
1143
1159
|
*/
|
|
1144
1160
|
name?: string | null;
|
|
1145
1161
|
}
|
|
1146
|
-
|
|
1162
|
+
interface CreateBookingRequestFlowControlSettings {
|
|
1147
1163
|
/**
|
|
1148
1164
|
* Whether the availability is checked before creating the booking. When
|
|
1149
1165
|
* passing `false` a booking is only created when the slot or schedule is
|
|
@@ -1172,11 +1188,11 @@ export interface CreateBookingRequestFlowControlSettings {
|
|
|
1172
1188
|
*/
|
|
1173
1189
|
skipSelectedPaymentOptionValidation?: boolean;
|
|
1174
1190
|
}
|
|
1175
|
-
|
|
1191
|
+
interface V2CreateBookingResponse {
|
|
1176
1192
|
/** Created booking. */
|
|
1177
1193
|
booking?: Booking;
|
|
1178
1194
|
}
|
|
1179
|
-
|
|
1195
|
+
interface V2CancelBookingRequest {
|
|
1180
1196
|
/**
|
|
1181
1197
|
* ID of the booking to cancel.
|
|
1182
1198
|
* @format GUID
|
|
@@ -1194,7 +1210,7 @@ export interface V2CancelBookingRequest {
|
|
|
1194
1210
|
*/
|
|
1195
1211
|
revision?: string | null;
|
|
1196
1212
|
}
|
|
1197
|
-
|
|
1213
|
+
interface CancelBookingRequestFlowControlSettings {
|
|
1198
1214
|
/**
|
|
1199
1215
|
* Whether the cancellation policy applies when canceling the booking. When
|
|
1200
1216
|
* passing `false` you can only cancel a booking if the cancellation policy
|
|
@@ -1216,11 +1232,11 @@ export interface CancelBookingRequestFlowControlSettings {
|
|
|
1216
1232
|
*/
|
|
1217
1233
|
withRefund?: boolean | null;
|
|
1218
1234
|
}
|
|
1219
|
-
|
|
1235
|
+
interface V2CancelBookingResponse {
|
|
1220
1236
|
/** Canceled booking. */
|
|
1221
1237
|
booking?: Booking;
|
|
1222
1238
|
}
|
|
1223
|
-
|
|
1239
|
+
interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestParticipantsInfoOneOf {
|
|
1224
1240
|
/**
|
|
1225
1241
|
* Id of the booking to reschedule.
|
|
1226
1242
|
* @format GUID
|
|
@@ -1241,9 +1257,9 @@ export interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestPa
|
|
|
1241
1257
|
participantNotification?: ParticipantNotification;
|
|
1242
1258
|
}
|
|
1243
1259
|
/** @oneof */
|
|
1244
|
-
|
|
1260
|
+
interface V2RescheduleBookingRequestParticipantsInfoOneOf {
|
|
1245
1261
|
}
|
|
1246
|
-
|
|
1262
|
+
interface RescheduleBookingRequestFlowControlSettings {
|
|
1247
1263
|
/**
|
|
1248
1264
|
* Whether the rescheduling policy applies when rescheduling the booking.
|
|
1249
1265
|
* When passing `false` you can only cancel a booking if the rescheduling
|
|
@@ -1272,11 +1288,11 @@ export interface RescheduleBookingRequestFlowControlSettings {
|
|
|
1272
1288
|
*/
|
|
1273
1289
|
skipBusinessConfirmation?: boolean;
|
|
1274
1290
|
}
|
|
1275
|
-
|
|
1291
|
+
interface V2RescheduleBookingResponse {
|
|
1276
1292
|
/** Rescheduled booking. */
|
|
1277
1293
|
booking?: Booking;
|
|
1278
1294
|
}
|
|
1279
|
-
|
|
1295
|
+
interface V2ConfirmBookingRequest {
|
|
1280
1296
|
/**
|
|
1281
1297
|
* ID of the booking to confirm.
|
|
1282
1298
|
* @format GUID
|
|
@@ -1294,10 +1310,10 @@ export interface V2ConfirmBookingRequest {
|
|
|
1294
1310
|
*/
|
|
1295
1311
|
participantNotification?: ParticipantNotification;
|
|
1296
1312
|
}
|
|
1297
|
-
|
|
1313
|
+
interface V2ConfirmBookingResponse {
|
|
1298
1314
|
booking?: Booking;
|
|
1299
1315
|
}
|
|
1300
|
-
|
|
1316
|
+
interface V2DeclineBookingRequest {
|
|
1301
1317
|
/**
|
|
1302
1318
|
* ID of the booking to decline.
|
|
1303
1319
|
* @format GUID
|
|
@@ -1315,11 +1331,11 @@ export interface V2DeclineBookingRequest {
|
|
|
1315
1331
|
*/
|
|
1316
1332
|
participantNotification?: ParticipantNotification;
|
|
1317
1333
|
}
|
|
1318
|
-
|
|
1334
|
+
interface V2DeclineBookingResponse {
|
|
1319
1335
|
/** Declined booking. */
|
|
1320
1336
|
booking?: Booking;
|
|
1321
1337
|
}
|
|
1322
|
-
|
|
1338
|
+
interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1323
1339
|
/**
|
|
1324
1340
|
* ID of the booking to update the number of participants for.
|
|
1325
1341
|
* @format GUID
|
|
@@ -1335,13 +1351,13 @@ export interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfPar
|
|
|
1335
1351
|
revision?: string | null;
|
|
1336
1352
|
}
|
|
1337
1353
|
/** @oneof */
|
|
1338
|
-
|
|
1354
|
+
interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1339
1355
|
}
|
|
1340
|
-
|
|
1356
|
+
interface V2UpdateNumberOfParticipantsResponse {
|
|
1341
1357
|
/** Booking with updated number of participants. */
|
|
1342
1358
|
booking?: Booking;
|
|
1343
1359
|
}
|
|
1344
|
-
|
|
1360
|
+
interface ConfirmOrDeclineBookingRequest {
|
|
1345
1361
|
/**
|
|
1346
1362
|
* ID of the booking to confirm or decline.
|
|
1347
1363
|
* @format GUID
|
|
@@ -1355,13 +1371,13 @@ export interface ConfirmOrDeclineBookingRequest {
|
|
|
1355
1371
|
* The booking is declined if there is a double booking conflict and you provide
|
|
1356
1372
|
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
1357
1373
|
*/
|
|
1358
|
-
paymentStatus?:
|
|
1374
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
1359
1375
|
}
|
|
1360
|
-
|
|
1376
|
+
interface ConfirmOrDeclineBookingResponse {
|
|
1361
1377
|
/** Updated booking. */
|
|
1362
1378
|
booking?: Booking;
|
|
1363
1379
|
}
|
|
1364
|
-
|
|
1380
|
+
interface BulkConfirmOrDeclineBookingRequest {
|
|
1365
1381
|
/**
|
|
1366
1382
|
* Bookings to confirm or decline.
|
|
1367
1383
|
* @minSize 1
|
|
@@ -1371,7 +1387,7 @@ export interface BulkConfirmOrDeclineBookingRequest {
|
|
|
1371
1387
|
/** Whether to return the confirmed or declined booking objects. */
|
|
1372
1388
|
returnEntity?: boolean;
|
|
1373
1389
|
}
|
|
1374
|
-
|
|
1390
|
+
interface BulkConfirmOrDeclineBookingRequestBookingDetails {
|
|
1375
1391
|
/**
|
|
1376
1392
|
* ID of the booking to confirm or decline.
|
|
1377
1393
|
* @format GUID
|
|
@@ -1385,15 +1401,15 @@ export interface BulkConfirmOrDeclineBookingRequestBookingDetails {
|
|
|
1385
1401
|
* The booking is declined if there is a double booking conflict and you provide
|
|
1386
1402
|
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
1387
1403
|
*/
|
|
1388
|
-
paymentStatus?:
|
|
1404
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
1389
1405
|
}
|
|
1390
|
-
|
|
1406
|
+
interface BulkConfirmOrDeclineBookingResponse {
|
|
1391
1407
|
/** List of confirmed or declined bookings, including metadata. */
|
|
1392
1408
|
results?: BulkBookingResult[];
|
|
1393
1409
|
/** Total successes and failures of the Bulk Confirm Or Decline call. */
|
|
1394
1410
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1395
1411
|
}
|
|
1396
|
-
|
|
1412
|
+
interface BulkBookingResult {
|
|
1397
1413
|
/**
|
|
1398
1414
|
* Information about the booking that was created or updated.
|
|
1399
1415
|
* Including its ID, index in the bulk request and whether it was
|
|
@@ -1406,9 +1422,9 @@ export interface BulkBookingResult {
|
|
|
1406
1422
|
*/
|
|
1407
1423
|
item?: Booking;
|
|
1408
1424
|
}
|
|
1409
|
-
|
|
1425
|
+
interface ItemMetadata {
|
|
1410
1426
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
1411
|
-
|
|
1427
|
+
_id?: string | null;
|
|
1412
1428
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1413
1429
|
originalIndex?: number;
|
|
1414
1430
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -1416,7 +1432,7 @@ export interface ItemMetadata {
|
|
|
1416
1432
|
/** Details about the error in case of failure. */
|
|
1417
1433
|
error?: ApplicationError;
|
|
1418
1434
|
}
|
|
1419
|
-
|
|
1435
|
+
interface ApplicationError {
|
|
1420
1436
|
/** Error code. */
|
|
1421
1437
|
code?: string;
|
|
1422
1438
|
/** Description of the error. */
|
|
@@ -1424,7 +1440,7 @@ export interface ApplicationError {
|
|
|
1424
1440
|
/** Data related to the error. */
|
|
1425
1441
|
data?: Record<string, any> | null;
|
|
1426
1442
|
}
|
|
1427
|
-
|
|
1443
|
+
interface BulkActionMetadata {
|
|
1428
1444
|
/** Number of items that were successfully processed. */
|
|
1429
1445
|
totalSuccesses?: number;
|
|
1430
1446
|
/** Number of items that couldn't be processed. */
|
|
@@ -1432,13 +1448,13 @@ export interface BulkActionMetadata {
|
|
|
1432
1448
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1433
1449
|
undetailedFailures?: number;
|
|
1434
1450
|
}
|
|
1435
|
-
|
|
1451
|
+
interface BookingChanged {
|
|
1436
1452
|
/** The booking before the changes. */
|
|
1437
1453
|
previousBooking?: Booking;
|
|
1438
1454
|
/** The booking after the changes. */
|
|
1439
1455
|
currentBooking?: Booking;
|
|
1440
1456
|
}
|
|
1441
|
-
|
|
1457
|
+
interface CreateBookingRequest {
|
|
1442
1458
|
/** The booking to create. */
|
|
1443
1459
|
booking: Booking;
|
|
1444
1460
|
/**
|
|
@@ -1458,7 +1474,7 @@ export interface CreateBookingRequest {
|
|
|
1458
1474
|
*/
|
|
1459
1475
|
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
1460
1476
|
}
|
|
1461
|
-
|
|
1477
|
+
interface CreateBookingFlowControlSettings {
|
|
1462
1478
|
/**
|
|
1463
1479
|
* Whether the availability is checked before creating the booking.
|
|
1464
1480
|
*
|
|
@@ -1485,7 +1501,7 @@ export interface CreateBookingFlowControlSettings {
|
|
|
1485
1501
|
*/
|
|
1486
1502
|
skipSelectedPaymentOptionValidation?: boolean;
|
|
1487
1503
|
}
|
|
1488
|
-
|
|
1504
|
+
interface CreateBookingResponse {
|
|
1489
1505
|
/** Created booking. */
|
|
1490
1506
|
booking?: Booking;
|
|
1491
1507
|
}
|
|
@@ -1493,30 +1509,30 @@ export interface CreateBookingResponse {
|
|
|
1493
1509
|
* The `fieldMask` should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
|
|
1494
1510
|
* in an error. `participantsInfo` is preferred over `numberOfParticipants`.
|
|
1495
1511
|
*/
|
|
1496
|
-
|
|
1512
|
+
interface UpdateBookingRequest {
|
|
1497
1513
|
booking?: Booking;
|
|
1498
1514
|
}
|
|
1499
|
-
|
|
1515
|
+
interface UpdateBookingResponse {
|
|
1500
1516
|
booking?: Booking;
|
|
1501
1517
|
}
|
|
1502
|
-
|
|
1518
|
+
interface LegacyCreateBookingRequest {
|
|
1503
1519
|
booking?: Booking;
|
|
1504
1520
|
}
|
|
1505
|
-
|
|
1521
|
+
interface LegacyCreateBookingResponse {
|
|
1506
1522
|
booking?: Booking;
|
|
1507
1523
|
}
|
|
1508
1524
|
/**
|
|
1509
1525
|
* The `fieldMask` for each booking should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
|
|
1510
1526
|
* in an error. `participantsInfo` is preferred over `numberOfParticipants`.
|
|
1511
1527
|
*/
|
|
1512
|
-
|
|
1528
|
+
interface BulkUpdateBookingRequest {
|
|
1513
1529
|
bookings?: MaskedBooking[];
|
|
1514
1530
|
}
|
|
1515
|
-
|
|
1531
|
+
interface MaskedBooking {
|
|
1516
1532
|
booking?: Booking;
|
|
1517
1533
|
mask?: string[];
|
|
1518
1534
|
}
|
|
1519
|
-
|
|
1535
|
+
interface BulkUpdateBookingResponse {
|
|
1520
1536
|
/**
|
|
1521
1537
|
* Information about the booking that was updated.
|
|
1522
1538
|
* Including its ID, index in the bulk request and whether it was
|
|
@@ -1526,7 +1542,7 @@ export interface BulkUpdateBookingResponse {
|
|
|
1526
1542
|
/** Total number of successes and failures for Bulk Update Bookings. */
|
|
1527
1543
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1528
1544
|
}
|
|
1529
|
-
|
|
1545
|
+
interface BulkCreateBookingRequest {
|
|
1530
1546
|
/**
|
|
1531
1547
|
* Bookings to create.
|
|
1532
1548
|
*
|
|
@@ -1538,7 +1554,7 @@ export interface BulkCreateBookingRequest {
|
|
|
1538
1554
|
/** Whether to return the created bookings. */
|
|
1539
1555
|
returnFullEntity?: boolean;
|
|
1540
1556
|
}
|
|
1541
|
-
|
|
1557
|
+
interface CreateBookingInfo {
|
|
1542
1558
|
/** Booking to create. */
|
|
1543
1559
|
booking?: Booking;
|
|
1544
1560
|
/**
|
|
@@ -1558,13 +1574,13 @@ export interface CreateBookingInfo {
|
|
|
1558
1574
|
*/
|
|
1559
1575
|
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
1560
1576
|
}
|
|
1561
|
-
|
|
1577
|
+
interface BulkCreateBookingResponse {
|
|
1562
1578
|
/** List of individual Bulk Create Bookings results. */
|
|
1563
1579
|
results?: BulkBookingResult[];
|
|
1564
1580
|
/** Total number of successes and failures for Bulk Create Bookings. */
|
|
1565
1581
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1566
1582
|
}
|
|
1567
|
-
|
|
1583
|
+
interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
|
|
1568
1584
|
/**
|
|
1569
1585
|
* Total number of participants. Specify when all participants have booked the
|
|
1570
1586
|
* same service variant.
|
|
@@ -1600,7 +1616,7 @@ export interface RescheduleBookingRequest extends RescheduleBookingRequestPartic
|
|
|
1600
1616
|
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
1601
1617
|
}
|
|
1602
1618
|
/** @oneof */
|
|
1603
|
-
|
|
1619
|
+
interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
1604
1620
|
/**
|
|
1605
1621
|
* Total number of participants. Specify when all participants have booked the
|
|
1606
1622
|
* same service variant.
|
|
@@ -1612,7 +1628,7 @@ export interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
|
1612
1628
|
*/
|
|
1613
1629
|
participantsChoices?: ParticipantChoices;
|
|
1614
1630
|
}
|
|
1615
|
-
|
|
1631
|
+
interface V2Slot {
|
|
1616
1632
|
/** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
|
|
1617
1633
|
sessionId?: string | null;
|
|
1618
1634
|
/** Service identifier. Required. */
|
|
@@ -1644,7 +1660,7 @@ export interface V2Slot {
|
|
|
1644
1660
|
*/
|
|
1645
1661
|
eventId?: string | null;
|
|
1646
1662
|
}
|
|
1647
|
-
|
|
1663
|
+
declare enum LocationLocationType {
|
|
1648
1664
|
/** Undefined location type. */
|
|
1649
1665
|
UNDEFINED = "UNDEFINED",
|
|
1650
1666
|
/** The business address as set in the site’s general settings. */
|
|
@@ -1654,33 +1670,35 @@ export declare enum LocationLocationType {
|
|
|
1654
1670
|
/** The address set for the individual session. */
|
|
1655
1671
|
CUSTOM = "CUSTOM"
|
|
1656
1672
|
}
|
|
1657
|
-
|
|
1673
|
+
/** @enumType */
|
|
1674
|
+
type LocationLocationTypeWithLiterals = LocationLocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
|
|
1675
|
+
interface SlotSlotResource {
|
|
1658
1676
|
/**
|
|
1659
1677
|
* Resource ID.
|
|
1660
1678
|
* @format GUID
|
|
1661
1679
|
* @readonly
|
|
1662
1680
|
*/
|
|
1663
|
-
|
|
1681
|
+
_id?: string | null;
|
|
1664
1682
|
/**
|
|
1665
1683
|
* Resource name.
|
|
1666
1684
|
* @maxLength 1200
|
|
1667
1685
|
*/
|
|
1668
1686
|
name?: string | null;
|
|
1669
1687
|
}
|
|
1670
|
-
|
|
1688
|
+
interface SlotLocation {
|
|
1671
1689
|
/**
|
|
1672
1690
|
* Business Location ID. Present if the location is a business location.
|
|
1673
1691
|
* @format GUID
|
|
1674
1692
|
*/
|
|
1675
|
-
|
|
1693
|
+
_id?: string | null;
|
|
1676
1694
|
/** Location name. */
|
|
1677
1695
|
name?: string | null;
|
|
1678
1696
|
/** A string containing the full address of this location. */
|
|
1679
1697
|
formattedAddress?: string | null;
|
|
1680
1698
|
/** Location type. */
|
|
1681
|
-
locationType?:
|
|
1699
|
+
locationType?: LocationLocationTypeWithLiterals;
|
|
1682
1700
|
}
|
|
1683
|
-
|
|
1701
|
+
interface RescheduleBookingFlowControlSettings {
|
|
1684
1702
|
/**
|
|
1685
1703
|
* Whether the rescheduling policy applies when rescheduling the booking.
|
|
1686
1704
|
*
|
|
@@ -1705,11 +1723,11 @@ export interface RescheduleBookingFlowControlSettings {
|
|
|
1705
1723
|
*/
|
|
1706
1724
|
skipBusinessConfirmation?: boolean;
|
|
1707
1725
|
}
|
|
1708
|
-
|
|
1726
|
+
interface RescheduleBookingResponse {
|
|
1709
1727
|
/** Rescheduled booking. */
|
|
1710
1728
|
booking?: Booking;
|
|
1711
1729
|
}
|
|
1712
|
-
|
|
1730
|
+
interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoOneOf {
|
|
1713
1731
|
/**
|
|
1714
1732
|
* The previous total number of participants. Available only when the booking includes
|
|
1715
1733
|
* a single service variant.
|
|
@@ -1734,7 +1752,7 @@ export interface BookingRescheduled extends BookingRescheduledPreviousParticipan
|
|
|
1734
1752
|
/** ID of the rescheduling initiator. */
|
|
1735
1753
|
initiatedBy?: IdentificationData;
|
|
1736
1754
|
/** The previous status of the booking. */
|
|
1737
|
-
previousStatus?:
|
|
1755
|
+
previousStatus?: BookingStatusWithLiterals;
|
|
1738
1756
|
/** An object describing the previous slot or schedule of the booking. */
|
|
1739
1757
|
previousBookedEntity?: BookedEntity;
|
|
1740
1758
|
/**
|
|
@@ -1751,7 +1769,7 @@ export interface BookingRescheduled extends BookingRescheduledPreviousParticipan
|
|
|
1751
1769
|
previousEndDate?: Date | null;
|
|
1752
1770
|
}
|
|
1753
1771
|
/** @oneof */
|
|
1754
|
-
|
|
1772
|
+
interface BookingRescheduledPreviousParticipantsInfoOneOf {
|
|
1755
1773
|
/**
|
|
1756
1774
|
* The previous total number of participants. Available only when the booking includes
|
|
1757
1775
|
* a single service variant.
|
|
@@ -1763,7 +1781,7 @@ export interface BookingRescheduledPreviousParticipantsInfoOneOf {
|
|
|
1763
1781
|
*/
|
|
1764
1782
|
previousParticipantsChoices?: ParticipantChoices;
|
|
1765
1783
|
}
|
|
1766
|
-
|
|
1784
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1767
1785
|
/**
|
|
1768
1786
|
* ID of a site visitor that has not logged in to the site.
|
|
1769
1787
|
* @format GUID
|
|
@@ -1792,7 +1810,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1792
1810
|
contactId?: string | null;
|
|
1793
1811
|
}
|
|
1794
1812
|
/** @oneof */
|
|
1795
|
-
|
|
1813
|
+
interface IdentificationDataIdOneOf {
|
|
1796
1814
|
/**
|
|
1797
1815
|
* ID of a site visitor that has not logged in to the site.
|
|
1798
1816
|
* @format GUID
|
|
@@ -1814,14 +1832,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
1814
1832
|
*/
|
|
1815
1833
|
appId?: string;
|
|
1816
1834
|
}
|
|
1817
|
-
|
|
1835
|
+
declare enum IdentityType {
|
|
1818
1836
|
UNKNOWN = "UNKNOWN",
|
|
1819
1837
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1820
1838
|
MEMBER = "MEMBER",
|
|
1821
1839
|
WIX_USER = "WIX_USER",
|
|
1822
1840
|
APP = "APP"
|
|
1823
1841
|
}
|
|
1824
|
-
|
|
1842
|
+
interface BulkRescheduleBookingRequest {
|
|
1825
1843
|
/**
|
|
1826
1844
|
* Reschedule multiple bookings to multiple slots.
|
|
1827
1845
|
* @minSize 1
|
|
@@ -1833,12 +1851,12 @@ export interface BulkRescheduleBookingRequest {
|
|
|
1833
1851
|
*/
|
|
1834
1852
|
participantNotification?: ParticipantNotification;
|
|
1835
1853
|
}
|
|
1836
|
-
|
|
1854
|
+
interface BulkRescheduleBookingRequestBooking {
|
|
1837
1855
|
/**
|
|
1838
1856
|
* ID of the booking to reschedule.
|
|
1839
1857
|
* @format GUID
|
|
1840
1858
|
*/
|
|
1841
|
-
|
|
1859
|
+
_id?: string;
|
|
1842
1860
|
/**
|
|
1843
1861
|
* Revision number, which increments by 1 each time the booking is rescheduled.
|
|
1844
1862
|
* To prevent conflicting changes,
|
|
@@ -1847,7 +1865,7 @@ export interface BulkRescheduleBookingRequestBooking {
|
|
|
1847
1865
|
revision?: string | null;
|
|
1848
1866
|
}
|
|
1849
1867
|
/** Bookings to be rescheduled to the given slot. */
|
|
1850
|
-
|
|
1868
|
+
interface SlotBookings {
|
|
1851
1869
|
/**
|
|
1852
1870
|
* The bookings details.
|
|
1853
1871
|
* @minSize 1
|
|
@@ -1859,7 +1877,7 @@ export interface SlotBookings {
|
|
|
1859
1877
|
*/
|
|
1860
1878
|
slot?: BookedSlot;
|
|
1861
1879
|
}
|
|
1862
|
-
|
|
1880
|
+
interface BulkRescheduleBookingResponse {
|
|
1863
1881
|
/**
|
|
1864
1882
|
* Information about the booking that was rescheduled.
|
|
1865
1883
|
* Including its ID, index in the bulk request and whether it was
|
|
@@ -1870,7 +1888,7 @@ export interface BulkRescheduleBookingResponse {
|
|
|
1870
1888
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1871
1889
|
}
|
|
1872
1890
|
/** Update the booked schedule of multiple bookings to the given schedule. */
|
|
1873
|
-
|
|
1891
|
+
interface BulkUpdateBookedScheduleRequest {
|
|
1874
1892
|
/**
|
|
1875
1893
|
* The bookings whose booked schedule is to be updated to the given schedule.
|
|
1876
1894
|
* @minSize 1
|
|
@@ -1884,15 +1902,15 @@ export interface BulkUpdateBookedScheduleRequest {
|
|
|
1884
1902
|
*/
|
|
1885
1903
|
participantNotification?: ParticipantNotification;
|
|
1886
1904
|
}
|
|
1887
|
-
|
|
1905
|
+
interface BookingDetails {
|
|
1888
1906
|
/**
|
|
1889
1907
|
* ID of the bookings to be updated.
|
|
1890
1908
|
* @format GUID
|
|
1891
1909
|
*/
|
|
1892
|
-
|
|
1910
|
+
_id?: string;
|
|
1893
1911
|
revision?: string | null;
|
|
1894
1912
|
}
|
|
1895
|
-
|
|
1913
|
+
interface BulkUpdateBookedScheduleResponse {
|
|
1896
1914
|
/**
|
|
1897
1915
|
* Information about the schedule that was updated.
|
|
1898
1916
|
* Including its ID, index in the bulk request and whether it was
|
|
@@ -1902,11 +1920,11 @@ export interface BulkUpdateBookedScheduleResponse {
|
|
|
1902
1920
|
/** Total number of successes and failures for Bulk Updated Booked Schedules. */
|
|
1903
1921
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1904
1922
|
}
|
|
1905
|
-
|
|
1923
|
+
interface QueryBookingsRequest {
|
|
1906
1924
|
/** Information about filters, paging, and sorting. */
|
|
1907
1925
|
query?: QueryV2;
|
|
1908
1926
|
}
|
|
1909
|
-
|
|
1927
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
1910
1928
|
/** Paging options to limit and skip the number of items. */
|
|
1911
1929
|
paging?: Paging;
|
|
1912
1930
|
/**
|
|
@@ -1936,7 +1954,7 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
1936
1954
|
fieldsets?: string[];
|
|
1937
1955
|
}
|
|
1938
1956
|
/** @oneof */
|
|
1939
|
-
|
|
1957
|
+
interface QueryV2PagingMethodOneOf {
|
|
1940
1958
|
/** Paging options to limit and skip the number of items. */
|
|
1941
1959
|
paging?: Paging;
|
|
1942
1960
|
/**
|
|
@@ -1947,26 +1965,28 @@ export interface QueryV2PagingMethodOneOf {
|
|
|
1947
1965
|
*/
|
|
1948
1966
|
cursorPaging?: CursorPaging;
|
|
1949
1967
|
}
|
|
1950
|
-
|
|
1968
|
+
interface Sorting {
|
|
1951
1969
|
/**
|
|
1952
1970
|
* Name of the field to sort by.
|
|
1953
1971
|
* @maxLength 512
|
|
1954
1972
|
*/
|
|
1955
1973
|
fieldName?: string;
|
|
1956
1974
|
/** Sort order. */
|
|
1957
|
-
order?:
|
|
1975
|
+
order?: SortOrderWithLiterals;
|
|
1958
1976
|
}
|
|
1959
|
-
|
|
1977
|
+
declare enum SortOrder {
|
|
1960
1978
|
ASC = "ASC",
|
|
1961
1979
|
DESC = "DESC"
|
|
1962
1980
|
}
|
|
1963
|
-
|
|
1981
|
+
/** @enumType */
|
|
1982
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
1983
|
+
interface Paging {
|
|
1964
1984
|
/** Number of items to load. */
|
|
1965
1985
|
limit?: number | null;
|
|
1966
1986
|
/** Number of items to skip in the current sort order. */
|
|
1967
1987
|
offset?: number | null;
|
|
1968
1988
|
}
|
|
1969
|
-
|
|
1989
|
+
interface CursorPaging {
|
|
1970
1990
|
/**
|
|
1971
1991
|
* Maximum number of items to return in the results.
|
|
1972
1992
|
* @max 100
|
|
@@ -1981,13 +2001,13 @@ export interface CursorPaging {
|
|
|
1981
2001
|
*/
|
|
1982
2002
|
cursor?: string | null;
|
|
1983
2003
|
}
|
|
1984
|
-
|
|
2004
|
+
interface QueryBookingsResponse {
|
|
1985
2005
|
/** Retrieved bookings. */
|
|
1986
2006
|
bookings?: Booking[];
|
|
1987
2007
|
/** Paging metadata. */
|
|
1988
2008
|
pagingMetadata?: PagingMetadataV2;
|
|
1989
2009
|
}
|
|
1990
|
-
|
|
2010
|
+
interface PagingMetadataV2 {
|
|
1991
2011
|
/** Number of items returned in the response. */
|
|
1992
2012
|
count?: number | null;
|
|
1993
2013
|
/** Offset that was requested. */
|
|
@@ -1999,7 +2019,7 @@ export interface PagingMetadataV2 {
|
|
|
1999
2019
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
2000
2020
|
cursors?: Cursors;
|
|
2001
2021
|
}
|
|
2002
|
-
|
|
2022
|
+
interface Cursors {
|
|
2003
2023
|
/**
|
|
2004
2024
|
* Cursor string pointing to the next page in the list of results.
|
|
2005
2025
|
* @maxLength 16000
|
|
@@ -2011,25 +2031,25 @@ export interface Cursors {
|
|
|
2011
2031
|
*/
|
|
2012
2032
|
prev?: string | null;
|
|
2013
2033
|
}
|
|
2014
|
-
|
|
2034
|
+
interface ConfirmRequest {
|
|
2015
2035
|
/**
|
|
2016
2036
|
* ID of the booking to confirm.
|
|
2017
2037
|
* @format GUID
|
|
2018
2038
|
*/
|
|
2019
|
-
|
|
2039
|
+
_id?: string;
|
|
2020
2040
|
/**
|
|
2021
2041
|
* Information about whether to notify the customer about the confirmation and
|
|
2022
2042
|
* the message to send.
|
|
2023
2043
|
*/
|
|
2024
2044
|
participantNotification?: ParticipantNotification;
|
|
2025
2045
|
}
|
|
2026
|
-
|
|
2046
|
+
interface ConfirmResponse {
|
|
2027
2047
|
/** Confirmed booking. */
|
|
2028
2048
|
booking?: Booking;
|
|
2029
2049
|
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
2030
2050
|
doubleBooked?: boolean | null;
|
|
2031
2051
|
}
|
|
2032
|
-
|
|
2052
|
+
interface ConfirmBookingRequest {
|
|
2033
2053
|
/**
|
|
2034
2054
|
* ID of the booking to confirm.
|
|
2035
2055
|
* @format GUID
|
|
@@ -2052,7 +2072,7 @@ export interface ConfirmBookingRequest {
|
|
|
2052
2072
|
*/
|
|
2053
2073
|
sendSmsReminder?: boolean | null;
|
|
2054
2074
|
/** Payment status to set for the booking. */
|
|
2055
|
-
paymentStatus?:
|
|
2075
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
2056
2076
|
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
2057
2077
|
doubleBooked?: boolean | null;
|
|
2058
2078
|
/**
|
|
@@ -2061,7 +2081,7 @@ export interface ConfirmBookingRequest {
|
|
|
2061
2081
|
*/
|
|
2062
2082
|
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
2063
2083
|
}
|
|
2064
|
-
|
|
2084
|
+
interface ConfirmBookingFlowControlSettings {
|
|
2065
2085
|
/**
|
|
2066
2086
|
* Whether the availability is checked before confirming the booking.
|
|
2067
2087
|
*
|
|
@@ -2070,11 +2090,11 @@ export interface ConfirmBookingFlowControlSettings {
|
|
|
2070
2090
|
*/
|
|
2071
2091
|
checkAvailabilityValidation?: boolean;
|
|
2072
2092
|
}
|
|
2073
|
-
|
|
2093
|
+
interface ConfirmBookingResponse {
|
|
2074
2094
|
/** Confirmed booking. */
|
|
2075
2095
|
booking?: Booking;
|
|
2076
2096
|
}
|
|
2077
|
-
|
|
2097
|
+
interface BookingConfirmed {
|
|
2078
2098
|
/** The confirmed booking object. */
|
|
2079
2099
|
booking?: Booking;
|
|
2080
2100
|
/** Information about whether to notify the customer about the confirmation and the message to send. */
|
|
@@ -2089,34 +2109,34 @@ export interface BookingConfirmed {
|
|
|
2089
2109
|
/** ID of the confirmation initiator. */
|
|
2090
2110
|
initiatedBy?: IdentificationData;
|
|
2091
2111
|
/** The previous status of the booking. */
|
|
2092
|
-
previousStatus?:
|
|
2112
|
+
previousStatus?: BookingStatusWithLiterals;
|
|
2093
2113
|
/** The previous payment status of the booking. */
|
|
2094
|
-
previousPaymentStatus?:
|
|
2114
|
+
previousPaymentStatus?: PaymentStatusWithLiterals;
|
|
2095
2115
|
}
|
|
2096
|
-
|
|
2116
|
+
interface ConsistentQueryBookingsRequest {
|
|
2097
2117
|
/** Information about filters, paging, and sorting. */
|
|
2098
2118
|
query?: QueryV2;
|
|
2099
2119
|
}
|
|
2100
|
-
|
|
2120
|
+
interface ConsistentQueryBookingsResponse {
|
|
2101
2121
|
/** Retrieved bookings. */
|
|
2102
2122
|
bookings?: Booking[];
|
|
2103
2123
|
/** Paging metadata. */
|
|
2104
2124
|
pagingMetadata?: PagingMetadataV2;
|
|
2105
2125
|
}
|
|
2106
|
-
|
|
2126
|
+
interface SetBookingSessionIdRequest {
|
|
2107
2127
|
/**
|
|
2108
2128
|
* ID of the booking to set `sessionId` for.
|
|
2109
2129
|
* @format GUID
|
|
2110
2130
|
*/
|
|
2111
|
-
|
|
2131
|
+
_id?: string;
|
|
2112
2132
|
/** ID of the session to set on the booking. */
|
|
2113
2133
|
sessionId?: string;
|
|
2114
2134
|
}
|
|
2115
|
-
|
|
2135
|
+
interface SetBookingSessionIdResponse {
|
|
2116
2136
|
/** Updated booking. */
|
|
2117
2137
|
booking?: Booking;
|
|
2118
2138
|
}
|
|
2119
|
-
|
|
2139
|
+
interface SetBookingSubmissionIdRequest {
|
|
2120
2140
|
/**
|
|
2121
2141
|
* ID of the booking to set `submissionId` for.
|
|
2122
2142
|
* @format GUID
|
|
@@ -2128,19 +2148,19 @@ export interface SetBookingSubmissionIdRequest {
|
|
|
2128
2148
|
*/
|
|
2129
2149
|
submissionId?: string;
|
|
2130
2150
|
}
|
|
2131
|
-
|
|
2151
|
+
interface SetBookingSubmissionIdResponse {
|
|
2132
2152
|
/** Updated booking. */
|
|
2133
2153
|
booking?: Booking;
|
|
2134
2154
|
}
|
|
2135
|
-
|
|
2155
|
+
interface UpdateExtendedFieldsRequest {
|
|
2136
2156
|
/** ID of the entity to update. */
|
|
2137
|
-
|
|
2157
|
+
_id: string;
|
|
2138
2158
|
/** Identifier for the app whose extended fields are being updated. */
|
|
2139
2159
|
namespace: string;
|
|
2140
2160
|
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
2141
2161
|
namespaceData: Record<string, any> | null;
|
|
2142
2162
|
}
|
|
2143
|
-
|
|
2163
|
+
interface UpdateExtendedFieldsResponse {
|
|
2144
2164
|
/**
|
|
2145
2165
|
* Updated namespace.
|
|
2146
2166
|
* @maxLength 164
|
|
@@ -2149,7 +2169,7 @@ export interface UpdateExtendedFieldsResponse {
|
|
|
2149
2169
|
/** Updated data. */
|
|
2150
2170
|
namespaceData?: Record<string, any> | null;
|
|
2151
2171
|
}
|
|
2152
|
-
|
|
2172
|
+
interface DeclineBookingRequest {
|
|
2153
2173
|
/**
|
|
2154
2174
|
* ID of the booking to decline.
|
|
2155
2175
|
* @format GUID
|
|
@@ -2169,7 +2189,7 @@ export interface DeclineBookingRequest {
|
|
|
2169
2189
|
*/
|
|
2170
2190
|
participantNotification?: ParticipantNotification;
|
|
2171
2191
|
/** Payment status to set for the booking. */
|
|
2172
|
-
paymentStatus?:
|
|
2192
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
2173
2193
|
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
2174
2194
|
doubleBooked?: boolean | null;
|
|
2175
2195
|
/**
|
|
@@ -2178,7 +2198,7 @@ export interface DeclineBookingRequest {
|
|
|
2178
2198
|
*/
|
|
2179
2199
|
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
2180
2200
|
}
|
|
2181
|
-
|
|
2201
|
+
interface DeclineBookingFlowControlSettings {
|
|
2182
2202
|
/**
|
|
2183
2203
|
* Whether to issue a refund when declining the booking.
|
|
2184
2204
|
*
|
|
@@ -2192,11 +2212,11 @@ export interface DeclineBookingFlowControlSettings {
|
|
|
2192
2212
|
*/
|
|
2193
2213
|
withRefund?: boolean | null;
|
|
2194
2214
|
}
|
|
2195
|
-
|
|
2215
|
+
interface DeclineBookingResponse {
|
|
2196
2216
|
/** Declined booking. */
|
|
2197
2217
|
booking?: Booking;
|
|
2198
2218
|
}
|
|
2199
|
-
|
|
2219
|
+
interface BookingDeclined {
|
|
2200
2220
|
/** The declined booking object. */
|
|
2201
2221
|
booking?: Booking;
|
|
2202
2222
|
/** Information about whether to notify the customer about the decline and the message to send. */
|
|
@@ -2206,16 +2226,16 @@ export interface BookingDeclined {
|
|
|
2206
2226
|
/** ID of the decline initiator. */
|
|
2207
2227
|
initiatedBy?: IdentificationData;
|
|
2208
2228
|
/** The previous status of the booking. */
|
|
2209
|
-
previousStatus?:
|
|
2229
|
+
previousStatus?: BookingStatusWithLiterals;
|
|
2210
2230
|
/** The previous payment status of the booking. */
|
|
2211
|
-
previousPaymentStatus?:
|
|
2231
|
+
previousPaymentStatus?: PaymentStatusWithLiterals;
|
|
2212
2232
|
/**
|
|
2213
2233
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
2214
2234
|
* declining flow are changed. For example, whether to issue a refund.
|
|
2215
2235
|
*/
|
|
2216
2236
|
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
2217
2237
|
}
|
|
2218
|
-
|
|
2238
|
+
interface CancelBookingRequest {
|
|
2219
2239
|
/**
|
|
2220
2240
|
* ID of the booking to cancel.
|
|
2221
2241
|
* @format GUID
|
|
@@ -2240,7 +2260,7 @@ export interface CancelBookingRequest {
|
|
|
2240
2260
|
*/
|
|
2241
2261
|
revision: string | null;
|
|
2242
2262
|
}
|
|
2243
|
-
|
|
2263
|
+
interface CancelBookingFlowControlSettings {
|
|
2244
2264
|
/**
|
|
2245
2265
|
* Whether the cancellation policy applies when canceling the booking.
|
|
2246
2266
|
*
|
|
@@ -2261,11 +2281,11 @@ export interface CancelBookingFlowControlSettings {
|
|
|
2261
2281
|
*/
|
|
2262
2282
|
withRefund?: boolean | null;
|
|
2263
2283
|
}
|
|
2264
|
-
|
|
2284
|
+
interface CancelBookingResponse {
|
|
2265
2285
|
/** Canceled booking. */
|
|
2266
2286
|
booking?: Booking;
|
|
2267
2287
|
}
|
|
2268
|
-
|
|
2288
|
+
interface BookingCanceled {
|
|
2269
2289
|
/** The canceled booking object. */
|
|
2270
2290
|
booking?: Booking;
|
|
2271
2291
|
/** Information about whether to notify the customer about the cancellation and the message to send. */
|
|
@@ -2280,9 +2300,9 @@ export interface BookingCanceled {
|
|
|
2280
2300
|
/** ID of the cancellation initiator. */
|
|
2281
2301
|
initiatedBy?: IdentificationData;
|
|
2282
2302
|
/** The previous status of the booking. */
|
|
2283
|
-
previousStatus?:
|
|
2303
|
+
previousStatus?: BookingStatusWithLiterals;
|
|
2284
2304
|
}
|
|
2285
|
-
|
|
2305
|
+
interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
2286
2306
|
/**
|
|
2287
2307
|
* Total number of participants. Specify when all participants have booked the
|
|
2288
2308
|
* same service variant.
|
|
@@ -2307,7 +2327,7 @@ export interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfPartici
|
|
|
2307
2327
|
revision: string | null;
|
|
2308
2328
|
}
|
|
2309
2329
|
/** @oneof */
|
|
2310
|
-
|
|
2330
|
+
interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
2311
2331
|
/**
|
|
2312
2332
|
* Total number of participants. Specify when all participants have booked the
|
|
2313
2333
|
* same service variant.
|
|
@@ -2319,11 +2339,11 @@ export interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
|
2319
2339
|
*/
|
|
2320
2340
|
participantsChoices?: ParticipantChoices;
|
|
2321
2341
|
}
|
|
2322
|
-
|
|
2342
|
+
interface UpdateNumberOfParticipantsResponse {
|
|
2323
2343
|
/** Updated booking. */
|
|
2324
2344
|
booking?: Booking;
|
|
2325
2345
|
}
|
|
2326
|
-
|
|
2346
|
+
interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
|
|
2327
2347
|
/**
|
|
2328
2348
|
* The previous total number of participants. Available only when the booking includes
|
|
2329
2349
|
* a single service variant.
|
|
@@ -2340,7 +2360,7 @@ export interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdated
|
|
|
2340
2360
|
initiatedBy?: IdentificationData;
|
|
2341
2361
|
}
|
|
2342
2362
|
/** @oneof */
|
|
2343
|
-
|
|
2363
|
+
interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
|
|
2344
2364
|
/**
|
|
2345
2365
|
* The previous total number of participants. Available only when the booking includes
|
|
2346
2366
|
* a single service variant.
|
|
@@ -2352,42 +2372,42 @@ export interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
|
|
|
2352
2372
|
*/
|
|
2353
2373
|
previousParticipantsChoices?: ParticipantChoices;
|
|
2354
2374
|
}
|
|
2355
|
-
|
|
2375
|
+
interface BulkCalculateAllowedActionsRequest {
|
|
2356
2376
|
/**
|
|
2357
2377
|
* The booking IDs for which we want to calculate the allowed actions.
|
|
2358
2378
|
* @minSize 1
|
|
2359
2379
|
*/
|
|
2360
2380
|
bookingIds?: string[] | null;
|
|
2361
2381
|
}
|
|
2362
|
-
|
|
2382
|
+
interface BulkCalculateAllowedActionsResponse {
|
|
2363
2383
|
results?: BulkCalculateAllowedActionsResult[];
|
|
2364
2384
|
/** Total number of successes and failures for Bulk Calculate Allowed Actions. */
|
|
2365
2385
|
bulkActionMetadata?: BulkActionMetadata;
|
|
2366
2386
|
}
|
|
2367
|
-
|
|
2387
|
+
interface BulkCalculateAllowedActionsResult {
|
|
2368
2388
|
/** Metadata for the booking. Including ID, index in the provided sequence, success status, and error. */
|
|
2369
2389
|
itemMetadata?: ItemMetadata;
|
|
2370
2390
|
/** Booking entity. */
|
|
2371
2391
|
item?: AllowedActions;
|
|
2372
2392
|
}
|
|
2373
2393
|
/** Possible actions allowed for the booking. */
|
|
2374
|
-
|
|
2394
|
+
interface AllowedActions {
|
|
2375
2395
|
/** Whether canceling the booking is allowed. */
|
|
2376
2396
|
cancel?: boolean;
|
|
2377
2397
|
/** Whether rescheduling the booking is allowed. */
|
|
2378
2398
|
reschedule?: boolean;
|
|
2379
2399
|
}
|
|
2380
|
-
|
|
2400
|
+
interface GetSlotAvailabilityRequest {
|
|
2381
2401
|
/** The slot for which the availability is checked. */
|
|
2382
2402
|
slot?: V2Slot;
|
|
2383
2403
|
/** The timezone for which availability is to be calculated. */
|
|
2384
2404
|
timezone?: string | null;
|
|
2385
2405
|
}
|
|
2386
|
-
|
|
2406
|
+
interface GetSlotAvailabilityResponse {
|
|
2387
2407
|
availability?: SlotAvailability;
|
|
2388
2408
|
bookingPolicySettings?: BookingPolicySettings;
|
|
2389
2409
|
}
|
|
2390
|
-
|
|
2410
|
+
interface SlotAvailability {
|
|
2391
2411
|
/** Identifier for the underlying session when the session is a single session or generated from a recurring session. Required. */
|
|
2392
2412
|
slot?: V2Slot;
|
|
2393
2413
|
/** Whether this available slot is bookable. */
|
|
@@ -2409,7 +2429,7 @@ export interface SlotAvailability {
|
|
|
2409
2429
|
/** Indicates whether this slot is locked. */
|
|
2410
2430
|
locked?: boolean | null;
|
|
2411
2431
|
}
|
|
2412
|
-
|
|
2432
|
+
interface WaitingList {
|
|
2413
2433
|
/**
|
|
2414
2434
|
* Total number of spots and open spots for this waiting list.
|
|
2415
2435
|
* For example, a Yoga class of 10 waiting list spots with 3 registered on the waiting list has `total_spots`: 10 and `open_spots`: 7.
|
|
@@ -2417,7 +2437,7 @@ export interface WaitingList {
|
|
|
2417
2437
|
totalSpots?: number | null;
|
|
2418
2438
|
openSpots?: number | null;
|
|
2419
2439
|
}
|
|
2420
|
-
|
|
2440
|
+
interface BookingPolicyViolations {
|
|
2421
2441
|
/** Booking policy violation: Too early to book this slot. */
|
|
2422
2442
|
tooEarlyToBook?: boolean | null;
|
|
2423
2443
|
/** Booking policy violation: Too late to book this slot. */
|
|
@@ -2425,11 +2445,11 @@ export interface BookingPolicyViolations {
|
|
|
2425
2445
|
/** Booking policy violation: Online booking is disabled for this slot. */
|
|
2426
2446
|
bookOnlineDisabled?: boolean | null;
|
|
2427
2447
|
}
|
|
2428
|
-
|
|
2448
|
+
interface BookingPolicySettings {
|
|
2429
2449
|
/** Booking policy settings for a given slot or schedule. */
|
|
2430
2450
|
maxParticipantsPerBooking?: number | null;
|
|
2431
2451
|
}
|
|
2432
|
-
|
|
2452
|
+
interface AvailableResources {
|
|
2433
2453
|
/**
|
|
2434
2454
|
* Resource type ID.
|
|
2435
2455
|
* @format GUID
|
|
@@ -2444,18 +2464,18 @@ export interface AvailableResources {
|
|
|
2444
2464
|
*/
|
|
2445
2465
|
resourceIds?: string[];
|
|
2446
2466
|
}
|
|
2447
|
-
|
|
2467
|
+
interface GetScheduleAvailabilityRequest {
|
|
2448
2468
|
/**
|
|
2449
2469
|
* ID of the schedule for which to check availability.
|
|
2450
2470
|
* @format GUID
|
|
2451
2471
|
*/
|
|
2452
2472
|
scheduleId?: string;
|
|
2453
2473
|
}
|
|
2454
|
-
|
|
2474
|
+
interface GetScheduleAvailabilityResponse {
|
|
2455
2475
|
availability?: ScheduleAvailability;
|
|
2456
2476
|
bookingPolicySettings?: BookingPolicySettings;
|
|
2457
2477
|
}
|
|
2458
|
-
|
|
2478
|
+
interface ScheduleAvailability {
|
|
2459
2479
|
/** Total number of spots. */
|
|
2460
2480
|
totalSpots?: number | null;
|
|
2461
2481
|
/** Number of remaining open spots. */
|
|
@@ -2463,7 +2483,7 @@ export interface ScheduleAvailability {
|
|
|
2463
2483
|
/** Indicators of booking policy violations for the specified schedule. */
|
|
2464
2484
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
2465
2485
|
}
|
|
2466
|
-
|
|
2486
|
+
interface MarkBookingAsPendingRequest {
|
|
2467
2487
|
/**
|
|
2468
2488
|
* ID of the booking to mark as `PENDING`.
|
|
2469
2489
|
* @format GUID
|
|
@@ -2487,7 +2507,7 @@ export interface MarkBookingAsPendingRequest {
|
|
|
2487
2507
|
*/
|
|
2488
2508
|
sendSmsReminder?: boolean | null;
|
|
2489
2509
|
/** Payment status to set for the booking. */
|
|
2490
|
-
paymentStatus?:
|
|
2510
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
2491
2511
|
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
2492
2512
|
doubleBooked?: boolean | null;
|
|
2493
2513
|
/**
|
|
@@ -2496,7 +2516,7 @@ export interface MarkBookingAsPendingRequest {
|
|
|
2496
2516
|
*/
|
|
2497
2517
|
flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
|
|
2498
2518
|
}
|
|
2499
|
-
|
|
2519
|
+
interface MarkBookingAsPendingFlowControlSettings {
|
|
2500
2520
|
/**
|
|
2501
2521
|
* Whether to check for double bookings before updating the booking as pending.
|
|
2502
2522
|
*
|
|
@@ -2512,11 +2532,11 @@ export interface MarkBookingAsPendingFlowControlSettings {
|
|
|
2512
2532
|
*/
|
|
2513
2533
|
skipPendingApprovalServiceValidation?: boolean;
|
|
2514
2534
|
}
|
|
2515
|
-
|
|
2535
|
+
interface MarkBookingAsPendingResponse {
|
|
2516
2536
|
/** Updated booking. */
|
|
2517
2537
|
booking?: Booking;
|
|
2518
2538
|
}
|
|
2519
|
-
|
|
2539
|
+
interface BookingMarkedAsPending {
|
|
2520
2540
|
/** The booking object that was marked as pending. */
|
|
2521
2541
|
booking?: Booking;
|
|
2522
2542
|
/** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
|
|
@@ -2531,28 +2551,28 @@ export interface BookingMarkedAsPending {
|
|
|
2531
2551
|
/** ID of the mark as pending initiator. */
|
|
2532
2552
|
initiatedBy?: IdentificationData;
|
|
2533
2553
|
/** The previous status of the booking. */
|
|
2534
|
-
previousStatus?:
|
|
2554
|
+
previousStatus?: BookingStatusWithLiterals;
|
|
2535
2555
|
/** The previous payment status of the booking. */
|
|
2536
|
-
previousPaymentStatus?:
|
|
2556
|
+
previousPaymentStatus?: PaymentStatusWithLiterals;
|
|
2537
2557
|
}
|
|
2538
|
-
|
|
2558
|
+
interface MigrationCheckIfClashesWithBlockedTimeRequest {
|
|
2539
2559
|
msidAndBookingIds?: MsidAndBookingId[];
|
|
2540
2560
|
}
|
|
2541
|
-
|
|
2561
|
+
interface MsidAndBookingId {
|
|
2542
2562
|
msid?: string;
|
|
2543
2563
|
bookingId?: string;
|
|
2544
2564
|
}
|
|
2545
|
-
|
|
2565
|
+
interface MigrationCheckIfClashesWithBlockedTimeResponse {
|
|
2546
2566
|
clashes?: Clash[];
|
|
2547
2567
|
}
|
|
2548
|
-
|
|
2568
|
+
interface Clash {
|
|
2549
2569
|
msid?: string;
|
|
2550
2570
|
bookingId?: string;
|
|
2551
2571
|
sessionId?: string;
|
|
2552
2572
|
resourceName?: string;
|
|
2553
2573
|
contactName?: string;
|
|
2554
2574
|
}
|
|
2555
|
-
|
|
2575
|
+
interface CountBookingsRequest {
|
|
2556
2576
|
/**
|
|
2557
2577
|
* Filter object in the following format:
|
|
2558
2578
|
* `"filter" : {
|
|
@@ -2563,11 +2583,11 @@ export interface CountBookingsRequest {
|
|
|
2563
2583
|
*/
|
|
2564
2584
|
filter?: Record<string, any> | null;
|
|
2565
2585
|
}
|
|
2566
|
-
|
|
2586
|
+
interface CountBookingsResponse {
|
|
2567
2587
|
/** Number of bookings matching the specified filter. */
|
|
2568
2588
|
count?: number;
|
|
2569
2589
|
}
|
|
2570
|
-
|
|
2590
|
+
interface CreateMultiServiceBookingRequest {
|
|
2571
2591
|
/**
|
|
2572
2592
|
* Single-service bookings to combine in a multi-service booking.
|
|
2573
2593
|
* @minSize 2
|
|
@@ -2594,25 +2614,25 @@ export interface CreateMultiServiceBookingRequest {
|
|
|
2594
2614
|
/** Whether to return the created single-service bookings. */
|
|
2595
2615
|
returnFullEntity?: boolean;
|
|
2596
2616
|
/** Multi service booking type. */
|
|
2597
|
-
multiServiceBookingType?:
|
|
2617
|
+
multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
|
|
2598
2618
|
}
|
|
2599
|
-
|
|
2619
|
+
interface CreateMultiServiceBookingResponse {
|
|
2600
2620
|
/**
|
|
2601
2621
|
* Created multi service booking.
|
|
2602
2622
|
* Contains the booking results in the same order as specified in the request.
|
|
2603
2623
|
*/
|
|
2604
2624
|
multiServiceBooking?: MultiServiceBooking;
|
|
2605
2625
|
}
|
|
2606
|
-
|
|
2626
|
+
interface MultiServiceBooking {
|
|
2607
2627
|
/**
|
|
2608
2628
|
* Multi-service booking ID.
|
|
2609
2629
|
* @format GUID
|
|
2610
2630
|
*/
|
|
2611
|
-
|
|
2631
|
+
_id?: string | null;
|
|
2612
2632
|
/** The created bookings that are part of the multi-service booking. */
|
|
2613
2633
|
bookings?: BookingResult[];
|
|
2614
2634
|
}
|
|
2615
|
-
|
|
2635
|
+
interface BookingResult {
|
|
2616
2636
|
/**
|
|
2617
2637
|
* Booking ID.
|
|
2618
2638
|
* @format GUID
|
|
@@ -2621,7 +2641,7 @@ export interface BookingResult {
|
|
|
2621
2641
|
/** Booking entity. */
|
|
2622
2642
|
booking?: Booking;
|
|
2623
2643
|
}
|
|
2624
|
-
|
|
2644
|
+
interface RescheduleMultiServiceBookingRequest {
|
|
2625
2645
|
/**
|
|
2626
2646
|
* ID of the multi service booking to reschedule.
|
|
2627
2647
|
* @format GUID
|
|
@@ -2644,7 +2664,7 @@ export interface RescheduleMultiServiceBookingRequest {
|
|
|
2644
2664
|
/** Whether to return the rescheduled bookings entities. */
|
|
2645
2665
|
returnFullEntity?: boolean;
|
|
2646
2666
|
}
|
|
2647
|
-
|
|
2667
|
+
interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
|
|
2648
2668
|
/**
|
|
2649
2669
|
* Total number of participants. Available only for services with variants.
|
|
2650
2670
|
* Specify when all participants book the same variant.
|
|
@@ -2671,7 +2691,7 @@ export interface RescheduleBookingInfo extends RescheduleBookingInfoParticipants
|
|
|
2671
2691
|
revision?: string | null;
|
|
2672
2692
|
}
|
|
2673
2693
|
/** @oneof */
|
|
2674
|
-
|
|
2694
|
+
interface RescheduleBookingInfoParticipantsInfoOneOf {
|
|
2675
2695
|
/**
|
|
2676
2696
|
* Total number of participants. Available only for services with variants.
|
|
2677
2697
|
* Specify when all participants book the same variant.
|
|
@@ -2684,18 +2704,18 @@ export interface RescheduleBookingInfoParticipantsInfoOneOf {
|
|
|
2684
2704
|
*/
|
|
2685
2705
|
participantsChoices?: ParticipantChoices;
|
|
2686
2706
|
}
|
|
2687
|
-
|
|
2707
|
+
interface RescheduleMultiServiceBookingResponse {
|
|
2688
2708
|
/** Rescheduled multi-service booking. */
|
|
2689
2709
|
multiServiceBooking?: MultiServiceBooking;
|
|
2690
2710
|
}
|
|
2691
|
-
|
|
2711
|
+
interface GetMultiServiceBookingAvailabilityRequest {
|
|
2692
2712
|
/**
|
|
2693
2713
|
* ID of the multi-service booking to retrieve.
|
|
2694
2714
|
* @format GUID
|
|
2695
2715
|
*/
|
|
2696
2716
|
multiServiceBookingId: string | null;
|
|
2697
2717
|
}
|
|
2698
|
-
|
|
2718
|
+
interface GetMultiServiceBookingAvailabilityResponse {
|
|
2699
2719
|
/** Whether all contained single-service bookings are bookable. */
|
|
2700
2720
|
bookable?: boolean;
|
|
2701
2721
|
/** Total number of spots. */
|
|
@@ -2709,14 +2729,14 @@ export interface GetMultiServiceBookingAvailabilityResponse {
|
|
|
2709
2729
|
/** Info of the bookings this availability was calculated for. */
|
|
2710
2730
|
multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo[];
|
|
2711
2731
|
}
|
|
2712
|
-
|
|
2732
|
+
interface GetMultiServiceBookingAvailabilityResponseBookingInfo {
|
|
2713
2733
|
/**
|
|
2714
2734
|
* Booking ID.
|
|
2715
2735
|
* @format GUID
|
|
2716
2736
|
*/
|
|
2717
2737
|
bookingId?: string | null;
|
|
2718
2738
|
}
|
|
2719
|
-
|
|
2739
|
+
interface CancelMultiServiceBookingRequest {
|
|
2720
2740
|
/**
|
|
2721
2741
|
* ID of the multi-service booking to cancel.
|
|
2722
2742
|
* @format GUID
|
|
@@ -2737,11 +2757,11 @@ export interface CancelMultiServiceBookingRequest {
|
|
|
2737
2757
|
/** Whether to return the canceled single-service bookings. */
|
|
2738
2758
|
returnFullEntity?: boolean;
|
|
2739
2759
|
}
|
|
2740
|
-
|
|
2760
|
+
interface CancelMultiServiceBookingResponse {
|
|
2741
2761
|
/** Canceled multi-service booking. */
|
|
2742
2762
|
multiServiceBooking?: MultiServiceBooking;
|
|
2743
2763
|
}
|
|
2744
|
-
|
|
2764
|
+
interface MarkMultiServiceBookingAsPendingRequest {
|
|
2745
2765
|
/**
|
|
2746
2766
|
* ID of the multi-service booking to mark as `PENDING`.
|
|
2747
2767
|
* @format GUID
|
|
@@ -2772,7 +2792,7 @@ export interface MarkMultiServiceBookingAsPendingRequest {
|
|
|
2772
2792
|
*/
|
|
2773
2793
|
flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
|
|
2774
2794
|
}
|
|
2775
|
-
|
|
2795
|
+
interface BookingInfo {
|
|
2776
2796
|
/**
|
|
2777
2797
|
* ID of the single-service booking.
|
|
2778
2798
|
* @format GUID
|
|
@@ -2785,13 +2805,13 @@ export interface BookingInfo {
|
|
|
2785
2805
|
*/
|
|
2786
2806
|
revision?: string | null;
|
|
2787
2807
|
/** Payment status to set for the single-service booking. */
|
|
2788
|
-
paymentStatus?:
|
|
2808
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
2789
2809
|
}
|
|
2790
|
-
|
|
2810
|
+
interface MarkMultiServiceBookingAsPendingResponse {
|
|
2791
2811
|
/** Updated multi-service booking. */
|
|
2792
2812
|
multiServiceBooking?: MultiServiceBooking;
|
|
2793
2813
|
}
|
|
2794
|
-
|
|
2814
|
+
interface ConfirmMultiServiceBookingRequest {
|
|
2795
2815
|
/**
|
|
2796
2816
|
* ID of the multi-service booking to confirm its related bookings.
|
|
2797
2817
|
* @format GUID
|
|
@@ -2822,11 +2842,11 @@ export interface ConfirmMultiServiceBookingRequest {
|
|
|
2822
2842
|
*/
|
|
2823
2843
|
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
2824
2844
|
}
|
|
2825
|
-
|
|
2845
|
+
interface ConfirmMultiServiceBookingResponse {
|
|
2826
2846
|
/** Confirmed multi service booking. */
|
|
2827
2847
|
multiServiceBooking?: MultiServiceBooking;
|
|
2828
2848
|
}
|
|
2829
|
-
|
|
2849
|
+
interface DeclineMultiServiceBookingRequest {
|
|
2830
2850
|
/**
|
|
2831
2851
|
* ID of the multi service booking to decline.
|
|
2832
2852
|
* @format GUID
|
|
@@ -2849,11 +2869,11 @@ export interface DeclineMultiServiceBookingRequest {
|
|
|
2849
2869
|
*/
|
|
2850
2870
|
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
2851
2871
|
}
|
|
2852
|
-
|
|
2872
|
+
interface DeclineMultiServiceBookingResponse {
|
|
2853
2873
|
/** Declined multi-service booking. */
|
|
2854
2874
|
multiServiceBooking?: MultiServiceBooking;
|
|
2855
2875
|
}
|
|
2856
|
-
|
|
2876
|
+
interface BulkGetMultiServiceBookingAllowedActionsRequest {
|
|
2857
2877
|
/**
|
|
2858
2878
|
* IDs of the multi-service bookings to retrieve allowed actions for.
|
|
2859
2879
|
* @format GUID
|
|
@@ -2862,7 +2882,7 @@ export interface BulkGetMultiServiceBookingAllowedActionsRequest {
|
|
|
2862
2882
|
*/
|
|
2863
2883
|
multiServiceBookingIds: string[] | null;
|
|
2864
2884
|
}
|
|
2865
|
-
|
|
2885
|
+
interface BulkGetMultiServiceBookingAllowedActionsResponse {
|
|
2866
2886
|
/**
|
|
2867
2887
|
* Information about the multi-service bookings that were retrieved.
|
|
2868
2888
|
* Including their ID, index in the bulk request and whether they were
|
|
@@ -2872,20 +2892,20 @@ export interface BulkGetMultiServiceBookingAllowedActionsResponse {
|
|
|
2872
2892
|
/** Total number of successes and failures for Bulk Update Bookings. */
|
|
2873
2893
|
bulkActionMetadata?: BulkActionMetadata;
|
|
2874
2894
|
}
|
|
2875
|
-
|
|
2895
|
+
interface GetMultiServiceBookingRequest {
|
|
2876
2896
|
/**
|
|
2877
2897
|
* ID of the multi-service booking.
|
|
2878
2898
|
* @format GUID
|
|
2879
2899
|
*/
|
|
2880
2900
|
multiServiceBookingId: string | null;
|
|
2881
2901
|
}
|
|
2882
|
-
|
|
2902
|
+
interface GetMultiServiceBookingResponse {
|
|
2883
2903
|
/** Retrieved multi-service booking. */
|
|
2884
2904
|
multiServiceBooking?: MultiServiceBooking;
|
|
2885
2905
|
/** Details about how many single-service bookings belong to the multi-service booking. */
|
|
2886
2906
|
metadata?: MultiServiceBookingMetadata;
|
|
2887
2907
|
}
|
|
2888
|
-
|
|
2908
|
+
interface MultiServiceBookingMetadata {
|
|
2889
2909
|
/**
|
|
2890
2910
|
* Total number of `CONFIRMED` and `PENDING` single-service bookings belonging
|
|
2891
2911
|
* to the multi-service booking. The total includes the number of single-service
|
|
@@ -2893,7 +2913,7 @@ export interface MultiServiceBookingMetadata {
|
|
|
2893
2913
|
*/
|
|
2894
2914
|
totalNumberOfScheduledBookings?: number | null;
|
|
2895
2915
|
}
|
|
2896
|
-
|
|
2916
|
+
interface AddBookingsToMultiServiceBookingRequest {
|
|
2897
2917
|
/**
|
|
2898
2918
|
* ID of the multi-service booking.
|
|
2899
2919
|
* @format GUID
|
|
@@ -2907,7 +2927,7 @@ export interface AddBookingsToMultiServiceBookingRequest {
|
|
|
2907
2927
|
/** Whether to return the single-service bookings that were added to the multi-service booking. */
|
|
2908
2928
|
returnFullEntity?: boolean;
|
|
2909
2929
|
}
|
|
2910
|
-
|
|
2930
|
+
interface BookingIdAndRevision {
|
|
2911
2931
|
/**
|
|
2912
2932
|
* ID of the booking.
|
|
2913
2933
|
* @format GUID
|
|
@@ -2920,11 +2940,11 @@ export interface BookingIdAndRevision {
|
|
|
2920
2940
|
*/
|
|
2921
2941
|
revision?: string | null;
|
|
2922
2942
|
}
|
|
2923
|
-
|
|
2943
|
+
interface AddBookingsToMultiServiceBookingResponse {
|
|
2924
2944
|
/** Single-service bookings that were added to the multi-service booking. */
|
|
2925
2945
|
bookings?: BookingResult[];
|
|
2926
2946
|
}
|
|
2927
|
-
|
|
2947
|
+
interface RemoveBookingsFromMultiServiceBookingRequest {
|
|
2928
2948
|
/**
|
|
2929
2949
|
* ID of the multi-service booking.
|
|
2930
2950
|
* @format GUID
|
|
@@ -2938,7 +2958,395 @@ export interface RemoveBookingsFromMultiServiceBookingRequest {
|
|
|
2938
2958
|
/** Whether to return the single-service bookings. */
|
|
2939
2959
|
returnFullEntity?: boolean;
|
|
2940
2960
|
}
|
|
2941
|
-
|
|
2961
|
+
interface RemoveBookingsFromMultiServiceBookingResponse {
|
|
2942
2962
|
/** Single-service bookings that were removed from the multi-service booking. */
|
|
2943
2963
|
bookings?: BookingResult[];
|
|
2944
2964
|
}
|
|
2965
|
+
interface BaseEventMetadata {
|
|
2966
|
+
/**
|
|
2967
|
+
* App instance ID.
|
|
2968
|
+
* @format GUID
|
|
2969
|
+
*/
|
|
2970
|
+
instanceId?: string | null;
|
|
2971
|
+
/**
|
|
2972
|
+
* Event type.
|
|
2973
|
+
* @maxLength 150
|
|
2974
|
+
*/
|
|
2975
|
+
eventType?: string;
|
|
2976
|
+
/** The identification type and identity data. */
|
|
2977
|
+
identity?: WebhooksIdentificationData;
|
|
2978
|
+
}
|
|
2979
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
2980
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
2981
|
+
_id?: string;
|
|
2982
|
+
/**
|
|
2983
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
2984
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
2985
|
+
*/
|
|
2986
|
+
entityFqdn?: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
2989
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
2990
|
+
*/
|
|
2991
|
+
slug?: string;
|
|
2992
|
+
/** ID of the entity associated with the event. */
|
|
2993
|
+
entityId?: string;
|
|
2994
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
2995
|
+
eventTime?: Date | null;
|
|
2996
|
+
/**
|
|
2997
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
2998
|
+
* (for example, GDPR).
|
|
2999
|
+
*/
|
|
3000
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3001
|
+
/** If present, indicates the action that triggered the event. */
|
|
3002
|
+
originatedFrom?: string | null;
|
|
3003
|
+
/**
|
|
3004
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
3005
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
3006
|
+
*/
|
|
3007
|
+
entityEventSequence?: string | null;
|
|
3008
|
+
}
|
|
3009
|
+
interface BookingCanceledEnvelope {
|
|
3010
|
+
data: BookingCanceled;
|
|
3011
|
+
metadata: EventMetadata;
|
|
3012
|
+
}
|
|
3013
|
+
interface BookingConfirmedEnvelope {
|
|
3014
|
+
data: BookingConfirmed;
|
|
3015
|
+
metadata: EventMetadata;
|
|
3016
|
+
}
|
|
3017
|
+
interface BookingCreatedEnvelope {
|
|
3018
|
+
entity: Booking;
|
|
3019
|
+
metadata: EventMetadata;
|
|
3020
|
+
}
|
|
3021
|
+
interface BookingDeclinedEnvelope {
|
|
3022
|
+
data: BookingDeclined;
|
|
3023
|
+
metadata: EventMetadata;
|
|
3024
|
+
}
|
|
3025
|
+
interface BookingNumberOfParticipantsUpdatedEnvelope {
|
|
3026
|
+
data: NumberOfParticipantsUpdated;
|
|
3027
|
+
metadata: EventMetadata;
|
|
3028
|
+
}
|
|
3029
|
+
interface BookingRescheduledEnvelope {
|
|
3030
|
+
data: BookingRescheduled;
|
|
3031
|
+
metadata: EventMetadata;
|
|
3032
|
+
}
|
|
3033
|
+
interface BookingUpdatedEnvelope {
|
|
3034
|
+
entity: Booking;
|
|
3035
|
+
metadata: EventMetadata;
|
|
3036
|
+
}
|
|
3037
|
+
interface ConfirmOrDeclineBookingOptions {
|
|
3038
|
+
/**
|
|
3039
|
+
* Current payment status of the booking when using a custom checkout page and
|
|
3040
|
+
* not the *eCommerce checkout*
|
|
3041
|
+
* ([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)).
|
|
3042
|
+
*
|
|
3043
|
+
* The booking is declined if there is a double booking conflict and you provide
|
|
3044
|
+
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
3045
|
+
*/
|
|
3046
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
3047
|
+
}
|
|
3048
|
+
interface BulkConfirmOrDeclineBookingOptions {
|
|
3049
|
+
/** Whether to return the confirmed or declined booking objects. */
|
|
3050
|
+
returnEntity?: boolean;
|
|
3051
|
+
}
|
|
3052
|
+
interface CreateBookingOptions {
|
|
3053
|
+
/**
|
|
3054
|
+
* Information about whether to notify the customer and
|
|
3055
|
+
* the message to send.
|
|
3056
|
+
*/
|
|
3057
|
+
participantNotification?: ParticipantNotification;
|
|
3058
|
+
/**
|
|
3059
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
3060
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
3061
|
+
* Default: `true`.
|
|
3062
|
+
*/
|
|
3063
|
+
sendSmsReminder?: boolean | null;
|
|
3064
|
+
/**
|
|
3065
|
+
* Whether to ignore specific standard procedures of the Wix Bookings flow.
|
|
3066
|
+
* For example, whether to check availability when creating a booking.
|
|
3067
|
+
*/
|
|
3068
|
+
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
3069
|
+
}
|
|
3070
|
+
interface BulkCreateBookingOptions {
|
|
3071
|
+
/** Whether to return the created bookings. */
|
|
3072
|
+
returnFullEntity?: boolean;
|
|
3073
|
+
}
|
|
3074
|
+
interface RescheduleBookingOptions extends RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
3075
|
+
/**
|
|
3076
|
+
* Revision number, which increments by 1 each time the booking is rescheduled.
|
|
3077
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
3078
|
+
* rescheduling the booking.
|
|
3079
|
+
*/
|
|
3080
|
+
revision: string | null;
|
|
3081
|
+
/**
|
|
3082
|
+
* Information about whether to notify the customer about the rescheduling and
|
|
3083
|
+
* the message to send.
|
|
3084
|
+
*/
|
|
3085
|
+
participantNotification?: ParticipantNotification;
|
|
3086
|
+
/**
|
|
3087
|
+
* Whether to ignore specific standard procedures of the Wix Bookings flow.
|
|
3088
|
+
* For example, whether to check availability when rescheduling a booking.
|
|
3089
|
+
*/
|
|
3090
|
+
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
3091
|
+
/**
|
|
3092
|
+
* Total number of participants. Specify when all participants have booked the
|
|
3093
|
+
* same service variant.
|
|
3094
|
+
*/
|
|
3095
|
+
totalParticipants?: number;
|
|
3096
|
+
/**
|
|
3097
|
+
* Information about the service choices to book. Specify when not all
|
|
3098
|
+
* participants have booked the same service variant.
|
|
3099
|
+
*/
|
|
3100
|
+
participantsChoices?: ParticipantChoices;
|
|
3101
|
+
}
|
|
3102
|
+
/** @oneof */
|
|
3103
|
+
interface RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
3104
|
+
/**
|
|
3105
|
+
* Total number of participants. Specify when all participants have booked the
|
|
3106
|
+
* same service variant.
|
|
3107
|
+
*/
|
|
3108
|
+
totalParticipants?: number;
|
|
3109
|
+
/**
|
|
3110
|
+
* Information about the service choices to book. Specify when not all
|
|
3111
|
+
* participants have booked the same service variant.
|
|
3112
|
+
*/
|
|
3113
|
+
participantsChoices?: ParticipantChoices;
|
|
3114
|
+
}
|
|
3115
|
+
interface ConfirmBookingOptions {
|
|
3116
|
+
/**
|
|
3117
|
+
* Information about whether to notify the customer about the confirmation and
|
|
3118
|
+
* the message to send.
|
|
3119
|
+
*/
|
|
3120
|
+
participantNotification?: ParticipantNotification;
|
|
3121
|
+
/**
|
|
3122
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
3123
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
3124
|
+
*/
|
|
3125
|
+
sendSmsReminder?: boolean | null;
|
|
3126
|
+
/** Payment status to set for the booking. */
|
|
3127
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
3128
|
+
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
3129
|
+
doubleBooked?: boolean | null;
|
|
3130
|
+
/**
|
|
3131
|
+
* Whether to ignore specific standard procedures of the Wix Bookings flow.
|
|
3132
|
+
* For example, whether to check availability when confirming a booking.
|
|
3133
|
+
*/
|
|
3134
|
+
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
3135
|
+
}
|
|
3136
|
+
interface UpdateExtendedFieldsOptions {
|
|
3137
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
3138
|
+
namespaceData: Record<string, any> | null;
|
|
3139
|
+
}
|
|
3140
|
+
interface DeclineBookingOptions {
|
|
3141
|
+
/**
|
|
3142
|
+
* Information about whether to notify the customer and
|
|
3143
|
+
* the message to send.
|
|
3144
|
+
*/
|
|
3145
|
+
participantNotification?: ParticipantNotification;
|
|
3146
|
+
/** Payment status to set for the booking. */
|
|
3147
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
3148
|
+
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
3149
|
+
doubleBooked?: boolean | null;
|
|
3150
|
+
/**
|
|
3151
|
+
* Whether to ignore specific standard procedures of the Wix Bookings flow.
|
|
3152
|
+
* For example, whether to refund a declined booking.
|
|
3153
|
+
*/
|
|
3154
|
+
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
3155
|
+
}
|
|
3156
|
+
interface CancelBookingOptions {
|
|
3157
|
+
/**
|
|
3158
|
+
* Information about whether to notify the customer about the cancellation and
|
|
3159
|
+
* the message to send.
|
|
3160
|
+
*/
|
|
3161
|
+
participantNotification?: ParticipantNotification;
|
|
3162
|
+
/**
|
|
3163
|
+
* Whether to ignore specific standard procedures of the Wix Bookings flow.
|
|
3164
|
+
* For example, whether to allow a cancellation even though the service's
|
|
3165
|
+
* policy doesn't allow it.
|
|
3166
|
+
*/
|
|
3167
|
+
flowControlSettings?: CancelBookingFlowControlSettings;
|
|
3168
|
+
/**
|
|
3169
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
3170
|
+
*
|
|
3171
|
+
* To prevent conflicting changes, the current revision must be specified when
|
|
3172
|
+
* managing the booking.
|
|
3173
|
+
*/
|
|
3174
|
+
revision: string | null;
|
|
3175
|
+
}
|
|
3176
|
+
interface UpdateNumberOfParticipantsOptions extends UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
3177
|
+
/**
|
|
3178
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
3179
|
+
*
|
|
3180
|
+
* To prevent conflicting changes, the current revision must be specified
|
|
3181
|
+
* when updating the booking.
|
|
3182
|
+
*/
|
|
3183
|
+
revision: string | null;
|
|
3184
|
+
/**
|
|
3185
|
+
* Total number of participants. Specify when all participants have booked the
|
|
3186
|
+
* same service variant.
|
|
3187
|
+
*/
|
|
3188
|
+
totalParticipants?: number;
|
|
3189
|
+
/**
|
|
3190
|
+
* Information about the service choices the participants have booked. Specify
|
|
3191
|
+
* when not all participants have booked the same service variant.
|
|
3192
|
+
*/
|
|
3193
|
+
participantsChoices?: ParticipantChoices;
|
|
3194
|
+
}
|
|
3195
|
+
/** @oneof */
|
|
3196
|
+
interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
3197
|
+
/**
|
|
3198
|
+
* Total number of participants. Specify when all participants have booked the
|
|
3199
|
+
* same service variant.
|
|
3200
|
+
*/
|
|
3201
|
+
totalParticipants?: number;
|
|
3202
|
+
/**
|
|
3203
|
+
* Information about the service choices the participants have booked. Specify
|
|
3204
|
+
* when not all participants have booked the same service variant.
|
|
3205
|
+
*/
|
|
3206
|
+
participantsChoices?: ParticipantChoices;
|
|
3207
|
+
}
|
|
3208
|
+
interface CreateMultiServiceBookingOptions {
|
|
3209
|
+
/**
|
|
3210
|
+
* Information about whether to notify the customer and
|
|
3211
|
+
* the message to send.
|
|
3212
|
+
*/
|
|
3213
|
+
participantNotification?: ParticipantNotification;
|
|
3214
|
+
/**
|
|
3215
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
3216
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
3217
|
+
*
|
|
3218
|
+
* Default: `true`
|
|
3219
|
+
*/
|
|
3220
|
+
sendSmsReminder?: boolean | null;
|
|
3221
|
+
/**
|
|
3222
|
+
* Whether to ignore specific standard procedures of the Wix Bookings flow.
|
|
3223
|
+
* For example, whether to check availability before updating the status.
|
|
3224
|
+
*/
|
|
3225
|
+
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
3226
|
+
/** Whether to return the created single-service bookings. */
|
|
3227
|
+
returnFullEntity?: boolean;
|
|
3228
|
+
/** Multi service booking type. */
|
|
3229
|
+
multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
|
|
3230
|
+
}
|
|
3231
|
+
interface RescheduleMultiServiceBookingOptions {
|
|
3232
|
+
/**
|
|
3233
|
+
* Information about whether to notify the customer and
|
|
3234
|
+
* the message to send.
|
|
3235
|
+
*/
|
|
3236
|
+
participantNotification?: ParticipantNotification;
|
|
3237
|
+
/**
|
|
3238
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
3239
|
+
* rescheduling flow are changed. For example, whether the availability of
|
|
3240
|
+
* the new slot is checked before rescheduling the booking or if you can
|
|
3241
|
+
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
3242
|
+
*/
|
|
3243
|
+
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
3244
|
+
/** Whether to return the rescheduled bookings entities. */
|
|
3245
|
+
returnFullEntity?: boolean;
|
|
3246
|
+
}
|
|
3247
|
+
interface CancelMultiServiceBookingOptions {
|
|
3248
|
+
/**
|
|
3249
|
+
* Information about whether to notify the customer and
|
|
3250
|
+
* the message to send.
|
|
3251
|
+
*/
|
|
3252
|
+
participantNotification?: ParticipantNotification;
|
|
3253
|
+
/**
|
|
3254
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
3255
|
+
* cancellation flow are changed. For example, whether you can cancel
|
|
3256
|
+
* a booking even though the cancellation policy doesn't allow it or whether
|
|
3257
|
+
* to issue a refund.
|
|
3258
|
+
*/
|
|
3259
|
+
flowControlSettings?: CancelBookingFlowControlSettings;
|
|
3260
|
+
/** Whether to return the canceled single-service bookings. */
|
|
3261
|
+
returnFullEntity?: boolean;
|
|
3262
|
+
}
|
|
3263
|
+
interface MarkMultiServiceBookingAsPendingOptions {
|
|
3264
|
+
/** Information about the single-service bookings to mark as `PENDING`. */
|
|
3265
|
+
markAsPendingBookingsInfo?: BookingInfo[];
|
|
3266
|
+
/**
|
|
3267
|
+
* Information about whether to notify the customer and
|
|
3268
|
+
* the message to send.
|
|
3269
|
+
*/
|
|
3270
|
+
participantNotification?: ParticipantNotification;
|
|
3271
|
+
/**
|
|
3272
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
3273
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
3274
|
+
*
|
|
3275
|
+
* Default: `true`
|
|
3276
|
+
*/
|
|
3277
|
+
sendSmsReminder?: boolean | null;
|
|
3278
|
+
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
3279
|
+
doubleBooked?: boolean | null;
|
|
3280
|
+
/** Whether to return the single-service bookings that were marked as `PENDING`. */
|
|
3281
|
+
returnFullEntity?: boolean;
|
|
3282
|
+
/**
|
|
3283
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
3284
|
+
* creation flow are changed. For example, whether the availability is checked
|
|
3285
|
+
* before updating the booking.
|
|
3286
|
+
*/
|
|
3287
|
+
flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
|
|
3288
|
+
}
|
|
3289
|
+
interface ConfirmMultiServiceBookingOptions {
|
|
3290
|
+
/** Information about the single-service bookings to confirm. */
|
|
3291
|
+
confirmBookingsInfo?: BookingInfo[];
|
|
3292
|
+
/**
|
|
3293
|
+
* Information about whether to notify the customer and
|
|
3294
|
+
* the message to send.
|
|
3295
|
+
*/
|
|
3296
|
+
participantNotification?: ParticipantNotification;
|
|
3297
|
+
/**
|
|
3298
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
3299
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
3300
|
+
*
|
|
3301
|
+
* Default: `true`
|
|
3302
|
+
*/
|
|
3303
|
+
sendSmsReminder?: boolean | null;
|
|
3304
|
+
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
3305
|
+
doubleBooked?: boolean | null;
|
|
3306
|
+
/** Whether to return the confirmed single-service bookings. */
|
|
3307
|
+
returnFullEntity?: boolean;
|
|
3308
|
+
/**
|
|
3309
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
3310
|
+
* confirmation flow are changed. For example, whether the availability is
|
|
3311
|
+
* checked before confirming the booking.
|
|
3312
|
+
*/
|
|
3313
|
+
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
3314
|
+
}
|
|
3315
|
+
interface DeclineMultiServiceBookingOptions {
|
|
3316
|
+
/** Information about the single-service bookings to decline. */
|
|
3317
|
+
declineBookingsInfo?: BookingInfo[];
|
|
3318
|
+
/**
|
|
3319
|
+
* Information about whether to notify the customer and
|
|
3320
|
+
* the message to send.
|
|
3321
|
+
*/
|
|
3322
|
+
participantNotification?: ParticipantNotification;
|
|
3323
|
+
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
3324
|
+
doubleBooked?: boolean | null;
|
|
3325
|
+
/** Whether to return the declined single-service bookings. */
|
|
3326
|
+
returnFullEntity?: boolean;
|
|
3327
|
+
/**
|
|
3328
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
3329
|
+
* declining flow are changed. For example, whether to issue a refund.
|
|
3330
|
+
*/
|
|
3331
|
+
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
3332
|
+
}
|
|
3333
|
+
interface AddBookingsToMultiServiceBookingOptions {
|
|
3334
|
+
/**
|
|
3335
|
+
* List of single-service booking IDs and their revision.
|
|
3336
|
+
* @maxSize 8
|
|
3337
|
+
*/
|
|
3338
|
+
bookings: BookingIdAndRevision[];
|
|
3339
|
+
/** Whether to return the single-service bookings that were added to the multi-service booking. */
|
|
3340
|
+
returnFullEntity?: boolean;
|
|
3341
|
+
}
|
|
3342
|
+
interface RemoveBookingsFromMultiServiceBookingOptions {
|
|
3343
|
+
/**
|
|
3344
|
+
* List of single-service booking IDs and their revision.
|
|
3345
|
+
* @maxSize 8
|
|
3346
|
+
*/
|
|
3347
|
+
bookings?: BookingIdAndRevision[];
|
|
3348
|
+
/** Whether to return the single-service bookings. */
|
|
3349
|
+
returnFullEntity?: boolean;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
export { ValueType as $, type ConfirmMultiServiceBookingOptions as A, type BulkConfirmOrDeclineBookingRequestBookingDetails as B, type ConfirmOrDeclineBookingOptions as C, type DeclineBookingOptions as D, type ConfirmMultiServiceBookingResponse as E, type DeclineMultiServiceBookingOptions as F, type GetMultiServiceBookingAvailabilityResponse as G, type DeclineMultiServiceBookingResponse as H, type BulkGetMultiServiceBookingAllowedActionsResponse as I, type MultiServiceBooking as J, type AddBookingsToMultiServiceBookingOptions as K, type AddBookingsToMultiServiceBookingResponse as L, type MarkMultiServiceBookingAsPendingOptions as M, type RemoveBookingsFromMultiServiceBookingOptions as N, type RemoveBookingsFromMultiServiceBookingResponse as O, type BookingCanceledEnvelope as P, type BookingConfirmedEnvelope as Q, type RescheduleBookingOptions as R, type BookingCreatedEnvelope as S, type BookingDeclinedEnvelope as T, type UpdateExtendedFieldsOptions as U, type V2Slot as V, type BookingNumberOfParticipantsUpdatedEnvelope as W, type BookingRescheduledEnvelope as X, type BookingUpdatedEnvelope as Y, MultiServiceBookingType as Z, LocationType as _, type ConfirmOrDeclineBookingResponse as a, type RescheduleBookingRequestFlowControlSettings as a$, BookingStatus as a0, PaymentStatus as a1, SelectedPaymentOption as a2, Platform as a3, Actor as a4, IdentificationDataIdentityType as a5, WebhookIdentityType as a6, LocationLocationType as a7, IdentityType as a8, SortOrder as a9, type BookedAddOn as aA, type BookingFormFilled as aB, type SetBookingFormAndSubmissionIdRequest as aC, type SetBookingFormAndSubmissionIdRequestCreatedByOneOf as aD, type SetBookingFormAndSubmissionIdResponse as aE, type DomainEvent as aF, type DomainEventBodyOneOf as aG, type EntityCreatedEvent as aH, type RestoreInfo as aI, type EntityUpdatedEvent as aJ, type EntityDeletedEvent as aK, type ActionEvent as aL, type MessageEnvelope as aM, type WebhooksIdentificationData as aN, type WebhooksIdentificationDataIdOneOf as aO, type V2CreateBookingRequest as aP, type V2CreateBookingRequestBookableItemOneOf as aQ, type V2CreateBookingRequestParticipantsInfoOneOf as aR, type Slot as aS, type SlotResource as aT, type CreateBookingRequestFlowControlSettings as aU, type V2CreateBookingResponse as aV, type V2CancelBookingRequest as aW, type CancelBookingRequestFlowControlSettings as aX, type V2CancelBookingResponse as aY, type V2RescheduleBookingRequest as aZ, type V2RescheduleBookingRequestParticipantsInfoOneOf as a_, type BookingParticipantsInfoOneOf as aa, type BookedEntity as ab, type BookedEntityItemOneOf as ac, type BookedSlot as ad, type BookedResource as ae, type Location as af, type BookedSchedule as ag, type ContactDetails as ah, type Address as ai, type AddressStreetOneOf as aj, type StreetAddress as ak, type AddressLocation as al, type Subdivision as am, type CustomFormField as an, type BookingSource as ao, type ParticipantNotification as ap, type CommonIdentificationData as aq, type CommonIdentificationDataIdOneOf as ar, type FlowControlSettings as as, type ExtendedFields as at, type ParticipantChoices as au, type ServiceChoices as av, type ServiceChoice as aw, type ServiceChoiceChoiceOneOf as ax, type Duration as ay, type MultiServiceBookingInfo as az, type BulkConfirmOrDeclineBookingOptions as b, type DeclineBookingFlowControlSettings as b$, type V2RescheduleBookingResponse as b0, type V2ConfirmBookingRequest as b1, type V2ConfirmBookingResponse as b2, type V2DeclineBookingRequest as b3, type V2DeclineBookingResponse as b4, type V2UpdateNumberOfParticipantsRequest as b5, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as b6, type V2UpdateNumberOfParticipantsResponse as b7, type ConfirmOrDeclineBookingRequest as b8, type BulkConfirmOrDeclineBookingRequest as b9, type SlotBookings as bA, type BulkRescheduleBookingResponse as bB, type BulkUpdateBookedScheduleRequest as bC, type BookingDetails as bD, type BulkUpdateBookedScheduleResponse as bE, type QueryBookingsRequest as bF, type QueryV2 as bG, type QueryV2PagingMethodOneOf as bH, type Sorting as bI, type Paging as bJ, type CursorPaging as bK, type QueryBookingsResponse as bL, type PagingMetadataV2 as bM, type Cursors as bN, type ConfirmRequest as bO, type ConfirmResponse as bP, type ConfirmBookingRequest as bQ, type ConfirmBookingFlowControlSettings as bR, type BookingConfirmed as bS, type ConsistentQueryBookingsRequest as bT, type ConsistentQueryBookingsResponse as bU, type SetBookingSessionIdRequest as bV, type SetBookingSessionIdResponse as bW, type SetBookingSubmissionIdRequest as bX, type SetBookingSubmissionIdResponse as bY, type UpdateExtendedFieldsRequest as bZ, type DeclineBookingRequest as b_, type BulkBookingResult as ba, type ItemMetadata as bb, type ApplicationError as bc, type BulkActionMetadata as bd, type BookingChanged as be, type CreateBookingRequest as bf, type CreateBookingFlowControlSettings as bg, type UpdateBookingRequest as bh, type UpdateBookingResponse as bi, type LegacyCreateBookingRequest as bj, type LegacyCreateBookingResponse as bk, type BulkUpdateBookingRequest as bl, type MaskedBooking as bm, type BulkUpdateBookingResponse as bn, type BulkCreateBookingRequest as bo, type RescheduleBookingRequest as bp, type RescheduleBookingRequestParticipantsInfoOneOf as bq, type SlotSlotResource as br, type SlotLocation as bs, type RescheduleBookingFlowControlSettings as bt, type BookingRescheduled as bu, type BookingRescheduledPreviousParticipantsInfoOneOf as bv, type IdentificationData as bw, type IdentificationDataIdOneOf as bx, type BulkRescheduleBookingRequest as by, type BulkRescheduleBookingRequestBooking as bz, type BulkConfirmOrDeclineBookingResponse as c, type BookingDeclined as c0, type CancelBookingRequest as c1, type CancelBookingFlowControlSettings as c2, type BookingCanceled as c3, type UpdateNumberOfParticipantsRequest as c4, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as c5, type NumberOfParticipantsUpdated as c6, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf as c7, type BulkCalculateAllowedActionsRequest as c8, type BulkCalculateAllowedActionsResponse as c9, type GetMultiServiceBookingAvailabilityRequest as cA, type GetMultiServiceBookingAvailabilityResponseBookingInfo as cB, type CancelMultiServiceBookingRequest as cC, type MarkMultiServiceBookingAsPendingRequest as cD, type BookingInfo as cE, type ConfirmMultiServiceBookingRequest as cF, type DeclineMultiServiceBookingRequest as cG, type BulkGetMultiServiceBookingAllowedActionsRequest as cH, type GetMultiServiceBookingRequest as cI, type GetMultiServiceBookingResponse as cJ, type MultiServiceBookingMetadata as cK, type AddBookingsToMultiServiceBookingRequest as cL, type BookingIdAndRevision as cM, type RemoveBookingsFromMultiServiceBookingRequest as cN, type BaseEventMetadata as cO, type EventMetadata as cP, type RescheduleBookingOptionsParticipantsInfoOneOf as cQ, type UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf as cR, type BulkCalculateAllowedActionsResult as ca, type AllowedActions as cb, type GetSlotAvailabilityRequest as cc, type GetSlotAvailabilityResponse as cd, type SlotAvailability as ce, type WaitingList as cf, type BookingPolicyViolations as cg, type BookingPolicySettings as ch, type AvailableResources as ci, type GetScheduleAvailabilityRequest as cj, type GetScheduleAvailabilityResponse as ck, type ScheduleAvailability as cl, type MarkBookingAsPendingRequest as cm, type MarkBookingAsPendingFlowControlSettings as cn, type MarkBookingAsPendingResponse as co, type BookingMarkedAsPending as cp, type MigrationCheckIfClashesWithBlockedTimeRequest as cq, type MsidAndBookingId as cr, type MigrationCheckIfClashesWithBlockedTimeResponse as cs, type Clash as ct, type CountBookingsRequest as cu, type CountBookingsResponse as cv, type CreateMultiServiceBookingRequest as cw, type BookingResult as cx, type RescheduleMultiServiceBookingRequest as cy, type RescheduleBookingInfoParticipantsInfoOneOf as cz, type Booking as d, type CreateBookingOptions as e, type CreateBookingResponse as f, type CreateBookingInfo as g, type BulkCreateBookingOptions as h, type BulkCreateBookingResponse as i, type RescheduleBookingResponse as j, type ConfirmBookingOptions as k, type ConfirmBookingResponse as l, type UpdateExtendedFieldsResponse as m, type DeclineBookingResponse as n, type CancelBookingOptions as o, type CancelBookingResponse as p, type UpdateNumberOfParticipantsOptions as q, type UpdateNumberOfParticipantsResponse as r, type CreateMultiServiceBookingOptions as s, type CreateMultiServiceBookingResponse as t, type RescheduleBookingInfo as u, type RescheduleMultiServiceBookingOptions as v, type RescheduleMultiServiceBookingResponse as w, type CancelMultiServiceBookingOptions as x, type CancelMultiServiceBookingResponse as y, type MarkMultiServiceBookingAsPendingResponse as z };
|