@wix/auto_sdk_bookings_bookings 1.0.89 → 1.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +597 -580
  2. package/build/cjs/index.js +1025 -934
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2337 -2373
  5. package/build/cjs/index.typings.js +848 -800
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1382 -1435
  8. package/build/cjs/meta.js +700 -659
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +597 -580
  11. package/build/es/index.mjs +1023 -934
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +2337 -2373
  14. package/build/es/index.typings.mjs +847 -800
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1382 -1435
  17. package/build/es/meta.mjs +699 -659
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +597 -580
  20. package/build/internal/cjs/index.js +1025 -934
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +2349 -2385
  23. package/build/internal/cjs/index.typings.js +848 -800
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +1382 -1435
  26. package/build/internal/cjs/meta.js +700 -659
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +597 -580
  29. package/build/internal/es/index.mjs +1023 -934
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +2349 -2385
  32. package/build/internal/es/index.typings.mjs +847 -800
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +1382 -1435
  35. package/build/internal/es/meta.mjs +699 -659
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { GetAnonymousActionDetailsRequest as GetAnonymousActionDetailsRequest$1, GetAnonymousActionDetailsResponse as GetAnonymousActionDetailsResponse$1, CancelBookingAnonymouslyRequest as CancelBookingAnonymouslyRequest$1, CancelBookingAnonymouslyResponse as CancelBookingAnonymouslyResponse$1, RescheduleBookingAnonymouslyRequest as RescheduleBookingAnonymouslyRequest$1, RescheduleBookingAnonymouslyResponse as RescheduleBookingAnonymouslyResponse$1, GetBookingAnonymouslyRequest as GetBookingAnonymouslyRequest$1, GetBookingAnonymouslyResponse as GetBookingAnonymouslyResponse$1, ConfirmOrDeclineBookingRequest as ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingResponse as ConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingRequest as BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingResponse as BulkConfirmOrDeclineBookingResponse$1, CreateBookingRequest as CreateBookingRequest$1, CreateBookingResponse as CreateBookingResponse$1, BulkCreateBookingRequest as BulkCreateBookingRequest$1, BulkCreateBookingResponse as BulkCreateBookingResponse$1, RescheduleBookingRequest as RescheduleBookingRequest$1, RescheduleBookingResponse as RescheduleBookingResponse$1, ConfirmBookingRequest as ConfirmBookingRequest$1, ConfirmBookingResponse as ConfirmBookingResponse$1, SetBookingSubmissionIdRequest as SetBookingSubmissionIdRequest$1, SetBookingSubmissionIdResponse as SetBookingSubmissionIdResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeclineBookingRequest as DeclineBookingRequest$1, DeclineBookingResponse as DeclineBookingResponse$1, CancelBookingRequest as CancelBookingRequest$1, CancelBookingResponse as CancelBookingResponse$1, UpdateNumberOfParticipantsRequest as UpdateNumberOfParticipantsRequest$1, UpdateNumberOfParticipantsResponse as UpdateNumberOfParticipantsResponse$1, MarkBookingAsPendingRequest as MarkBookingAsPendingRequest$1, MarkBookingAsPendingResponse as MarkBookingAsPendingResponse$1, CreateMultiServiceBookingRequest as CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingResponse as CreateMultiServiceBookingResponse$1, RescheduleMultiServiceBookingRequest as RescheduleMultiServiceBookingRequest$1, RescheduleMultiServiceBookingResponse as RescheduleMultiServiceBookingResponse$1, GetMultiServiceBookingAvailabilityRequest as GetMultiServiceBookingAvailabilityRequest$1, GetMultiServiceBookingAvailabilityResponse as GetMultiServiceBookingAvailabilityResponse$1, CancelMultiServiceBookingRequest as CancelMultiServiceBookingRequest$1, CancelMultiServiceBookingResponse as CancelMultiServiceBookingResponse$1, MarkMultiServiceBookingAsPendingRequest as MarkMultiServiceBookingAsPendingRequest$1, MarkMultiServiceBookingAsPendingResponse as MarkMultiServiceBookingAsPendingResponse$1, ConfirmMultiServiceBookingRequest as ConfirmMultiServiceBookingRequest$1, ConfirmMultiServiceBookingResponse as ConfirmMultiServiceBookingResponse$1, DeclineMultiServiceBookingRequest as DeclineMultiServiceBookingRequest$1, DeclineMultiServiceBookingResponse as DeclineMultiServiceBookingResponse$1, BulkGetMultiServiceBookingAllowedActionsRequest as BulkGetMultiServiceBookingAllowedActionsRequest$1, BulkGetMultiServiceBookingAllowedActionsResponse as BulkGetMultiServiceBookingAllowedActionsResponse$1, GetMultiServiceBookingRequest as GetMultiServiceBookingRequest$1, GetMultiServiceBookingResponse as GetMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingRequest as AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingResponse as AddBookingsToMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingRequest as RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingResponse as RemoveBookingsFromMultiServiceBookingResponse$1 } from './index.typings.js';
1
+ import { ConfirmOrDeclineBookingRequest as ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingResponse as ConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingRequest as BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingResponse as BulkConfirmOrDeclineBookingResponse$1, CreateMultiServiceBookingRequest as CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingResponse as CreateMultiServiceBookingResponse$1, RescheduleMultiServiceBookingRequest as RescheduleMultiServiceBookingRequest$1, RescheduleMultiServiceBookingResponse as RescheduleMultiServiceBookingResponse$1, GetMultiServiceBookingAvailabilityRequest as GetMultiServiceBookingAvailabilityRequest$1, GetMultiServiceBookingAvailabilityResponse as GetMultiServiceBookingAvailabilityResponse$1, CancelMultiServiceBookingRequest as CancelMultiServiceBookingRequest$1, CancelMultiServiceBookingResponse as CancelMultiServiceBookingResponse$1, MarkMultiServiceBookingAsPendingRequest as MarkMultiServiceBookingAsPendingRequest$1, MarkMultiServiceBookingAsPendingResponse as MarkMultiServiceBookingAsPendingResponse$1, ConfirmMultiServiceBookingRequest as ConfirmMultiServiceBookingRequest$1, ConfirmMultiServiceBookingResponse as ConfirmMultiServiceBookingResponse$1, DeclineMultiServiceBookingRequest as DeclineMultiServiceBookingRequest$1, DeclineMultiServiceBookingResponse as DeclineMultiServiceBookingResponse$1, BulkGetMultiServiceBookingAllowedActionsRequest as BulkGetMultiServiceBookingAllowedActionsRequest$1, BulkGetMultiServiceBookingAllowedActionsResponse as BulkGetMultiServiceBookingAllowedActionsResponse$1, GetMultiServiceBookingRequest as GetMultiServiceBookingRequest$1, GetMultiServiceBookingResponse as GetMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingRequest as AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingResponse as AddBookingsToMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingRequest as RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingResponse as RemoveBookingsFromMultiServiceBookingResponse$1, CreateBookingRequest as CreateBookingRequest$1, CreateBookingResponse as CreateBookingResponse$1, BulkCreateBookingRequest as BulkCreateBookingRequest$1, BulkCreateBookingResponse as BulkCreateBookingResponse$1, RescheduleBookingRequest as RescheduleBookingRequest$1, RescheduleBookingResponse as RescheduleBookingResponse$1, ConfirmBookingRequest as ConfirmBookingRequest$1, ConfirmBookingResponse as ConfirmBookingResponse$1, SetBookingSubmissionIdRequest as SetBookingSubmissionIdRequest$1, SetBookingSubmissionIdResponse as SetBookingSubmissionIdResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeclineBookingRequest as DeclineBookingRequest$1, DeclineBookingResponse as DeclineBookingResponse$1, CancelBookingRequest as CancelBookingRequest$1, CancelBookingResponse as CancelBookingResponse$1, UpdateNumberOfParticipantsRequest as UpdateNumberOfParticipantsRequest$1, UpdateNumberOfParticipantsResponse as UpdateNumberOfParticipantsResponse$1, BulkCalculateAllowedActionsRequest as BulkCalculateAllowedActionsRequest$1, BulkCalculateAllowedActionsResponse as BulkCalculateAllowedActionsResponse$1, MarkBookingAsPendingRequest as MarkBookingAsPendingRequest$1, MarkBookingAsPendingResponse as MarkBookingAsPendingResponse$1, GetAnonymousActionDetailsRequest as GetAnonymousActionDetailsRequest$1, GetAnonymousActionDetailsResponse as GetAnonymousActionDetailsResponse$1, CancelBookingAnonymouslyRequest as CancelBookingAnonymouslyRequest$1, CancelBookingAnonymouslyResponse as CancelBookingAnonymouslyResponse$1, RescheduleBookingAnonymouslyRequest as RescheduleBookingAnonymouslyRequest$1, RescheduleBookingAnonymouslyResponse as RescheduleBookingAnonymouslyResponse$1, GetBookingAnonymouslyRequest as GetBookingAnonymouslyRequest$1, GetBookingAnonymouslyResponse as GetBookingAnonymouslyResponse$1 } from './index.typings.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** An entity representing a scheduled appointment, class session, or course. */
@@ -872,172 +872,94 @@ interface BookingFormFilled {
872
872
  */
873
873
  formId?: string | null;
874
874
  }
875
- /** Request for GetAnonymousActionDetails */
876
- interface GetAnonymousActionDetailsRequest {
877
- /** @format GUID */
878
- bookingId?: string | null;
879
- }
880
- /** Response for GetAnonymousActionDetails */
881
- interface GetAnonymousActionDetailsResponse {
882
- /**
883
- * Token for anonymous access to manage the booking.
884
- * It represents a symmetrically encrypted and URL-safe string containing the booking ID.
885
- * This token is required for canceling or rescheduling the booking without authentication.
886
- * @minLength 32
887
- * @maxLength 2048
888
- */
889
- token?: string | null;
890
- /** @format GUID */
891
- clientId?: string | null;
892
- anonymousBookingUrls?: AnonymousBookingUrls;
893
- }
894
- interface AnonymousBookingUrls {
895
- /**
896
- * The base URL for the booking links
897
- * @maxLength 2048
898
- */
899
- baseUrl?: string | null;
900
- /**
901
- * The cancellation URL for the booking, which contains an anonymous token and AOth clientId
902
- * @maxLength 2048
903
- */
904
- anonymousCancellationUrl?: string | null;
905
- /**
906
- * The reschedule URL for the booking, which contains an anonymous token and AOth clientId
907
- * @maxLength 2048
908
- */
909
- anonymousRescheduleUrl?: string | null;
910
- }
911
- /** Request for CancelBookingAnonymously */
912
- interface CancelBookingAnonymouslyRequest {
875
+ interface ConfirmOrDeclineBookingRequest {
913
876
  /**
914
- * The token provided in the booking links for anonymous access
915
- * @maxLength 2048
877
+ * ID of the booking to confirm or decline.
878
+ * @format GUID
916
879
  */
917
- token: string | null;
880
+ bookingId: string;
918
881
  /**
919
- * Revision number, which increments by 1 each time the booking is updated.
920
- * To prevent conflicting changes, the current revision must be specified when
921
- * managing the booking.
882
+ * Current payment status of the booking when using a custom checkout page and
883
+ * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
884
+ *
885
+ * The booking is declined if there is a double booking conflict and you provide
886
+ * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
922
887
  */
923
- revision?: string | null;
888
+ paymentStatus?: PaymentStatusWithLiterals;
924
889
  }
925
- /** Response for CancelBookingAnonymously */
926
- interface CancelBookingAnonymouslyResponse {
927
- /** Canceled booking. */
890
+ interface ConfirmOrDeclineBookingResponse {
891
+ /** Updated booking. */
928
892
  booking?: Booking;
929
893
  }
930
- /** Request for RescheduleBookingAnonymously */
931
- interface RescheduleBookingAnonymouslyRequest {
932
- /**
933
- * The token provided in the booking links for anonymous access
934
- * @maxLength 2048
935
- */
936
- token: string | null;
937
- /** New slot of the booking. */
938
- slot: V2Slot;
894
+ interface BulkConfirmOrDeclineBookingRequest {
939
895
  /**
940
- * Revision number, which increments by 1 each time the booking is rescheduled.
941
- * To prevent conflicting changes, the current revision must be passed when
942
- * rescheduling the booking.
896
+ * Bookings to confirm or decline.
897
+ * @minSize 1
898
+ * @maxSize 300
943
899
  */
944
- revision: string | null;
900
+ details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
901
+ /** Whether to return the confirmed or declined booking objects. */
902
+ returnEntity?: boolean;
945
903
  }
946
- interface V2Slot {
947
- /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
948
- sessionId?: string | null;
949
- /** Service identifier. Required. */
950
- serviceId?: string;
951
- /** Schedule identifier. Required. */
952
- scheduleId?: string;
953
- /** The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
954
- startDate?: string | null;
955
- /** The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
956
- endDate?: string | null;
957
- /** The timezone according to which the slot is calculated and presented. */
958
- timezone?: string | null;
904
+ interface BulkConfirmOrDeclineBookingRequestBookingDetails {
959
905
  /**
960
- * The resource required for this slot.
961
- * When populated, the specified resource will be assigned to the slot upon confirmation according to its availability.
962
- * When empty, if `skip_availability_validation` is `false`, a random available resource will be assigned to the slot upon confirmation.
963
- * Otherwise, one of the service resources will be assigned to the slot randomly upon confirmation.
906
+ * ID of the booking to confirm or decline.
907
+ * @format GUID
964
908
  */
965
- resource?: SlotSlotResource;
966
- /** Geographic location of the slot. */
967
- location?: SlotLocation;
909
+ bookingId?: string;
968
910
  /**
969
- * Calendar event ID - not supported.
970
- * If not empty, on all write flows (create/update), it takes priority over `sessionId`.
971
- * So if both `sessionId` and `eventId` are provided, the `sessionId` will be based on the `eventId`.
972
- * Otherwise, if `eventId` is empty on write flow,
973
- * @minLength 36
974
- * @maxLength 250
911
+ * Current payment status of the booking when using a custom checkout page and
912
+ * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
913
+ *
914
+ * The booking is declined if there is a double booking conflict and you provide
915
+ * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
975
916
  */
976
- eventId?: string | null;
917
+ paymentStatus?: PaymentStatusWithLiterals;
977
918
  }
978
- declare enum LocationLocationType {
979
- /** Undefined location type. */
980
- UNDEFINED = "UNDEFINED",
981
- /** The business address as set in the site’s general settings. */
982
- OWNER_BUSINESS = "OWNER_BUSINESS",
983
- /** The address set when creating the service. */
984
- OWNER_CUSTOM = "OWNER_CUSTOM",
985
- /** The address set for the individual session. */
986
- CUSTOM = "CUSTOM"
919
+ interface BulkConfirmOrDeclineBookingResponse {
920
+ /** List of confirmed or declined bookings, including metadata. */
921
+ results?: BulkBookingResult[];
922
+ /** Total successes and failures of the Bulk Confirm Or Decline call. */
923
+ bulkActionMetadata?: BulkActionMetadata;
987
924
  }
988
- /** @enumType */
989
- type LocationLocationTypeWithLiterals = LocationLocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
990
- interface SlotSlotResource {
925
+ interface BulkBookingResult {
991
926
  /**
992
- * Resource ID.
993
- * @format GUID
994
- * @readonly
927
+ * Information about the booking that was created or updated.
928
+ * Including its ID, index in the bulk request and whether it was
929
+ * successfully created or updated.
995
930
  */
996
- id?: string | null;
931
+ itemMetadata?: ItemMetadata;
997
932
  /**
998
- * Resource name.
999
- * @maxLength 1200
933
+ * Created or updated booking. Available only if you requested
934
+ * to return the booking entity.
1000
935
  */
1001
- name?: string | null;
936
+ item?: Booking;
1002
937
  }
1003
- interface SlotLocation {
1004
- /**
1005
- * Business Location ID. Present if the location is a business location.
1006
- * @format GUID
1007
- */
938
+ interface ItemMetadata {
939
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1008
940
  id?: string | null;
1009
- /** Location name. */
1010
- name?: string | null;
1011
- /** A string containing the full address of this location. */
1012
- formattedAddress?: string | null;
1013
- /** Location type. */
1014
- locationType?: LocationLocationTypeWithLiterals;
1015
- }
1016
- /** Response for RescheduleBookingAnonymously */
1017
- interface RescheduleBookingAnonymouslyResponse {
1018
- /** Rescheduled booking. */
1019
- booking?: Booking;
1020
- }
1021
- /** Request for GetBookingAnonymously */
1022
- interface GetBookingAnonymouslyRequest {
1023
- /**
1024
- * The token provided in the booking links for anonymous access
1025
- * @maxLength 2048
1026
- */
1027
- token: string | null;
941
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
942
+ originalIndex?: number;
943
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
944
+ success?: boolean;
945
+ /** Details about the error in case of failure. */
946
+ error?: ApplicationError;
1028
947
  }
1029
- /** Response for GetBookingAnonymously */
1030
- interface GetBookingAnonymouslyResponse {
1031
- booking?: Booking;
1032
- /** Allowed actions for the booking, such as canceling or rescheduling. */
1033
- allowedActionsAnonymously?: AllowedActionsAnonymously;
948
+ interface ApplicationError {
949
+ /** Error code. */
950
+ code?: string;
951
+ /** Description of the error. */
952
+ description?: string;
953
+ /** Data related to the error. */
954
+ data?: Record<string, any> | null;
1034
955
  }
1035
- /** Possible allowed actions for a Booking */
1036
- interface AllowedActionsAnonymously {
1037
- /** Whether the customer is allowed to cancel the booking. */
1038
- cancel?: boolean;
1039
- /** Whether the customer is allowed to reschedule the booking. */
1040
- reschedule?: boolean;
956
+ interface BulkActionMetadata {
957
+ /** Number of items that were successfully processed. */
958
+ totalSuccesses?: number;
959
+ /** Number of items that couldn't be processed. */
960
+ totalFailures?: number;
961
+ /** Number of failures without details because detailed failure threshold was exceeded. */
962
+ undetailedFailures?: number;
1041
963
  }
1042
964
  interface DomainEvent extends DomainEventBodyOneOf {
1043
965
  createdEvent?: EntityCreatedEvent;
@@ -1175,70 +1097,6 @@ declare enum WebhookIdentityType {
1175
1097
  }
1176
1098
  /** @enumType */
1177
1099
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1178
- interface SetBookingFormAndSubmissionIdRequest extends SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
1179
- /**
1180
- * The visitor who created the booking.
1181
- * @format GUID
1182
- */
1183
- visitorId?: string | null;
1184
- /**
1185
- * The member that created the booking.
1186
- * @format GUID
1187
- */
1188
- memberId?: string | null;
1189
- /**
1190
- * The app that created the booking.
1191
- * @format GUID
1192
- */
1193
- appId?: string | null;
1194
- /**
1195
- * ID of the booking to set `formId` and `submissionId` for.
1196
- * @format GUID
1197
- */
1198
- bookingId?: string | null;
1199
- /**
1200
- * ID of the form to set on the booking.
1201
- * @format GUID
1202
- */
1203
- formId?: string | null;
1204
- /**
1205
- * ID of the form submission to set on the booking.
1206
- * @format GUID
1207
- */
1208
- submissionId?: string | null;
1209
- /**
1210
- * MetaSite ID
1211
- * @format GUID
1212
- */
1213
- msid?: string | null;
1214
- /**
1215
- * Instance ID
1216
- * @format GUID
1217
- */
1218
- instanceId?: string | null;
1219
- }
1220
- /** @oneof */
1221
- interface SetBookingFormAndSubmissionIdRequestCreatedByOneOf {
1222
- /**
1223
- * The visitor who created the booking.
1224
- * @format GUID
1225
- */
1226
- visitorId?: string | null;
1227
- /**
1228
- * The member that created the booking.
1229
- * @format GUID
1230
- */
1231
- memberId?: string | null;
1232
- /**
1233
- * The app that created the booking.
1234
- * @format GUID
1235
- */
1236
- appId?: string | null;
1237
- }
1238
- interface SetBookingFormAndSubmissionIdResponse {
1239
- /** Updated booking. */
1240
- booking?: Booking;
1241
- }
1242
1100
  interface V2CreateBookingRequest extends V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf {
1243
1101
  /**
1244
1102
  * Information about the slot to create a booking for.
@@ -1622,120 +1480,40 @@ interface V2UpdateNumberOfParticipantsResponse {
1622
1480
  /** Booking with updated number of participants. */
1623
1481
  booking?: Booking;
1624
1482
  }
1625
- interface ConfirmOrDeclineBookingRequest {
1626
- /**
1627
- * ID of the booking to confirm or decline.
1628
- * @format GUID
1629
- */
1630
- bookingId: string;
1483
+ interface CreateMultiServiceBookingRequest {
1631
1484
  /**
1632
- * Current payment status of the booking when using a custom checkout page and
1633
- * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
1485
+ * Between 2 to 8 new single-service booking specifications to create and combine in a multi-service booking.
1634
1486
  *
1635
- * The booking is declined if there is a double booking conflict and you provide
1636
- * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
1637
- */
1638
- paymentStatus?: PaymentStatusWithLiterals;
1639
- }
1640
- interface ConfirmOrDeclineBookingResponse {
1641
- /** Updated booking. */
1642
- booking?: Booking;
1643
- }
1644
- interface BulkConfirmOrDeclineBookingRequest {
1645
- /**
1646
- * Bookings to confirm or decline.
1647
- * @minSize 1
1648
- * @maxSize 300
1649
- */
1650
- details: BulkConfirmOrDeclineBookingRequestBookingDetails[];
1651
- /** Whether to return the confirmed or declined booking objects. */
1652
- returnEntity?: boolean;
1653
- }
1654
- interface BulkConfirmOrDeclineBookingRequestBookingDetails {
1655
- /**
1656
- * ID of the booking to confirm or decline.
1657
- * @format GUID
1658
- */
1659
- bookingId?: string;
1660
- /**
1661
- * Current payment status of the booking when using a custom checkout page and
1662
- * not the [eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
1487
+ * Each single-service booking specification must include `slot` details (`scheduleId`, `startDate`, and `endDate`).
1488
+ * Specify contact details, number of participants, and any additional fields as needed.
1663
1489
  *
1664
- * The booking is declined if there is a double booking conflict and you provide
1665
- * one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
1666
- */
1667
- paymentStatus?: PaymentStatusWithLiterals;
1668
- }
1669
- interface BulkConfirmOrDeclineBookingResponse {
1670
- /** List of confirmed or declined bookings, including metadata. */
1671
- results?: BulkBookingResult[];
1672
- /** Total successes and failures of the Bulk Confirm Or Decline call. */
1673
- bulkActionMetadata?: BulkActionMetadata;
1674
- }
1675
- interface BulkBookingResult {
1676
- /**
1677
- * Information about the booking that was created or updated.
1678
- * Including its ID, index in the bulk request and whether it was
1679
- * successfully created or updated.
1680
- */
1681
- itemMetadata?: ItemMetadata;
1682
- /**
1683
- * Created or updated booking. Available only if you requested
1684
- * to return the booking entity.
1685
- */
1686
- item?: Booking;
1687
- }
1688
- interface ItemMetadata {
1689
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1690
- id?: string | null;
1691
- /** Index of the item within the request array. Allows for correlation between request and response items. */
1692
- originalIndex?: number;
1693
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1694
- success?: boolean;
1695
- /** Details about the error in case of failure. */
1696
- error?: ApplicationError;
1697
- }
1698
- interface ApplicationError {
1699
- /** Error code. */
1700
- code?: string;
1701
- /** Description of the error. */
1702
- description?: string;
1703
- /** Data related to the error. */
1704
- data?: Record<string, any> | null;
1705
- }
1706
- interface BulkActionMetadata {
1707
- /** Number of items that were successfully processed. */
1708
- totalSuccesses?: number;
1709
- /** Number of items that couldn't be processed. */
1710
- totalFailures?: number;
1711
- /** Number of failures without details because detailed failure threshold was exceeded. */
1712
- undetailedFailures?: number;
1713
- }
1714
- interface BookingChanged {
1715
- /** The booking before the changes. */
1716
- previousBooking?: Booking;
1717
- /** The booking after the changes. */
1718
- currentBooking?: Booking;
1719
- }
1720
- interface CreateBookingRequest {
1721
- /** The booking to create. */
1722
- booking: Booking;
1723
- /**
1724
- * Information about whether to notify the customer and
1725
- * the message to send.
1490
+ * For sequential bookings, ensure the timing allows services to be scheduled back-to-back.
1491
+ * @minSize 2
1492
+ * @maxSize 8
1726
1493
  */
1494
+ bookings: Booking[];
1495
+ /** Information about whether to notify the customer and the message to send. */
1727
1496
  participantNotification?: ParticipantNotification;
1728
1497
  /**
1729
- * Whether to send an SMS reminder to the customer 24 hours before the
1730
- * session starts. The phone number is taken from `contactDetails.phone`.
1731
- * Default: `true`.
1498
+ * Whether to send an SMS reminder to the customer 24 hours before the session starts.
1499
+ * Wix Bookings takes the phone number from `contactDetails.phone`.
1500
+ *
1501
+ * Default: `true`
1732
1502
  */
1733
1503
  sendSmsReminder?: boolean | null;
1734
1504
  /**
1735
1505
  * Whether to ignore specific standard procedures of the Wix Bookings flow.
1736
- * For example, whether to check availability when creating a booking.
1506
+ * For example, whether to skip checking availability before updating the status.
1737
1507
  */
1738
1508
  flowControlSettings?: CreateBookingFlowControlSettings;
1509
+ /** Whether to return the created single-service bookings. */
1510
+ returnFullEntity?: boolean;
1511
+ /**
1512
+ * Multi-service booking type.
1513
+ *
1514
+ * Currently only `SEQUENTIAL_BOOKINGS` is supported.
1515
+ */
1516
+ multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
1739
1517
  }
1740
1518
  interface CreateBookingFlowControlSettings {
1741
1519
  /**
@@ -1779,136 +1557,166 @@ interface CreateBookingFlowControlSettings {
1779
1557
  */
1780
1558
  skipAddOnValidation?: boolean;
1781
1559
  }
1782
- interface CreateBookingResponse {
1783
- /** Created booking. */
1784
- booking?: Booking;
1785
- }
1786
- /**
1787
- * The `fieldMask` should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
1788
- * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
1789
- */
1790
- interface UpdateBookingRequest {
1791
- booking?: Booking;
1792
- }
1793
- interface UpdateBookingResponse {
1794
- booking?: Booking;
1795
- }
1796
- interface LegacyCreateBookingRequest {
1797
- booking?: Booking;
1798
- }
1799
- interface LegacyCreateBookingResponse {
1800
- booking?: Booking;
1560
+ interface CreateMultiServiceBookingResponse {
1561
+ /**
1562
+ * Created multi-service booking.
1563
+ * Contains the single-service bookings in the same order as specified in the request.
1564
+ */
1565
+ multiServiceBooking?: MultiServiceBooking;
1801
1566
  }
1802
1567
  /**
1803
- * The `fieldMask` for each booking should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
1804
- * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
1568
+ * A multi-service booking combines multiple single-service bookings into a package.
1569
+ *
1570
+ * Currently, multi-service bookings support only sequential scheduling where services are scheduled back-to-back at the same location, with each single-service booking starting when the previous 1 ends.
1805
1571
  */
1806
- interface BulkUpdateBookingRequest {
1807
- bookings?: MaskedBooking[];
1808
- }
1809
- interface MaskedBooking {
1810
- booking?: Booking;
1811
- mask?: string[];
1812
- }
1813
- interface BulkUpdateBookingResponse {
1572
+ interface MultiServiceBooking {
1814
1573
  /**
1815
- * Information about the booking that was updated.
1816
- * Including its ID, index in the bulk request and whether it was
1817
- * successfully updated.
1574
+ * Multi-service booking ID.
1575
+ * @format GUID
1818
1576
  */
1819
- results?: ItemMetadata[];
1820
- /** Total number of successes and failures for Bulk Update Bookings. */
1821
- bulkActionMetadata?: BulkActionMetadata;
1577
+ id?: string | null;
1578
+ /** The single-service bookings that make up the multi-service booking package. */
1579
+ bookings?: BookingResult[];
1822
1580
  }
1823
- interface BulkCreateBookingRequest {
1581
+ interface BookingResult {
1824
1582
  /**
1825
- * Bookings to create.
1826
- *
1827
- * Max: 8 bookings
1828
- * @minSize 1
1829
- * @maxSize 12
1583
+ * Booking ID.
1584
+ * @format GUID
1830
1585
  */
1831
- createBookingsInfo: CreateBookingInfo[];
1832
- /** Whether to return the created bookings. */
1833
- returnFullEntity?: boolean;
1834
- }
1835
- interface CreateBookingInfo {
1836
- /** Booking to create. */
1586
+ bookingId?: string | null;
1587
+ /** Booking entity. */
1837
1588
  booking?: Booking;
1589
+ }
1590
+ interface RescheduleMultiServiceBookingRequest {
1838
1591
  /**
1839
- * Information about whether to notify the customer and
1840
- * the message to send.
1592
+ * ID of the multi-service booking to reschedule.
1593
+ * @format GUID
1841
1594
  */
1595
+ multiServiceBookingId: string | null;
1596
+ /** Information about the single-service bookings to reschedule. */
1597
+ rescheduleBookingsInfo: RescheduleBookingInfo[];
1598
+ /** Information about whether to notify the customer and the message to send. */
1842
1599
  participantNotification?: ParticipantNotification;
1843
1600
  /**
1844
- * Whether to send an SMS reminder to the customer 24 hours before the
1845
- * session starts. The phone number is taken from `contactDetails.phone`.
1846
- * Default: `true`.
1847
- */
1848
- sendSmsReminder?: boolean | null;
1849
- /**
1850
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
1851
- * For example, whether to check availability when creating a booking.
1601
+ * Information about whether specific procedures of the standard Wix Bookings rescheduling flow are changed.
1602
+ * For example, whether the availability of the new slot is checked before rescheduling the booking or if the customer can reschedule the booking even though the service's rescheduling policy doesn't allow it.
1852
1603
  */
1853
- flowControlSettings?: CreateBookingFlowControlSettings;
1854
- }
1855
- interface BulkCreateBookingResponse {
1856
- /** List of individual Bulk Create Bookings results. */
1857
- results?: BulkBookingResult[];
1858
- /** Total number of successes and failures for Bulk Create Bookings. */
1859
- bulkActionMetadata?: BulkActionMetadata;
1604
+ flowControlSettings?: RescheduleBookingFlowControlSettings;
1605
+ /** Whether to return the rescheduled bookings entities. */
1606
+ returnFullEntity?: boolean;
1860
1607
  }
1861
- interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
1862
- /**
1863
- * Total number of participants. Specify when all participants have booked the
1864
- * same service variant.
1865
- */
1866
- totalParticipants?: number;
1608
+ interface V2Slot {
1609
+ /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
1610
+ sessionId?: string | null;
1611
+ /** Service identifier. Required. */
1612
+ serviceId?: string;
1613
+ /** Schedule identifier. Required. */
1614
+ scheduleId?: string;
1615
+ /** The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
1616
+ startDate?: string | null;
1617
+ /** The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
1618
+ endDate?: string | null;
1619
+ /** The timezone according to which the slot is calculated and presented. */
1620
+ timezone?: string | null;
1867
1621
  /**
1868
- * Information about the service choices to book. Specify when not all
1869
- * participants have booked the same service variant.
1622
+ * The resource required for this slot.
1623
+ * When populated, the specified resource will be assigned to the slot upon confirmation according to its availability.
1624
+ * When empty, if `skip_availability_validation` is `false`, a random available resource will be assigned to the slot upon confirmation.
1625
+ * Otherwise, one of the service resources will be assigned to the slot randomly upon confirmation.
1870
1626
  */
1871
- participantsChoices?: ParticipantChoices;
1627
+ resource?: SlotSlotResource;
1628
+ /** Geographic location of the slot. */
1629
+ location?: SlotLocation;
1872
1630
  /**
1873
- * ID of the booking to reschedule.
1874
- * @format GUID
1631
+ * Calendar event ID - not supported.
1632
+ * If not empty, on all write flows (create/update), it takes priority over `sessionId`.
1633
+ * So if both `sessionId` and `eventId` are provided, the `sessionId` will be based on the `eventId`.
1634
+ * Otherwise, if `eventId` is empty on write flow,
1635
+ * @minLength 36
1636
+ * @maxLength 250
1875
1637
  */
1876
- bookingId: string;
1877
- /** New slot of the booking. */
1878
- slot: V2Slot;
1879
- /**
1880
- * Revision number, which increments by 1 each time the booking is rescheduled.
1881
- * To prevent conflicting changes, the current revision must be passed when
1882
- * rescheduling the booking.
1638
+ eventId?: string | null;
1639
+ }
1640
+ declare enum LocationLocationType {
1641
+ /** Undefined location type. */
1642
+ UNDEFINED = "UNDEFINED",
1643
+ /** The business address as set in the site’s general settings. */
1644
+ OWNER_BUSINESS = "OWNER_BUSINESS",
1645
+ /** The address set when creating the service. */
1646
+ OWNER_CUSTOM = "OWNER_CUSTOM",
1647
+ /** The address set for the individual session. */
1648
+ CUSTOM = "CUSTOM"
1649
+ }
1650
+ /** @enumType */
1651
+ type LocationLocationTypeWithLiterals = LocationLocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
1652
+ interface SlotSlotResource {
1653
+ /**
1654
+ * Resource ID.
1655
+ * @format GUID
1656
+ * @readonly
1883
1657
  */
1884
- revision: string | null;
1658
+ id?: string | null;
1885
1659
  /**
1886
- * Information about whether to notify the customer about the rescheduling and
1887
- * the message to send.
1660
+ * Resource name.
1661
+ * @maxLength 1200
1888
1662
  */
1889
- participantNotification?: ParticipantNotification;
1663
+ name?: string | null;
1664
+ }
1665
+ interface SlotLocation {
1890
1666
  /**
1891
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
1892
- * For example, whether to check availability when rescheduling a booking.
1667
+ * Business Location ID. Present if the location is a business location.
1668
+ * @format GUID
1893
1669
  */
1894
- flowControlSettings?: RescheduleBookingFlowControlSettings;
1670
+ id?: string | null;
1671
+ /** Location name. */
1672
+ name?: string | null;
1673
+ /** A string containing the full address of this location. */
1674
+ formattedAddress?: string | null;
1675
+ /** Location type. */
1676
+ locationType?: LocationLocationTypeWithLiterals;
1677
+ }
1678
+ interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
1895
1679
  /**
1896
- * List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) added to the booking.
1897
- * The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`, when rescheduling while specifying a new list of add-ons. Otherwise, the call fails.
1680
+ * Total number of participants. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
1681
+ * Specify when all participants book the same variant.
1682
+ */
1683
+ totalParticipants?: number;
1684
+ /**
1685
+ * Information about the service choices to book. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
1686
+ * Specify when not all participants book the same variant.
1687
+ */
1688
+ participantsChoices?: ParticipantChoices;
1689
+ /**
1690
+ * ID of the booking to reschedule.
1691
+ * @format GUID
1692
+ */
1693
+ bookingId?: string | null;
1694
+ /** Information about the new slot. */
1695
+ slot?: V2Slot;
1696
+ /**
1697
+ * Revision number, which increments by 1 each time the booking is updated.
1698
+ * To prevent conflicting changes, the current revision must be specified when managing the booking.
1699
+ */
1700
+ revision?: string | null;
1701
+ /**
1702
+ * List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
1703
+ * You can only specify add-ons if both of these conditions are met:
1704
+ * - The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`.
1705
+ * - You must have `BOOKINGS.MANAGE_ADDONS` permissions and specify `flowControlSettings.allowAddOnChanges` as `true`.
1898
1706
  * @maxSize 21
1899
1707
  */
1900
1708
  bookedAddOns?: BookedAddOn[];
1901
1709
  }
1902
1710
  /** @oneof */
1903
- interface RescheduleBookingRequestParticipantsInfoOneOf {
1711
+ interface RescheduleBookingInfoParticipantsInfoOneOf {
1904
1712
  /**
1905
- * Total number of participants. Specify when all participants have booked the
1906
- * same service variant.
1713
+ * Total number of participants. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
1714
+ * Specify when all participants book the same variant.
1907
1715
  */
1908
1716
  totalParticipants?: number;
1909
1717
  /**
1910
- * Information about the service choices to book. Specify when not all
1911
- * participants have booked the same service variant.
1718
+ * Information about the service choices to book. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
1719
+ * Specify when not all participants book the same variant.
1912
1720
  */
1913
1721
  participantsChoices?: ParticipantChoices;
1914
1722
  }
@@ -1944,9 +1752,9 @@ interface RescheduleBookingFlowControlSettings {
1944
1752
  */
1945
1753
  allowAddOnChanges?: boolean;
1946
1754
  }
1947
- interface RescheduleBookingResponse {
1948
- /** Rescheduled booking. */
1949
- booking?: Booking;
1755
+ interface RescheduleMultiServiceBookingResponse {
1756
+ /** Rescheduled multi-service booking. */
1757
+ multiServiceBooking?: MultiServiceBooking;
1950
1758
  }
1951
1759
  interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoOneOf {
1952
1760
  /**
@@ -2067,245 +1875,208 @@ declare enum IdentityType {
2067
1875
  }
2068
1876
  /** @enumType */
2069
1877
  type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2070
- interface BulkRescheduleBookingRequest {
1878
+ interface GetMultiServiceBookingAvailabilityRequest {
2071
1879
  /**
2072
- * Reschedule multiple bookings to multiple slots.
2073
- * @minSize 1
1880
+ * ID of the multi-service booking to retrieve.
1881
+ * @format GUID
2074
1882
  */
2075
- slotsBookings?: SlotBookings[];
1883
+ multiServiceBookingId: string | null;
1884
+ }
1885
+ interface GetMultiServiceBookingAvailabilityResponse {
1886
+ /** Whether all contained single-service bookings are bookable. */
1887
+ bookable?: boolean;
1888
+ /** Total number of spots. */
1889
+ totalCapacity?: number | null;
1890
+ /** Number of open spots. */
1891
+ remainingCapacity?: number | null;
1892
+ /** Indicators for policy violations of the multi-service booking. */
1893
+ policyViolations?: BookingPolicyViolations;
1894
+ /** Multi-service booking policy settings. */
1895
+ policySettings?: BookingPolicySettings;
1896
+ /** Details of the multi-service booking. */
1897
+ multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo[];
1898
+ }
1899
+ interface BookingPolicyViolations {
1900
+ /** Booking policy violation: Too early to book this slot. */
1901
+ tooEarlyToBook?: boolean | null;
1902
+ /** Booking policy violation: Too late to book this slot. */
1903
+ tooLateToBook?: boolean | null;
1904
+ /** Booking policy violation: Online booking is disabled for this slot. */
1905
+ bookOnlineDisabled?: boolean | null;
1906
+ }
1907
+ interface BookingPolicySettings {
1908
+ /** Booking policy settings for a given slot or schedule. */
1909
+ maxParticipantsPerBooking?: number | null;
1910
+ }
1911
+ interface GetMultiServiceBookingAvailabilityResponseBookingInfo {
2076
1912
  /**
2077
- * Information about whether to notify the customer about the rescheduling and
2078
- * the message to send.
1913
+ * Booking ID.
1914
+ * @format GUID
2079
1915
  */
2080
- participantNotification?: ParticipantNotification;
1916
+ bookingId?: string | null;
2081
1917
  }
2082
- interface BulkRescheduleBookingRequestBooking {
1918
+ interface CancelMultiServiceBookingRequest {
2083
1919
  /**
2084
- * ID of the booking to reschedule.
1920
+ * ID of the multi-service booking to cancel.
2085
1921
  * @format GUID
2086
1922
  */
2087
- id?: string;
1923
+ multiServiceBookingId: string | null;
1924
+ /** Information about whether to notify the customer and the message to send. */
1925
+ participantNotification?: ParticipantNotification;
2088
1926
  /**
2089
- * Revision number, which increments by 1 each time the booking is rescheduled.
2090
- * To prevent conflicting changes,
2091
- * the current revision must be specified when rescheduling the booking.
1927
+ * Information about whether specific procedures of the standard Wix Bookings cancellation flow are changed.
1928
+ * For example, whether the customer can cancel the booking even though the service's cancellation policy doesn't allow it or whether to issue a refund upon cancellation.
2092
1929
  */
2093
- revision?: string | null;
1930
+ flowControlSettings?: CancelBookingFlowControlSettings;
1931
+ /** Whether to return the canceled single-service bookings. */
1932
+ returnFullEntity?: boolean;
2094
1933
  }
2095
- /** Bookings to be rescheduled to the given slot. */
2096
- interface SlotBookings {
1934
+ interface CancelBookingFlowControlSettings {
2097
1935
  /**
2098
- * The bookings details.
2099
- * @minSize 1
1936
+ * Whether the cancellation policy applies when canceling the booking.
1937
+ *
1938
+ * When passing `false`, you can only cancel a booking if the cancellation policy allows it.
1939
+ * Default: `false`.
2100
1940
  */
2101
- bookings?: BulkRescheduleBookingRequestBooking[];
1941
+ ignoreCancellationPolicy?: boolean | null;
2102
1942
  /**
2103
- * The slot to which the bookings were rescheduled.
2104
- * These bookings are automatically assigned to the session, if given. Otherwise, a new session is created.
1943
+ * Whether to issue a refund when canceling the booking.
1944
+ *
1945
+ * The refund will be issued only if the booking is refundable.
1946
+ * Currently, a booking is considered refundable when it was paid by membership.
1947
+ * If you specify `true`, the booking flow control settings is set to include a refund.
1948
+ * If `false` is specified or the field remains empty,
1949
+ * the booking flow control settings are set without refund.
1950
+ *
1951
+ * Default: `false`.
2105
1952
  */
2106
- slot?: BookedSlot;
2107
- }
2108
- interface BulkRescheduleBookingResponse {
1953
+ withRefund?: boolean | null;
2109
1954
  /**
2110
- * Information about the booking that was rescheduled.
2111
- * Including its ID, index in the bulk request and whether it was
2112
- * successfully rescheduled.
1955
+ * Whether to waive the cancellation fee when canceling the booking.
1956
+ *
1957
+ * - `true`: The customer doesn't have to pay a cancellation fee.
1958
+ * - `false`: The customer must pay the cancellation fee that's defined in the service's [policy](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction).
1959
+ *
1960
+ * Default: `false`.
2113
1961
  */
2114
- results?: ItemMetadata[];
2115
- /** Total number of successes and failures for Bulk Reschedule Bookings. */
2116
- bulkActionMetadata?: BulkActionMetadata;
1962
+ waiveCancellationFee?: boolean | null;
2117
1963
  }
2118
- /** Update the booked schedule of multiple bookings to the given schedule. */
2119
- interface BulkUpdateBookedScheduleRequest {
1964
+ interface CancelMultiServiceBookingResponse {
1965
+ /** Canceled multi-service booking. */
1966
+ multiServiceBooking?: MultiServiceBooking;
1967
+ }
1968
+ interface BookingCanceled {
1969
+ /** The canceled booking object. */
1970
+ booking?: Booking;
1971
+ /** Information about whether to notify the customer about the cancellation and the message to send. */
1972
+ participantNotification?: ParticipantNotification;
2120
1973
  /**
2121
- * The bookings whose booked schedule is to be updated to the given schedule.
2122
- * @minSize 1
1974
+ * Information about whether specific procedures of the standard Wix Bookings
1975
+ * cancellation flow are changed. For example, whether you can cancel
1976
+ * a booking even though the cancellation policy doesn't allow it or whether
1977
+ * to issue a refund.
2123
1978
  */
2124
- bookings?: BookingDetails[];
2125
- /** ID of the schedule to update. */
2126
- scheduleId?: string;
1979
+ flowControlSettings?: CancelBookingFlowControlSettings;
1980
+ /** ID of the cancellation initiator. */
1981
+ initiatedBy?: IdentificationData;
1982
+ /** The previous status of the booking. */
1983
+ previousStatus?: BookingStatusWithLiterals;
1984
+ }
1985
+ interface MarkMultiServiceBookingAsPendingRequest {
2127
1986
  /**
2128
- * Information about whether to notify the customer about the rescheduling and
2129
- * the message to send.
1987
+ * ID of the multi-service booking to mark as `PENDING`.
1988
+ * @format GUID
2130
1989
  */
1990
+ multiServiceBookingId: string | null;
1991
+ /** Information about the single-service bookings to mark as `PENDING`. */
1992
+ markAsPendingBookingsInfo?: BookingInfo[];
1993
+ /** Information about whether to notify the customer and the message to send. */
2131
1994
  participantNotification?: ParticipantNotification;
1995
+ /**
1996
+ * Whether to send an SMS reminder to the customer 24 hours before the session starts.
1997
+ * Wix Bookings takes the phone number from `contactDetails.phone`.
1998
+ *
1999
+ * Default: `true`
2000
+ */
2001
+ sendSmsReminder?: boolean | null;
2002
+ /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2003
+ doubleBooked?: boolean | null;
2004
+ /**
2005
+ * Whether to return the single-service bookings that were marked as `PENDING`.
2006
+ *
2007
+ * Default: `false`
2008
+ */
2009
+ returnFullEntity?: boolean;
2010
+ /**
2011
+ * Information about whether specific procedures of the standard Wix Bookings creation flow are changed.
2012
+ * For example, whether Wix Bookings checks availability before updating the booking.
2013
+ */
2014
+ flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
2132
2015
  }
2133
- interface BookingDetails {
2016
+ interface BookingInfo {
2134
2017
  /**
2135
- * ID of the bookings to be updated.
2018
+ * ID of the single-service booking.
2136
2019
  * @format GUID
2137
2020
  */
2138
- id?: string;
2021
+ bookingId?: string | null;
2022
+ /**
2023
+ * Revision number, which increments by 1 each time the booking is updated.
2024
+ * To prevent conflicting changes, the current revision must be specified when managing the booking.
2025
+ */
2139
2026
  revision?: string | null;
2027
+ /** Payment status to set for the single-service booking. */
2028
+ paymentStatus?: PaymentStatusWithLiterals;
2140
2029
  }
2141
- interface BulkUpdateBookedScheduleResponse {
2030
+ interface MarkBookingAsPendingFlowControlSettings {
2142
2031
  /**
2143
- * Information about the schedule that was updated.
2144
- * Including its ID, index in the bulk request and whether it was
2145
- * succesfully updated.
2146
- */
2147
- results?: ItemMetadata[];
2148
- /** Total number of successes and failures for Bulk Updated Booked Schedules. */
2149
- bulkActionMetadata?: BulkActionMetadata;
2150
- }
2151
- interface QueryBookingsRequest {
2152
- /** Information about filters, paging, and sorting. */
2153
- query?: QueryV2;
2154
- }
2155
- interface QueryV2 extends QueryV2PagingMethodOneOf {
2156
- /** Paging options to limit and skip the number of items. */
2157
- paging?: Paging;
2158
- /**
2159
- * Cursor token pointing to a page of results. In the first request,
2160
- * specify `cursorPaging.limit`. For following requests, specify the
2161
- * retrieved `cursorPaging.cursor` token and not `query.filter` or
2162
- * `query.sort`.
2163
- */
2164
- cursorPaging?: CursorPaging;
2165
- /**
2166
- * Filter object in the following format:
2167
- * `"filter" : {
2168
- * "fieldName1": "value1",
2169
- * "fieldName2":{"$operator":"value2"}
2170
- * }`
2171
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2172
- */
2173
- filter?: Record<string, any> | null;
2174
- /**
2175
- * Sort object in the following format:
2176
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2177
- */
2178
- sort?: Sorting[];
2179
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
2180
- fields?: string[];
2181
- /** 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. */
2182
- fieldsets?: string[];
2183
- }
2184
- /** @oneof */
2185
- interface QueryV2PagingMethodOneOf {
2186
- /** Paging options to limit and skip the number of items. */
2187
- paging?: Paging;
2188
- /**
2189
- * Cursor token pointing to a page of results. In the first request,
2190
- * specify `cursorPaging.limit`. For following requests, specify the
2191
- * retrieved `cursorPaging.cursor` token and not `query.filter` or
2192
- * `query.sort`.
2193
- */
2194
- cursorPaging?: CursorPaging;
2195
- }
2196
- interface Sorting {
2197
- /**
2198
- * Name of the field to sort by.
2199
- * @maxLength 512
2200
- */
2201
- fieldName?: string;
2202
- /** Sort order. */
2203
- order?: SortOrderWithLiterals;
2204
- }
2205
- declare enum SortOrder {
2206
- ASC = "ASC",
2207
- DESC = "DESC"
2208
- }
2209
- /** @enumType */
2210
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
2211
- interface Paging {
2212
- /** Number of items to load. */
2213
- limit?: number | null;
2214
- /** Number of items to skip in the current sort order. */
2215
- offset?: number | null;
2216
- }
2217
- interface CursorPaging {
2218
- /**
2219
- * Maximum number of items to return in the results.
2220
- * @max 100
2221
- */
2222
- limit?: number | null;
2223
- /**
2224
- * Pointer to the next or previous page in the list of results.
2032
+ * Whether to check for double booking conflicts when updating the status.
2225
2033
  *
2226
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2227
- * Not relevant for the first request.
2228
- * @maxLength 16000
2229
- */
2230
- cursor?: string | null;
2231
- }
2232
- interface QueryBookingsResponse {
2233
- /** Retrieved bookings. */
2234
- bookings?: Booking[];
2235
- /** Paging metadata. */
2236
- pagingMetadata?: PagingMetadataV2;
2237
- }
2238
- interface PagingMetadataV2 {
2239
- /** Number of items returned in the response. */
2240
- count?: number | null;
2241
- /** Offset that was requested. */
2242
- offset?: number | null;
2243
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2244
- total?: number | null;
2245
- /** Flag that indicates the server failed to calculate the `total` field. */
2246
- tooManyToCount?: boolean | null;
2247
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2248
- cursors?: Cursors;
2249
- }
2250
- interface Cursors {
2251
- /**
2252
- * Cursor string pointing to the next page in the list of results.
2253
- * @maxLength 16000
2254
- */
2255
- next?: string | null;
2256
- /**
2257
- * Cursor pointing to the previous page in the list of results.
2258
- * @maxLength 16000
2259
- */
2260
- prev?: string | null;
2261
- }
2262
- interface ConfirmRequest {
2263
- /**
2264
- * ID of the booking to confirm.
2265
- * @format GUID
2034
+ * - `true`: Checks for availability conflicts and sets `doubleBooked` to `true`
2035
+ * if conflicts exist.
2036
+ * The booking is still marked as `PENDING` for the business to resolve manually.
2037
+ * - `false`: No availability checking is performed.
2038
+ *
2039
+ * Default: `false`
2266
2040
  */
2267
- id?: string;
2041
+ checkAvailabilityValidation?: boolean;
2268
2042
  /**
2269
- * Information about whether to notify the customer about the confirmation and
2270
- * the message to send.
2043
+ * Whether to allow marking any booking as pending, even if the service doesn't require manual approval.
2044
+ *
2045
+ * - `true`: Bypasses the validation that checks if the service has `service.onlineBooking.requireManualApproval` set to `true`.
2046
+ * - `false`: Only services that require manual approval can have their bookings marked as pending.
2047
+ *
2048
+ * Default: `false`.
2271
2049
  */
2272
- participantNotification?: ParticipantNotification;
2050
+ skipPendingApprovalServiceValidation?: boolean;
2273
2051
  }
2274
- interface ConfirmResponse {
2275
- /** Confirmed booking. */
2276
- booking?: Booking;
2277
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2278
- doubleBooked?: boolean | null;
2052
+ interface MarkMultiServiceBookingAsPendingResponse {
2053
+ /** Updated multi-service booking. */
2054
+ multiServiceBooking?: MultiServiceBooking;
2279
2055
  }
2280
- interface ConfirmBookingRequest {
2056
+ interface ConfirmMultiServiceBookingRequest {
2281
2057
  /**
2282
- * ID of the booking to confirm.
2058
+ * ID of the multi-service booking to confirm its related bookings.
2283
2059
  * @format GUID
2284
2060
  */
2285
- bookingId: string;
2286
- /**
2287
- * Revision number, which increments by 1 each time the booking is updated.
2288
- * To prevent conflicting changes, the current revision must be passed when
2289
- * updating the booking.
2290
- */
2291
- revision: string | null;
2292
- /**
2293
- * Information about whether to notify the customer about the confirmation and
2294
- * the message to send.
2295
- */
2061
+ multiServiceBookingId: string | null;
2062
+ /** Information about the single-service bookings to confirm. */
2063
+ confirmBookingsInfo?: BookingInfo[];
2064
+ /** Information about whether to notify the customer and the message to send. */
2296
2065
  participantNotification?: ParticipantNotification;
2297
2066
  /**
2298
- * Whether to send an SMS reminder to the customer 24 hours before the
2299
- * session starts. The phone number is taken from `contactDetails.phone`.
2067
+ * Whether to send an SMS reminder to the customer 24 hours before the session starts.
2068
+ * Wix Bookings takes the phone number from `contactDetails.phone`.
2069
+ *
2070
+ * Default: `true`
2300
2071
  */
2301
2072
  sendSmsReminder?: boolean | null;
2302
- /** Payment status to set for the booking. */
2303
- paymentStatus?: PaymentStatusWithLiterals;
2304
2073
  /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2305
2074
  doubleBooked?: boolean | null;
2075
+ /** Whether to return the confirmed single-service bookings. */
2076
+ returnFullEntity?: boolean;
2306
2077
  /**
2307
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
2308
- * For example, whether to check availability when confirming a booking.
2078
+ * Information about whether specific procedures of the standard Wix Bookings confirmation flow are changed.
2079
+ * For example, whether Wix Bookings checks availability before confirming the booking.
2309
2080
  */
2310
2081
  flowControlSettings?: ConfirmBookingFlowControlSettings;
2311
2082
  }
@@ -2318,9 +2089,9 @@ interface ConfirmBookingFlowControlSettings {
2318
2089
  */
2319
2090
  checkAvailabilityValidation?: boolean;
2320
2091
  }
2321
- interface ConfirmBookingResponse {
2322
- /** Confirmed booking. */
2323
- booking?: Booking;
2092
+ interface ConfirmMultiServiceBookingResponse {
2093
+ /** Confirmed multi-service booking. */
2094
+ multiServiceBooking?: MultiServiceBooking;
2324
2095
  }
2325
2096
  interface BookingConfirmed {
2326
2097
  /** The confirmed booking object. */
@@ -2341,108 +2112,43 @@ interface BookingConfirmed {
2341
2112
  /** The previous payment status of the booking. */
2342
2113
  previousPaymentStatus?: PaymentStatusWithLiterals;
2343
2114
  }
2344
- interface ConsistentQueryBookingsRequest {
2345
- /** Information about filters, paging, and sorting. */
2346
- query?: QueryV2;
2347
- }
2348
- interface ConsistentQueryBookingsResponse {
2349
- /** Retrieved bookings. */
2350
- bookings?: Booking[];
2351
- /** Paging metadata. */
2352
- pagingMetadata?: PagingMetadataV2;
2353
- }
2354
- interface SetBookingSessionIdRequest {
2355
- /**
2356
- * ID of the booking to set `sessionId` for.
2357
- * @format GUID
2358
- */
2359
- id?: string;
2360
- /** ID of the session to set on the booking. */
2361
- sessionId?: string;
2362
- }
2363
- interface SetBookingSessionIdResponse {
2364
- /** Updated booking. */
2365
- booking?: Booking;
2366
- }
2367
- interface SetBookingSubmissionIdRequest {
2115
+ interface DeclineMultiServiceBookingRequest {
2368
2116
  /**
2369
- * ID of the booking to set `submissionId` for.
2117
+ * ID of the multi-service booking to decline.
2370
2118
  * @format GUID
2371
2119
  */
2372
- bookingId: string;
2120
+ multiServiceBookingId: string | null;
2121
+ /** Information about the single-service bookings to decline. */
2122
+ declineBookingsInfo?: BookingInfo[];
2123
+ /** Information about whether to notify the customer and the message to send. */
2124
+ participantNotification?: ParticipantNotification;
2125
+ /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2126
+ doubleBooked?: boolean | null;
2127
+ /** Whether to return the declined single-service bookings. */
2128
+ returnFullEntity?: boolean;
2373
2129
  /**
2374
- * ID of the form submission to set on the booking.
2375
- * @format GUID
2130
+ * Information about whether specific procedures of the standard Wix Bookings declining flow are changed.
2131
+ * For example, whether to issue a refund upon cancellation.
2376
2132
  */
2377
- submissionId: string;
2378
- }
2379
- interface SetBookingSubmissionIdResponse {
2380
- /** Updated booking. */
2381
- booking?: Booking;
2382
- }
2383
- interface UpdateExtendedFieldsRequest {
2384
- /** ID of the entity to update. */
2385
- id: string;
2386
- /** Identifier for the app whose extended fields are being updated. */
2387
- namespace: string;
2388
- /** 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. */
2389
- namespaceData: Record<string, any> | null;
2133
+ flowControlSettings?: DeclineBookingFlowControlSettings;
2390
2134
  }
2391
- interface UpdateExtendedFieldsResponse {
2135
+ interface DeclineBookingFlowControlSettings {
2392
2136
  /**
2393
- * Updated namespace.
2394
- * @maxLength 164
2137
+ * Whether to issue a refund when declining the booking.
2138
+ *
2139
+ * The refund will be issued only if the booking is refundable.
2140
+ * Currently, a booking is considered refundable when it was paid by membership.
2141
+ * If specifying `true`, the booking flow control settings will be set with a refund.
2142
+ * If you specify `false` or an empty field,
2143
+ * the booking flow control settings are set without refund.
2144
+ *
2145
+ * Default: `false`.
2395
2146
  */
2396
- namespace?: string;
2397
- /** Updated data. */
2398
- namespaceData?: Record<string, any> | null;
2147
+ withRefund?: boolean | null;
2399
2148
  }
2400
- interface DeclineBookingRequest {
2401
- /**
2402
- * ID of the booking to decline.
2403
- * @format GUID
2404
- */
2405
- bookingId: string;
2406
- /**
2407
- * Revision number, which increments by 1 each time the booking is updated.
2408
- *
2409
- * To prevent conflicting changes, the current revision must be specified when
2410
- * declining the booking.
2411
- * @min 1
2412
- */
2413
- revision: string | null;
2414
- /**
2415
- * Information about whether to notify the customer and
2416
- * the message to send.
2417
- */
2418
- participantNotification?: ParticipantNotification;
2419
- /** Payment status to set for the booking. */
2420
- paymentStatus?: PaymentStatusWithLiterals;
2421
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2422
- doubleBooked?: boolean | null;
2423
- /**
2424
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
2425
- * For example, whether to refund a declined booking.
2426
- */
2427
- flowControlSettings?: DeclineBookingFlowControlSettings;
2428
- }
2429
- interface DeclineBookingFlowControlSettings {
2430
- /**
2431
- * Whether to issue a refund when declining the booking.
2432
- *
2433
- * The refund will be issued only if the booking is refundable.
2434
- * Currently, a booking is considered refundable when it was paid by membership.
2435
- * If specifying `true`, the booking flow control settings will be set with a refund.
2436
- * If you specify `false` or an empty field,
2437
- * the booking flow control settings are set without refund.
2438
- *
2439
- * Default: `false`.
2440
- */
2441
- withRefund?: boolean | null;
2442
- }
2443
- interface DeclineBookingResponse {
2444
- /** Declined booking. */
2445
- booking?: Booking;
2149
+ interface DeclineMultiServiceBookingResponse {
2150
+ /** Declined multi-service booking. */
2151
+ multiServiceBooking?: MultiServiceBooking;
2446
2152
  }
2447
2153
  interface BookingDeclined {
2448
2154
  /** The declined booking object. */
@@ -2463,269 +2169,500 @@ interface BookingDeclined {
2463
2169
  */
2464
2170
  flowControlSettings?: DeclineBookingFlowControlSettings;
2465
2171
  }
2466
- interface CancelBookingRequest {
2172
+ interface BulkGetMultiServiceBookingAllowedActionsRequest {
2467
2173
  /**
2468
- * ID of the booking to cancel.
2174
+ * IDs of the multi-service bookings to retrieve allowed actions for.
2469
2175
  * @format GUID
2176
+ * @minSize 1
2177
+ * @maxSize 50
2470
2178
  */
2471
- bookingId: string;
2472
- /**
2473
- * Information about whether to notify the customer about the cancellation and
2474
- * the message to send.
2475
- */
2476
- participantNotification?: ParticipantNotification;
2477
- /**
2478
- * Whether to ignore specific standard procedures of the Wix Bookings flow.
2479
- * For example, whether to allow a cancellation even though the service's
2480
- * policy doesn't allow it.
2481
- */
2482
- flowControlSettings?: CancelBookingFlowControlSettings;
2483
- /**
2484
- * Revision number, which increments by 1 each time the booking is updated.
2485
- *
2486
- * To prevent conflicting changes, the current revision must be specified when
2487
- * managing the booking.
2488
- */
2489
- revision: string | null;
2179
+ multiServiceBookingIds: string[] | null;
2490
2180
  }
2491
- interface CancelBookingFlowControlSettings {
2492
- /**
2493
- * Whether the cancellation policy applies when canceling the booking.
2494
- *
2495
- * When passing `false`, you can only cancel a booking if the cancellation policy allows it.
2496
- * Default: `false`.
2497
- */
2498
- ignoreCancellationPolicy?: boolean | null;
2181
+ interface BulkGetMultiServiceBookingAllowedActionsResponse {
2499
2182
  /**
2500
- * Whether to issue a refund when canceling the booking.
2501
- *
2502
- * The refund will be issued only if the booking is refundable.
2503
- * Currently, a booking is considered refundable when it was paid by membership.
2504
- * If you specify `true`, the booking flow control settings is set to include a refund.
2505
- * If `false` is specified or the field remains empty,
2506
- * the booking flow control settings are set without refund.
2507
- *
2508
- * Default: `false`.
2183
+ * Information about the multi-service bookings that were retrieved.
2184
+ * Includes their ID, index in the bulk request and whether they were successfully processed.
2509
2185
  */
2510
- withRefund?: boolean | null;
2186
+ results?: BulkCalculateAllowedActionsResult[];
2187
+ /** Total number of successes and failures for Bulk Get Multi Service Booking Allowed Actions. */
2188
+ bulkActionMetadata?: BulkActionMetadata;
2511
2189
  }
2512
- interface CancelBookingResponse {
2513
- /** Canceled booking. */
2514
- booking?: Booking;
2190
+ interface BulkCalculateAllowedActionsResult {
2191
+ /** Metadata for the booking. Including ID, index in the provided sequence, success status, and error. */
2192
+ itemMetadata?: ItemMetadata;
2193
+ /** Booking entity. */
2194
+ item?: AllowedActions;
2515
2195
  }
2516
- interface BookingCanceled {
2517
- /** The canceled booking object. */
2518
- booking?: Booking;
2519
- /** Information about whether to notify the customer about the cancellation and the message to send. */
2520
- participantNotification?: ParticipantNotification;
2196
+ /** Possible actions allowed for the booking. */
2197
+ interface AllowedActions {
2198
+ /** Whether canceling the booking is allowed. */
2199
+ cancel?: boolean;
2200
+ /** Whether rescheduling the booking is allowed. */
2201
+ reschedule?: boolean;
2202
+ }
2203
+ interface GetMultiServiceBookingRequest {
2521
2204
  /**
2522
- * Information about whether specific procedures of the standard Wix Bookings
2523
- * cancellation flow are changed. For example, whether you can cancel
2524
- * a booking even though the cancellation policy doesn't allow it or whether
2525
- * to issue a refund.
2205
+ * ID of the multi-service booking.
2206
+ * @format GUID
2526
2207
  */
2527
- flowControlSettings?: CancelBookingFlowControlSettings;
2528
- /** ID of the cancellation initiator. */
2529
- initiatedBy?: IdentificationData;
2530
- /** The previous status of the booking. */
2531
- previousStatus?: BookingStatusWithLiterals;
2208
+ multiServiceBookingId: string | null;
2532
2209
  }
2533
- interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2210
+ interface GetMultiServiceBookingResponse {
2211
+ /** Retrieved multi-service booking. */
2212
+ multiServiceBooking?: MultiServiceBooking;
2213
+ /** Details about how many single-service bookings belong to the multi-service booking. */
2214
+ metadata?: MultiServiceBookingMetadata;
2215
+ }
2216
+ interface MultiServiceBookingMetadata {
2534
2217
  /**
2535
- * Total number of participants. Specify when all participants have booked the
2536
- * same service variant.
2218
+ * Total number of `CONFIRMED` and `PENDING` single-service bookings belonging to the multi-service booking.
2219
+ * The total includes the number of single-service bookings which couldn't be retrieved due to lack of permissions.
2537
2220
  */
2538
- totalParticipants?: number;
2221
+ totalNumberOfScheduledBookings?: number | null;
2222
+ }
2223
+ interface AddBookingsToMultiServiceBookingRequest {
2539
2224
  /**
2540
- * Information about the service choices the participants have booked. Specify
2541
- * when not all participants have booked the same service variant.
2225
+ * ID of the multi-service booking.
2226
+ * @format GUID
2542
2227
  */
2543
- participantsChoices?: ParticipantChoices;
2228
+ multiServiceBookingId: string | null;
2544
2229
  /**
2545
- * ID of the booking to update the number of participants for.
2546
- * @format GUID
2230
+ * List of single-service booking IDs and their revision.
2231
+ * @maxSize 8
2547
2232
  */
2548
- bookingId: string;
2233
+ bookings: BookingIdAndRevision[];
2549
2234
  /**
2550
- * Revision number, which increments by 1 each time the booking is updated.
2235
+ * Whether to return the single-service bookings that were added to the multi-service booking.
2551
2236
  *
2552
- * To prevent conflicting changes, the current revision must be specified
2553
- * when updating the booking.
2237
+ * Default: `false`
2554
2238
  */
2555
- revision: string | null;
2239
+ returnFullEntity?: boolean;
2556
2240
  }
2557
- /** @oneof */
2558
- interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2241
+ interface BookingIdAndRevision {
2559
2242
  /**
2560
- * Total number of participants. Specify when all participants have booked the
2561
- * same service variant.
2243
+ * ID of the single-service booking.
2244
+ * @format GUID
2562
2245
  */
2563
- totalParticipants?: number;
2246
+ bookingId?: string | null;
2564
2247
  /**
2565
- * Information about the service choices the participants have booked. Specify
2566
- * when not all participants have booked the same service variant.
2248
+ * Revision number, which increments by 1 each time the booking is updated.
2249
+ * To prevent conflicting changes, the current revision must be specified when managing the booking.
2567
2250
  */
2568
- participantsChoices?: ParticipantChoices;
2251
+ revision?: string | null;
2569
2252
  }
2570
- interface UpdateNumberOfParticipantsResponse {
2571
- /** Updated booking. */
2572
- booking?: Booking;
2253
+ interface AddBookingsToMultiServiceBookingResponse {
2254
+ /** Single-service bookings that were added to the multi-service booking. */
2255
+ bookings?: BookingResult[];
2573
2256
  }
2574
- interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2257
+ interface RemoveBookingsFromMultiServiceBookingRequest {
2575
2258
  /**
2576
- * The previous total number of participants. Available only when the booking includes
2577
- * a single service variant.
2259
+ * ID of the multi-service booking.
2260
+ * @format GUID
2578
2261
  */
2579
- previousTotalParticipants?: number;
2262
+ multiServiceBookingId: string | null;
2580
2263
  /**
2581
- * Information about the previous booked service choices and participants.
2582
- * Available only when the booking includes multiple service variants.
2264
+ * List of single-service booking IDs and their revision.
2265
+ * @maxSize 8
2583
2266
  */
2584
- previousParticipantsChoices?: ParticipantChoices;
2585
- /** The updated booking object. */
2586
- booking?: Booking;
2587
- /** ID of the participant number update initiator. */
2588
- initiatedBy?: IdentificationData;
2267
+ bookings?: BookingIdAndRevision[];
2268
+ /**
2269
+ * Whether to return the single-service bookings.
2270
+ *
2271
+ * Default: `false`
2272
+ */
2273
+ returnFullEntity?: boolean;
2589
2274
  }
2590
- /** @oneof */
2591
- interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2275
+ interface RemoveBookingsFromMultiServiceBookingResponse {
2276
+ /** Single-service bookings that were removed from the multi-service booking. */
2277
+ bookings?: BookingResult[];
2278
+ }
2279
+ interface BookingChanged {
2280
+ /** The booking before the changes. */
2281
+ previousBooking?: Booking;
2282
+ /** The booking after the changes. */
2283
+ currentBooking?: Booking;
2284
+ }
2285
+ interface CreateBookingRequest {
2286
+ /** The booking to create. */
2287
+ booking: Booking;
2592
2288
  /**
2593
- * The previous total number of participants. Available only when the booking includes
2594
- * a single service variant.
2289
+ * Information about whether to notify the customer and
2290
+ * the message to send.
2595
2291
  */
2596
- previousTotalParticipants?: number;
2292
+ participantNotification?: ParticipantNotification;
2597
2293
  /**
2598
- * Information about the previous booked service choices and participants.
2599
- * Available only when the booking includes multiple service variants.
2294
+ * Whether to send an SMS reminder to the customer 24 hours before the
2295
+ * session starts. The phone number is taken from `contactDetails.phone`.
2296
+ * Default: `true`.
2600
2297
  */
2601
- previousParticipantsChoices?: ParticipantChoices;
2602
- }
2603
- interface BulkCalculateAllowedActionsRequest {
2298
+ sendSmsReminder?: boolean | null;
2604
2299
  /**
2605
- * The booking IDs for which we want to calculate the allowed actions.
2606
- * @minSize 1
2300
+ * Whether to ignore specific standard procedures of the Wix Bookings flow.
2301
+ * For example, whether to check availability when creating a booking.
2607
2302
  */
2608
- bookingIds?: string[] | null;
2303
+ flowControlSettings?: CreateBookingFlowControlSettings;
2609
2304
  }
2610
- interface BulkCalculateAllowedActionsResponse {
2611
- results?: BulkCalculateAllowedActionsResult[];
2612
- /** Total number of successes and failures for Bulk Calculate Allowed Actions. */
2613
- bulkActionMetadata?: BulkActionMetadata;
2305
+ interface CreateBookingResponse {
2306
+ /** Created booking. */
2307
+ booking?: Booking;
2614
2308
  }
2615
- interface BulkCalculateAllowedActionsResult {
2616
- /** Metadata for the booking. Including ID, index in the provided sequence, success status, and error. */
2617
- itemMetadata?: ItemMetadata;
2618
- /** Booking entity. */
2619
- item?: AllowedActions;
2309
+ /**
2310
+ * The `fieldMask` should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
2311
+ * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
2312
+ */
2313
+ interface UpdateBookingRequest {
2314
+ booking?: Booking;
2620
2315
  }
2621
- /** Possible actions allowed for the booking. */
2622
- interface AllowedActions {
2623
- /** Whether canceling the booking is allowed. */
2624
- cancel?: boolean;
2625
- /** Whether rescheduling the booking is allowed. */
2626
- reschedule?: boolean;
2316
+ interface UpdateBookingResponse {
2317
+ booking?: Booking;
2627
2318
  }
2628
- interface GetSlotAvailabilityRequest {
2629
- /** The slot for which the availability is checked. */
2630
- slot?: V2Slot;
2631
- /** The timezone for which availability is to be calculated. */
2632
- timezone?: string | null;
2319
+ interface LegacyCreateBookingRequest {
2320
+ booking?: Booking;
2633
2321
  }
2634
- interface GetSlotAvailabilityResponse {
2635
- availability?: SlotAvailability;
2636
- bookingPolicySettings?: BookingPolicySettings;
2322
+ interface LegacyCreateBookingResponse {
2323
+ booking?: Booking;
2637
2324
  }
2638
- interface SlotAvailability {
2639
- /** Identifier for the underlying session when the session is a single session or generated from a recurring session. Required. */
2640
- slot?: V2Slot;
2641
- /** Whether this available slot is bookable. */
2642
- bookable?: boolean;
2325
+ /**
2326
+ * The `fieldMask` for each booking should not include both the `numberOfParticipants` and `participantsInfo` paths. Including both results
2327
+ * in an error. `participantsInfo` is preferred over `numberOfParticipants`.
2328
+ */
2329
+ interface BulkUpdateBookingRequest {
2330
+ bookings?: MaskedBooking[];
2331
+ }
2332
+ interface MaskedBooking {
2333
+ booking?: Booking;
2334
+ mask?: string[];
2335
+ }
2336
+ interface BulkUpdateBookingResponse {
2643
2337
  /**
2644
- * Total number of spots for this availability.
2645
- * For example, for a class of 10 spots with 3 spots booked, `totalSpots` is 10 and `openSpots` is 7.
2338
+ * Information about the booking that was updated.
2339
+ * Including its ID, index in the bulk request and whether it was
2340
+ * successfully updated.
2646
2341
  */
2647
- totalSpots?: number | null;
2342
+ results?: ItemMetadata[];
2343
+ /** Total number of successes and failures for Bulk Update Bookings. */
2344
+ bulkActionMetadata?: BulkActionMetadata;
2345
+ }
2346
+ interface BulkCreateBookingRequest {
2648
2347
  /**
2649
- * Number of open spots for this availability.
2650
- * For appointments, if there are existing bookings with overlapping time, service & resource, `openSpots` is 0. Otherwise, `openSpots` is 1.
2348
+ * Bookings to create.
2349
+ *
2350
+ * Max: 8 bookings
2351
+ * @minSize 1
2352
+ * @maxSize 12
2651
2353
  */
2652
- openSpots?: number | null;
2653
- /** An object describing the slot's waiting list and its occupancy. */
2654
- waitingList?: WaitingList;
2655
- /** Indicators for booking policy violations for the slot. */
2656
- bookingPolicyViolations?: BookingPolicyViolations;
2657
- /** Indicates whether this slot is locked. */
2658
- locked?: boolean | null;
2354
+ createBookingsInfo: CreateBookingInfo[];
2355
+ /** Whether to return the created bookings. */
2356
+ returnFullEntity?: boolean;
2659
2357
  }
2660
- interface WaitingList {
2358
+ interface CreateBookingInfo {
2359
+ /** Booking to create. */
2360
+ booking?: Booking;
2661
2361
  /**
2662
- * Total number of spots and open spots for this waiting list.
2663
- * 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.
2362
+ * Information about whether to notify the customer and
2363
+ * the message to send.
2664
2364
  */
2665
- totalSpots?: number | null;
2666
- openSpots?: number | null;
2667
- }
2668
- interface BookingPolicyViolations {
2669
- /** Booking policy violation: Too early to book this slot. */
2670
- tooEarlyToBook?: boolean | null;
2671
- /** Booking policy violation: Too late to book this slot. */
2672
- tooLateToBook?: boolean | null;
2673
- /** Booking policy violation: Online booking is disabled for this slot. */
2674
- bookOnlineDisabled?: boolean | null;
2365
+ participantNotification?: ParticipantNotification;
2366
+ /**
2367
+ * Whether to send an SMS reminder to the customer 24 hours before the
2368
+ * session starts. The phone number is taken from `contactDetails.phone`.
2369
+ * Default: `true`.
2370
+ */
2371
+ sendSmsReminder?: boolean | null;
2372
+ /**
2373
+ * Whether to ignore specific standard procedures of the Wix Bookings flow.
2374
+ * For example, whether to check availability when creating a booking.
2375
+ */
2376
+ flowControlSettings?: CreateBookingFlowControlSettings;
2675
2377
  }
2676
- interface BookingPolicySettings {
2677
- /** Booking policy settings for a given slot or schedule. */
2678
- maxParticipantsPerBooking?: number | null;
2378
+ interface BulkCreateBookingResponse {
2379
+ /** List of individual Bulk Create Bookings results. */
2380
+ results?: BulkBookingResult[];
2381
+ /** Total number of successes and failures for Bulk Create Bookings. */
2382
+ bulkActionMetadata?: BulkActionMetadata;
2679
2383
  }
2680
- interface AvailableResources {
2384
+ interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
2681
2385
  /**
2682
- * Resource type ID.
2683
- * @format GUID
2386
+ * Total number of participants. Specify when all participants have booked the
2387
+ * same service variant.
2684
2388
  */
2685
- resourceTypeId?: string | null;
2389
+ totalParticipants?: number;
2686
2390
  /**
2687
- * Available resources for the slot.
2688
- * `maxSize` is defined by 135 staff members + 3 resource types and 50 resources per type.
2689
- * `Availability-2` currently has no `maxSize` defined.
2391
+ * Information about the service choices to book. Specify when not all
2392
+ * participants have booked the same service variant.
2393
+ */
2394
+ participantsChoices?: ParticipantChoices;
2395
+ /**
2396
+ * ID of the booking to reschedule.
2690
2397
  * @format GUID
2691
- * @maxSize 275
2692
2398
  */
2693
- resourceIds?: string[];
2399
+ bookingId: string;
2400
+ /** New slot of the booking. */
2401
+ slot: V2Slot;
2402
+ /**
2403
+ * Revision number, which increments by 1 each time the booking is rescheduled.
2404
+ * To prevent conflicting changes, the current revision must be passed when
2405
+ * rescheduling the booking.
2406
+ */
2407
+ revision: string | null;
2408
+ /**
2409
+ * Information about whether to notify the customer about the rescheduling and
2410
+ * the message to send.
2411
+ */
2412
+ participantNotification?: ParticipantNotification;
2413
+ /**
2414
+ * Whether to ignore specific standard procedures of the Wix Bookings flow.
2415
+ * For example, whether to check availability when rescheduling a booking.
2416
+ */
2417
+ flowControlSettings?: RescheduleBookingFlowControlSettings;
2418
+ /**
2419
+ * List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) added to the booking.
2420
+ * The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`, when rescheduling while specifying a new list of add-ons. Otherwise, the call fails.
2421
+ * @maxSize 21
2422
+ */
2423
+ bookedAddOns?: BookedAddOn[];
2694
2424
  }
2695
- interface GetScheduleAvailabilityRequest {
2425
+ /** @oneof */
2426
+ interface RescheduleBookingRequestParticipantsInfoOneOf {
2696
2427
  /**
2697
- * ID of the schedule for which to check availability.
2428
+ * Total number of participants. Specify when all participants have booked the
2429
+ * same service variant.
2430
+ */
2431
+ totalParticipants?: number;
2432
+ /**
2433
+ * Information about the service choices to book. Specify when not all
2434
+ * participants have booked the same service variant.
2435
+ */
2436
+ participantsChoices?: ParticipantChoices;
2437
+ }
2438
+ interface RescheduleBookingResponse {
2439
+ /** Rescheduled booking. */
2440
+ booking?: Booking;
2441
+ }
2442
+ interface BulkRescheduleBookingRequest {
2443
+ /**
2444
+ * Reschedule multiple bookings to multiple slots.
2445
+ * @minSize 1
2446
+ */
2447
+ slotsBookings?: SlotBookings[];
2448
+ /**
2449
+ * Information about whether to notify the customer about the rescheduling and
2450
+ * the message to send.
2451
+ */
2452
+ participantNotification?: ParticipantNotification;
2453
+ }
2454
+ interface BulkRescheduleBookingRequestBooking {
2455
+ /**
2456
+ * ID of the booking to reschedule.
2698
2457
  * @format GUID
2699
2458
  */
2459
+ id?: string;
2460
+ /**
2461
+ * Revision number, which increments by 1 each time the booking is rescheduled.
2462
+ * To prevent conflicting changes,
2463
+ * the current revision must be specified when rescheduling the booking.
2464
+ */
2465
+ revision?: string | null;
2466
+ }
2467
+ /** Bookings to be rescheduled to the given slot. */
2468
+ interface SlotBookings {
2469
+ /**
2470
+ * The bookings details.
2471
+ * @minSize 1
2472
+ */
2473
+ bookings?: BulkRescheduleBookingRequestBooking[];
2474
+ /**
2475
+ * The slot to which the bookings were rescheduled.
2476
+ * These bookings are automatically assigned to the session, if given. Otherwise, a new session is created.
2477
+ */
2478
+ slot?: BookedSlot;
2479
+ }
2480
+ interface BulkRescheduleBookingResponse {
2481
+ /**
2482
+ * Information about the booking that was rescheduled.
2483
+ * Including its ID, index in the bulk request and whether it was
2484
+ * successfully rescheduled.
2485
+ */
2486
+ results?: ItemMetadata[];
2487
+ /** Total number of successes and failures for Bulk Reschedule Bookings. */
2488
+ bulkActionMetadata?: BulkActionMetadata;
2489
+ }
2490
+ /** Update the booked schedule of multiple bookings to the given schedule. */
2491
+ interface BulkUpdateBookedScheduleRequest {
2492
+ /**
2493
+ * The bookings whose booked schedule is to be updated to the given schedule.
2494
+ * @minSize 1
2495
+ */
2496
+ bookings?: BookingDetails[];
2497
+ /** ID of the schedule to update. */
2700
2498
  scheduleId?: string;
2499
+ /**
2500
+ * Information about whether to notify the customer about the rescheduling and
2501
+ * the message to send.
2502
+ */
2503
+ participantNotification?: ParticipantNotification;
2701
2504
  }
2702
- interface GetScheduleAvailabilityResponse {
2703
- availability?: ScheduleAvailability;
2704
- bookingPolicySettings?: BookingPolicySettings;
2505
+ interface BookingDetails {
2506
+ /**
2507
+ * ID of the bookings to be updated.
2508
+ * @format GUID
2509
+ */
2510
+ id?: string;
2511
+ revision?: string | null;
2705
2512
  }
2706
- interface ScheduleAvailability {
2707
- /** Total number of spots. */
2708
- totalSpots?: number | null;
2709
- /** Number of remaining open spots. */
2710
- openSpots?: number | null;
2711
- /** Indicators of booking policy violations for the specified schedule. */
2712
- bookingPolicyViolations?: BookingPolicyViolations;
2513
+ interface BulkUpdateBookedScheduleResponse {
2514
+ /**
2515
+ * Information about the schedule that was updated.
2516
+ * Including its ID, index in the bulk request and whether it was
2517
+ * succesfully updated.
2518
+ */
2519
+ results?: ItemMetadata[];
2520
+ /** Total number of successes and failures for Bulk Updated Booked Schedules. */
2521
+ bulkActionMetadata?: BulkActionMetadata;
2713
2522
  }
2714
- interface MarkBookingAsPendingRequest {
2523
+ interface QueryBookingsRequest {
2524
+ /** Information about filters, paging, and sorting. */
2525
+ query?: QueryV2;
2526
+ }
2527
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
2528
+ /** Paging options to limit and skip the number of items. */
2529
+ paging?: Paging;
2715
2530
  /**
2716
- * ID of the booking to mark as `PENDING`.
2531
+ * Cursor token pointing to a page of results. In the first request,
2532
+ * specify `cursorPaging.limit`. For following requests, specify the
2533
+ * retrieved `cursorPaging.cursor` token and not `query.filter` or
2534
+ * `query.sort`.
2535
+ */
2536
+ cursorPaging?: CursorPaging;
2537
+ /**
2538
+ * Filter object in the following format:
2539
+ * `"filter" : {
2540
+ * "fieldName1": "value1",
2541
+ * "fieldName2":{"$operator":"value2"}
2542
+ * }`
2543
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2544
+ */
2545
+ filter?: Record<string, any> | null;
2546
+ /**
2547
+ * Sort object in the following format:
2548
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2549
+ */
2550
+ sort?: Sorting[];
2551
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
2552
+ fields?: string[];
2553
+ /** 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. */
2554
+ fieldsets?: string[];
2555
+ }
2556
+ /** @oneof */
2557
+ interface QueryV2PagingMethodOneOf {
2558
+ /** Paging options to limit and skip the number of items. */
2559
+ paging?: Paging;
2560
+ /**
2561
+ * Cursor token pointing to a page of results. In the first request,
2562
+ * specify `cursorPaging.limit`. For following requests, specify the
2563
+ * retrieved `cursorPaging.cursor` token and not `query.filter` or
2564
+ * `query.sort`.
2565
+ */
2566
+ cursorPaging?: CursorPaging;
2567
+ }
2568
+ interface Sorting {
2569
+ /**
2570
+ * Name of the field to sort by.
2571
+ * @maxLength 512
2572
+ */
2573
+ fieldName?: string;
2574
+ /** Sort order. */
2575
+ order?: SortOrderWithLiterals;
2576
+ }
2577
+ declare enum SortOrder {
2578
+ ASC = "ASC",
2579
+ DESC = "DESC"
2580
+ }
2581
+ /** @enumType */
2582
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
2583
+ interface Paging {
2584
+ /** Number of items to load. */
2585
+ limit?: number | null;
2586
+ /** Number of items to skip in the current sort order. */
2587
+ offset?: number | null;
2588
+ }
2589
+ interface CursorPaging {
2590
+ /**
2591
+ * Maximum number of items to return in the results.
2592
+ * @max 100
2593
+ */
2594
+ limit?: number | null;
2595
+ /**
2596
+ * Pointer to the next or previous page in the list of results.
2597
+ *
2598
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
2599
+ * Not relevant for the first request.
2600
+ * @maxLength 16000
2601
+ */
2602
+ cursor?: string | null;
2603
+ }
2604
+ interface QueryBookingsResponse {
2605
+ /** Retrieved bookings. */
2606
+ bookings?: Booking[];
2607
+ /** Paging metadata. */
2608
+ pagingMetadata?: PagingMetadataV2;
2609
+ }
2610
+ interface PagingMetadataV2 {
2611
+ /** Number of items returned in the response. */
2612
+ count?: number | null;
2613
+ /** Offset that was requested. */
2614
+ offset?: number | null;
2615
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
2616
+ total?: number | null;
2617
+ /** Flag that indicates the server failed to calculate the `total` field. */
2618
+ tooManyToCount?: boolean | null;
2619
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2620
+ cursors?: Cursors;
2621
+ }
2622
+ interface Cursors {
2623
+ /**
2624
+ * Cursor string pointing to the next page in the list of results.
2625
+ * @maxLength 16000
2626
+ */
2627
+ next?: string | null;
2628
+ /**
2629
+ * Cursor pointing to the previous page in the list of results.
2630
+ * @maxLength 16000
2631
+ */
2632
+ prev?: string | null;
2633
+ }
2634
+ interface ConfirmRequest {
2635
+ /**
2636
+ * ID of the booking to confirm.
2637
+ * @format GUID
2638
+ */
2639
+ id?: string;
2640
+ /**
2641
+ * Information about whether to notify the customer about the confirmation and
2642
+ * the message to send.
2643
+ */
2644
+ participantNotification?: ParticipantNotification;
2645
+ }
2646
+ interface ConfirmResponse {
2647
+ /** Confirmed booking. */
2648
+ booking?: Booking;
2649
+ /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2650
+ doubleBooked?: boolean | null;
2651
+ }
2652
+ interface ConfirmBookingRequest {
2653
+ /**
2654
+ * ID of the booking to confirm.
2717
2655
  * @format GUID
2718
2656
  */
2719
2657
  bookingId: string;
2720
2658
  /**
2721
2659
  * Revision number, which increments by 1 each time the booking is updated.
2722
- *
2723
- * To prevent conflicting changes, the current revision must be specified when
2724
- * managing the booking.
2660
+ * To prevent conflicting changes, the current revision must be passed when
2661
+ * updating the booking.
2725
2662
  */
2726
2663
  revision: string | null;
2727
2664
  /**
2728
- * Information about whether to notify the customer and
2665
+ * Information about whether to notify the customer about the confirmation and
2729
2666
  * the message to send.
2730
2667
  */
2731
2668
  participantNotification?: ParticipantNotification;
@@ -2740,464 +2677,473 @@ interface MarkBookingAsPendingRequest {
2740
2677
  doubleBooked?: boolean | null;
2741
2678
  /**
2742
2679
  * Whether to ignore specific standard procedures of the Wix Bookings flow.
2743
- * For example, whether to check availability before updating the status.
2680
+ * For example, whether to check availability when confirming a booking.
2744
2681
  */
2745
- flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
2682
+ flowControlSettings?: ConfirmBookingFlowControlSettings;
2746
2683
  }
2747
- interface MarkBookingAsPendingFlowControlSettings {
2684
+ interface ConfirmBookingResponse {
2685
+ /** Confirmed booking. */
2686
+ booking?: Booking;
2687
+ }
2688
+ interface ConsistentQueryBookingsRequest {
2689
+ /** Information about filters, paging, and sorting. */
2690
+ query?: QueryV2;
2691
+ }
2692
+ interface ConsistentQueryBookingsResponse {
2693
+ /** Retrieved bookings. */
2694
+ bookings?: Booking[];
2695
+ /** Paging metadata. */
2696
+ pagingMetadata?: PagingMetadataV2;
2697
+ }
2698
+ interface SetBookingSessionIdRequest {
2748
2699
  /**
2749
- * Whether to check for double booking conflicts when updating the status.
2750
- *
2751
- * - `true`: Checks for availability conflicts and sets `doubleBooked` to `true`
2752
- * if conflicts exist.
2753
- * The booking is still marked as `PENDING` for the business to resolve manually.
2754
- * - `false`: No availability checking is performed.
2755
- *
2756
- * Default: `false`
2700
+ * ID of the booking to set `sessionId` for.
2701
+ * @format GUID
2702
+ */
2703
+ id?: string;
2704
+ /** ID of the session to set on the booking. */
2705
+ sessionId?: string;
2706
+ }
2707
+ interface SetBookingSessionIdResponse {
2708
+ /** Updated booking. */
2709
+ booking?: Booking;
2710
+ }
2711
+ interface SetBookingSubmissionIdRequest {
2712
+ /**
2713
+ * ID of the booking to set `submissionId` for.
2714
+ * @format GUID
2715
+ */
2716
+ bookingId: string;
2717
+ /**
2718
+ * ID of the form submission to set on the booking.
2719
+ * @format GUID
2720
+ */
2721
+ submissionId: string;
2722
+ }
2723
+ interface SetBookingSubmissionIdResponse {
2724
+ /** Updated booking. */
2725
+ booking?: Booking;
2726
+ }
2727
+ interface UpdateExtendedFieldsRequest {
2728
+ /** ID of the entity to update. */
2729
+ id: string;
2730
+ /** Identifier for the app whose extended fields are being updated. */
2731
+ namespace: string;
2732
+ /** 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. */
2733
+ namespaceData: Record<string, any> | null;
2734
+ }
2735
+ interface UpdateExtendedFieldsResponse {
2736
+ /**
2737
+ * Updated namespace.
2738
+ * @maxLength 164
2739
+ */
2740
+ namespace?: string;
2741
+ /** Updated data. */
2742
+ namespaceData?: Record<string, any> | null;
2743
+ }
2744
+ interface DeclineBookingRequest {
2745
+ /**
2746
+ * ID of the booking to decline.
2747
+ * @format GUID
2757
2748
  */
2758
- checkAvailabilityValidation?: boolean;
2749
+ bookingId: string;
2759
2750
  /**
2760
- * Whether to allow marking any booking as pending, even if the service doesn't require manual approval.
2761
- *
2762
- * - `true`: Bypasses the validation that checks if the service has `service.onlineBooking.requireManualApproval` set to `true`.
2763
- * - `false`: Only services that require manual approval can have their bookings marked as pending.
2751
+ * Revision number, which increments by 1 each time the booking is updated.
2764
2752
  *
2765
- * Default: `false`.
2753
+ * To prevent conflicting changes, the current revision must be specified when
2754
+ * declining the booking.
2755
+ * @min 1
2766
2756
  */
2767
- skipPendingApprovalServiceValidation?: boolean;
2768
- }
2769
- interface MarkBookingAsPendingResponse {
2770
- /** Updated booking. */
2771
- booking?: Booking;
2772
- }
2773
- interface BookingMarkedAsPending {
2774
- /** The booking object that was marked as pending. */
2775
- booking?: Booking;
2776
- /** Information about whether to notify the customer upon manual confirmation of the pending booking and the message to send. */
2777
- participantNotification?: ParticipantNotification;
2757
+ revision: string | null;
2778
2758
  /**
2779
- * Whether to send an SMS reminder to the customer 24 hours before the session starts.
2780
- * The phone number is taken from `contactDetails.phone`.
2759
+ * Information about whether to notify the customer and
2760
+ * the message to send.
2781
2761
  */
2782
- sendSmsReminder?: boolean | null;
2783
- /** Whether this booking overlaps with another existing confirmed booking. */
2762
+ participantNotification?: ParticipantNotification;
2763
+ /** Payment status to set for the booking. */
2764
+ paymentStatus?: PaymentStatusWithLiterals;
2765
+ /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2784
2766
  doubleBooked?: boolean | null;
2785
- /** ID of the mark as pending initiator. */
2786
- initiatedBy?: IdentificationData;
2787
- /** The previous status of the booking. */
2788
- previousStatus?: BookingStatusWithLiterals;
2789
- /** The previous payment status of the booking. */
2790
- previousPaymentStatus?: PaymentStatusWithLiterals;
2791
- }
2792
- interface MigrationCheckIfClashesWithBlockedTimeRequest {
2793
- msidAndBookingIds?: MsidAndBookingId[];
2794
- }
2795
- interface MsidAndBookingId {
2796
- msid?: string;
2797
- bookingId?: string;
2798
- }
2799
- interface MigrationCheckIfClashesWithBlockedTimeResponse {
2800
- clashes?: Clash[];
2801
- }
2802
- interface Clash {
2803
- msid?: string;
2804
- bookingId?: string;
2805
- sessionId?: string;
2806
- resourceName?: string;
2807
- contactName?: string;
2808
- }
2809
- interface CountBookingsRequest {
2810
2767
  /**
2811
- * Filter object in the following format:
2812
- * `"filter" : {
2813
- * "fieldName1": "value1",
2814
- * "fieldName2":{"$operator":"value2"}
2815
- * }`
2816
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2768
+ * Whether to ignore specific standard procedures of the Wix Bookings flow.
2769
+ * For example, whether to refund a declined booking.
2817
2770
  */
2818
- filter?: Record<string, any> | null;
2771
+ flowControlSettings?: DeclineBookingFlowControlSettings;
2819
2772
  }
2820
- interface CountBookingsResponse {
2821
- /** Number of bookings matching the specified filter. */
2822
- count?: number;
2773
+ interface DeclineBookingResponse {
2774
+ /** Declined booking. */
2775
+ booking?: Booking;
2823
2776
  }
2824
- interface CreateMultiServiceBookingRequest {
2777
+ interface CancelBookingRequest {
2825
2778
  /**
2826
- * Between 2 to 8 new single-service booking specifications to create and combine in a multi-service booking.
2827
- *
2828
- * Each single-service booking specification must include `slot` details (`scheduleId`, `startDate`, and `endDate`).
2829
- * Specify contact details, number of participants, and any additional fields as needed.
2830
- *
2831
- * For sequential bookings, ensure the timing allows services to be scheduled back-to-back.
2832
- * @minSize 2
2833
- * @maxSize 8
2779
+ * ID of the booking to cancel.
2780
+ * @format GUID
2834
2781
  */
2835
- bookings: Booking[];
2836
- /** Information about whether to notify the customer and the message to send. */
2837
- participantNotification?: ParticipantNotification;
2782
+ bookingId: string;
2838
2783
  /**
2839
- * Whether to send an SMS reminder to the customer 24 hours before the session starts.
2840
- * Wix Bookings takes the phone number from `contactDetails.phone`.
2841
- *
2842
- * Default: `true`
2784
+ * Information about whether to notify the customer about the cancellation and
2785
+ * the message to send.
2843
2786
  */
2844
- sendSmsReminder?: boolean | null;
2787
+ participantNotification?: ParticipantNotification;
2845
2788
  /**
2846
2789
  * Whether to ignore specific standard procedures of the Wix Bookings flow.
2847
- * For example, whether to skip checking availability before updating the status.
2790
+ * For example, whether to allow a cancellation even though the service's
2791
+ * policy doesn't allow it.
2848
2792
  */
2849
- flowControlSettings?: CreateBookingFlowControlSettings;
2850
- /** Whether to return the created single-service bookings. */
2851
- returnFullEntity?: boolean;
2793
+ flowControlSettings?: CancelBookingFlowControlSettings;
2852
2794
  /**
2853
- * Multi-service booking type.
2795
+ * Revision number, which increments by 1 each time the booking is updated.
2854
2796
  *
2855
- * Currently only `SEQUENTIAL_BOOKINGS` is supported.
2797
+ * To prevent conflicting changes, the current revision must be specified when
2798
+ * managing the booking.
2856
2799
  */
2857
- multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
2800
+ revision: string | null;
2858
2801
  }
2859
- interface CreateMultiServiceBookingResponse {
2860
- /**
2861
- * Created multi-service booking.
2862
- * Contains the single-service bookings in the same order as specified in the request.
2863
- */
2864
- multiServiceBooking?: MultiServiceBooking;
2802
+ interface CancelBookingResponse {
2803
+ /** Canceled booking. */
2804
+ booking?: Booking;
2865
2805
  }
2866
- /**
2867
- * A multi-service booking combines multiple single-service bookings into a package.
2868
- *
2869
- * Currently, multi-service bookings support only sequential scheduling where services are scheduled back-to-back at the same location, with each single-service booking starting when the previous 1 ends.
2870
- */
2871
- interface MultiServiceBooking {
2806
+ interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2872
2807
  /**
2873
- * Multi-service booking ID.
2874
- * @format GUID
2808
+ * Total number of participants. Specify when all participants have booked the
2809
+ * same service variant.
2875
2810
  */
2876
- id?: string | null;
2877
- /** The single-service bookings that make up the multi-service booking package. */
2878
- bookings?: BookingResult[];
2879
- }
2880
- interface BookingResult {
2811
+ totalParticipants?: number;
2881
2812
  /**
2882
- * Booking ID.
2883
- * @format GUID
2813
+ * Information about the service choices the participants have booked. Specify
2814
+ * when not all participants have booked the same service variant.
2884
2815
  */
2885
- bookingId?: string | null;
2886
- /** Booking entity. */
2887
- booking?: Booking;
2888
- }
2889
- interface RescheduleMultiServiceBookingRequest {
2816
+ participantsChoices?: ParticipantChoices;
2890
2817
  /**
2891
- * ID of the multi-service booking to reschedule.
2818
+ * ID of the booking to update the number of participants for.
2892
2819
  * @format GUID
2893
2820
  */
2894
- multiServiceBookingId: string | null;
2895
- /** Information about the single-service bookings to reschedule. */
2896
- rescheduleBookingsInfo: RescheduleBookingInfo[];
2897
- /** Information about whether to notify the customer and the message to send. */
2898
- participantNotification?: ParticipantNotification;
2821
+ bookingId: string;
2899
2822
  /**
2900
- * Information about whether specific procedures of the standard Wix Bookings rescheduling flow are changed.
2901
- * For example, whether the availability of the new slot is checked before rescheduling the booking or if the customer can reschedule the booking even though the service's rescheduling policy doesn't allow it.
2823
+ * Revision number, which increments by 1 each time the booking is updated.
2824
+ *
2825
+ * To prevent conflicting changes, the current revision must be specified
2826
+ * when updating the booking.
2902
2827
  */
2903
- flowControlSettings?: RescheduleBookingFlowControlSettings;
2904
- /** Whether to return the rescheduled bookings entities. */
2905
- returnFullEntity?: boolean;
2828
+ revision: string | null;
2906
2829
  }
2907
- interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
2830
+ /** @oneof */
2831
+ interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
2908
2832
  /**
2909
- * Total number of participants. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
2910
- * Specify when all participants book the same variant.
2833
+ * Total number of participants. Specify when all participants have booked the
2834
+ * same service variant.
2911
2835
  */
2912
2836
  totalParticipants?: number;
2913
2837
  /**
2914
- * Information about the service choices to book. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
2915
- * Specify when not all participants book the same variant.
2838
+ * Information about the service choices the participants have booked. Specify
2839
+ * when not all participants have booked the same service variant.
2916
2840
  */
2917
2841
  participantsChoices?: ParticipantChoices;
2842
+ }
2843
+ interface UpdateNumberOfParticipantsResponse {
2844
+ /** Updated booking. */
2845
+ booking?: Booking;
2846
+ }
2847
+ interface NumberOfParticipantsUpdated extends NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2918
2848
  /**
2919
- * ID of the booking to reschedule.
2920
- * @format GUID
2921
- */
2922
- bookingId?: string | null;
2923
- /** Information about the new slot. */
2924
- slot?: V2Slot;
2925
- /**
2926
- * Revision number, which increments by 1 each time the booking is updated.
2927
- * To prevent conflicting changes, the current revision must be specified when managing the booking.
2849
+ * The previous total number of participants. Available only when the booking includes
2850
+ * a single service variant.
2928
2851
  */
2929
- revision?: string | null;
2852
+ previousTotalParticipants?: number;
2930
2853
  /**
2931
- * List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
2932
- * You can only specify add-ons if both of these conditions are met:
2933
- * - The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`.
2934
- * - You must have `BOOKINGS.MANAGE_ADDONS` permissions and specify `flowControlSettings.allowAddOnChanges` as `true`.
2935
- * @maxSize 21
2854
+ * Information about the previous booked service choices and participants.
2855
+ * Available only when the booking includes multiple service variants.
2936
2856
  */
2937
- bookedAddOns?: BookedAddOn[];
2857
+ previousParticipantsChoices?: ParticipantChoices;
2858
+ /** The updated booking object. */
2859
+ booking?: Booking;
2860
+ /** ID of the participant number update initiator. */
2861
+ initiatedBy?: IdentificationData;
2938
2862
  }
2939
2863
  /** @oneof */
2940
- interface RescheduleBookingInfoParticipantsInfoOneOf {
2864
+ interface NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf {
2941
2865
  /**
2942
- * Total number of participants. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
2943
- * Specify when all participants book the same variant.
2866
+ * The previous total number of participants. Available only when the booking includes
2867
+ * a single service variant.
2944
2868
  */
2945
- totalParticipants?: number;
2869
+ previousTotalParticipants?: number;
2946
2870
  /**
2947
- * Information about the service choices to book. Available only for services with [variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
2948
- * Specify when not all participants book the same variant.
2871
+ * Information about the previous booked service choices and participants.
2872
+ * Available only when the booking includes multiple service variants.
2949
2873
  */
2950
- participantsChoices?: ParticipantChoices;
2951
- }
2952
- interface RescheduleMultiServiceBookingResponse {
2953
- /** Rescheduled multi-service booking. */
2954
- multiServiceBooking?: MultiServiceBooking;
2874
+ previousParticipantsChoices?: ParticipantChoices;
2955
2875
  }
2956
- interface GetMultiServiceBookingAvailabilityRequest {
2876
+ interface BulkCalculateAllowedActionsRequest {
2957
2877
  /**
2958
- * ID of the multi-service booking to retrieve.
2959
- * @format GUID
2878
+ * List of booking IDs to calculate allowed actions for.
2879
+ * @minSize 1
2960
2880
  */
2961
- multiServiceBookingId: string | null;
2881
+ bookingIds: string[] | null;
2962
2882
  }
2963
- interface GetMultiServiceBookingAvailabilityResponse {
2964
- /** Whether all contained single-service bookings are bookable. */
2965
- bookable?: boolean;
2966
- /** Total number of spots. */
2967
- totalCapacity?: number | null;
2968
- /** Number of open spots. */
2969
- remainingCapacity?: number | null;
2970
- /** Indicators for policy violations of the multi-service booking. */
2971
- policyViolations?: BookingPolicyViolations;
2972
- /** Multi-service booking policy settings. */
2973
- policySettings?: BookingPolicySettings;
2974
- /** Details of the multi-service booking. */
2975
- multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo[];
2883
+ interface BulkCalculateAllowedActionsResponse {
2884
+ /** Results for each booking in the request, containing the allowed actions or error information. */
2885
+ results?: BulkCalculateAllowedActionsResult[];
2886
+ /** Summary of successful and failed operations. */
2887
+ bulkActionMetadata?: BulkActionMetadata;
2888
+ }
2889
+ interface GetSlotAvailabilityRequest {
2890
+ /** The slot for which the availability is checked. */
2891
+ slot?: V2Slot;
2892
+ /** The timezone for which availability is to be calculated. */
2893
+ timezone?: string | null;
2894
+ }
2895
+ interface GetSlotAvailabilityResponse {
2896
+ availability?: SlotAvailability;
2897
+ bookingPolicySettings?: BookingPolicySettings;
2976
2898
  }
2977
- interface GetMultiServiceBookingAvailabilityResponseBookingInfo {
2899
+ interface SlotAvailability {
2900
+ /** Identifier for the underlying session when the session is a single session or generated from a recurring session. Required. */
2901
+ slot?: V2Slot;
2902
+ /** Whether this available slot is bookable. */
2903
+ bookable?: boolean;
2978
2904
  /**
2979
- * Booking ID.
2980
- * @format GUID
2905
+ * Total number of spots for this availability.
2906
+ * For example, for a class of 10 spots with 3 spots booked, `totalSpots` is 10 and `openSpots` is 7.
2981
2907
  */
2982
- bookingId?: string | null;
2983
- }
2984
- interface CancelMultiServiceBookingRequest {
2908
+ totalSpots?: number | null;
2985
2909
  /**
2986
- * ID of the multi-service booking to cancel.
2987
- * @format GUID
2910
+ * Number of open spots for this availability.
2911
+ * For appointments, if there are existing bookings with overlapping time, service & resource, `openSpots` is 0. Otherwise, `openSpots` is 1.
2988
2912
  */
2989
- multiServiceBookingId: string | null;
2990
- /** Information about whether to notify the customer and the message to send. */
2991
- participantNotification?: ParticipantNotification;
2913
+ openSpots?: number | null;
2914
+ /** An object describing the slot's waiting list and its occupancy. */
2915
+ waitingList?: WaitingList;
2916
+ /** Indicators for booking policy violations for the slot. */
2917
+ bookingPolicyViolations?: BookingPolicyViolations;
2918
+ /** Indicates whether this slot is locked. */
2919
+ locked?: boolean | null;
2920
+ }
2921
+ interface WaitingList {
2992
2922
  /**
2993
- * Information about whether specific procedures of the standard Wix Bookings cancellation flow are changed.
2994
- * For example, whether the customer can cancel the booking even though the service's cancellation policy doesn't allow it or whether to issue a refund upon cancellation.
2923
+ * Total number of spots and open spots for this waiting list.
2924
+ * 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.
2995
2925
  */
2996
- flowControlSettings?: CancelBookingFlowControlSettings;
2997
- /** Whether to return the canceled single-service bookings. */
2998
- returnFullEntity?: boolean;
2999
- }
3000
- interface CancelMultiServiceBookingResponse {
3001
- /** Canceled multi-service booking. */
3002
- multiServiceBooking?: MultiServiceBooking;
2926
+ totalSpots?: number | null;
2927
+ openSpots?: number | null;
3003
2928
  }
3004
- interface MarkMultiServiceBookingAsPendingRequest {
2929
+ interface AvailableResources {
3005
2930
  /**
3006
- * ID of the multi-service booking to mark as `PENDING`.
2931
+ * Resource type ID.
3007
2932
  * @format GUID
3008
2933
  */
3009
- multiServiceBookingId: string | null;
3010
- /** Information about the single-service bookings to mark as `PENDING`. */
3011
- markAsPendingBookingsInfo?: BookingInfo[];
3012
- /** Information about whether to notify the customer and the message to send. */
3013
- participantNotification?: ParticipantNotification;
3014
- /**
3015
- * Whether to send an SMS reminder to the customer 24 hours before the session starts.
3016
- * Wix Bookings takes the phone number from `contactDetails.phone`.
3017
- *
3018
- * Default: `true`
3019
- */
3020
- sendSmsReminder?: boolean | null;
3021
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3022
- doubleBooked?: boolean | null;
2934
+ resourceTypeId?: string | null;
3023
2935
  /**
3024
- * Whether to return the single-service bookings that were marked as `PENDING`.
3025
- *
3026
- * Default: `false`
2936
+ * Available resources for the slot.
2937
+ * `maxSize` is defined by 135 staff members + 3 resource types and 50 resources per type.
2938
+ * `Availability-2` currently has no `maxSize` defined.
2939
+ * @format GUID
2940
+ * @maxSize 275
3027
2941
  */
3028
- returnFullEntity?: boolean;
2942
+ resourceIds?: string[];
2943
+ }
2944
+ interface GetScheduleAvailabilityRequest {
3029
2945
  /**
3030
- * Information about whether specific procedures of the standard Wix Bookings creation flow are changed.
3031
- * For example, whether Wix Bookings checks availability before updating the booking.
2946
+ * ID of the schedule for which to check availability.
2947
+ * @format GUID
3032
2948
  */
3033
- flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
2949
+ scheduleId?: string;
3034
2950
  }
3035
- interface BookingInfo {
2951
+ interface GetScheduleAvailabilityResponse {
2952
+ availability?: ScheduleAvailability;
2953
+ bookingPolicySettings?: BookingPolicySettings;
2954
+ }
2955
+ interface ScheduleAvailability {
2956
+ /** Total number of spots. */
2957
+ totalSpots?: number | null;
2958
+ /** Number of remaining open spots. */
2959
+ openSpots?: number | null;
2960
+ /** Indicators of booking policy violations for the specified schedule. */
2961
+ bookingPolicyViolations?: BookingPolicyViolations;
2962
+ }
2963
+ interface MarkBookingAsPendingRequest {
3036
2964
  /**
3037
- * ID of the single-service booking.
2965
+ * ID of the booking to mark as `PENDING`.
3038
2966
  * @format GUID
3039
2967
  */
3040
- bookingId?: string | null;
2968
+ bookingId: string;
3041
2969
  /**
3042
2970
  * Revision number, which increments by 1 each time the booking is updated.
3043
- * To prevent conflicting changes, the current revision must be specified when managing the booking.
2971
+ *
2972
+ * To prevent conflicting changes, the current revision must be specified when
2973
+ * managing the booking.
3044
2974
  */
3045
- revision?: string | null;
3046
- /** Payment status to set for the single-service booking. */
3047
- paymentStatus?: PaymentStatusWithLiterals;
3048
- }
3049
- interface MarkMultiServiceBookingAsPendingResponse {
3050
- /** Updated multi-service booking. */
3051
- multiServiceBooking?: MultiServiceBooking;
3052
- }
3053
- interface ConfirmMultiServiceBookingRequest {
2975
+ revision: string | null;
3054
2976
  /**
3055
- * ID of the multi-service booking to confirm its related bookings.
3056
- * @format GUID
2977
+ * Information about whether to notify the customer and
2978
+ * the message to send.
3057
2979
  */
3058
- multiServiceBookingId: string | null;
3059
- /** Information about the single-service bookings to confirm. */
3060
- confirmBookingsInfo?: BookingInfo[];
3061
- /** Information about whether to notify the customer and the message to send. */
3062
2980
  participantNotification?: ParticipantNotification;
3063
2981
  /**
3064
- * Whether to send an SMS reminder to the customer 24 hours before the session starts.
3065
- * Wix Bookings takes the phone number from `contactDetails.phone`.
3066
- *
3067
- * Default: `true`
2982
+ * Whether to send an SMS reminder to the customer 24 hours before the
2983
+ * session starts. The phone number is taken from `contactDetails.phone`.
3068
2984
  */
3069
2985
  sendSmsReminder?: boolean | null;
2986
+ /** Payment status to set for the booking. */
2987
+ paymentStatus?: PaymentStatusWithLiterals;
3070
2988
  /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3071
2989
  doubleBooked?: boolean | null;
3072
- /** Whether to return the confirmed single-service bookings. */
3073
- returnFullEntity?: boolean;
3074
2990
  /**
3075
- * Information about whether specific procedures of the standard Wix Bookings confirmation flow are changed.
3076
- * For example, whether Wix Bookings checks availability before confirming the booking.
2991
+ * Whether to ignore specific standard procedures of the Wix Bookings flow.
2992
+ * For example, whether to check availability before updating the status.
3077
2993
  */
3078
- flowControlSettings?: ConfirmBookingFlowControlSettings;
2994
+ flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
3079
2995
  }
3080
- interface ConfirmMultiServiceBookingResponse {
3081
- /** Confirmed multi-service booking. */
3082
- multiServiceBooking?: MultiServiceBooking;
2996
+ interface MarkBookingAsPendingResponse {
2997
+ /** Updated booking. */
2998
+ booking?: Booking;
3083
2999
  }
3084
- interface DeclineMultiServiceBookingRequest {
3085
- /**
3086
- * ID of the multi-service booking to decline.
3087
- * @format GUID
3088
- */
3089
- multiServiceBookingId: string | null;
3090
- /** Information about the single-service bookings to decline. */
3091
- declineBookingsInfo?: BookingInfo[];
3092
- /** Information about whether to notify the customer and the message to send. */
3000
+ interface BookingMarkedAsPending {
3001
+ /** The booking that was marked as pending. */
3002
+ booking?: Booking;
3003
+ /** Customer notification settings for when the pending booking is manually confirmed. */
3093
3004
  participantNotification?: ParticipantNotification;
3094
- /** Whether this booking has a conflict with at least 1 other confirmed booking. */
3095
- doubleBooked?: boolean | null;
3096
- /** Whether to return the declined single-service bookings. */
3097
- returnFullEntity?: boolean;
3098
3005
  /**
3099
- * Information about whether specific procedures of the standard Wix Bookings declining flow are changed.
3100
- * For example, whether to issue a refund upon cancellation.
3006
+ * Whether to send an SMS reminder to the customer 24 hours before the session starts.
3007
+ * The phone number is taken from `contactDetails.phone`.
3101
3008
  */
3102
- flowControlSettings?: DeclineBookingFlowControlSettings;
3009
+ sendSmsReminder?: boolean | null;
3010
+ /** Whether this booking overlaps with another existing confirmed booking. */
3011
+ doubleBooked?: boolean | null;
3012
+ /** ID of the mark as pending initiator. */
3013
+ initiatedBy?: IdentificationData;
3014
+ /** The previous status of the booking. */
3015
+ previousStatus?: BookingStatusWithLiterals;
3016
+ /** The previous payment status of the booking. */
3017
+ previousPaymentStatus?: PaymentStatusWithLiterals;
3103
3018
  }
3104
- interface DeclineMultiServiceBookingResponse {
3105
- /** Declined multi-service booking. */
3106
- multiServiceBooking?: MultiServiceBooking;
3019
+ interface MigrationCheckIfClashesWithBlockedTimeRequest {
3020
+ msidAndBookingIds?: MsidAndBookingId[];
3107
3021
  }
3108
- interface BulkGetMultiServiceBookingAllowedActionsRequest {
3109
- /**
3110
- * IDs of the multi-service bookings to retrieve allowed actions for.
3111
- * @format GUID
3112
- * @minSize 1
3113
- * @maxSize 50
3114
- */
3115
- multiServiceBookingIds: string[] | null;
3022
+ interface MsidAndBookingId {
3023
+ msid?: string;
3024
+ bookingId?: string;
3116
3025
  }
3117
- interface BulkGetMultiServiceBookingAllowedActionsResponse {
3118
- /**
3119
- * Information about the multi-service bookings that were retrieved.
3120
- * Includes their ID, index in the bulk request and whether they were successfully processed.
3121
- */
3122
- results?: BulkCalculateAllowedActionsResult[];
3123
- /** Total number of successes and failures for Bulk Get Multi Service Booking Allowed Actions. */
3124
- bulkActionMetadata?: BulkActionMetadata;
3026
+ interface MigrationCheckIfClashesWithBlockedTimeResponse {
3027
+ clashes?: Clash[];
3125
3028
  }
3126
- interface GetMultiServiceBookingRequest {
3029
+ interface Clash {
3030
+ msid?: string;
3031
+ bookingId?: string;
3032
+ sessionId?: string;
3033
+ resourceName?: string;
3034
+ contactName?: string;
3035
+ }
3036
+ interface CountBookingsRequest {
3127
3037
  /**
3128
- * ID of the multi-service booking.
3129
- * @format GUID
3038
+ * Filter object in the following format:
3039
+ * `"filter" : {
3040
+ * "fieldName1": "value1",
3041
+ * "fieldName2":{"$operator":"value2"}
3042
+ * }`
3043
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
3130
3044
  */
3131
- multiServiceBookingId: string | null;
3045
+ filter?: Record<string, any> | null;
3132
3046
  }
3133
- interface GetMultiServiceBookingResponse {
3134
- /** Retrieved multi-service booking. */
3135
- multiServiceBooking?: MultiServiceBooking;
3136
- /** Details about how many single-service bookings belong to the multi-service booking. */
3137
- metadata?: MultiServiceBookingMetadata;
3047
+ interface CountBookingsResponse {
3048
+ /** Number of bookings matching the specified filter. */
3049
+ count?: number;
3138
3050
  }
3139
- interface MultiServiceBookingMetadata {
3051
+ /** Request for GetAnonymousActionDetails */
3052
+ interface GetAnonymousActionDetailsRequest {
3053
+ /** @format GUID */
3054
+ bookingId?: string | null;
3055
+ }
3056
+ /** Response for GetAnonymousActionDetails */
3057
+ interface GetAnonymousActionDetailsResponse {
3140
3058
  /**
3141
- * Total number of `CONFIRMED` and `PENDING` single-service bookings belonging to the multi-service booking.
3142
- * The total includes the number of single-service bookings which couldn't be retrieved due to lack of permissions.
3059
+ * Token for anonymous access to manage the booking.
3060
+ * It represents a symmetrically encrypted and URL-safe string containing the booking ID.
3061
+ * This token is required for canceling or rescheduling the booking without authentication.
3062
+ * @minLength 32
3063
+ * @maxLength 2048
3143
3064
  */
3144
- totalNumberOfScheduledBookings?: number | null;
3065
+ token?: string | null;
3066
+ /** @format GUID */
3067
+ clientId?: string | null;
3068
+ anonymousBookingUrls?: AnonymousBookingUrls;
3145
3069
  }
3146
- interface AddBookingsToMultiServiceBookingRequest {
3070
+ interface AnonymousBookingUrls {
3147
3071
  /**
3148
- * ID of the multi-service booking.
3149
- * @format GUID
3072
+ * The base URL for the booking links
3073
+ * @maxLength 2048
3150
3074
  */
3151
- multiServiceBookingId: string | null;
3075
+ baseUrl?: string | null;
3152
3076
  /**
3153
- * List of single-service booking IDs and their revision.
3154
- * @maxSize 8
3077
+ * The cancellation URL for the booking, which contains an anonymous token and AOth clientId
3078
+ * @maxLength 2048
3155
3079
  */
3156
- bookings: BookingIdAndRevision[];
3080
+ anonymousCancellationUrl?: string | null;
3157
3081
  /**
3158
- * Whether to return the single-service bookings that were added to the multi-service booking.
3159
- *
3160
- * Default: `false`
3082
+ * The reschedule URL for the booking, which contains an anonymous token and AOth clientId
3083
+ * @maxLength 2048
3161
3084
  */
3162
- returnFullEntity?: boolean;
3085
+ anonymousRescheduleUrl?: string | null;
3163
3086
  }
3164
- interface BookingIdAndRevision {
3087
+ /** Request for CancelBookingAnonymously */
3088
+ interface CancelBookingAnonymouslyRequest {
3165
3089
  /**
3166
- * ID of the single-service booking.
3167
- * @format GUID
3090
+ * The token provided in the booking links for anonymous access
3091
+ * @maxLength 2048
3168
3092
  */
3169
- bookingId?: string | null;
3093
+ token: string | null;
3170
3094
  /**
3171
3095
  * Revision number, which increments by 1 each time the booking is updated.
3172
- * To prevent conflicting changes, the current revision must be specified when managing the booking.
3096
+ * To prevent conflicting changes, the current revision must be specified when
3097
+ * managing the booking.
3173
3098
  */
3174
3099
  revision?: string | null;
3175
3100
  }
3176
- interface AddBookingsToMultiServiceBookingResponse {
3177
- /** Single-service bookings that were added to the multi-service booking. */
3178
- bookings?: BookingResult[];
3101
+ /** Response for CancelBookingAnonymously */
3102
+ interface CancelBookingAnonymouslyResponse {
3103
+ /** Canceled booking. */
3104
+ booking?: Booking;
3179
3105
  }
3180
- interface RemoveBookingsFromMultiServiceBookingRequest {
3106
+ /** Request for RescheduleBookingAnonymously */
3107
+ interface RescheduleBookingAnonymouslyRequest {
3181
3108
  /**
3182
- * ID of the multi-service booking.
3183
- * @format GUID
3109
+ * The token provided in the booking links for anonymous access
3110
+ * @maxLength 2048
3184
3111
  */
3185
- multiServiceBookingId: string | null;
3112
+ token: string | null;
3113
+ /** New slot of the booking. */
3114
+ slot: V2Slot;
3186
3115
  /**
3187
- * List of single-service booking IDs and their revision.
3188
- * @maxSize 8
3116
+ * Revision number, which increments by 1 each time the booking is rescheduled.
3117
+ * To prevent conflicting changes, the current revision must be passed when
3118
+ * rescheduling the booking.
3189
3119
  */
3190
- bookings?: BookingIdAndRevision[];
3120
+ revision: string | null;
3121
+ }
3122
+ /** Response for RescheduleBookingAnonymously */
3123
+ interface RescheduleBookingAnonymouslyResponse {
3124
+ /** Rescheduled booking. */
3125
+ booking?: Booking;
3126
+ }
3127
+ /** Request for GetBookingAnonymously */
3128
+ interface GetBookingAnonymouslyRequest {
3191
3129
  /**
3192
- * Whether to return the single-service bookings.
3193
- *
3194
- * Default: `false`
3130
+ * The token provided in the booking links for anonymous access
3131
+ * @maxLength 2048
3195
3132
  */
3196
- returnFullEntity?: boolean;
3133
+ token: string | null;
3197
3134
  }
3198
- interface RemoveBookingsFromMultiServiceBookingResponse {
3199
- /** Single-service bookings that were removed from the multi-service booking. */
3200
- bookings?: BookingResult[];
3135
+ /** Response for GetBookingAnonymously */
3136
+ interface GetBookingAnonymouslyResponse {
3137
+ booking?: Booking;
3138
+ /** Allowed actions for the booking, such as canceling or rescheduling. */
3139
+ allowedActionsAnonymously?: AllowedActionsAnonymously;
3140
+ }
3141
+ /** Possible allowed actions for a Booking */
3142
+ interface AllowedActionsAnonymously {
3143
+ /** Whether the customer is allowed to cancel the booking. */
3144
+ cancel?: boolean;
3145
+ /** Whether the customer is allowed to reschedule the booking. */
3146
+ reschedule?: boolean;
3201
3147
  }
3202
3148
  /** @docsIgnore */
3203
3149
  type ConfirmOrDeclineBookingApplicationErrors = {
@@ -3216,8 +3162,8 @@ type BulkConfirmOrDeclineBookingApplicationErrors = {
3216
3162
  data?: Record<string, any>;
3217
3163
  };
3218
3164
  /** @docsIgnore */
3219
- type CreateBookingApplicationErrors = {
3220
- code?: 'SESSION_NOT_FOUND';
3165
+ type CreateMultiServiceBookingApplicationErrors = {
3166
+ code?: 'VALIDATION_FAILURE';
3221
3167
  description?: string;
3222
3168
  data?: Record<string, any>;
3223
3169
  } | {
@@ -3225,201 +3171,195 @@ type CreateBookingApplicationErrors = {
3225
3171
  description?: string;
3226
3172
  data?: Record<string, any>;
3227
3173
  } | {
3228
- code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3174
+ code?: 'RESOURCE_NOT_FOUND';
3229
3175
  description?: string;
3230
3176
  data?: Record<string, any>;
3231
3177
  } | {
3232
- code?: 'INVALID_CHOICES';
3178
+ code?: 'EMPTY_FORM_INFO';
3233
3179
  description?: string;
3234
3180
  data?: Record<string, any>;
3235
3181
  } | {
3236
- code?: 'VALIDATION_FAILURE';
3182
+ code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3237
3183
  description?: string;
3238
3184
  data?: Record<string, any>;
3239
3185
  } | {
3240
- code?: 'SESSION_CAPACITY_EXCEEDED';
3186
+ code?: 'INVALID_CHOICES';
3241
3187
  description?: string;
3242
3188
  data?: Record<string, any>;
3243
3189
  } | {
3244
- code?: 'SCHEDULE_CAPACITY_EXCEEDED';
3190
+ code?: 'SLOT_NOT_AVAILABLE';
3245
3191
  description?: string;
3246
3192
  data?: Record<string, any>;
3247
3193
  } | {
3248
- code?: 'SLOT_NOT_AVAILABLE';
3194
+ code?: 'UNAUTHORIZED_OPERATION';
3249
3195
  description?: string;
3250
3196
  data?: Record<string, any>;
3251
3197
  } | {
3252
- code?: 'FAILED_VALIDATING_AVAILABILITY';
3198
+ code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3253
3199
  description?: string;
3254
3200
  data?: Record<string, any>;
3255
- } | {
3256
- code?: 'BOOKING_POLICY_VIOLATION';
3201
+ };
3202
+ /** @docsIgnore */
3203
+ type RescheduleMultiServiceBookingApplicationErrors = {
3204
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3257
3205
  description?: string;
3258
3206
  data?: Record<string, any>;
3259
3207
  } | {
3260
- code?: 'UNAUTHORIZED_OPERATION';
3208
+ code?: 'BOOKING_NOT_FOUND';
3261
3209
  description?: string;
3262
3210
  data?: Record<string, any>;
3263
3211
  } | {
3264
- code?: 'INVALID_SERVICE_CHOICES';
3212
+ code?: 'REVISION_MISSING';
3265
3213
  description?: string;
3266
3214
  data?: Record<string, any>;
3267
3215
  } | {
3268
- code?: 'INVALID_FLOW_SELECTED_RESOURCES';
3216
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3269
3217
  description?: string;
3270
3218
  data?: Record<string, any>;
3271
3219
  } | {
3272
- code?: 'CAN_NOT_CREATE_BOOKING_WITH_MULTI_SERVICE_BOOKING_INFO';
3220
+ code?: 'DUPLICATE_BOOKING_INFO';
3273
3221
  description?: string;
3274
3222
  data?: Record<string, any>;
3275
3223
  } | {
3276
- code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3224
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3277
3225
  description?: string;
3278
3226
  data?: Record<string, any>;
3279
3227
  } | {
3280
- code?: 'INVALID_DATE_FORMAT';
3228
+ code?: 'BOOKING_REVISION_MISMATCH';
3281
3229
  description?: string;
3282
3230
  data?: Record<string, any>;
3283
3231
  } | {
3284
- code?: 'INVALID_TIME_ZONE';
3232
+ code?: 'NO_OPEN_SPOTS';
3285
3233
  description?: string;
3286
3234
  data?: Record<string, any>;
3287
3235
  } | {
3288
- code?: 'CONTACT_DETAILS_CONFLICT';
3236
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3289
3237
  description?: string;
3290
3238
  data?: Record<string, any>;
3291
3239
  };
3292
3240
  /** @docsIgnore */
3293
- type BulkCreateBookingApplicationErrors = {
3294
- code?: 'SESSION_NOT_FOUND';
3295
- description?: string;
3296
- data?: Record<string, any>;
3297
- } | {
3298
- code?: 'SCHEDULE_NOT_FOUND';
3299
- description?: string;
3300
- data?: Record<string, any>;
3301
- } | {
3302
- code?: 'RESOURCE_NOT_FOUND';
3303
- description?: string;
3304
- data?: Record<string, any>;
3305
- } | {
3306
- code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3241
+ type GetMultiServiceBookingAvailabilityApplicationErrors = {
3242
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3307
3243
  description?: string;
3308
3244
  data?: Record<string, any>;
3309
- } | {
3310
- code?: 'INVALID_CHOICES';
3245
+ };
3246
+ /** @docsIgnore */
3247
+ type CancelMultiServiceBookingApplicationErrors = {
3248
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3311
3249
  description?: string;
3312
3250
  data?: Record<string, any>;
3313
3251
  } | {
3314
- code?: 'VALIDATION_FAILURE';
3252
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
3315
3253
  description?: string;
3316
3254
  data?: Record<string, any>;
3317
3255
  } | {
3318
- code?: 'SLOT_NOT_AVAILABLE';
3256
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_CANCELED';
3319
3257
  description?: string;
3320
3258
  data?: Record<string, any>;
3321
3259
  } | {
3322
- code?: 'EMPTY_FORM_INFO';
3260
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3323
3261
  description?: string;
3324
3262
  data?: Record<string, any>;
3325
- } | {
3326
- code?: 'UNAUTHORIZED_OPERATION';
3263
+ };
3264
+ /** @docsIgnore */
3265
+ type MarkMultiServiceBookingAsPendingApplicationErrors = {
3266
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3327
3267
  description?: string;
3328
3268
  data?: Record<string, any>;
3329
3269
  } | {
3330
- code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3331
- description?: string;
3332
- data?: Record<string, any>;
3333
- };
3334
- /** @docsIgnore */
3335
- type RescheduleBookingApplicationErrors = {
3336
3270
  code?: 'BOOKING_NOT_FOUND';
3337
3271
  description?: string;
3338
3272
  data?: Record<string, any>;
3339
3273
  } | {
3340
- code?: 'BOOKING_POLICY_VIOLATION';
3274
+ code?: 'REVISION_MISSING';
3341
3275
  description?: string;
3342
3276
  data?: Record<string, any>;
3343
3277
  } | {
3344
- code?: 'UNAUTHORIZED_OPERATION';
3278
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3345
3279
  description?: string;
3346
3280
  data?: Record<string, any>;
3347
3281
  } | {
3348
- code?: 'SESSION_CAPACITY_EXCEEDED';
3282
+ code?: 'DUPLICATE_BOOKING_INFO';
3349
3283
  description?: string;
3350
3284
  data?: Record<string, any>;
3351
3285
  } | {
3352
- code?: 'SCHEDULE_CAPACITY_EXCEEDED';
3286
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3353
3287
  description?: string;
3354
3288
  data?: Record<string, any>;
3355
3289
  } | {
3356
- code?: 'SLOT_NOT_AVAILABLE';
3290
+ code?: 'BOOKING_REVISION_MISMATCH';
3357
3291
  description?: string;
3358
3292
  data?: Record<string, any>;
3359
3293
  } | {
3360
- code?: 'VALIDATION_FAILURE';
3294
+ code?: 'NO_OPEN_SPOTS';
3361
3295
  description?: string;
3362
3296
  data?: Record<string, any>;
3363
3297
  } | {
3364
- code?: 'EMPTY_FORM_INFO';
3298
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3365
3299
  description?: string;
3366
3300
  data?: Record<string, any>;
3367
- } | {
3368
- code?: 'SESSION_NOT_FOUND';
3301
+ };
3302
+ /** @docsIgnore */
3303
+ type ConfirmMultiServiceBookingApplicationErrors = {
3304
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3369
3305
  description?: string;
3370
3306
  data?: Record<string, any>;
3371
3307
  } | {
3372
- code?: 'SCHEDULE_NOT_FOUND';
3308
+ code?: 'BOOKING_NOT_FOUND';
3373
3309
  description?: string;
3374
3310
  data?: Record<string, any>;
3375
3311
  } | {
3376
- code?: 'RESOURCE_NOT_FOUND';
3312
+ code?: 'REVISION_MISSING';
3377
3313
  description?: string;
3378
3314
  data?: Record<string, any>;
3379
3315
  } | {
3380
- code?: 'FAILED_VALIDATING_AVAILABILITY';
3316
+ code?: 'INVALID_BOOKING_STATUS';
3381
3317
  description?: string;
3382
3318
  data?: Record<string, any>;
3383
3319
  } | {
3384
- code?: 'FAILED_RESOLVING_SESSION';
3320
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_CONFIRMED';
3385
3321
  description?: string;
3386
3322
  data?: Record<string, any>;
3387
3323
  } | {
3388
- code?: 'FAILED_RESOLVING_SCHEDULE';
3324
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3389
3325
  description?: string;
3390
3326
  data?: Record<string, any>;
3391
3327
  } | {
3392
- code?: 'INVALID_SERVICE_CHOICES';
3328
+ code?: 'DUPLICATE_BOOKING_INFO';
3393
3329
  description?: string;
3394
3330
  data?: Record<string, any>;
3395
3331
  } | {
3396
- code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
3332
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3397
3333
  description?: string;
3398
3334
  data?: Record<string, any>;
3399
3335
  } | {
3400
- code?: 'ADD_ON_NOT_FOUND';
3336
+ code?: 'BOOKING_REVISION_MISMATCH';
3401
3337
  description?: string;
3402
3338
  data?: Record<string, any>;
3403
3339
  } | {
3404
- code?: 'ADD_ON_CHANGES_NOT_ALLOWED';
3340
+ code?: 'NO_OPEN_SPOTS';
3405
3341
  description?: string;
3406
3342
  data?: Record<string, any>;
3407
3343
  } | {
3408
- code?: 'ADD_ON_GROUP_NOT_FOUND';
3344
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3409
3345
  description?: string;
3410
3346
  data?: Record<string, any>;
3411
3347
  } | {
3412
- code?: 'PRICE_CHANGE_NOT_ALLOWED';
3348
+ code?: 'NOT_ALL_BOOKINGS_HAVE_START_AND_END_DATE';
3413
3349
  description?: string;
3414
3350
  data?: Record<string, any>;
3415
3351
  };
3416
3352
  /** @docsIgnore */
3417
- type BookingsConfirmBookingApplicationErrors = {
3353
+ type DeclineMultiServiceBookingApplicationErrors = {
3354
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3355
+ description?: string;
3356
+ data?: Record<string, any>;
3357
+ } | {
3418
3358
  code?: 'BOOKING_NOT_FOUND';
3419
3359
  description?: string;
3420
3360
  data?: Record<string, any>;
3421
3361
  } | {
3422
- code?: 'FAILED_CONFIRMING_NON_PENDING_BOOKING';
3362
+ code?: 'REVISION_MISSING';
3423
3363
  description?: string;
3424
3364
  data?: Record<string, any>;
3425
3365
  } | {
@@ -3427,285 +3367,275 @@ type BookingsConfirmBookingApplicationErrors = {
3427
3367
  description?: string;
3428
3368
  data?: Record<string, any>;
3429
3369
  } | {
3430
- code?: 'NO_OPEN_SPOTS';
3370
+ code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
3431
3371
  description?: string;
3432
3372
  data?: Record<string, any>;
3433
- };
3434
- /** @docsIgnore */
3435
- type SetBookingSubmissionIdApplicationErrors = {
3436
- code?: 'BOOKING_NOT_FOUND';
3373
+ } | {
3374
+ code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3437
3375
  description?: string;
3438
3376
  data?: Record<string, any>;
3439
- };
3440
- /** @docsIgnore */
3441
- type UpdateExtendedFieldsApplicationErrors = {
3442
- code?: 'BOOKING_NOT_FOUND';
3377
+ } | {
3378
+ code?: 'DUPLICATE_BOOKING_INFO';
3443
3379
  description?: string;
3444
3380
  data?: Record<string, any>;
3445
- };
3446
- /** @docsIgnore */
3447
- type BookingsDeclineBookingApplicationErrors = {
3448
- code?: 'BOOKING_NOT_FOUND';
3381
+ } | {
3382
+ code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3449
3383
  description?: string;
3450
3384
  data?: Record<string, any>;
3451
3385
  } | {
3452
- code?: 'FAILED_DECLINE_NON_PENDING_BOOKING';
3386
+ code?: 'BOOKING_REVISION_MISMATCH';
3453
3387
  description?: string;
3454
3388
  data?: Record<string, any>;
3455
3389
  } | {
3456
- code?: 'INVALID_BOOKING_STATUS';
3390
+ code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3457
3391
  description?: string;
3458
3392
  data?: Record<string, any>;
3459
3393
  };
3460
3394
  /** @docsIgnore */
3461
- type BookingsCancelBookingApplicationErrors = {
3462
- code?: 'BOOKING_NOT_FOUND';
3395
+ type AddBookingsToMultiServiceBookingApplicationErrors = {
3396
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3463
3397
  description?: string;
3464
3398
  data?: Record<string, any>;
3465
3399
  } | {
3466
- code?: 'BOOKING_POLICY_VIOLATION';
3400
+ code?: 'BOOKING_NOT_FOUND';
3467
3401
  description?: string;
3468
3402
  data?: Record<string, any>;
3469
3403
  } | {
3470
- code?: 'VALIDATION_FAILURE';
3404
+ code?: 'BOOKING_REVISION_MISMATCH';
3471
3405
  description?: string;
3472
3406
  data?: Record<string, any>;
3473
3407
  } | {
3474
- code?: 'FEATURE_LIMIT_EXCEEDED';
3408
+ code?: 'BOOKING_ALREADY_PART_OF_ANOTHER_MULTI_SERVICE_BOOKING';
3475
3409
  description?: string;
3476
3410
  data?: Record<string, any>;
3477
3411
  } | {
3478
- code?: 'REFUND_NOT_ALLOWED';
3412
+ code?: 'MULTI_SERVICE_BOOKING_ALREADY_INCLUDES_BOOKING';
3479
3413
  description?: string;
3480
3414
  data?: Record<string, any>;
3481
3415
  } | {
3482
- code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
3416
+ code?: 'BOOKING_TO_ADD_STATUS_NOT_VALID';
3483
3417
  description?: string;
3484
3418
  data?: Record<string, any>;
3485
3419
  };
3486
3420
  /** @docsIgnore */
3487
- type BookingsUpdateNumberOfParticipantsApplicationErrors = {
3421
+ type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
3422
+ code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3423
+ description?: string;
3424
+ data?: Record<string, any>;
3425
+ } | {
3488
3426
  code?: 'BOOKING_NOT_FOUND';
3489
3427
  description?: string;
3490
3428
  data?: Record<string, any>;
3429
+ } | {
3430
+ code?: 'BOOKING_REVISION_MISMATCH';
3431
+ description?: string;
3432
+ data?: Record<string, any>;
3491
3433
  };
3492
3434
  /** @docsIgnore */
3493
- type MarkBookingAsPendingApplicationErrors = {
3494
- code?: 'BOOKING_MARK_BOOKING_AS_PENDING';
3435
+ type CreateBookingApplicationErrors = {
3436
+ code?: 'SESSION_NOT_FOUND';
3495
3437
  description?: string;
3496
3438
  data?: Record<string, any>;
3497
3439
  } | {
3498
- code?: 'BOOKING_NOT_FOUND';
3440
+ code?: 'SCHEDULE_NOT_FOUND';
3499
3441
  description?: string;
3500
3442
  data?: Record<string, any>;
3501
3443
  } | {
3502
- code?: 'NO_OPEN_SPOTS';
3444
+ code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3503
3445
  description?: string;
3504
3446
  data?: Record<string, any>;
3505
3447
  } | {
3506
- code?: 'NOT_PENDING_APPROVAL_SERVICE';
3448
+ code?: 'INVALID_CHOICES';
3507
3449
  description?: string;
3508
3450
  data?: Record<string, any>;
3509
- };
3510
- /** @docsIgnore */
3511
- type CreateMultiServiceBookingApplicationErrors = {
3451
+ } | {
3512
3452
  code?: 'VALIDATION_FAILURE';
3513
3453
  description?: string;
3514
3454
  data?: Record<string, any>;
3515
3455
  } | {
3516
- code?: 'SCHEDULE_NOT_FOUND';
3456
+ code?: 'SESSION_CAPACITY_EXCEEDED';
3517
3457
  description?: string;
3518
3458
  data?: Record<string, any>;
3519
3459
  } | {
3520
- code?: 'RESOURCE_NOT_FOUND';
3460
+ code?: 'SCHEDULE_CAPACITY_EXCEEDED';
3521
3461
  description?: string;
3522
3462
  data?: Record<string, any>;
3523
3463
  } | {
3524
- code?: 'EMPTY_FORM_INFO';
3464
+ code?: 'SLOT_NOT_AVAILABLE';
3525
3465
  description?: string;
3526
3466
  data?: Record<string, any>;
3527
3467
  } | {
3528
- code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3468
+ code?: 'FAILED_VALIDATING_AVAILABILITY';
3529
3469
  description?: string;
3530
3470
  data?: Record<string, any>;
3531
3471
  } | {
3532
- code?: 'INVALID_CHOICES';
3472
+ code?: 'BOOKING_POLICY_VIOLATION';
3533
3473
  description?: string;
3534
3474
  data?: Record<string, any>;
3535
3475
  } | {
3536
- code?: 'SLOT_NOT_AVAILABLE';
3476
+ code?: 'UNAUTHORIZED_OPERATION';
3537
3477
  description?: string;
3538
3478
  data?: Record<string, any>;
3539
3479
  } | {
3540
- code?: 'UNAUTHORIZED_OPERATION';
3480
+ code?: 'INVALID_SERVICE_CHOICES';
3541
3481
  description?: string;
3542
3482
  data?: Record<string, any>;
3543
3483
  } | {
3544
- code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3484
+ code?: 'INVALID_FLOW_SELECTED_RESOURCES';
3545
3485
  description?: string;
3546
3486
  data?: Record<string, any>;
3547
- };
3548
- /** @docsIgnore */
3549
- type RescheduleMultiServiceBookingApplicationErrors = {
3550
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3487
+ } | {
3488
+ code?: 'CAN_NOT_CREATE_BOOKING_WITH_MULTI_SERVICE_BOOKING_INFO';
3551
3489
  description?: string;
3552
3490
  data?: Record<string, any>;
3553
3491
  } | {
3554
- code?: 'BOOKING_NOT_FOUND';
3492
+ code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3555
3493
  description?: string;
3556
3494
  data?: Record<string, any>;
3557
3495
  } | {
3558
- code?: 'REVISION_MISSING';
3496
+ code?: 'INVALID_DATE_FORMAT';
3559
3497
  description?: string;
3560
3498
  data?: Record<string, any>;
3561
3499
  } | {
3562
- code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3500
+ code?: 'INVALID_TIME_ZONE';
3563
3501
  description?: string;
3564
3502
  data?: Record<string, any>;
3565
3503
  } | {
3566
- code?: 'DUPLICATE_BOOKING_INFO';
3504
+ code?: 'CONTACT_DETAILS_CONFLICT';
3505
+ description?: string;
3506
+ data?: Record<string, any>;
3507
+ };
3508
+ /** @docsIgnore */
3509
+ type BulkCreateBookingApplicationErrors = {
3510
+ code?: 'SESSION_NOT_FOUND';
3567
3511
  description?: string;
3568
3512
  data?: Record<string, any>;
3569
3513
  } | {
3570
- code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3514
+ code?: 'SCHEDULE_NOT_FOUND';
3571
3515
  description?: string;
3572
3516
  data?: Record<string, any>;
3573
3517
  } | {
3574
- code?: 'BOOKING_REVISION_MISMATCH';
3518
+ code?: 'RESOURCE_NOT_FOUND';
3575
3519
  description?: string;
3576
3520
  data?: Record<string, any>;
3577
3521
  } | {
3578
- code?: 'NO_OPEN_SPOTS';
3522
+ code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
3579
3523
  description?: string;
3580
3524
  data?: Record<string, any>;
3581
3525
  } | {
3582
- code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3526
+ code?: 'INVALID_CHOICES';
3583
3527
  description?: string;
3584
3528
  data?: Record<string, any>;
3585
- };
3586
- /** @docsIgnore */
3587
- type GetMultiServiceBookingAvailabilityApplicationErrors = {
3588
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3529
+ } | {
3530
+ code?: 'VALIDATION_FAILURE';
3589
3531
  description?: string;
3590
3532
  data?: Record<string, any>;
3591
- };
3592
- /** @docsIgnore */
3593
- type CancelMultiServiceBookingApplicationErrors = {
3594
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3533
+ } | {
3534
+ code?: 'SLOT_NOT_AVAILABLE';
3595
3535
  description?: string;
3596
3536
  data?: Record<string, any>;
3597
3537
  } | {
3598
- code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
3538
+ code?: 'EMPTY_FORM_INFO';
3599
3539
  description?: string;
3600
3540
  data?: Record<string, any>;
3601
3541
  } | {
3602
- code?: 'ALL_BOOKINGS_ARE_ALREADY_CANCELED';
3542
+ code?: 'UNAUTHORIZED_OPERATION';
3603
3543
  description?: string;
3604
3544
  data?: Record<string, any>;
3605
3545
  } | {
3606
- code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3546
+ code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
3607
3547
  description?: string;
3608
3548
  data?: Record<string, any>;
3609
3549
  };
3610
3550
  /** @docsIgnore */
3611
- type MarkMultiServiceBookingAsPendingApplicationErrors = {
3612
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3613
- description?: string;
3614
- data?: Record<string, any>;
3615
- } | {
3551
+ type RescheduleBookingApplicationErrors = {
3616
3552
  code?: 'BOOKING_NOT_FOUND';
3617
3553
  description?: string;
3618
3554
  data?: Record<string, any>;
3619
3555
  } | {
3620
- code?: 'REVISION_MISSING';
3556
+ code?: 'BOOKING_POLICY_VIOLATION';
3621
3557
  description?: string;
3622
3558
  data?: Record<string, any>;
3623
3559
  } | {
3624
- code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3560
+ code?: 'UNAUTHORIZED_OPERATION';
3625
3561
  description?: string;
3626
3562
  data?: Record<string, any>;
3627
3563
  } | {
3628
- code?: 'DUPLICATE_BOOKING_INFO';
3564
+ code?: 'SESSION_CAPACITY_EXCEEDED';
3629
3565
  description?: string;
3630
3566
  data?: Record<string, any>;
3631
3567
  } | {
3632
- code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3568
+ code?: 'SCHEDULE_CAPACITY_EXCEEDED';
3633
3569
  description?: string;
3634
3570
  data?: Record<string, any>;
3635
3571
  } | {
3636
- code?: 'BOOKING_REVISION_MISMATCH';
3572
+ code?: 'SLOT_NOT_AVAILABLE';
3637
3573
  description?: string;
3638
3574
  data?: Record<string, any>;
3639
3575
  } | {
3640
- code?: 'NO_OPEN_SPOTS';
3576
+ code?: 'VALIDATION_FAILURE';
3641
3577
  description?: string;
3642
3578
  data?: Record<string, any>;
3643
3579
  } | {
3644
- code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3580
+ code?: 'EMPTY_FORM_INFO';
3645
3581
  description?: string;
3646
3582
  data?: Record<string, any>;
3647
- };
3648
- /** @docsIgnore */
3649
- type ConfirmMultiServiceBookingApplicationErrors = {
3650
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3583
+ } | {
3584
+ code?: 'SESSION_NOT_FOUND';
3651
3585
  description?: string;
3652
3586
  data?: Record<string, any>;
3653
3587
  } | {
3654
- code?: 'BOOKING_NOT_FOUND';
3588
+ code?: 'SCHEDULE_NOT_FOUND';
3655
3589
  description?: string;
3656
3590
  data?: Record<string, any>;
3657
3591
  } | {
3658
- code?: 'REVISION_MISSING';
3592
+ code?: 'RESOURCE_NOT_FOUND';
3659
3593
  description?: string;
3660
3594
  data?: Record<string, any>;
3661
3595
  } | {
3662
- code?: 'INVALID_BOOKING_STATUS';
3596
+ code?: 'FAILED_VALIDATING_AVAILABILITY';
3663
3597
  description?: string;
3664
3598
  data?: Record<string, any>;
3665
3599
  } | {
3666
- code?: 'ALL_BOOKINGS_ARE_ALREADY_CONFIRMED';
3600
+ code?: 'FAILED_RESOLVING_SESSION';
3667
3601
  description?: string;
3668
3602
  data?: Record<string, any>;
3669
3603
  } | {
3670
- code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3604
+ code?: 'FAILED_RESOLVING_SCHEDULE';
3671
3605
  description?: string;
3672
3606
  data?: Record<string, any>;
3673
3607
  } | {
3674
- code?: 'DUPLICATE_BOOKING_INFO';
3608
+ code?: 'INVALID_SERVICE_CHOICES';
3675
3609
  description?: string;
3676
3610
  data?: Record<string, any>;
3677
3611
  } | {
3678
- code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3612
+ code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
3679
3613
  description?: string;
3680
3614
  data?: Record<string, any>;
3681
3615
  } | {
3682
- code?: 'BOOKING_REVISION_MISMATCH';
3616
+ code?: 'ADD_ON_NOT_FOUND';
3683
3617
  description?: string;
3684
3618
  data?: Record<string, any>;
3685
3619
  } | {
3686
- code?: 'NO_OPEN_SPOTS';
3620
+ code?: 'ADD_ON_CHANGES_NOT_ALLOWED';
3687
3621
  description?: string;
3688
3622
  data?: Record<string, any>;
3689
3623
  } | {
3690
- code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3624
+ code?: 'ADD_ON_GROUP_NOT_FOUND';
3691
3625
  description?: string;
3692
3626
  data?: Record<string, any>;
3693
3627
  } | {
3694
- code?: 'NOT_ALL_BOOKINGS_HAVE_START_AND_END_DATE';
3628
+ code?: 'PRICE_CHANGE_NOT_ALLOWED';
3695
3629
  description?: string;
3696
3630
  data?: Record<string, any>;
3697
3631
  };
3698
3632
  /** @docsIgnore */
3699
- type DeclineMultiServiceBookingApplicationErrors = {
3700
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3701
- description?: string;
3702
- data?: Record<string, any>;
3703
- } | {
3633
+ type BookingsConfirmBookingApplicationErrors = {
3704
3634
  code?: 'BOOKING_NOT_FOUND';
3705
3635
  description?: string;
3706
3636
  data?: Record<string, any>;
3707
3637
  } | {
3708
- code?: 'REVISION_MISSING';
3638
+ code?: 'FAILED_CONFIRMING_NON_PENDING_BOOKING';
3709
3639
  description?: string;
3710
3640
  data?: Record<string, any>;
3711
3641
  } | {
@@ -3713,59 +3643,71 @@ type DeclineMultiServiceBookingApplicationErrors = {
3713
3643
  description?: string;
3714
3644
  data?: Record<string, any>;
3715
3645
  } | {
3716
- code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
3646
+ code?: 'NO_OPEN_SPOTS';
3717
3647
  description?: string;
3718
3648
  data?: Record<string, any>;
3719
- } | {
3720
- code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
3649
+ };
3650
+ /** @docsIgnore */
3651
+ type SetBookingSubmissionIdApplicationErrors = {
3652
+ code?: 'BOOKING_NOT_FOUND';
3721
3653
  description?: string;
3722
3654
  data?: Record<string, any>;
3723
- } | {
3724
- code?: 'DUPLICATE_BOOKING_INFO';
3655
+ };
3656
+ /** @docsIgnore */
3657
+ type UpdateExtendedFieldsApplicationErrors = {
3658
+ code?: 'BOOKING_NOT_FOUND';
3725
3659
  description?: string;
3726
3660
  data?: Record<string, any>;
3727
- } | {
3728
- code?: 'SOME_BOOKINGS_UPDATES_FAILED';
3661
+ };
3662
+ /** @docsIgnore */
3663
+ type BookingsDeclineBookingApplicationErrors = {
3664
+ code?: 'BOOKING_NOT_FOUND';
3729
3665
  description?: string;
3730
3666
  data?: Record<string, any>;
3731
3667
  } | {
3732
- code?: 'BOOKING_REVISION_MISMATCH';
3668
+ code?: 'FAILED_DECLINE_NON_PENDING_BOOKING';
3733
3669
  description?: string;
3734
3670
  data?: Record<string, any>;
3735
3671
  } | {
3736
- code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
3672
+ code?: 'INVALID_BOOKING_STATUS';
3737
3673
  description?: string;
3738
3674
  data?: Record<string, any>;
3739
3675
  };
3740
3676
  /** @docsIgnore */
3741
- type AddBookingsToMultiServiceBookingApplicationErrors = {
3742
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3677
+ type BookingsCancelBookingApplicationErrors = {
3678
+ code?: 'BOOKING_NOT_FOUND';
3743
3679
  description?: string;
3744
3680
  data?: Record<string, any>;
3745
3681
  } | {
3746
- code?: 'BOOKING_NOT_FOUND';
3682
+ code?: 'BOOKING_POLICY_VIOLATION';
3747
3683
  description?: string;
3748
3684
  data?: Record<string, any>;
3749
3685
  } | {
3750
- code?: 'BOOKING_REVISION_MISMATCH';
3686
+ code?: 'VALIDATION_FAILURE';
3751
3687
  description?: string;
3752
3688
  data?: Record<string, any>;
3753
3689
  } | {
3754
- code?: 'BOOKING_ALREADY_PART_OF_ANOTHER_MULTI_SERVICE_BOOKING';
3690
+ code?: 'FEATURE_LIMIT_EXCEEDED';
3755
3691
  description?: string;
3756
3692
  data?: Record<string, any>;
3757
3693
  } | {
3758
- code?: 'MULTI_SERVICE_BOOKING_ALREADY_INCLUDES_BOOKING';
3694
+ code?: 'REFUND_NOT_ALLOWED';
3759
3695
  description?: string;
3760
3696
  data?: Record<string, any>;
3761
3697
  } | {
3762
- code?: 'BOOKING_TO_ADD_STATUS_NOT_VALID';
3698
+ code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
3763
3699
  description?: string;
3764
3700
  data?: Record<string, any>;
3765
3701
  };
3766
3702
  /** @docsIgnore */
3767
- type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
3768
- code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
3703
+ type BookingsUpdateNumberOfParticipantsApplicationErrors = {
3704
+ code?: 'BOOKING_NOT_FOUND';
3705
+ description?: string;
3706
+ data?: Record<string, any>;
3707
+ };
3708
+ /** @docsIgnore */
3709
+ type MarkBookingAsPendingApplicationErrors = {
3710
+ code?: 'BOOKING_MARK_BOOKING_AS_PENDING';
3769
3711
  description?: string;
3770
3712
  data?: Record<string, any>;
3771
3713
  } | {
@@ -3773,7 +3715,11 @@ type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
3773
3715
  description?: string;
3774
3716
  data?: Record<string, any>;
3775
3717
  } | {
3776
- code?: 'BOOKING_REVISION_MISMATCH';
3718
+ code?: 'NO_OPEN_SPOTS';
3719
+ description?: string;
3720
+ data?: Record<string, any>;
3721
+ } | {
3722
+ code?: 'NOT_PENDING_APPROVAL_SERVICE';
3777
3723
  description?: string;
3778
3724
  data?: Record<string, any>;
3779
3725
  };
@@ -3788,20 +3734,35 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
3788
3734
  __responseType: Q;
3789
3735
  __originalResponseType: R;
3790
3736
  };
3791
- declare function getAnonymousActionDetails(): __PublicMethodMetaInfo<'GET', {}, GetAnonymousActionDetailsRequest$1, GetAnonymousActionDetailsRequest, GetAnonymousActionDetailsResponse$1, GetAnonymousActionDetailsResponse>;
3792
- declare function cancelBookingAnonymously(): __PublicMethodMetaInfo<'POST', {
3793
- token: string;
3794
- }, CancelBookingAnonymouslyRequest$1, CancelBookingAnonymouslyRequest, CancelBookingAnonymouslyResponse$1, CancelBookingAnonymouslyResponse>;
3795
- declare function rescheduleBookingAnonymously(): __PublicMethodMetaInfo<'POST', {
3796
- token: string;
3797
- }, RescheduleBookingAnonymouslyRequest$1, RescheduleBookingAnonymouslyRequest, RescheduleBookingAnonymouslyResponse$1, RescheduleBookingAnonymouslyResponse>;
3798
- declare function getBookingAnonymously(): __PublicMethodMetaInfo<'GET', {
3799
- token: string;
3800
- }, GetBookingAnonymouslyRequest$1, GetBookingAnonymouslyRequest, GetBookingAnonymouslyResponse$1, GetBookingAnonymouslyResponse>;
3801
3737
  declare function confirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {
3802
3738
  bookingId: string;
3803
3739
  }, ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse$1, ConfirmOrDeclineBookingResponse>;
3804
3740
  declare function bulkConfirmOrDeclineBooking(): __PublicMethodMetaInfo<'POST', {}, BulkConfirmOrDeclineBookingRequest$1, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingResponse$1, BulkConfirmOrDeclineBookingResponse>;
3741
+ declare function createMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingRequest, CreateMultiServiceBookingResponse$1, CreateMultiServiceBookingResponse>;
3742
+ declare function rescheduleMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3743
+ multiServiceBookingId: string;
3744
+ }, RescheduleMultiServiceBookingRequest$1, RescheduleMultiServiceBookingRequest, RescheduleMultiServiceBookingResponse$1, RescheduleMultiServiceBookingResponse>;
3745
+ declare function getMultiServiceBookingAvailability(): __PublicMethodMetaInfo<'POST', {
3746
+ multiServiceBookingId: string;
3747
+ }, GetMultiServiceBookingAvailabilityRequest$1, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponse$1, GetMultiServiceBookingAvailabilityResponse>;
3748
+ declare function cancelMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3749
+ multiServiceBookingId: string;
3750
+ }, CancelMultiServiceBookingRequest$1, CancelMultiServiceBookingRequest, CancelMultiServiceBookingResponse$1, CancelMultiServiceBookingResponse>;
3751
+ declare function markMultiServiceBookingAsPending(): __PublicMethodMetaInfo<'POST', {
3752
+ multiServiceBookingId: string;
3753
+ }, MarkMultiServiceBookingAsPendingRequest$1, MarkMultiServiceBookingAsPendingRequest, MarkMultiServiceBookingAsPendingResponse$1, MarkMultiServiceBookingAsPendingResponse>;
3754
+ declare function confirmMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3755
+ multiServiceBookingId: string;
3756
+ }, ConfirmMultiServiceBookingRequest$1, ConfirmMultiServiceBookingRequest, ConfirmMultiServiceBookingResponse$1, ConfirmMultiServiceBookingResponse>;
3757
+ declare function declineMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3758
+ multiServiceBookingId: string;
3759
+ }, DeclineMultiServiceBookingRequest$1, DeclineMultiServiceBookingRequest, DeclineMultiServiceBookingResponse$1, DeclineMultiServiceBookingResponse>;
3760
+ declare function bulkGetMultiServiceBookingAllowedActions(): __PublicMethodMetaInfo<'POST', {}, BulkGetMultiServiceBookingAllowedActionsRequest$1, BulkGetMultiServiceBookingAllowedActionsRequest, BulkGetMultiServiceBookingAllowedActionsResponse$1, BulkGetMultiServiceBookingAllowedActionsResponse>;
3761
+ declare function getMultiServiceBooking(): __PublicMethodMetaInfo<'GET', {
3762
+ multiServiceBookingId: string;
3763
+ }, GetMultiServiceBookingRequest$1, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse$1, GetMultiServiceBookingResponse>;
3764
+ declare function addBookingsToMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingRequest, AddBookingsToMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingResponse>;
3765
+ declare function removeBookingsFromMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingResponse>;
3805
3766
  declare function createBooking(): __PublicMethodMetaInfo<'POST', {}, CreateBookingRequest$1, CreateBookingRequest, CreateBookingResponse$1, CreateBookingResponse>;
3806
3767
  declare function bulkCreateBooking(): __PublicMethodMetaInfo<'POST', {}, BulkCreateBookingRequest$1, BulkCreateBookingRequest, BulkCreateBookingResponse$1, BulkCreateBookingResponse>;
3807
3768
  declare function rescheduleBooking(): __PublicMethodMetaInfo<'POST', {
@@ -3825,33 +3786,19 @@ declare function cancelBooking(): __PublicMethodMetaInfo<'POST', {
3825
3786
  declare function updateNumberOfParticipants(): __PublicMethodMetaInfo<'POST', {
3826
3787
  bookingId: string;
3827
3788
  }, UpdateNumberOfParticipantsRequest$1, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsResponse$1, UpdateNumberOfParticipantsResponse>;
3789
+ declare function bulkCalculateAllowedActions(): __PublicMethodMetaInfo<'POST', {}, BulkCalculateAllowedActionsRequest$1, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse$1, BulkCalculateAllowedActionsResponse>;
3828
3790
  declare function markBookingAsPending(): __PublicMethodMetaInfo<'POST', {
3829
3791
  bookingId: string;
3830
3792
  }, MarkBookingAsPendingRequest$1, MarkBookingAsPendingRequest, MarkBookingAsPendingResponse$1, MarkBookingAsPendingResponse>;
3831
- declare function createMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingRequest, CreateMultiServiceBookingResponse$1, CreateMultiServiceBookingResponse>;
3832
- declare function rescheduleMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3833
- multiServiceBookingId: string;
3834
- }, RescheduleMultiServiceBookingRequest$1, RescheduleMultiServiceBookingRequest, RescheduleMultiServiceBookingResponse$1, RescheduleMultiServiceBookingResponse>;
3835
- declare function getMultiServiceBookingAvailability(): __PublicMethodMetaInfo<'POST', {
3836
- multiServiceBookingId: string;
3837
- }, GetMultiServiceBookingAvailabilityRequest$1, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponse$1, GetMultiServiceBookingAvailabilityResponse>;
3838
- declare function cancelMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3839
- multiServiceBookingId: string;
3840
- }, CancelMultiServiceBookingRequest$1, CancelMultiServiceBookingRequest, CancelMultiServiceBookingResponse$1, CancelMultiServiceBookingResponse>;
3841
- declare function markMultiServiceBookingAsPending(): __PublicMethodMetaInfo<'POST', {
3842
- multiServiceBookingId: string;
3843
- }, MarkMultiServiceBookingAsPendingRequest$1, MarkMultiServiceBookingAsPendingRequest, MarkMultiServiceBookingAsPendingResponse$1, MarkMultiServiceBookingAsPendingResponse>;
3844
- declare function confirmMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3845
- multiServiceBookingId: string;
3846
- }, ConfirmMultiServiceBookingRequest$1, ConfirmMultiServiceBookingRequest, ConfirmMultiServiceBookingResponse$1, ConfirmMultiServiceBookingResponse>;
3847
- declare function declineMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {
3848
- multiServiceBookingId: string;
3849
- }, DeclineMultiServiceBookingRequest$1, DeclineMultiServiceBookingRequest, DeclineMultiServiceBookingResponse$1, DeclineMultiServiceBookingResponse>;
3850
- declare function bulkGetMultiServiceBookingAllowedActions(): __PublicMethodMetaInfo<'POST', {}, BulkGetMultiServiceBookingAllowedActionsRequest$1, BulkGetMultiServiceBookingAllowedActionsRequest, BulkGetMultiServiceBookingAllowedActionsResponse$1, BulkGetMultiServiceBookingAllowedActionsResponse>;
3851
- declare function getMultiServiceBooking(): __PublicMethodMetaInfo<'GET', {
3852
- multiServiceBookingId: string;
3853
- }, GetMultiServiceBookingRequest$1, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse$1, GetMultiServiceBookingResponse>;
3854
- declare function addBookingsToMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingRequest, AddBookingsToMultiServiceBookingResponse$1, AddBookingsToMultiServiceBookingResponse>;
3855
- declare function removeBookingsFromMultiServiceBooking(): __PublicMethodMetaInfo<'POST', {}, RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse$1, RemoveBookingsFromMultiServiceBookingResponse>;
3793
+ declare function getAnonymousActionDetails(): __PublicMethodMetaInfo<'GET', {}, GetAnonymousActionDetailsRequest$1, GetAnonymousActionDetailsRequest, GetAnonymousActionDetailsResponse$1, GetAnonymousActionDetailsResponse>;
3794
+ declare function cancelBookingAnonymously(): __PublicMethodMetaInfo<'POST', {
3795
+ token: string;
3796
+ }, CancelBookingAnonymouslyRequest$1, CancelBookingAnonymouslyRequest, CancelBookingAnonymouslyResponse$1, CancelBookingAnonymouslyResponse>;
3797
+ declare function rescheduleBookingAnonymously(): __PublicMethodMetaInfo<'POST', {
3798
+ token: string;
3799
+ }, RescheduleBookingAnonymouslyRequest$1, RescheduleBookingAnonymouslyRequest, RescheduleBookingAnonymouslyResponse$1, RescheduleBookingAnonymouslyResponse>;
3800
+ declare function getBookingAnonymously(): __PublicMethodMetaInfo<'GET', {
3801
+ token: string;
3802
+ }, GetBookingAnonymouslyRequest$1, GetBookingAnonymouslyRequest, GetBookingAnonymouslyResponse$1, GetBookingAnonymouslyResponse>;
3856
3803
 
3857
- export { type ActionEvent as ActionEventOriginal, Actor as ActorOriginal, type ActorWithLiterals as ActorWithLiteralsOriginal, type AddBookingsToMultiServiceBookingApplicationErrors as AddBookingsToMultiServiceBookingApplicationErrorsOriginal, type AddBookingsToMultiServiceBookingRequest as AddBookingsToMultiServiceBookingRequestOriginal, type AddBookingsToMultiServiceBookingResponse as AddBookingsToMultiServiceBookingResponseOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, type AllowedActionsAnonymously as AllowedActionsAnonymouslyOriginal, type AllowedActions as AllowedActionsOriginal, type AnonymousBookingUrls as AnonymousBookingUrlsOriginal, type ApplicationError as ApplicationErrorOriginal, type AvailableResources as AvailableResourcesOriginal, type BookedAddOn as BookedAddOnOriginal, type BookedEntityItemOneOf as BookedEntityItemOneOfOriginal, type BookedEntity as BookedEntityOriginal, type BookedResource as BookedResourceOriginal, type BookedSchedule as BookedScheduleOriginal, type BookedSlot as BookedSlotOriginal, type BookingCanceled as BookingCanceledOriginal, type BookingChanged as BookingChangedOriginal, type BookingConfirmed as BookingConfirmedOriginal, type BookingDeclined as BookingDeclinedOriginal, type BookingDetails as BookingDetailsOriginal, type BookingFormFilled as BookingFormFilledOriginal, type BookingIdAndRevision as BookingIdAndRevisionOriginal, type BookingInfo as BookingInfoOriginal, type BookingMarkedAsPending as BookingMarkedAsPendingOriginal, type Booking as BookingOriginal, type BookingParticipantsInfoOneOf as BookingParticipantsInfoOneOfOriginal, type BookingPolicySettings as BookingPolicySettingsOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, type BookingRescheduled as BookingRescheduledOriginal, type BookingRescheduledPreviousParticipantsInfoOneOf as BookingRescheduledPreviousParticipantsInfoOneOfOriginal, type BookingResult as BookingResultOriginal, type BookingSource as BookingSourceOriginal, BookingStatus as BookingStatusOriginal, type BookingStatusWithLiterals as BookingStatusWithLiteralsOriginal, type BookingsCancelBookingApplicationErrors as BookingsCancelBookingApplicationErrorsOriginal, type BookingsConfirmBookingApplicationErrors as BookingsConfirmBookingApplicationErrorsOriginal, type BookingsDeclineBookingApplicationErrors as BookingsDeclineBookingApplicationErrorsOriginal, type BookingsUpdateNumberOfParticipantsApplicationErrors as BookingsUpdateNumberOfParticipantsApplicationErrorsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkBookingResult as BulkBookingResultOriginal, type BulkCalculateAllowedActionsRequest as BulkCalculateAllowedActionsRequestOriginal, type BulkCalculateAllowedActionsResponse as BulkCalculateAllowedActionsResponseOriginal, type BulkCalculateAllowedActionsResult as BulkCalculateAllowedActionsResultOriginal, type BulkConfirmOrDeclineBookingApplicationErrors as BulkConfirmOrDeclineBookingApplicationErrorsOriginal, type BulkConfirmOrDeclineBookingRequestBookingDetails as BulkConfirmOrDeclineBookingRequestBookingDetailsOriginal, type BulkConfirmOrDeclineBookingRequest as BulkConfirmOrDeclineBookingRequestOriginal, type BulkConfirmOrDeclineBookingResponse as BulkConfirmOrDeclineBookingResponseOriginal, type BulkCreateBookingApplicationErrors as BulkCreateBookingApplicationErrorsOriginal, type BulkCreateBookingRequest as BulkCreateBookingRequestOriginal, type BulkCreateBookingResponse as BulkCreateBookingResponseOriginal, type BulkGetMultiServiceBookingAllowedActionsRequest as BulkGetMultiServiceBookingAllowedActionsRequestOriginal, type BulkGetMultiServiceBookingAllowedActionsResponse as BulkGetMultiServiceBookingAllowedActionsResponseOriginal, type BulkRescheduleBookingRequestBooking as BulkRescheduleBookingRequestBookingOriginal, type BulkRescheduleBookingRequest as BulkRescheduleBookingRequestOriginal, type BulkRescheduleBookingResponse as BulkRescheduleBookingResponseOriginal, type BulkUpdateBookedScheduleRequest as BulkUpdateBookedScheduleRequestOriginal, type BulkUpdateBookedScheduleResponse as BulkUpdateBookedScheduleResponseOriginal, type BulkUpdateBookingRequest as BulkUpdateBookingRequestOriginal, type BulkUpdateBookingResponse as BulkUpdateBookingResponseOriginal, type CancelBookingAnonymouslyRequest as CancelBookingAnonymouslyRequestOriginal, type CancelBookingAnonymouslyResponse as CancelBookingAnonymouslyResponseOriginal, type CancelBookingFlowControlSettings as CancelBookingFlowControlSettingsOriginal, type CancelBookingRequestFlowControlSettings as CancelBookingRequestFlowControlSettingsOriginal, type CancelBookingRequest as CancelBookingRequestOriginal, type CancelBookingResponse as CancelBookingResponseOriginal, type CancelMultiServiceBookingApplicationErrors as CancelMultiServiceBookingApplicationErrorsOriginal, type CancelMultiServiceBookingRequest as CancelMultiServiceBookingRequestOriginal, type CancelMultiServiceBookingResponse as CancelMultiServiceBookingResponseOriginal, type Clash as ClashOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type ConfirmBookingFlowControlSettings as ConfirmBookingFlowControlSettingsOriginal, type ConfirmBookingRequest as ConfirmBookingRequestOriginal, type ConfirmBookingResponse as ConfirmBookingResponseOriginal, type ConfirmMultiServiceBookingApplicationErrors as ConfirmMultiServiceBookingApplicationErrorsOriginal, type ConfirmMultiServiceBookingRequest as ConfirmMultiServiceBookingRequestOriginal, type ConfirmMultiServiceBookingResponse as ConfirmMultiServiceBookingResponseOriginal, type ConfirmOrDeclineBookingApplicationErrors as ConfirmOrDeclineBookingApplicationErrorsOriginal, type ConfirmOrDeclineBookingRequest as ConfirmOrDeclineBookingRequestOriginal, type ConfirmOrDeclineBookingResponse as ConfirmOrDeclineBookingResponseOriginal, type ConfirmRequest as ConfirmRequestOriginal, type ConfirmResponse as ConfirmResponseOriginal, type ConsistentQueryBookingsRequest as ConsistentQueryBookingsRequestOriginal, type ConsistentQueryBookingsResponse as ConsistentQueryBookingsResponseOriginal, type ContactDetails as ContactDetailsOriginal, type CountBookingsRequest as CountBookingsRequestOriginal, type CountBookingsResponse as CountBookingsResponseOriginal, type CreateBookingApplicationErrors as CreateBookingApplicationErrorsOriginal, type CreateBookingFlowControlSettings as CreateBookingFlowControlSettingsOriginal, type CreateBookingInfo as CreateBookingInfoOriginal, type CreateBookingRequestFlowControlSettings as CreateBookingRequestFlowControlSettingsOriginal, type CreateBookingRequest as CreateBookingRequestOriginal, type CreateBookingResponse as CreateBookingResponseOriginal, type CreateMultiServiceBookingApplicationErrors as CreateMultiServiceBookingApplicationErrorsOriginal, type CreateMultiServiceBookingRequest as CreateMultiServiceBookingRequestOriginal, type CreateMultiServiceBookingResponse as CreateMultiServiceBookingResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomFormField as CustomFormFieldOriginal, type DeclineBookingFlowControlSettings as DeclineBookingFlowControlSettingsOriginal, type DeclineBookingRequest as DeclineBookingRequestOriginal, type DeclineBookingResponse as DeclineBookingResponseOriginal, type DeclineMultiServiceBookingApplicationErrors as DeclineMultiServiceBookingApplicationErrorsOriginal, type DeclineMultiServiceBookingRequest as DeclineMultiServiceBookingRequestOriginal, type DeclineMultiServiceBookingResponse as DeclineMultiServiceBookingResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FlowControlSettings as FlowControlSettingsOriginal, type GetAnonymousActionDetailsRequest as GetAnonymousActionDetailsRequestOriginal, type GetAnonymousActionDetailsResponse as GetAnonymousActionDetailsResponseOriginal, type GetBookingAnonymouslyRequest as GetBookingAnonymouslyRequestOriginal, type GetBookingAnonymouslyResponse as GetBookingAnonymouslyResponseOriginal, type GetMultiServiceBookingAvailabilityApplicationErrors as GetMultiServiceBookingAvailabilityApplicationErrorsOriginal, type GetMultiServiceBookingAvailabilityRequest as GetMultiServiceBookingAvailabilityRequestOriginal, type GetMultiServiceBookingAvailabilityResponseBookingInfo as GetMultiServiceBookingAvailabilityResponseBookingInfoOriginal, type GetMultiServiceBookingAvailabilityResponse as GetMultiServiceBookingAvailabilityResponseOriginal, type GetMultiServiceBookingRequest as GetMultiServiceBookingRequestOriginal, type GetMultiServiceBookingResponse as GetMultiServiceBookingResponseOriginal, type GetScheduleAvailabilityRequest as GetScheduleAvailabilityRequestOriginal, type GetScheduleAvailabilityResponse as GetScheduleAvailabilityResponseOriginal, type GetSlotAvailabilityRequest as GetSlotAvailabilityRequestOriginal, type GetSlotAvailabilityResponse as GetSlotAvailabilityResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, IdentificationDataIdentityType as IdentificationDataIdentityTypeOriginal, type IdentificationDataIdentityTypeWithLiterals as IdentificationDataIdentityTypeWithLiteralsOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type LegacyCreateBookingRequest as LegacyCreateBookingRequestOriginal, type LegacyCreateBookingResponse as LegacyCreateBookingResponseOriginal, LocationLocationType as LocationLocationTypeOriginal, type LocationLocationTypeWithLiterals as LocationLocationTypeWithLiteralsOriginal, type Location as LocationOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type MarkBookingAsPendingApplicationErrors as MarkBookingAsPendingApplicationErrorsOriginal, type MarkBookingAsPendingFlowControlSettings as MarkBookingAsPendingFlowControlSettingsOriginal, type MarkBookingAsPendingRequest as MarkBookingAsPendingRequestOriginal, type MarkBookingAsPendingResponse as MarkBookingAsPendingResponseOriginal, type MarkMultiServiceBookingAsPendingApplicationErrors as MarkMultiServiceBookingAsPendingApplicationErrorsOriginal, type MarkMultiServiceBookingAsPendingRequest as MarkMultiServiceBookingAsPendingRequestOriginal, type MarkMultiServiceBookingAsPendingResponse as MarkMultiServiceBookingAsPendingResponseOriginal, type MaskedBooking as MaskedBookingOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrationCheckIfClashesWithBlockedTimeRequest as MigrationCheckIfClashesWithBlockedTimeRequestOriginal, type MigrationCheckIfClashesWithBlockedTimeResponse as MigrationCheckIfClashesWithBlockedTimeResponseOriginal, type MsidAndBookingId as MsidAndBookingIdOriginal, type MultiServiceBookingInfo as MultiServiceBookingInfoOriginal, type MultiServiceBookingMetadata as MultiServiceBookingMetadataOriginal, type MultiServiceBooking as MultiServiceBookingOriginal, MultiServiceBookingType as MultiServiceBookingTypeOriginal, type MultiServiceBookingTypeWithLiterals as MultiServiceBookingTypeWithLiteralsOriginal, type NumberOfParticipantsUpdated as NumberOfParticipantsUpdatedOriginal, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf as NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOfOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type ParticipantChoices as ParticipantChoicesOriginal, type ParticipantNotification as ParticipantNotificationOriginal, PaymentStatus as PaymentStatusOriginal, type PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal, type PhoneCall as PhoneCallOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type QueryBookingsRequest as QueryBookingsRequestOriginal, type QueryBookingsResponse as QueryBookingsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RemoveBookingsFromMultiServiceBookingApplicationErrors as RemoveBookingsFromMultiServiceBookingApplicationErrorsOriginal, type RemoveBookingsFromMultiServiceBookingRequest as RemoveBookingsFromMultiServiceBookingRequestOriginal, type RemoveBookingsFromMultiServiceBookingResponse as RemoveBookingsFromMultiServiceBookingResponseOriginal, type RescheduleBookingAnonymouslyRequest as RescheduleBookingAnonymouslyRequestOriginal, type RescheduleBookingAnonymouslyResponse as RescheduleBookingAnonymouslyResponseOriginal, type RescheduleBookingApplicationErrors as RescheduleBookingApplicationErrorsOriginal, type RescheduleBookingFlowControlSettings as RescheduleBookingFlowControlSettingsOriginal, type RescheduleBookingInfo as RescheduleBookingInfoOriginal, type RescheduleBookingInfoParticipantsInfoOneOf as RescheduleBookingInfoParticipantsInfoOneOfOriginal, type RescheduleBookingRequestFlowControlSettings as RescheduleBookingRequestFlowControlSettingsOriginal, type RescheduleBookingRequest as RescheduleBookingRequestOriginal, type RescheduleBookingRequestParticipantsInfoOneOf as RescheduleBookingRequestParticipantsInfoOneOfOriginal, type RescheduleBookingResponse as RescheduleBookingResponseOriginal, type RescheduleMultiServiceBookingApplicationErrors as RescheduleMultiServiceBookingApplicationErrorsOriginal, type RescheduleMultiServiceBookingRequest as RescheduleMultiServiceBookingRequestOriginal, type RescheduleMultiServiceBookingResponse as RescheduleMultiServiceBookingResponseOriginal, type ResourceSelection as ResourceSelectionOriginal, type RestoreInfo as RestoreInfoOriginal, type ScheduleAvailability as ScheduleAvailabilityOriginal, SelectedPaymentOption as SelectedPaymentOptionOriginal, type SelectedPaymentOptionWithLiterals as SelectedPaymentOptionWithLiteralsOriginal, SelectionMethod as SelectionMethodOriginal, type SelectionMethodWithLiterals as SelectionMethodWithLiteralsOriginal, type ServiceChoiceChoiceOneOf as ServiceChoiceChoiceOneOfOriginal, type ServiceChoice as ServiceChoiceOriginal, type ServiceChoices as ServiceChoicesOriginal, type SetBookingFormAndSubmissionIdRequestCreatedByOneOf as SetBookingFormAndSubmissionIdRequestCreatedByOneOfOriginal, type SetBookingFormAndSubmissionIdRequest as SetBookingFormAndSubmissionIdRequestOriginal, type SetBookingFormAndSubmissionIdResponse as SetBookingFormAndSubmissionIdResponseOriginal, type SetBookingSessionIdRequest as SetBookingSessionIdRequestOriginal, type SetBookingSessionIdResponse as SetBookingSessionIdResponseOriginal, type SetBookingSubmissionIdApplicationErrors as SetBookingSubmissionIdApplicationErrorsOriginal, type SetBookingSubmissionIdRequest as SetBookingSubmissionIdRequestOriginal, type SetBookingSubmissionIdResponse as SetBookingSubmissionIdResponseOriginal, type SlotAvailability as SlotAvailabilityOriginal, type SlotBookings as SlotBookingsOriginal, type SlotLocation as SlotLocationOriginal, type Slot as SlotOriginal, type SlotResource as SlotResourceOriginal, type SlotSlotResource as SlotSlotResourceOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type StreetAddress as StreetAddressOriginal, type Subdivision as SubdivisionOriginal, type UpdateBookingRequest as UpdateBookingRequestOriginal, type UpdateBookingResponse as UpdateBookingResponseOriginal, type UpdateExtendedFieldsApplicationErrors as UpdateExtendedFieldsApplicationErrorsOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateNumberOfParticipantsRequest as UpdateNumberOfParticipantsRequestOriginal, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as UpdateNumberOfParticipantsRequestParticipantsInfoOneOfOriginal, type UpdateNumberOfParticipantsResponse as UpdateNumberOfParticipantsResponseOriginal, type V2CancelBookingRequest as V2CancelBookingRequestOriginal, type V2CancelBookingResponse as V2CancelBookingResponseOriginal, type V2ConfirmBookingRequest as V2ConfirmBookingRequestOriginal, type V2ConfirmBookingResponse as V2ConfirmBookingResponseOriginal, type V2CreateBookingRequestBookableItemOneOf as V2CreateBookingRequestBookableItemOneOfOriginal, type V2CreateBookingRequest as V2CreateBookingRequestOriginal, type V2CreateBookingRequestParticipantsInfoOneOf as V2CreateBookingRequestParticipantsInfoOneOfOriginal, type V2CreateBookingResponse as V2CreateBookingResponseOriginal, type V2DeclineBookingRequest as V2DeclineBookingRequestOriginal, type V2DeclineBookingResponse as V2DeclineBookingResponseOriginal, type V2PhoneCall as V2PhoneCallOriginal, type V2RescheduleBookingRequest as V2RescheduleBookingRequestOriginal, type V2RescheduleBookingRequestParticipantsInfoOneOf as V2RescheduleBookingRequestParticipantsInfoOneOfOriginal, type V2RescheduleBookingResponse as V2RescheduleBookingResponseOriginal, type V2Slot as V2SlotOriginal, type V2UpdateNumberOfParticipantsRequest as V2UpdateNumberOfParticipantsRequestOriginal, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOfOriginal, type V2UpdateNumberOfParticipantsResponse as V2UpdateNumberOfParticipantsResponseOriginal, ValueType as ValueTypeOriginal, type ValueTypeWithLiterals as ValueTypeWithLiteralsOriginal, type WaitingList as WaitingListOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WebhooksIdentificationDataIdOneOf as WebhooksIdentificationDataIdOneOfOriginal, type WebhooksIdentificationData as WebhooksIdentificationDataOriginal, type __PublicMethodMetaInfo, addBookingsToMultiServiceBooking, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelBookingAnonymously, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getAnonymousActionDetails, getBookingAnonymously, getMultiServiceBooking, getMultiServiceBookingAvailability, markBookingAsPending, markMultiServiceBookingAsPending, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleBookingAnonymously, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };
3804
+ export { type ActionEvent as ActionEventOriginal, Actor as ActorOriginal, type ActorWithLiterals as ActorWithLiteralsOriginal, type AddBookingsToMultiServiceBookingApplicationErrors as AddBookingsToMultiServiceBookingApplicationErrorsOriginal, type AddBookingsToMultiServiceBookingRequest as AddBookingsToMultiServiceBookingRequestOriginal, type AddBookingsToMultiServiceBookingResponse as AddBookingsToMultiServiceBookingResponseOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, type AllowedActionsAnonymously as AllowedActionsAnonymouslyOriginal, type AllowedActions as AllowedActionsOriginal, type AnonymousBookingUrls as AnonymousBookingUrlsOriginal, type ApplicationError as ApplicationErrorOriginal, type AvailableResources as AvailableResourcesOriginal, type BookedAddOn as BookedAddOnOriginal, type BookedEntityItemOneOf as BookedEntityItemOneOfOriginal, type BookedEntity as BookedEntityOriginal, type BookedResource as BookedResourceOriginal, type BookedSchedule as BookedScheduleOriginal, type BookedSlot as BookedSlotOriginal, type BookingCanceled as BookingCanceledOriginal, type BookingChanged as BookingChangedOriginal, type BookingConfirmed as BookingConfirmedOriginal, type BookingDeclined as BookingDeclinedOriginal, type BookingDetails as BookingDetailsOriginal, type BookingFormFilled as BookingFormFilledOriginal, type BookingIdAndRevision as BookingIdAndRevisionOriginal, type BookingInfo as BookingInfoOriginal, type BookingMarkedAsPending as BookingMarkedAsPendingOriginal, type Booking as BookingOriginal, type BookingParticipantsInfoOneOf as BookingParticipantsInfoOneOfOriginal, type BookingPolicySettings as BookingPolicySettingsOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, type BookingRescheduled as BookingRescheduledOriginal, type BookingRescheduledPreviousParticipantsInfoOneOf as BookingRescheduledPreviousParticipantsInfoOneOfOriginal, type BookingResult as BookingResultOriginal, type BookingSource as BookingSourceOriginal, BookingStatus as BookingStatusOriginal, type BookingStatusWithLiterals as BookingStatusWithLiteralsOriginal, type BookingsCancelBookingApplicationErrors as BookingsCancelBookingApplicationErrorsOriginal, type BookingsConfirmBookingApplicationErrors as BookingsConfirmBookingApplicationErrorsOriginal, type BookingsDeclineBookingApplicationErrors as BookingsDeclineBookingApplicationErrorsOriginal, type BookingsUpdateNumberOfParticipantsApplicationErrors as BookingsUpdateNumberOfParticipantsApplicationErrorsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkBookingResult as BulkBookingResultOriginal, type BulkCalculateAllowedActionsRequest as BulkCalculateAllowedActionsRequestOriginal, type BulkCalculateAllowedActionsResponse as BulkCalculateAllowedActionsResponseOriginal, type BulkCalculateAllowedActionsResult as BulkCalculateAllowedActionsResultOriginal, type BulkConfirmOrDeclineBookingApplicationErrors as BulkConfirmOrDeclineBookingApplicationErrorsOriginal, type BulkConfirmOrDeclineBookingRequestBookingDetails as BulkConfirmOrDeclineBookingRequestBookingDetailsOriginal, type BulkConfirmOrDeclineBookingRequest as BulkConfirmOrDeclineBookingRequestOriginal, type BulkConfirmOrDeclineBookingResponse as BulkConfirmOrDeclineBookingResponseOriginal, type BulkCreateBookingApplicationErrors as BulkCreateBookingApplicationErrorsOriginal, type BulkCreateBookingRequest as BulkCreateBookingRequestOriginal, type BulkCreateBookingResponse as BulkCreateBookingResponseOriginal, type BulkGetMultiServiceBookingAllowedActionsRequest as BulkGetMultiServiceBookingAllowedActionsRequestOriginal, type BulkGetMultiServiceBookingAllowedActionsResponse as BulkGetMultiServiceBookingAllowedActionsResponseOriginal, type BulkRescheduleBookingRequestBooking as BulkRescheduleBookingRequestBookingOriginal, type BulkRescheduleBookingRequest as BulkRescheduleBookingRequestOriginal, type BulkRescheduleBookingResponse as BulkRescheduleBookingResponseOriginal, type BulkUpdateBookedScheduleRequest as BulkUpdateBookedScheduleRequestOriginal, type BulkUpdateBookedScheduleResponse as BulkUpdateBookedScheduleResponseOriginal, type BulkUpdateBookingRequest as BulkUpdateBookingRequestOriginal, type BulkUpdateBookingResponse as BulkUpdateBookingResponseOriginal, type CancelBookingAnonymouslyRequest as CancelBookingAnonymouslyRequestOriginal, type CancelBookingAnonymouslyResponse as CancelBookingAnonymouslyResponseOriginal, type CancelBookingFlowControlSettings as CancelBookingFlowControlSettingsOriginal, type CancelBookingRequestFlowControlSettings as CancelBookingRequestFlowControlSettingsOriginal, type CancelBookingRequest as CancelBookingRequestOriginal, type CancelBookingResponse as CancelBookingResponseOriginal, type CancelMultiServiceBookingApplicationErrors as CancelMultiServiceBookingApplicationErrorsOriginal, type CancelMultiServiceBookingRequest as CancelMultiServiceBookingRequestOriginal, type CancelMultiServiceBookingResponse as CancelMultiServiceBookingResponseOriginal, type Clash as ClashOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type ConfirmBookingFlowControlSettings as ConfirmBookingFlowControlSettingsOriginal, type ConfirmBookingRequest as ConfirmBookingRequestOriginal, type ConfirmBookingResponse as ConfirmBookingResponseOriginal, type ConfirmMultiServiceBookingApplicationErrors as ConfirmMultiServiceBookingApplicationErrorsOriginal, type ConfirmMultiServiceBookingRequest as ConfirmMultiServiceBookingRequestOriginal, type ConfirmMultiServiceBookingResponse as ConfirmMultiServiceBookingResponseOriginal, type ConfirmOrDeclineBookingApplicationErrors as ConfirmOrDeclineBookingApplicationErrorsOriginal, type ConfirmOrDeclineBookingRequest as ConfirmOrDeclineBookingRequestOriginal, type ConfirmOrDeclineBookingResponse as ConfirmOrDeclineBookingResponseOriginal, type ConfirmRequest as ConfirmRequestOriginal, type ConfirmResponse as ConfirmResponseOriginal, type ConsistentQueryBookingsRequest as ConsistentQueryBookingsRequestOriginal, type ConsistentQueryBookingsResponse as ConsistentQueryBookingsResponseOriginal, type ContactDetails as ContactDetailsOriginal, type CountBookingsRequest as CountBookingsRequestOriginal, type CountBookingsResponse as CountBookingsResponseOriginal, type CreateBookingApplicationErrors as CreateBookingApplicationErrorsOriginal, type CreateBookingFlowControlSettings as CreateBookingFlowControlSettingsOriginal, type CreateBookingInfo as CreateBookingInfoOriginal, type CreateBookingRequestFlowControlSettings as CreateBookingRequestFlowControlSettingsOriginal, type CreateBookingRequest as CreateBookingRequestOriginal, type CreateBookingResponse as CreateBookingResponseOriginal, type CreateMultiServiceBookingApplicationErrors as CreateMultiServiceBookingApplicationErrorsOriginal, type CreateMultiServiceBookingRequest as CreateMultiServiceBookingRequestOriginal, type CreateMultiServiceBookingResponse as CreateMultiServiceBookingResponseOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomFormField as CustomFormFieldOriginal, type DeclineBookingFlowControlSettings as DeclineBookingFlowControlSettingsOriginal, type DeclineBookingRequest as DeclineBookingRequestOriginal, type DeclineBookingResponse as DeclineBookingResponseOriginal, type DeclineMultiServiceBookingApplicationErrors as DeclineMultiServiceBookingApplicationErrorsOriginal, type DeclineMultiServiceBookingRequest as DeclineMultiServiceBookingRequestOriginal, type DeclineMultiServiceBookingResponse as DeclineMultiServiceBookingResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FlowControlSettings as FlowControlSettingsOriginal, type GetAnonymousActionDetailsRequest as GetAnonymousActionDetailsRequestOriginal, type GetAnonymousActionDetailsResponse as GetAnonymousActionDetailsResponseOriginal, type GetBookingAnonymouslyRequest as GetBookingAnonymouslyRequestOriginal, type GetBookingAnonymouslyResponse as GetBookingAnonymouslyResponseOriginal, type GetMultiServiceBookingAvailabilityApplicationErrors as GetMultiServiceBookingAvailabilityApplicationErrorsOriginal, type GetMultiServiceBookingAvailabilityRequest as GetMultiServiceBookingAvailabilityRequestOriginal, type GetMultiServiceBookingAvailabilityResponseBookingInfo as GetMultiServiceBookingAvailabilityResponseBookingInfoOriginal, type GetMultiServiceBookingAvailabilityResponse as GetMultiServiceBookingAvailabilityResponseOriginal, type GetMultiServiceBookingRequest as GetMultiServiceBookingRequestOriginal, type GetMultiServiceBookingResponse as GetMultiServiceBookingResponseOriginal, type GetScheduleAvailabilityRequest as GetScheduleAvailabilityRequestOriginal, type GetScheduleAvailabilityResponse as GetScheduleAvailabilityResponseOriginal, type GetSlotAvailabilityRequest as GetSlotAvailabilityRequestOriginal, type GetSlotAvailabilityResponse as GetSlotAvailabilityResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, IdentificationDataIdentityType as IdentificationDataIdentityTypeOriginal, type IdentificationDataIdentityTypeWithLiterals as IdentificationDataIdentityTypeWithLiteralsOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type LegacyCreateBookingRequest as LegacyCreateBookingRequestOriginal, type LegacyCreateBookingResponse as LegacyCreateBookingResponseOriginal, LocationLocationType as LocationLocationTypeOriginal, type LocationLocationTypeWithLiterals as LocationLocationTypeWithLiteralsOriginal, type Location as LocationOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type MarkBookingAsPendingApplicationErrors as MarkBookingAsPendingApplicationErrorsOriginal, type MarkBookingAsPendingFlowControlSettings as MarkBookingAsPendingFlowControlSettingsOriginal, type MarkBookingAsPendingRequest as MarkBookingAsPendingRequestOriginal, type MarkBookingAsPendingResponse as MarkBookingAsPendingResponseOriginal, type MarkMultiServiceBookingAsPendingApplicationErrors as MarkMultiServiceBookingAsPendingApplicationErrorsOriginal, type MarkMultiServiceBookingAsPendingRequest as MarkMultiServiceBookingAsPendingRequestOriginal, type MarkMultiServiceBookingAsPendingResponse as MarkMultiServiceBookingAsPendingResponseOriginal, type MaskedBooking as MaskedBookingOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrationCheckIfClashesWithBlockedTimeRequest as MigrationCheckIfClashesWithBlockedTimeRequestOriginal, type MigrationCheckIfClashesWithBlockedTimeResponse as MigrationCheckIfClashesWithBlockedTimeResponseOriginal, type MsidAndBookingId as MsidAndBookingIdOriginal, type MultiServiceBookingInfo as MultiServiceBookingInfoOriginal, type MultiServiceBookingMetadata as MultiServiceBookingMetadataOriginal, type MultiServiceBooking as MultiServiceBookingOriginal, MultiServiceBookingType as MultiServiceBookingTypeOriginal, type MultiServiceBookingTypeWithLiterals as MultiServiceBookingTypeWithLiteralsOriginal, type NumberOfParticipantsUpdated as NumberOfParticipantsUpdatedOriginal, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf as NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOfOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type ParticipantChoices as ParticipantChoicesOriginal, type ParticipantNotification as ParticipantNotificationOriginal, PaymentStatus as PaymentStatusOriginal, type PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal, type PhoneCall as PhoneCallOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type QueryBookingsRequest as QueryBookingsRequestOriginal, type QueryBookingsResponse as QueryBookingsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RemoveBookingsFromMultiServiceBookingApplicationErrors as RemoveBookingsFromMultiServiceBookingApplicationErrorsOriginal, type RemoveBookingsFromMultiServiceBookingRequest as RemoveBookingsFromMultiServiceBookingRequestOriginal, type RemoveBookingsFromMultiServiceBookingResponse as RemoveBookingsFromMultiServiceBookingResponseOriginal, type RescheduleBookingAnonymouslyRequest as RescheduleBookingAnonymouslyRequestOriginal, type RescheduleBookingAnonymouslyResponse as RescheduleBookingAnonymouslyResponseOriginal, type RescheduleBookingApplicationErrors as RescheduleBookingApplicationErrorsOriginal, type RescheduleBookingFlowControlSettings as RescheduleBookingFlowControlSettingsOriginal, type RescheduleBookingInfo as RescheduleBookingInfoOriginal, type RescheduleBookingInfoParticipantsInfoOneOf as RescheduleBookingInfoParticipantsInfoOneOfOriginal, type RescheduleBookingRequestFlowControlSettings as RescheduleBookingRequestFlowControlSettingsOriginal, type RescheduleBookingRequest as RescheduleBookingRequestOriginal, type RescheduleBookingRequestParticipantsInfoOneOf as RescheduleBookingRequestParticipantsInfoOneOfOriginal, type RescheduleBookingResponse as RescheduleBookingResponseOriginal, type RescheduleMultiServiceBookingApplicationErrors as RescheduleMultiServiceBookingApplicationErrorsOriginal, type RescheduleMultiServiceBookingRequest as RescheduleMultiServiceBookingRequestOriginal, type RescheduleMultiServiceBookingResponse as RescheduleMultiServiceBookingResponseOriginal, type ResourceSelection as ResourceSelectionOriginal, type RestoreInfo as RestoreInfoOriginal, type ScheduleAvailability as ScheduleAvailabilityOriginal, SelectedPaymentOption as SelectedPaymentOptionOriginal, type SelectedPaymentOptionWithLiterals as SelectedPaymentOptionWithLiteralsOriginal, SelectionMethod as SelectionMethodOriginal, type SelectionMethodWithLiterals as SelectionMethodWithLiteralsOriginal, type ServiceChoiceChoiceOneOf as ServiceChoiceChoiceOneOfOriginal, type ServiceChoice as ServiceChoiceOriginal, type ServiceChoices as ServiceChoicesOriginal, type SetBookingSessionIdRequest as SetBookingSessionIdRequestOriginal, type SetBookingSessionIdResponse as SetBookingSessionIdResponseOriginal, type SetBookingSubmissionIdApplicationErrors as SetBookingSubmissionIdApplicationErrorsOriginal, type SetBookingSubmissionIdRequest as SetBookingSubmissionIdRequestOriginal, type SetBookingSubmissionIdResponse as SetBookingSubmissionIdResponseOriginal, type SlotAvailability as SlotAvailabilityOriginal, type SlotBookings as SlotBookingsOriginal, type SlotLocation as SlotLocationOriginal, type Slot as SlotOriginal, type SlotResource as SlotResourceOriginal, type SlotSlotResource as SlotSlotResourceOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type StreetAddress as StreetAddressOriginal, type Subdivision as SubdivisionOriginal, type UpdateBookingRequest as UpdateBookingRequestOriginal, type UpdateBookingResponse as UpdateBookingResponseOriginal, type UpdateExtendedFieldsApplicationErrors as UpdateExtendedFieldsApplicationErrorsOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateNumberOfParticipantsRequest as UpdateNumberOfParticipantsRequestOriginal, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as UpdateNumberOfParticipantsRequestParticipantsInfoOneOfOriginal, type UpdateNumberOfParticipantsResponse as UpdateNumberOfParticipantsResponseOriginal, type V2CancelBookingRequest as V2CancelBookingRequestOriginal, type V2CancelBookingResponse as V2CancelBookingResponseOriginal, type V2ConfirmBookingRequest as V2ConfirmBookingRequestOriginal, type V2ConfirmBookingResponse as V2ConfirmBookingResponseOriginal, type V2CreateBookingRequestBookableItemOneOf as V2CreateBookingRequestBookableItemOneOfOriginal, type V2CreateBookingRequest as V2CreateBookingRequestOriginal, type V2CreateBookingRequestParticipantsInfoOneOf as V2CreateBookingRequestParticipantsInfoOneOfOriginal, type V2CreateBookingResponse as V2CreateBookingResponseOriginal, type V2DeclineBookingRequest as V2DeclineBookingRequestOriginal, type V2DeclineBookingResponse as V2DeclineBookingResponseOriginal, type V2PhoneCall as V2PhoneCallOriginal, type V2RescheduleBookingRequest as V2RescheduleBookingRequestOriginal, type V2RescheduleBookingRequestParticipantsInfoOneOf as V2RescheduleBookingRequestParticipantsInfoOneOfOriginal, type V2RescheduleBookingResponse as V2RescheduleBookingResponseOriginal, type V2Slot as V2SlotOriginal, type V2UpdateNumberOfParticipantsRequest as V2UpdateNumberOfParticipantsRequestOriginal, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf as V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOfOriginal, type V2UpdateNumberOfParticipantsResponse as V2UpdateNumberOfParticipantsResponseOriginal, ValueType as ValueTypeOriginal, type ValueTypeWithLiterals as ValueTypeWithLiteralsOriginal, type WaitingList as WaitingListOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WebhooksIdentificationDataIdOneOf as WebhooksIdentificationDataIdOneOfOriginal, type WebhooksIdentificationData as WebhooksIdentificationDataOriginal, type __PublicMethodMetaInfo, addBookingsToMultiServiceBooking, bulkCalculateAllowedActions, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelBookingAnonymously, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getAnonymousActionDetails, getBookingAnonymously, getMultiServiceBooking, getMultiServiceBookingAvailability, markBookingAsPending, markMultiServiceBookingAsPending, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleBookingAnonymously, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };