@wix/bookings 1.0.105 → 1.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +2 -2
- package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +2 -2
- package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +13 -15
- package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +13 -17
- package/build/cjs/src/bookings-calendar-v1-session.universal.js +0 -1
- package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.public.d.ts +3 -3
- package/build/cjs/src/bookings-calendar-v2-external-calendar.public.js +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.public.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.d.ts +14 -16
- package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.d.ts +15 -21
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +4 -9
- package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +11 -11
- package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +11 -11
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +24 -26
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +25 -31
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +3 -9
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +31 -31
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +31 -31
- package/build/cjs/src/bookings-services-v2-service.http.js +1 -1
- package/build/cjs/src/bookings-services-v2-service.http.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.public.d.ts +1 -1
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +96 -48
- package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +96 -48
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +72 -72
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +72 -72
- package/build/cjs/src/bookings-v2-price-info.http.js +1 -1
- package/build/cjs/src/bookings-v2-price-info.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +31 -31
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +31 -31
- package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +2 -2
- package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +2 -2
- package/build/es/src/bookings-calendar-v1-session.types.d.ts +13 -15
- package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.universal.d.ts +13 -17
- package/build/es/src/bookings-calendar-v1-session.universal.js +0 -1
- package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.public.d.ts +3 -3
- package/build/es/src/bookings-calendar-v2-external-calendar.public.js +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.public.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.types.d.ts +14 -16
- package/build/es/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.d.ts +15 -21
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.js +4 -9
- package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +11 -11
- package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +11 -11
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +24 -26
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +25 -31
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +3 -9
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +31 -31
- package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +31 -31
- package/build/es/src/bookings-services-v2-service.http.js +1 -1
- package/build/es/src/bookings-services-v2-service.http.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +1 -1
- package/build/es/src/bookings-services-v2-service.types.d.ts +96 -48
- package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.universal.d.ts +96 -48
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +72 -72
- package/build/es/src/bookings-v2-booking.universal.d.ts +72 -72
- package/build/es/src/bookings-v2-price-info.http.js +1 -1
- package/build/es/src/bookings-v2-price-info.http.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.types.d.ts +31 -31
- package/build/es/src/bookings-v2-price-info.universal.d.ts +31 -31
- package/package.json +2 -2
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
/** The booking object, version 2. */
|
|
2
2
|
export interface Booking extends BookingParticipantsInfoOneOf {
|
|
3
|
+
/** Total number of participants. Available only when the booking includes a single service variant. */
|
|
4
|
+
totalParticipants?: number;
|
|
5
|
+
/**
|
|
6
|
+
* Information about the booked service choices and participants.
|
|
7
|
+
* Available only when the booking includes multiple service variants.
|
|
8
|
+
*/
|
|
9
|
+
participantsChoices?: ParticipantChoices;
|
|
3
10
|
/**
|
|
4
11
|
* Booking ID.
|
|
5
12
|
* @readonly
|
|
@@ -93,13 +100,6 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
93
100
|
* @readonly
|
|
94
101
|
*/
|
|
95
102
|
doubleBooked?: boolean | null;
|
|
96
|
-
/** Total number of participants. Available only when the booking includes a single service variant. */
|
|
97
|
-
totalParticipants?: number;
|
|
98
|
-
/**
|
|
99
|
-
* Information about the booked service choices and participants.
|
|
100
|
-
* Available only when the booking includes multiple service variants.
|
|
101
|
-
*/
|
|
102
|
-
participantsChoices?: ParticipantChoices;
|
|
103
103
|
}
|
|
104
104
|
/** @oneof */
|
|
105
105
|
export interface BookingParticipantsInfoOneOf {
|
|
@@ -112,6 +112,10 @@ export interface BookingParticipantsInfoOneOf {
|
|
|
112
112
|
participantsChoices?: ParticipantChoices;
|
|
113
113
|
}
|
|
114
114
|
export interface BookedEntity extends BookedEntityItemOneOf {
|
|
115
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
116
|
+
slot?: BookedSlot;
|
|
117
|
+
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
118
|
+
schedule?: BookedSchedule;
|
|
115
119
|
/** Session title at the time of booking. */
|
|
116
120
|
title?: string | null;
|
|
117
121
|
/**
|
|
@@ -122,10 +126,6 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
122
126
|
* + "COURSE" Courses.
|
|
123
127
|
*/
|
|
124
128
|
tags?: string[] | null;
|
|
125
|
-
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
126
|
-
slot?: BookedSlot;
|
|
127
|
-
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
128
|
-
schedule?: BookedSchedule;
|
|
129
129
|
}
|
|
130
130
|
/** @oneof */
|
|
131
131
|
export interface BookedEntityItemOneOf {
|
|
@@ -241,6 +241,10 @@ export interface ContactDetails {
|
|
|
241
241
|
}
|
|
242
242
|
/** Physical address */
|
|
243
243
|
export interface Address extends AddressStreetOneOf {
|
|
244
|
+
/** Street name, number and apartment number. */
|
|
245
|
+
streetAddress?: StreetAddress;
|
|
246
|
+
/** Main address line, usually street and number, as free text. */
|
|
247
|
+
addressLine?: string | null;
|
|
244
248
|
/** Country code. */
|
|
245
249
|
country?: string | null;
|
|
246
250
|
/** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
@@ -261,10 +265,6 @@ export interface Address extends AddressStreetOneOf {
|
|
|
261
265
|
countryFullname?: string | null;
|
|
262
266
|
/** Multi-level subdivisions from top to bottom. */
|
|
263
267
|
subdivisions?: Subdivision[];
|
|
264
|
-
/** Street name, number and apartment number. */
|
|
265
|
-
streetAddress?: StreetAddress;
|
|
266
|
-
/** Main address line, usually street and number, as free text. */
|
|
267
|
-
addressLine?: string | null;
|
|
268
268
|
}
|
|
269
269
|
/** @oneof */
|
|
270
270
|
export interface AddressStreetOneOf {
|
|
@@ -409,8 +409,6 @@ export interface ParticipantNotification {
|
|
|
409
409
|
message?: string | null;
|
|
410
410
|
}
|
|
411
411
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
412
|
-
/** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
|
|
413
|
-
contactId?: string | null;
|
|
414
412
|
/** ID of a site visitor that has not logged in to the site. */
|
|
415
413
|
anonymousVisitorId?: string;
|
|
416
414
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -419,6 +417,8 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
419
417
|
wixUserId?: string;
|
|
420
418
|
/** ID of an app. */
|
|
421
419
|
appId?: string;
|
|
420
|
+
/** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
|
|
421
|
+
contactId?: string | null;
|
|
422
422
|
}
|
|
423
423
|
/** @oneof */
|
|
424
424
|
export interface CommonIdentificationDataIdOneOf {
|
|
@@ -477,12 +477,6 @@ export interface ServiceChoices {
|
|
|
477
477
|
choices?: ServiceChoice[];
|
|
478
478
|
}
|
|
479
479
|
export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
480
|
-
/**
|
|
481
|
-
* ID of the corresponding option for the choice. For example, the choice `child`
|
|
482
|
-
* could correspond to the option `ageGroup`. In this case, `optionId` is the ID
|
|
483
|
-
* for the `ageGroup` option.
|
|
484
|
-
*/
|
|
485
|
-
optionId?: string;
|
|
486
480
|
/**
|
|
487
481
|
* Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
|
|
488
482
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -490,6 +484,12 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
|
490
484
|
* Each choice may have a different price.
|
|
491
485
|
*/
|
|
492
486
|
custom?: string;
|
|
487
|
+
/**
|
|
488
|
+
* ID of the corresponding option for the choice. For example, the choice `child`
|
|
489
|
+
* could correspond to the option `ageGroup`. In this case, `optionId` is the ID
|
|
490
|
+
* for the `ageGroup` option.
|
|
491
|
+
*/
|
|
492
|
+
optionId?: string;
|
|
493
493
|
}
|
|
494
494
|
/** @oneof */
|
|
495
495
|
export interface ServiceChoiceChoiceOneOf {
|
|
@@ -655,6 +655,18 @@ export interface BulkBookingResult {
|
|
|
655
655
|
item?: Booking;
|
|
656
656
|
}
|
|
657
657
|
export interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
|
|
658
|
+
/**
|
|
659
|
+
* Total number of participants. Available only for services with
|
|
660
|
+
* variants.
|
|
661
|
+
* Pass when all participants book the same variant.
|
|
662
|
+
*/
|
|
663
|
+
totalParticipants?: number;
|
|
664
|
+
/**
|
|
665
|
+
* Information about the service choices to book. Available only for services with
|
|
666
|
+
* variants.
|
|
667
|
+
* Pass when not all participants book the same variant.
|
|
668
|
+
*/
|
|
669
|
+
participantsChoices?: ParticipantChoices;
|
|
658
670
|
/** Id of the booking to reschedule. */
|
|
659
671
|
bookingId: string;
|
|
660
672
|
/** Information about the new slot. */
|
|
@@ -677,18 +689,6 @@ export interface RescheduleBookingRequest extends RescheduleBookingRequestPartic
|
|
|
677
689
|
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
678
690
|
*/
|
|
679
691
|
flowControlSettings?: RescheduleBookingRequestFlowControlSettings;
|
|
680
|
-
/**
|
|
681
|
-
* Total number of participants. Available only for services with
|
|
682
|
-
* variants.
|
|
683
|
-
* Pass when all participants book the same variant.
|
|
684
|
-
*/
|
|
685
|
-
totalParticipants?: number;
|
|
686
|
-
/**
|
|
687
|
-
* Information about the service choices to book. Available only for services with
|
|
688
|
-
* variants.
|
|
689
|
-
* Pass when not all participants book the same variant.
|
|
690
|
-
*/
|
|
691
|
-
participantsChoices?: ParticipantChoices;
|
|
692
692
|
}
|
|
693
693
|
/** @oneof */
|
|
694
694
|
export interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
@@ -835,6 +835,10 @@ export interface QueryBookingsRequest {
|
|
|
835
835
|
query?: QueryV2;
|
|
836
836
|
}
|
|
837
837
|
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
838
|
+
/** Paging options to limit and skip the number of items. */
|
|
839
|
+
paging?: Paging;
|
|
840
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
841
|
+
cursorPaging?: CursorPaging;
|
|
838
842
|
/**
|
|
839
843
|
* Filter object in the following format:
|
|
840
844
|
* `"filter" : {
|
|
@@ -853,10 +857,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
853
857
|
fields?: string[];
|
|
854
858
|
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
855
859
|
fieldsets?: string[];
|
|
856
|
-
/** Paging options to limit and skip the number of items. */
|
|
857
|
-
paging?: Paging;
|
|
858
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
859
|
-
cursorPaging?: CursorPaging;
|
|
860
860
|
}
|
|
861
861
|
/** @oneof */
|
|
862
862
|
export interface QueryV2PagingMethodOneOf {
|
|
@@ -1012,11 +1012,6 @@ export interface BookingDeclined {
|
|
|
1012
1012
|
declinedBy?: IdentificationData;
|
|
1013
1013
|
}
|
|
1014
1014
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1015
|
-
/**
|
|
1016
|
-
* ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
|
|
1017
|
-
* @readonly
|
|
1018
|
-
*/
|
|
1019
|
-
contactId?: string | null;
|
|
1020
1015
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1021
1016
|
anonymousVisitorId?: string;
|
|
1022
1017
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1025,6 +1020,11 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1025
1020
|
wixUserId?: string;
|
|
1026
1021
|
/** ID of an app. */
|
|
1027
1022
|
appId?: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
|
|
1025
|
+
* @readonly
|
|
1026
|
+
*/
|
|
1027
|
+
contactId?: string | null;
|
|
1028
1028
|
}
|
|
1029
1029
|
/** @oneof */
|
|
1030
1030
|
export interface IdentificationDataIdOneOf {
|
|
@@ -1103,14 +1103,6 @@ export interface BookingCanceled {
|
|
|
1103
1103
|
canceledBy?: IdentificationData;
|
|
1104
1104
|
}
|
|
1105
1105
|
export interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1106
|
-
/** ID of the booking to update the number of participants for. */
|
|
1107
|
-
bookingId: string;
|
|
1108
|
-
/**
|
|
1109
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
1110
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
1111
|
-
* managing the booking.
|
|
1112
|
-
*/
|
|
1113
|
-
revision: string | null;
|
|
1114
1106
|
/**
|
|
1115
1107
|
* Total number of participants. Available only for services with
|
|
1116
1108
|
* variants.
|
|
@@ -1123,6 +1115,14 @@ export interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfPartici
|
|
|
1123
1115
|
* Pass when not all participants book the same variant.
|
|
1124
1116
|
*/
|
|
1125
1117
|
participantsChoices?: ParticipantChoices;
|
|
1118
|
+
/** ID of the booking to update the number of participants for. */
|
|
1119
|
+
bookingId: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
1122
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
1123
|
+
* managing the booking.
|
|
1124
|
+
*/
|
|
1125
|
+
revision: string | null;
|
|
1126
1126
|
}
|
|
1127
1127
|
/** @oneof */
|
|
1128
1128
|
export interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
@@ -1249,6 +1249,15 @@ export interface BookingAlreadySetPayload {
|
|
|
1249
1249
|
currentBookingStatus?: BookingStatus;
|
|
1250
1250
|
}
|
|
1251
1251
|
export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
|
|
1252
|
+
/**
|
|
1253
|
+
* Information about the slot to create a booking for.
|
|
1254
|
+
* If you set `slot.location.locationType` to `CUSTOM`, the created slot's
|
|
1255
|
+
* location is set to `slot.location.formattedAddress` when provided.
|
|
1256
|
+
* Otherwise it's set to `contactDetails.fullAddress.formattedAddress`.
|
|
1257
|
+
*/
|
|
1258
|
+
slot?: Slot;
|
|
1259
|
+
/** Information about the schedule to create a booking for. */
|
|
1260
|
+
schedule?: BookedSchedule;
|
|
1252
1261
|
/** Contact details of the customer booking the service. */
|
|
1253
1262
|
contactDetails?: ContactDetails;
|
|
1254
1263
|
/**
|
|
@@ -1332,15 +1341,6 @@ export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableIt
|
|
|
1332
1341
|
* accepted.
|
|
1333
1342
|
*/
|
|
1334
1343
|
flowControlSettings?: CreateBookingRequestFlowControlSettings;
|
|
1335
|
-
/**
|
|
1336
|
-
* Information about the slot to create a booking for.
|
|
1337
|
-
* If you set `slot.location.locationType` to `CUSTOM`, the created slot's
|
|
1338
|
-
* location is set to `slot.location.formattedAddress` when provided.
|
|
1339
|
-
* Otherwise it's set to `contactDetails.fullAddress.formattedAddress`.
|
|
1340
|
-
*/
|
|
1341
|
-
slot?: Slot;
|
|
1342
|
-
/** Information about the schedule to create a booking for. */
|
|
1343
|
-
schedule?: BookedSchedule;
|
|
1344
1344
|
}
|
|
1345
1345
|
/** @oneof */
|
|
1346
1346
|
export interface V2CreateBookingRequestBookableItemOneOf {
|
|
@@ -1444,7 +1444,7 @@ export interface V2CreateBookingResponse {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
export interface V2CancelBookingRequest {
|
|
1446
1446
|
/** ID of the booking to cancel. */
|
|
1447
|
-
bookingId
|
|
1447
|
+
bookingId?: string;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Information about whether to notify the customer about the cancelation and
|
|
1450
1450
|
* the message to send.
|
|
@@ -1455,7 +1455,7 @@ export interface V2CancelBookingRequest {
|
|
|
1455
1455
|
* To prevent conflicting changes,
|
|
1456
1456
|
* the current revision must be passed when managing the booking.
|
|
1457
1457
|
*/
|
|
1458
|
-
revision
|
|
1458
|
+
revision?: string | null;
|
|
1459
1459
|
}
|
|
1460
1460
|
export interface V2CancelBookingRequestFlowControlSettings {
|
|
1461
1461
|
/**
|
|
@@ -1489,15 +1489,15 @@ export interface V2CancelBookingResponse {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
export interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestParticipantsInfoOneOf {
|
|
1491
1491
|
/** Id of the booking to reschedule. */
|
|
1492
|
-
bookingId
|
|
1492
|
+
bookingId?: string;
|
|
1493
1493
|
/** Information about the new slot. */
|
|
1494
|
-
slot
|
|
1494
|
+
slot?: Slot;
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
1497
1497
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1498
1498
|
* managing the booking.
|
|
1499
1499
|
*/
|
|
1500
|
-
revision
|
|
1500
|
+
revision?: string | null;
|
|
1501
1501
|
/**
|
|
1502
1502
|
* Information about whether to notify the customer about the rescheduling and
|
|
1503
1503
|
* the message to send.
|
|
@@ -1546,13 +1546,13 @@ export interface V2RescheduleBookingResponse {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
export interface V2ConfirmBookingRequest {
|
|
1548
1548
|
/** ID of the booking to confirm. */
|
|
1549
|
-
bookingId
|
|
1549
|
+
bookingId?: string;
|
|
1550
1550
|
/**
|
|
1551
1551
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
1552
1552
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1553
1553
|
* managing the booking.
|
|
1554
1554
|
*/
|
|
1555
|
-
revision
|
|
1555
|
+
revision?: string | null;
|
|
1556
1556
|
/**
|
|
1557
1557
|
* Information about whether to notify the customer about the confirmation and
|
|
1558
1558
|
* the message to send.
|
|
@@ -1564,13 +1564,13 @@ export interface V2ConfirmBookingResponse {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
export interface V2DeclineBookingRequest {
|
|
1566
1566
|
/** ID of the booking to decline. */
|
|
1567
|
-
bookingId
|
|
1567
|
+
bookingId?: string;
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
1570
1570
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1571
1571
|
* managing the booking.
|
|
1572
1572
|
*/
|
|
1573
|
-
revision
|
|
1573
|
+
revision?: string | null;
|
|
1574
1574
|
/**
|
|
1575
1575
|
* Information about whether to notify the customer about the decline and
|
|
1576
1576
|
* the message to send.
|
|
@@ -1583,7 +1583,7 @@ export interface V2DeclineBookingResponse {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
export interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1585
1585
|
/** ID of the booking to update the number of participants for. */
|
|
1586
|
-
bookingId
|
|
1586
|
+
bookingId?: string;
|
|
1587
1587
|
/** Updated number of participants. */
|
|
1588
1588
|
numberOfParticipants?: number | null;
|
|
1589
1589
|
/**
|
|
@@ -1591,7 +1591,7 @@ export interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfPar
|
|
|
1591
1591
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1592
1592
|
* managing the booking.
|
|
1593
1593
|
*/
|
|
1594
|
-
revision
|
|
1594
|
+
revision?: string | null;
|
|
1595
1595
|
}
|
|
1596
1596
|
/** @oneof */
|
|
1597
1597
|
export interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
@@ -6,6 +6,13 @@ export declare const __debug: {
|
|
|
6
6
|
};
|
|
7
7
|
/** The booking object, version 2. */
|
|
8
8
|
export interface Booking extends BookingParticipantsInfoOneOf {
|
|
9
|
+
/** Total number of participants. Available only when the booking includes a single service variant. */
|
|
10
|
+
totalParticipants?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Information about the booked service choices and participants.
|
|
13
|
+
* Available only when the booking includes multiple service variants.
|
|
14
|
+
*/
|
|
15
|
+
participantsChoices?: ParticipantChoices;
|
|
9
16
|
/**
|
|
10
17
|
* Booking ID.
|
|
11
18
|
* @readonly
|
|
@@ -97,13 +104,6 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
97
104
|
* @readonly
|
|
98
105
|
*/
|
|
99
106
|
doubleBooked?: boolean | null;
|
|
100
|
-
/** Total number of participants. Available only when the booking includes a single service variant. */
|
|
101
|
-
totalParticipants?: number;
|
|
102
|
-
/**
|
|
103
|
-
* Information about the booked service choices and participants.
|
|
104
|
-
* Available only when the booking includes multiple service variants.
|
|
105
|
-
*/
|
|
106
|
-
participantsChoices?: ParticipantChoices;
|
|
107
107
|
}
|
|
108
108
|
/** @oneof */
|
|
109
109
|
export interface BookingParticipantsInfoOneOf {
|
|
@@ -116,6 +116,10 @@ export interface BookingParticipantsInfoOneOf {
|
|
|
116
116
|
participantsChoices?: ParticipantChoices;
|
|
117
117
|
}
|
|
118
118
|
export interface BookedEntity extends BookedEntityItemOneOf {
|
|
119
|
+
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
120
|
+
slot?: BookedSlot;
|
|
121
|
+
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
122
|
+
schedule?: BookedSchedule;
|
|
119
123
|
/** Session title at the time of booking. */
|
|
120
124
|
title?: string | null;
|
|
121
125
|
/**
|
|
@@ -126,10 +130,6 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
126
130
|
* + "COURSE" Courses.
|
|
127
131
|
*/
|
|
128
132
|
tags?: string[] | null;
|
|
129
|
-
/** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
|
|
130
|
-
slot?: BookedSlot;
|
|
131
|
-
/** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
|
|
132
|
-
schedule?: BookedSchedule;
|
|
133
133
|
}
|
|
134
134
|
/** @oneof */
|
|
135
135
|
export interface BookedEntityItemOneOf {
|
|
@@ -245,6 +245,10 @@ export interface ContactDetails {
|
|
|
245
245
|
}
|
|
246
246
|
/** Physical address */
|
|
247
247
|
export interface Address extends AddressStreetOneOf {
|
|
248
|
+
/** Street name, number and apartment number. */
|
|
249
|
+
streetAddress?: StreetAddress;
|
|
250
|
+
/** Main address line, usually street and number, as free text. */
|
|
251
|
+
addressLine?: string | null;
|
|
248
252
|
/** Country code. */
|
|
249
253
|
country?: string | null;
|
|
250
254
|
/** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
@@ -265,10 +269,6 @@ export interface Address extends AddressStreetOneOf {
|
|
|
265
269
|
countryFullname?: string | null;
|
|
266
270
|
/** Multi-level subdivisions from top to bottom. */
|
|
267
271
|
subdivisions?: Subdivision[];
|
|
268
|
-
/** Street name, number and apartment number. */
|
|
269
|
-
streetAddress?: StreetAddress;
|
|
270
|
-
/** Main address line, usually street and number, as free text. */
|
|
271
|
-
addressLine?: string | null;
|
|
272
272
|
}
|
|
273
273
|
/** @oneof */
|
|
274
274
|
export interface AddressStreetOneOf {
|
|
@@ -411,8 +411,6 @@ export interface ParticipantNotification {
|
|
|
411
411
|
message?: string | null;
|
|
412
412
|
}
|
|
413
413
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
414
|
-
/** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
|
|
415
|
-
contactId?: string | null;
|
|
416
414
|
/** ID of a site visitor that has not logged in to the site. */
|
|
417
415
|
anonymousVisitorId?: string;
|
|
418
416
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -421,6 +419,8 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
421
419
|
wixUserId?: string;
|
|
422
420
|
/** ID of an app. */
|
|
423
421
|
appId?: string;
|
|
422
|
+
/** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
|
|
423
|
+
contactId?: string | null;
|
|
424
424
|
}
|
|
425
425
|
/** @oneof */
|
|
426
426
|
export interface CommonIdentificationDataIdOneOf {
|
|
@@ -479,12 +479,6 @@ export interface ServiceChoices {
|
|
|
479
479
|
choices?: ServiceChoice[];
|
|
480
480
|
}
|
|
481
481
|
export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
482
|
-
/**
|
|
483
|
-
* ID of the corresponding option for the choice. For example, the choice `child`
|
|
484
|
-
* could correspond to the option `ageGroup`. In this case, `optionId` is the ID
|
|
485
|
-
* for the `ageGroup` option.
|
|
486
|
-
*/
|
|
487
|
-
optionId?: string;
|
|
488
482
|
/**
|
|
489
483
|
* Value for one of the choices in the `CustomServiceOption.choices` list.
|
|
490
484
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -492,6 +486,12 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
|
492
486
|
* Each choice may have a different price.
|
|
493
487
|
*/
|
|
494
488
|
custom?: string;
|
|
489
|
+
/**
|
|
490
|
+
* ID of the corresponding option for the choice. For example, the choice `child`
|
|
491
|
+
* could correspond to the option `ageGroup`. In this case, `optionId` is the ID
|
|
492
|
+
* for the `ageGroup` option.
|
|
493
|
+
*/
|
|
494
|
+
optionId?: string;
|
|
495
495
|
}
|
|
496
496
|
/** @oneof */
|
|
497
497
|
export interface ServiceChoiceChoiceOneOf {
|
|
@@ -657,6 +657,18 @@ export interface BulkBookingResult {
|
|
|
657
657
|
item?: Booking;
|
|
658
658
|
}
|
|
659
659
|
export interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
|
|
660
|
+
/**
|
|
661
|
+
* Total number of participants. Available only for services with
|
|
662
|
+
* variants.
|
|
663
|
+
* Pass when all participants book the same variant.
|
|
664
|
+
*/
|
|
665
|
+
totalParticipants?: number;
|
|
666
|
+
/**
|
|
667
|
+
* Information about the service choices to book. Available only for services with
|
|
668
|
+
* variants.
|
|
669
|
+
* Pass when not all participants book the same variant.
|
|
670
|
+
*/
|
|
671
|
+
participantsChoices?: ParticipantChoices;
|
|
660
672
|
/** Id of the booking to reschedule. */
|
|
661
673
|
bookingId: string;
|
|
662
674
|
/** Information about the new slot. */
|
|
@@ -679,18 +691,6 @@ export interface RescheduleBookingRequest extends RescheduleBookingRequestPartic
|
|
|
679
691
|
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
680
692
|
*/
|
|
681
693
|
flowControlSettings?: RescheduleBookingRequestFlowControlSettings;
|
|
682
|
-
/**
|
|
683
|
-
* Total number of participants. Available only for services with
|
|
684
|
-
* variants.
|
|
685
|
-
* Pass when all participants book the same variant.
|
|
686
|
-
*/
|
|
687
|
-
totalParticipants?: number;
|
|
688
|
-
/**
|
|
689
|
-
* Information about the service choices to book. Available only for services with
|
|
690
|
-
* variants.
|
|
691
|
-
* Pass when not all participants book the same variant.
|
|
692
|
-
*/
|
|
693
|
-
participantsChoices?: ParticipantChoices;
|
|
694
694
|
}
|
|
695
695
|
/** @oneof */
|
|
696
696
|
export interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
@@ -837,6 +837,10 @@ export interface QueryBookingsRequest {
|
|
|
837
837
|
query?: QueryV2;
|
|
838
838
|
}
|
|
839
839
|
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
840
|
+
/** Paging options to limit and skip the number of items. */
|
|
841
|
+
paging?: Paging;
|
|
842
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
843
|
+
cursorPaging?: CursorPaging;
|
|
840
844
|
/**
|
|
841
845
|
* Filter object in the following format:
|
|
842
846
|
* `"filter" : {
|
|
@@ -855,10 +859,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
855
859
|
fields?: string[];
|
|
856
860
|
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
857
861
|
fieldsets?: string[];
|
|
858
|
-
/** Paging options to limit and skip the number of items. */
|
|
859
|
-
paging?: Paging;
|
|
860
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
861
|
-
cursorPaging?: CursorPaging;
|
|
862
862
|
}
|
|
863
863
|
/** @oneof */
|
|
864
864
|
export interface QueryV2PagingMethodOneOf {
|
|
@@ -1015,11 +1015,6 @@ export interface BookingDeclined {
|
|
|
1015
1015
|
declinedBy?: IdentificationData;
|
|
1016
1016
|
}
|
|
1017
1017
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1018
|
-
/**
|
|
1019
|
-
* ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
|
|
1020
|
-
* @readonly
|
|
1021
|
-
*/
|
|
1022
|
-
contactId?: string | null;
|
|
1023
1018
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1024
1019
|
anonymousVisitorId?: string;
|
|
1025
1020
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1028,6 +1023,11 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1028
1023
|
wixUserId?: string;
|
|
1029
1024
|
/** ID of an app. */
|
|
1030
1025
|
appId?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
|
|
1028
|
+
* @readonly
|
|
1029
|
+
*/
|
|
1030
|
+
contactId?: string | null;
|
|
1031
1031
|
}
|
|
1032
1032
|
/** @oneof */
|
|
1033
1033
|
export interface IdentificationDataIdOneOf {
|
|
@@ -1106,14 +1106,6 @@ export interface BookingCanceled {
|
|
|
1106
1106
|
canceledBy?: IdentificationData;
|
|
1107
1107
|
}
|
|
1108
1108
|
export interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1109
|
-
/** ID of the booking to update the number of participants for. */
|
|
1110
|
-
bookingId: string;
|
|
1111
|
-
/**
|
|
1112
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
1113
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
1114
|
-
* managing the booking.
|
|
1115
|
-
*/
|
|
1116
|
-
revision: string | null;
|
|
1117
1109
|
/**
|
|
1118
1110
|
* Total number of participants. Available only for services with
|
|
1119
1111
|
* variants.
|
|
@@ -1126,6 +1118,14 @@ export interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfPartici
|
|
|
1126
1118
|
* Pass when not all participants book the same variant.
|
|
1127
1119
|
*/
|
|
1128
1120
|
participantsChoices?: ParticipantChoices;
|
|
1121
|
+
/** ID of the booking to update the number of participants for. */
|
|
1122
|
+
bookingId: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
1125
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
1126
|
+
* managing the booking.
|
|
1127
|
+
*/
|
|
1128
|
+
revision: string | null;
|
|
1129
1129
|
}
|
|
1130
1130
|
/** @oneof */
|
|
1131
1131
|
export interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
@@ -1252,6 +1252,15 @@ export interface BookingAlreadySetPayload {
|
|
|
1252
1252
|
currentBookingStatus?: BookingStatus;
|
|
1253
1253
|
}
|
|
1254
1254
|
export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
|
|
1255
|
+
/**
|
|
1256
|
+
* Information about the slot to create a booking for.
|
|
1257
|
+
* If you set `slot.location.locationType` to `CUSTOM`, the created slot's
|
|
1258
|
+
* location is set to `slot.location.formattedAddress` when provided.
|
|
1259
|
+
* Otherwise it's set to `contactDetails.fullAddress.formattedAddress`.
|
|
1260
|
+
*/
|
|
1261
|
+
slot?: Slot;
|
|
1262
|
+
/** Information about the schedule to create a booking for. */
|
|
1263
|
+
schedule?: BookedSchedule;
|
|
1255
1264
|
/** Contact details of the customer booking the service. */
|
|
1256
1265
|
contactDetails?: ContactDetails;
|
|
1257
1266
|
/**
|
|
@@ -1335,15 +1344,6 @@ export interface V2CreateBookingRequest extends V2CreateBookingRequestBookableIt
|
|
|
1335
1344
|
* accepted.
|
|
1336
1345
|
*/
|
|
1337
1346
|
flowControlSettings?: CreateBookingRequestFlowControlSettings;
|
|
1338
|
-
/**
|
|
1339
|
-
* Information about the slot to create a booking for.
|
|
1340
|
-
* If you set `slot.location.locationType` to `CUSTOM`, the created slot's
|
|
1341
|
-
* location is set to `slot.location.formattedAddress` when provided.
|
|
1342
|
-
* Otherwise it's set to `contactDetails.fullAddress.formattedAddress`.
|
|
1343
|
-
*/
|
|
1344
|
-
slot?: Slot;
|
|
1345
|
-
/** Information about the schedule to create a booking for. */
|
|
1346
|
-
schedule?: BookedSchedule;
|
|
1347
1347
|
}
|
|
1348
1348
|
/** @oneof */
|
|
1349
1349
|
export interface V2CreateBookingRequestBookableItemOneOf {
|
|
@@ -1447,7 +1447,7 @@ export interface V2CreateBookingResponse {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
export interface V2CancelBookingRequest {
|
|
1449
1449
|
/** ID of the booking to cancel. */
|
|
1450
|
-
bookingId
|
|
1450
|
+
bookingId?: string;
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Information about whether to notify the customer about the cancelation and
|
|
1453
1453
|
* the message to send.
|
|
@@ -1458,7 +1458,7 @@ export interface V2CancelBookingRequest {
|
|
|
1458
1458
|
* To prevent conflicting changes,
|
|
1459
1459
|
* the current revision must be passed when managing the booking.
|
|
1460
1460
|
*/
|
|
1461
|
-
revision
|
|
1461
|
+
revision?: string | null;
|
|
1462
1462
|
}
|
|
1463
1463
|
export interface V2CancelBookingRequestFlowControlSettings {
|
|
1464
1464
|
/**
|
|
@@ -1492,15 +1492,15 @@ export interface V2CancelBookingResponse {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
export interface V2RescheduleBookingRequest extends V2RescheduleBookingRequestParticipantsInfoOneOf {
|
|
1494
1494
|
/** Id of the booking to reschedule. */
|
|
1495
|
-
bookingId
|
|
1495
|
+
bookingId?: string;
|
|
1496
1496
|
/** Information about the new slot. */
|
|
1497
|
-
slot
|
|
1497
|
+
slot?: Slot;
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
1500
1500
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1501
1501
|
* managing the booking.
|
|
1502
1502
|
*/
|
|
1503
|
-
revision
|
|
1503
|
+
revision?: string | null;
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Information about whether to notify the customer about the rescheduling and
|
|
1506
1506
|
* the message to send.
|
|
@@ -1549,13 +1549,13 @@ export interface V2RescheduleBookingResponse {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
export interface V2ConfirmBookingRequest {
|
|
1551
1551
|
/** ID of the booking to confirm. */
|
|
1552
|
-
bookingId
|
|
1552
|
+
bookingId?: string;
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
1555
1555
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1556
1556
|
* managing the booking.
|
|
1557
1557
|
*/
|
|
1558
|
-
revision
|
|
1558
|
+
revision?: string | null;
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Information about whether to notify the customer about the confirmation and
|
|
1561
1561
|
* the message to send.
|
|
@@ -1567,13 +1567,13 @@ export interface V2ConfirmBookingResponse {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
export interface V2DeclineBookingRequest {
|
|
1569
1569
|
/** ID of the booking to decline. */
|
|
1570
|
-
bookingId
|
|
1570
|
+
bookingId?: string;
|
|
1571
1571
|
/**
|
|
1572
1572
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
1573
1573
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1574
1574
|
* managing the booking.
|
|
1575
1575
|
*/
|
|
1576
|
-
revision
|
|
1576
|
+
revision?: string | null;
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Information about whether to notify the customer about the decline and
|
|
1579
1579
|
* the message to send.
|
|
@@ -1586,7 +1586,7 @@ export interface V2DeclineBookingResponse {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
export interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
1588
1588
|
/** ID of the booking to update the number of participants for. */
|
|
1589
|
-
bookingId
|
|
1589
|
+
bookingId?: string;
|
|
1590
1590
|
/** Updated number of participants. */
|
|
1591
1591
|
numberOfParticipants?: number | null;
|
|
1592
1592
|
/**
|
|
@@ -1594,7 +1594,7 @@ export interface V2UpdateNumberOfParticipantsRequest extends V2UpdateNumberOfPar
|
|
|
1594
1594
|
* To prevent conflicting changes, the current revision must be passed when
|
|
1595
1595
|
* managing the booking.
|
|
1596
1596
|
*/
|
|
1597
|
-
revision
|
|
1597
|
+
revision?: string | null;
|
|
1598
1598
|
}
|
|
1599
1599
|
/** @oneof */
|
|
1600
1600
|
export interface V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
@@ -22,8 +22,8 @@ const _contactDetails = { fullAddress: '_address' };
|
|
|
22
22
|
const _previewPriceRequest = { bookingLineItems: '_bookingLineItem' };
|
|
23
23
|
const _previewPriceResponse = { priceInfo: '_priceInfo' };
|
|
24
24
|
const _priceInfo = {
|
|
25
|
-
deposit: 'google.protobuf.DoubleValue',
|
|
26
25
|
calculatedPrice: 'DOUBLE',
|
|
26
|
+
deposit: 'google.protobuf.DoubleValue',
|
|
27
27
|
bookingLineItems: '_bookingLineItem',
|
|
28
28
|
};
|
|
29
29
|
function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|