@wix/auto_sdk_bookings_bookings 1.0.4 → 1.0.5

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 (69) hide show
  1. package/build/cjs/src/bookings-v2-booking-bookings.context.d.ts +17 -17
  2. package/build/cjs/src/bookings-v2-booking-bookings.context.js +17 -17
  3. package/build/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -1
  4. package/build/cjs/src/bookings-v2-booking-bookings.http.d.ts +116 -116
  5. package/build/cjs/src/bookings-v2-booking-bookings.http.js +860 -860
  6. package/build/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -1
  7. package/build/cjs/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
  8. package/build/cjs/src/bookings-v2-booking-bookings.meta.js +125 -125
  9. package/build/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -1
  10. package/build/cjs/src/bookings-v2-booking-bookings.public.d.ts +171 -171
  11. package/build/cjs/src/bookings-v2-booking-bookings.public.js +84 -84
  12. package/build/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -1
  13. package/build/cjs/src/bookings-v2-booking-bookings.types.d.ts +1276 -958
  14. package/build/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -1
  15. package/build/cjs/src/bookings-v2-booking-bookings.universal.d.ts +2178 -1802
  16. package/build/cjs/src/bookings-v2-booking-bookings.universal.js +867 -867
  17. package/build/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -1
  18. package/build/es/src/bookings-v2-booking-bookings.context.d.ts +17 -17
  19. package/build/es/src/bookings-v2-booking-bookings.context.js +16 -16
  20. package/build/es/src/bookings-v2-booking-bookings.context.js.map +1 -1
  21. package/build/es/src/bookings-v2-booking-bookings.http.d.ts +116 -116
  22. package/build/es/src/bookings-v2-booking-bookings.http.js +808 -808
  23. package/build/es/src/bookings-v2-booking-bookings.http.js.map +1 -1
  24. package/build/es/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
  25. package/build/es/src/bookings-v2-booking-bookings.meta.js +103 -103
  26. package/build/es/src/bookings-v2-booking-bookings.meta.js.map +1 -1
  27. package/build/es/src/bookings-v2-booking-bookings.public.d.ts +171 -171
  28. package/build/es/src/bookings-v2-booking-bookings.public.js +65 -65
  29. package/build/es/src/bookings-v2-booking-bookings.public.js.map +1 -1
  30. package/build/es/src/bookings-v2-booking-bookings.types.d.ts +1276 -958
  31. package/build/es/src/bookings-v2-booking-bookings.types.js.map +1 -1
  32. package/build/es/src/bookings-v2-booking-bookings.universal.d.ts +2178 -1802
  33. package/build/es/src/bookings-v2-booking-bookings.universal.js +879 -879
  34. package/build/es/src/bookings-v2-booking-bookings.universal.js.map +1 -1
  35. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.d.ts +17 -17
  36. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js +17 -17
  37. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js.map +1 -1
  38. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.d.ts +116 -116
  39. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js +860 -860
  40. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js.map +1 -1
  41. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
  42. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js +125 -125
  43. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js.map +1 -1
  44. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.d.ts +171 -171
  45. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js +84 -84
  46. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js.map +1 -1
  47. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.d.ts +1276 -958
  48. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js.map +1 -1
  49. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.d.ts +2178 -1802
  50. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js +867 -867
  51. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js.map +1 -1
  52. package/build/internal/es/src/bookings-v2-booking-bookings.context.d.ts +17 -17
  53. package/build/internal/es/src/bookings-v2-booking-bookings.context.js +16 -16
  54. package/build/internal/es/src/bookings-v2-booking-bookings.context.js.map +1 -1
  55. package/build/internal/es/src/bookings-v2-booking-bookings.http.d.ts +116 -116
  56. package/build/internal/es/src/bookings-v2-booking-bookings.http.js +808 -808
  57. package/build/internal/es/src/bookings-v2-booking-bookings.http.js.map +1 -1
  58. package/build/internal/es/src/bookings-v2-booking-bookings.meta.d.ts +24 -24
  59. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js +103 -103
  60. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js.map +1 -1
  61. package/build/internal/es/src/bookings-v2-booking-bookings.public.d.ts +171 -171
  62. package/build/internal/es/src/bookings-v2-booking-bookings.public.js +65 -65
  63. package/build/internal/es/src/bookings-v2-booking-bookings.public.js.map +1 -1
  64. package/build/internal/es/src/bookings-v2-booking-bookings.types.d.ts +1276 -958
  65. package/build/internal/es/src/bookings-v2-booking-bookings.types.js.map +1 -1
  66. package/build/internal/es/src/bookings-v2-booking-bookings.universal.d.ts +2178 -1802
  67. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js +879 -879
  68. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js.map +1 -1
  69. package/package.json +2 -2
@@ -1,13 +1,23 @@
1
- import { createMultiServiceBooking as publicCreateMultiServiceBooking, rescheduleMultiServiceBooking as publicRescheduleMultiServiceBooking, getMultiServiceBookingAvailability as publicGetMultiServiceBookingAvailability, cancelMultiServiceBooking as publicCancelMultiServiceBooking, markMultiServiceBookingAsPending as publicMarkMultiServiceBookingAsPending, confirmMultiServiceBooking as publicConfirmMultiServiceBooking, declineMultiServiceBooking as publicDeclineMultiServiceBooking, bulkGetMultiServiceBookingAllowedActions as publicBulkGetMultiServiceBookingAllowedActions, getMultiServiceBooking as publicGetMultiServiceBooking, addBookingsToMultiServiceBooking as publicAddBookingsToMultiServiceBooking, removeBookingsFromMultiServiceBooking as publicRemoveBookingsFromMultiServiceBooking, createBooking as publicCreateBooking, bulkCreateBooking as publicBulkCreateBooking, rescheduleBooking as publicRescheduleBooking, confirmBooking as publicConfirmBooking, updateExtendedFields as publicUpdateExtendedFields, declineBooking as publicDeclineBooking, cancelBooking as publicCancelBooking, updateNumberOfParticipants as publicUpdateNumberOfParticipants, confirmOrDeclineBooking as publicConfirmOrDeclineBooking, bulkConfirmOrDeclineBooking as publicBulkConfirmOrDeclineBooking } from './bookings-v2-booking-bookings.public.js';
1
+ import { confirmOrDeclineBooking as publicConfirmOrDeclineBooking, bulkConfirmOrDeclineBooking as publicBulkConfirmOrDeclineBooking, createBooking as publicCreateBooking, bulkCreateBooking as publicBulkCreateBooking, rescheduleBooking as publicRescheduleBooking, confirmBooking as publicConfirmBooking, updateExtendedFields as publicUpdateExtendedFields, declineBooking as publicDeclineBooking, cancelBooking as publicCancelBooking, updateNumberOfParticipants as publicUpdateNumberOfParticipants, createMultiServiceBooking as publicCreateMultiServiceBooking, rescheduleMultiServiceBooking as publicRescheduleMultiServiceBooking, getMultiServiceBookingAvailability as publicGetMultiServiceBookingAvailability, cancelMultiServiceBooking as publicCancelMultiServiceBooking, markMultiServiceBookingAsPending as publicMarkMultiServiceBookingAsPending, confirmMultiServiceBooking as publicConfirmMultiServiceBooking, declineMultiServiceBooking as publicDeclineMultiServiceBooking, bulkGetMultiServiceBookingAllowedActions as publicBulkGetMultiServiceBookingAllowedActions, getMultiServiceBooking as publicGetMultiServiceBooking, addBookingsToMultiServiceBooking as publicAddBookingsToMultiServiceBooking, removeBookingsFromMultiServiceBooking as publicRemoveBookingsFromMultiServiceBooking } from './bookings-v2-booking-bookings.public.js';
2
2
  import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
3
  import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
4
  import { onBookingCanceled as publicOnBookingCanceled } from './bookings-v2-booking-bookings.public.js';
5
5
  import { onBookingConfirmed as publicOnBookingConfirmed } from './bookings-v2-booking-bookings.public.js';
6
6
  import { onBookingCreated as publicOnBookingCreated } from './bookings-v2-booking-bookings.public.js';
7
7
  import { onBookingDeclined as publicOnBookingDeclined } from './bookings-v2-booking-bookings.public.js';
8
+ import { onBookingNumberOfParticipantsUpdated as publicOnBookingNumberOfParticipantsUpdated } from './bookings-v2-booking-bookings.public.js';
8
9
  import { onBookingRescheduled as publicOnBookingRescheduled } from './bookings-v2-booking-bookings.public.js';
9
10
  import { onBookingUpdated as publicOnBookingUpdated } from './bookings-v2-booking-bookings.public.js';
10
- import { onBookingNumberOfParticipantsUpdated as publicOnBookingNumberOfParticipantsUpdated } from './bookings-v2-booking-bookings.public.js';
11
+ export declare const confirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmOrDeclineBooking> & typeof publicConfirmOrDeclineBooking>;
12
+ export declare const bulkConfirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicBulkConfirmOrDeclineBooking> & typeof publicBulkConfirmOrDeclineBooking>;
13
+ export declare const createBooking: MaybeContext<BuildRESTFunction<typeof publicCreateBooking> & typeof publicCreateBooking>;
14
+ export declare const bulkCreateBooking: MaybeContext<BuildRESTFunction<typeof publicBulkCreateBooking> & typeof publicBulkCreateBooking>;
15
+ export declare const rescheduleBooking: MaybeContext<BuildRESTFunction<typeof publicRescheduleBooking> & typeof publicRescheduleBooking>;
16
+ export declare const confirmBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmBooking> & typeof publicConfirmBooking>;
17
+ export declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof publicUpdateExtendedFields> & typeof publicUpdateExtendedFields>;
18
+ export declare const declineBooking: MaybeContext<BuildRESTFunction<typeof publicDeclineBooking> & typeof publicDeclineBooking>;
19
+ export declare const cancelBooking: MaybeContext<BuildRESTFunction<typeof publicCancelBooking> & typeof publicCancelBooking>;
20
+ export declare const updateNumberOfParticipants: MaybeContext<BuildRESTFunction<typeof publicUpdateNumberOfParticipants> & typeof publicUpdateNumberOfParticipants>;
11
21
  export declare const createMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicCreateMultiServiceBooking> & typeof publicCreateMultiServiceBooking>;
12
22
  export declare const rescheduleMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicRescheduleMultiServiceBooking> & typeof publicRescheduleMultiServiceBooking>;
13
23
  export declare const getMultiServiceBookingAvailability: MaybeContext<BuildRESTFunction<typeof publicGetMultiServiceBookingAvailability> & typeof publicGetMultiServiceBookingAvailability>;
@@ -19,16 +29,6 @@ export declare const bulkGetMultiServiceBookingAllowedActions: MaybeContext<Buil
19
29
  export declare const getMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicGetMultiServiceBooking> & typeof publicGetMultiServiceBooking>;
20
30
  export declare const addBookingsToMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicAddBookingsToMultiServiceBooking> & typeof publicAddBookingsToMultiServiceBooking>;
21
31
  export declare const removeBookingsFromMultiServiceBooking: MaybeContext<BuildRESTFunction<typeof publicRemoveBookingsFromMultiServiceBooking> & typeof publicRemoveBookingsFromMultiServiceBooking>;
22
- export declare const createBooking: MaybeContext<BuildRESTFunction<typeof publicCreateBooking> & typeof publicCreateBooking>;
23
- export declare const bulkCreateBooking: MaybeContext<BuildRESTFunction<typeof publicBulkCreateBooking> & typeof publicBulkCreateBooking>;
24
- export declare const rescheduleBooking: MaybeContext<BuildRESTFunction<typeof publicRescheduleBooking> & typeof publicRescheduleBooking>;
25
- export declare const confirmBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmBooking> & typeof publicConfirmBooking>;
26
- export declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof publicUpdateExtendedFields> & typeof publicUpdateExtendedFields>;
27
- export declare const declineBooking: MaybeContext<BuildRESTFunction<typeof publicDeclineBooking> & typeof publicDeclineBooking>;
28
- export declare const cancelBooking: MaybeContext<BuildRESTFunction<typeof publicCancelBooking> & typeof publicCancelBooking>;
29
- export declare const updateNumberOfParticipants: MaybeContext<BuildRESTFunction<typeof publicUpdateNumberOfParticipants> & typeof publicUpdateNumberOfParticipants>;
30
- export declare const confirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicConfirmOrDeclineBooking> & typeof publicConfirmOrDeclineBooking>;
31
- export declare const bulkConfirmOrDeclineBooking: MaybeContext<BuildRESTFunction<typeof publicBulkConfirmOrDeclineBooking> & typeof publicBulkConfirmOrDeclineBooking>;
32
32
  /**
33
33
  * Triggered when a booking is canceled.
34
34
  */
@@ -45,6 +45,10 @@ export declare const onBookingCreated: ReturnType<typeof createEventModule<typeo
45
45
  * Triggered when a booking is declined.
46
46
  */
47
47
  export declare const onBookingDeclined: ReturnType<typeof createEventModule<typeof publicOnBookingDeclined>>;
48
+ /**
49
+ * Triggered when the number of participants is updated.
50
+ */
51
+ export declare const onBookingNumberOfParticipantsUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingNumberOfParticipantsUpdated>>;
48
52
  /**
49
53
  * Triggered when a booking is rescheduled.
50
54
  */
@@ -53,9 +57,5 @@ export declare const onBookingRescheduled: ReturnType<typeof createEventModule<t
53
57
  * Triggered when a booked schedule is updated.
54
58
  */
55
59
  export declare const onBookingUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingUpdated>>;
56
- /**
57
- * Triggered when the number of participants is updated.
58
- */
59
- export declare const onBookingNumberOfParticipantsUpdated: ReturnType<typeof createEventModule<typeof publicOnBookingNumberOfParticipantsUpdated>>;
60
60
  export { MultiServiceBookingType, LocationType, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentificationDataIdentityType, WebhookIdentityType, LocationLocationType, IdentityType, SortOrder, } from './bookings-v2-booking-bookings.universal.js';
61
- export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, Duration, MultiServiceBookingInfo, BookingFormFilled, SetBookingFormAndSubmissionIdRequest, SetBookingFormAndSubmissionIdResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, WebhooksIdentificationData, WebhooksIdentificationDataIdOneOf, CreateMultiServiceBookingRequest, CreateBookingFlowControlSettings, CreateMultiServiceBookingResponse, MultiServiceBooking, BookingResult, RescheduleMultiServiceBookingRequest, V2Slot, SlotSlotResource, SlotLocation, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingFlowControlSettings, RescheduleMultiServiceBookingResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, IdentificationData, IdentificationDataIdOneOf, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponse, BookingPolicyViolations, BookingPolicySettings, GetMultiServiceBookingAvailabilityResponseBookingInfo, CancelMultiServiceBookingRequest, CancelBookingFlowControlSettings, CancelMultiServiceBookingResponse, BookingCanceled, MarkMultiServiceBookingAsPendingRequest, BookingInfo, MarkBookingAsPendingFlowControlSettings, MarkMultiServiceBookingAsPendingResponse, ConfirmMultiServiceBookingRequest, ConfirmBookingFlowControlSettings, ConfirmMultiServiceBookingResponse, BookingConfirmed, DeclineMultiServiceBookingRequest, DeclineBookingFlowControlSettings, DeclineMultiServiceBookingResponse, BookingDeclined, BulkGetMultiServiceBookingAllowedActionsRequest, BulkGetMultiServiceBookingAllowedActionsResponse, BulkCalculateAllowedActionsResult, ItemMetadata, ApplicationError, AllowedActions, BulkActionMetadata, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse, MultiServiceBookingMetadata, AddBookingsToMultiServiceBookingRequest, BookingIdAndRevision, AddBookingsToMultiServiceBookingResponse, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse, BookingChanged, CreateBookingRequest, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, BulkBookingResult, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingResponse, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest, ConfirmBookingResponse, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, SetBookingSubmissionIdRequest, SetBookingSubmissionIdResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DeclineBookingRequest, DeclineBookingResponse, CancelBookingRequest, CancelBookingResponse, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, UpdateNumberOfParticipantsResponse, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, SlotAvailability, WaitingList, AvailableResources, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, ScheduleAvailability, MarkBookingAsPendingRequest, MarkBookingAsPendingResponse, BookingMarkedAsPending, MigrationCheckIfClashesWithBlockedTimeRequest, MsidAndBookingId, MigrationCheckIfClashesWithBlockedTimeResponse, Clash, CountBookingsRequest, CountBookingsResponse, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingResponse, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, Slot, SlotResource, CreateBookingRequestFlowControlSettings, V2CreateBookingResponse, V2CancelBookingRequest, CancelBookingRequestFlowControlSettings, V2CancelBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingRequestFlowControlSettings, V2RescheduleBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, MultiServiceBookingNonNullableFields, CreateMultiServiceBookingResponseNonNullableFields, RescheduleMultiServiceBookingResponseNonNullableFields, GetMultiServiceBookingAvailabilityResponseNonNullableFields, CancelMultiServiceBookingResponseNonNullableFields, MarkMultiServiceBookingAsPendingResponseNonNullableFields, ConfirmMultiServiceBookingResponseNonNullableFields, DeclineMultiServiceBookingResponseNonNullableFields, BulkGetMultiServiceBookingAllowedActionsResponseNonNullableFields, GetMultiServiceBookingResponseNonNullableFields, AddBookingsToMultiServiceBookingResponseNonNullableFields, RemoveBookingsFromMultiServiceBookingResponseNonNullableFields, CreateBookingResponseNonNullableFields, BulkCreateBookingResponseNonNullableFields, RescheduleBookingResponseNonNullableFields, ConfirmBookingResponseNonNullableFields, UpdateExtendedFieldsResponseNonNullableFields, DeclineBookingResponseNonNullableFields, CancelBookingResponseNonNullableFields, UpdateNumberOfParticipantsResponseNonNullableFields, ConfirmOrDeclineBookingResponseNonNullableFields, BulkConfirmOrDeclineBookingResponseNonNullableFields, BaseEventMetadata, EventMetadata, BookingCanceledEnvelope, BookingConfirmedEnvelope, BookingCreatedEnvelope, BookingDeclinedEnvelope, BookingRescheduledEnvelope, BookingUpdatedEnvelope, BookingNumberOfParticipantsUpdatedEnvelope, CreateMultiServiceBookingOptions, RescheduleMultiServiceBookingOptions, CancelMultiServiceBookingOptions, MarkMultiServiceBookingAsPendingOptions, ConfirmMultiServiceBookingOptions, DeclineMultiServiceBookingOptions, AddBookingsToMultiServiceBookingOptions, RemoveBookingsFromMultiServiceBookingOptions, CreateBookingOptions, BulkCreateBookingOptions, RescheduleBookingOptions, ConfirmBookingOptions, UpdateExtendedFieldsOptions, DeclineBookingOptions, CancelBookingOptions, UpdateNumberOfParticipantsOptions, ConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingOptions, } from './bookings-v2-booking-bookings.universal.js';
61
+ export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, Duration, MultiServiceBookingInfo, BookingFormFilled, SetBookingFormAndSubmissionIdRequest, SetBookingFormAndSubmissionIdResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, WebhooksIdentificationData, WebhooksIdentificationDataIdOneOf, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, Slot, SlotResource, CreateBookingRequestFlowControlSettings, V2CreateBookingResponse, V2CancelBookingRequest, CancelBookingRequestFlowControlSettings, V2CancelBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingRequestFlowControlSettings, V2RescheduleBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingResponse, BulkBookingResult, ItemMetadata, ApplicationError, BulkActionMetadata, BookingChanged, CreateBookingRequest, CreateBookingFlowControlSettings, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, V2Slot, SlotSlotResource, SlotLocation, RescheduleBookingFlowControlSettings, RescheduleBookingResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, IdentificationData, IdentificationDataIdOneOf, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest, ConfirmBookingFlowControlSettings, ConfirmBookingResponse, BookingConfirmed, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, SetBookingSubmissionIdRequest, SetBookingSubmissionIdResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DeclineBookingRequest, DeclineBookingFlowControlSettings, DeclineBookingResponse, BookingDeclined, CancelBookingRequest, CancelBookingFlowControlSettings, CancelBookingResponse, BookingCanceled, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, UpdateNumberOfParticipantsResponse, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, BulkCalculateAllowedActionsResult, AllowedActions, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, SlotAvailability, WaitingList, BookingPolicyViolations, BookingPolicySettings, AvailableResources, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, ScheduleAvailability, MarkBookingAsPendingRequest, MarkBookingAsPendingFlowControlSettings, MarkBookingAsPendingResponse, BookingMarkedAsPending, MigrationCheckIfClashesWithBlockedTimeRequest, MsidAndBookingId, MigrationCheckIfClashesWithBlockedTimeResponse, Clash, CountBookingsRequest, CountBookingsResponse, CreateMultiServiceBookingRequest, CreateMultiServiceBookingResponse, MultiServiceBooking, BookingResult, RescheduleMultiServiceBookingRequest, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleMultiServiceBookingResponse, GetMultiServiceBookingAvailabilityRequest, GetMultiServiceBookingAvailabilityResponse, GetMultiServiceBookingAvailabilityResponseBookingInfo, CancelMultiServiceBookingRequest, CancelMultiServiceBookingResponse, MarkMultiServiceBookingAsPendingRequest, BookingInfo, MarkMultiServiceBookingAsPendingResponse, ConfirmMultiServiceBookingRequest, ConfirmMultiServiceBookingResponse, DeclineMultiServiceBookingRequest, DeclineMultiServiceBookingResponse, BulkGetMultiServiceBookingAllowedActionsRequest, BulkGetMultiServiceBookingAllowedActionsResponse, GetMultiServiceBookingRequest, GetMultiServiceBookingResponse, MultiServiceBookingMetadata, AddBookingsToMultiServiceBookingRequest, BookingIdAndRevision, AddBookingsToMultiServiceBookingResponse, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingResponse, ConfirmOrDeclineBookingResponseNonNullableFields, BulkConfirmOrDeclineBookingResponseNonNullableFields, CreateBookingResponseNonNullableFields, BulkCreateBookingResponseNonNullableFields, RescheduleBookingResponseNonNullableFields, ConfirmBookingResponseNonNullableFields, UpdateExtendedFieldsResponseNonNullableFields, DeclineBookingResponseNonNullableFields, CancelBookingResponseNonNullableFields, UpdateNumberOfParticipantsResponseNonNullableFields, MultiServiceBookingNonNullableFields, CreateMultiServiceBookingResponseNonNullableFields, RescheduleMultiServiceBookingResponseNonNullableFields, GetMultiServiceBookingAvailabilityResponseNonNullableFields, CancelMultiServiceBookingResponseNonNullableFields, MarkMultiServiceBookingAsPendingResponseNonNullableFields, ConfirmMultiServiceBookingResponseNonNullableFields, DeclineMultiServiceBookingResponseNonNullableFields, BulkGetMultiServiceBookingAllowedActionsResponseNonNullableFields, GetMultiServiceBookingResponseNonNullableFields, AddBookingsToMultiServiceBookingResponseNonNullableFields, RemoveBookingsFromMultiServiceBookingResponseNonNullableFields, BaseEventMetadata, EventMetadata, BookingCanceledEnvelope, BookingConfirmedEnvelope, BookingCreatedEnvelope, BookingDeclinedEnvelope, BookingNumberOfParticipantsUpdatedEnvelope, BookingRescheduledEnvelope, BookingUpdatedEnvelope, ConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingOptions, CreateBookingOptions, BulkCreateBookingOptions, RescheduleBookingOptions, ConfirmBookingOptions, UpdateExtendedFieldsOptions, DeclineBookingOptions, CancelBookingOptions, UpdateNumberOfParticipantsOptions, CreateMultiServiceBookingOptions, RescheduleMultiServiceBookingOptions, CancelMultiServiceBookingOptions, MarkMultiServiceBookingAsPendingOptions, ConfirmMultiServiceBookingOptions, DeclineMultiServiceBookingOptions, AddBookingsToMultiServiceBookingOptions, RemoveBookingsFromMultiServiceBookingOptions, } from './bookings-v2-booking-bookings.universal.js';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.IdentityType = exports.LocationLocationType = exports.WebhookIdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.MultiServiceBookingType = exports.onBookingNumberOfParticipantsUpdated = exports.onBookingUpdated = exports.onBookingRescheduled = exports.onBookingDeclined = exports.onBookingCreated = exports.onBookingConfirmed = exports.onBookingCanceled = exports.bulkConfirmOrDeclineBooking = exports.confirmOrDeclineBooking = exports.updateNumberOfParticipants = exports.cancelBooking = exports.declineBooking = exports.updateExtendedFields = exports.confirmBooking = exports.rescheduleBooking = exports.bulkCreateBooking = exports.createBooking = exports.removeBookingsFromMultiServiceBooking = exports.addBookingsToMultiServiceBooking = exports.getMultiServiceBooking = exports.bulkGetMultiServiceBookingAllowedActions = exports.declineMultiServiceBooking = exports.confirmMultiServiceBooking = exports.markMultiServiceBookingAsPending = exports.cancelMultiServiceBooking = exports.getMultiServiceBookingAvailability = exports.rescheduleMultiServiceBooking = exports.createMultiServiceBooking = void 0;
3
+ exports.SortOrder = exports.IdentityType = exports.LocationLocationType = exports.WebhookIdentityType = exports.IdentificationDataIdentityType = exports.Actor = exports.Platform = exports.SelectedPaymentOption = exports.PaymentStatus = exports.BookingStatus = exports.ValueType = exports.LocationType = exports.MultiServiceBookingType = exports.onBookingUpdated = exports.onBookingRescheduled = exports.onBookingNumberOfParticipantsUpdated = exports.onBookingDeclined = exports.onBookingCreated = exports.onBookingConfirmed = exports.onBookingCanceled = exports.removeBookingsFromMultiServiceBooking = exports.addBookingsToMultiServiceBooking = exports.getMultiServiceBooking = exports.bulkGetMultiServiceBookingAllowedActions = exports.declineMultiServiceBooking = exports.confirmMultiServiceBooking = exports.markMultiServiceBookingAsPending = exports.cancelMultiServiceBooking = exports.getMultiServiceBookingAvailability = exports.rescheduleMultiServiceBooking = exports.createMultiServiceBooking = exports.updateNumberOfParticipants = exports.cancelBooking = exports.declineBooking = exports.updateExtendedFields = exports.confirmBooking = exports.rescheduleBooking = exports.bulkCreateBooking = exports.createBooking = exports.bulkConfirmOrDeclineBooking = exports.confirmOrDeclineBooking = void 0;
4
4
  const bookings_v2_booking_bookings_public_js_1 = require("./bookings-v2-booking-bookings.public.js");
5
5
  const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
6
  const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
@@ -11,6 +11,16 @@ const bookings_v2_booking_bookings_public_js_5 = require("./bookings-v2-booking-
11
11
  const bookings_v2_booking_bookings_public_js_6 = require("./bookings-v2-booking-bookings.public.js");
12
12
  const bookings_v2_booking_bookings_public_js_7 = require("./bookings-v2-booking-bookings.public.js");
13
13
  const bookings_v2_booking_bookings_public_js_8 = require("./bookings-v2-booking-bookings.public.js");
14
+ exports.confirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmOrDeclineBooking);
15
+ exports.bulkConfirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkConfirmOrDeclineBooking);
16
+ exports.createBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.createBooking);
17
+ exports.bulkCreateBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkCreateBooking);
18
+ exports.rescheduleBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.rescheduleBooking);
19
+ exports.confirmBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmBooking);
20
+ exports.updateExtendedFields = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateExtendedFields);
21
+ exports.declineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.declineBooking);
22
+ exports.cancelBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.cancelBooking);
23
+ exports.updateNumberOfParticipants = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateNumberOfParticipants);
14
24
  exports.createMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.createMultiServiceBooking);
15
25
  exports.rescheduleMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.rescheduleMultiServiceBooking);
16
26
  exports.getMultiServiceBookingAvailability = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.getMultiServiceBookingAvailability);
@@ -22,16 +32,6 @@ exports.bulkGetMultiServiceBookingAllowedActions = (0, rest_modules_1.createREST
22
32
  exports.getMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.getMultiServiceBooking);
23
33
  exports.addBookingsToMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.addBookingsToMultiServiceBooking);
24
34
  exports.removeBookingsFromMultiServiceBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.removeBookingsFromMultiServiceBooking);
25
- exports.createBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.createBooking);
26
- exports.bulkCreateBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkCreateBooking);
27
- exports.rescheduleBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.rescheduleBooking);
28
- exports.confirmBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmBooking);
29
- exports.updateExtendedFields = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateExtendedFields);
30
- exports.declineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.declineBooking);
31
- exports.cancelBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.cancelBooking);
32
- exports.updateNumberOfParticipants = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.updateNumberOfParticipants);
33
- exports.confirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.confirmOrDeclineBooking);
34
- exports.bulkConfirmOrDeclineBooking = (0, rest_modules_1.createRESTModule)(bookings_v2_booking_bookings_public_js_1.bulkConfirmOrDeclineBooking);
35
35
  /**
36
36
  * Triggered when a booking is canceled.
37
37
  */
@@ -49,17 +49,17 @@ exports.onBookingCreated = (0, event_definition_modules_1.createEventModule)(boo
49
49
  */
50
50
  exports.onBookingDeclined = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_5.onBookingDeclined);
51
51
  /**
52
- * Triggered when a booking is rescheduled.
52
+ * Triggered when the number of participants is updated.
53
53
  */
54
- exports.onBookingRescheduled = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_6.onBookingRescheduled);
54
+ exports.onBookingNumberOfParticipantsUpdated = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_6.onBookingNumberOfParticipantsUpdated);
55
55
  /**
56
- * Triggered when a booked schedule is updated.
56
+ * Triggered when a booking is rescheduled.
57
57
  */
58
- exports.onBookingUpdated = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_7.onBookingUpdated);
58
+ exports.onBookingRescheduled = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_7.onBookingRescheduled);
59
59
  /**
60
- * Triggered when the number of participants is updated.
60
+ * Triggered when a booked schedule is updated.
61
61
  */
62
- exports.onBookingNumberOfParticipantsUpdated = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_8.onBookingNumberOfParticipantsUpdated);
62
+ exports.onBookingUpdated = (0, event_definition_modules_1.createEventModule)(bookings_v2_booking_bookings_public_js_8.onBookingUpdated);
63
63
  var bookings_v2_booking_bookings_universal_js_1 = require("./bookings-v2-booking-bookings.universal.js");
64
64
  Object.defineProperty(exports, "MultiServiceBookingType", { enumerable: true, get: function () { return bookings_v2_booking_bookings_universal_js_1.MultiServiceBookingType; } });
65
65
  Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_v2_booking_bookings_universal_js_1.LocationType; } });
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-booking-bookings.context.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking-bookings.context.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"bookings-v2-booking-bookings.context.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking-bookings.context.ts"],"names":[],"mappings":"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"}
@@ -1,98 +1,56 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
2
  /**
3
- * Creates a multi-service booking.
4
- *
5
- *
6
- * See Create Booking for more information.
7
- */
8
- export declare function createMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
9
- /**
10
- * Reschedules a multi-service booking.
11
- *
12
- *
13
- * The call fails if at least 1 individual booking can't be rescheduled due
14
- * the service being unavailable or a rescheduling policy violation.
15
- *
16
- *
17
- * See Reschedule Booking for more information.
18
- */
19
- export declare function rescheduleMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
20
- /**
21
- * Retrieves a multi-service booking's availability.
22
- *
23
- *
24
- * Use List Multi Service Availability Time Slots to check availability for a
25
- * `SEQUENTIAL_BOOKINGS` multi-service booking.
26
- */
27
- export declare function getMultiServiceBookingAvailability(payload: object): RequestOptionsFactory<any>;
28
- /** Cancels a multi-service booking and thus all its individual bookings. */
29
- export declare function cancelMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
30
- /**
31
- * Updates the status of a multi-service booking to `PENDING`.
32
- *
33
- *
34
- * Also updates the status of each of individual bookings within the multi-service booking to `PENDING`.
35
- *
36
- * The call fails if the status for at least a single individual booking can't be updated.
37
- *
38
- * See Mark Booking as Pending for more information.
39
- */
40
- export declare function markMultiServiceBookingAsPending(payload: object): RequestOptionsFactory<any>;
41
- /**
42
- * Updates the status of a multi-service booking to `CONFIRMED`.
43
- *
44
- *
45
- * Also updates the status of each of individual bookings within the multi-service booking to `CONFIRMED`.
46
- *
47
- * The call fails if the status for at least a single individual booking can't be updated.
3
+ * Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
4
+ * on the `paymentStatus` you provide, double booking conflicts, and whether
5
+ * the service requires business approval.
48
6
  *
49
- * See Confirm Booking for more information.
50
- */
51
- export declare function confirmMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
52
- /**
53
- * Updates the status of a multi-service booking to `DECLINED`.
7
+ * ## eCommerce checkout restriction
54
8
  *
9
+ * Call this method only when using a custom checkout page. Don't
10
+ * call it when using a *Wix eCommerce checkout*
11
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
12
+ * In such cases, Wix automatically updates the booking status based on
13
+ * the `paymentStatus` of the corresponding *Wix eCommerce order*
14
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
55
15
  *
56
- * Also updates the status of each of individual bookings within the multi-service booking to `DECLINED`.
16
+ * ## New booking status
57
17
  *
58
- * The call fails if the status for at least a single individual booking can't be updated.
18
+ * The booking `status` is set to `DECLINED` if both of the following conditions
19
+ * are met:
20
+ * + You provide `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT` as payment status.
21
+ * + There is a double booking conflict.
59
22
  *
60
- * See Decline Booking for more information.
61
- */
62
- export declare function declineMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
63
- /** Retrieves the allowed actions for a list of multi-service bookings. */
64
- export declare function bulkGetMultiServiceBookingAllowedActions(payload: object): RequestOptionsFactory<any>;
65
- /**
66
- * Retrieves all single-service bookings belonging to a multi-service booking.
23
+ * If only one or none of these conditions is met, `status` is set to `PENDING`
24
+ * or `CONFIRMED` depending on whether the service requires business approval.
67
25
  *
26
+ * ## Double bookings
68
27
  *
69
- * If you call as an [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
70
- * who has permissions to read only part of the bookings,
71
- * only the permitted bookings are retrieved. The returned total number of
72
- * bookings includes also the bookings for which you don't have permissions.
73
- */
74
- export declare function getMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
75
- /**
76
- * Adds a list of single-service bookings to a multi-service booking.
28
+ * If there is a double booking conflict, but the booking has already been at least
29
+ * partially paid, the method still marks the booking as `PENDING` or `CONFIRMED`.
30
+ * Then, it also sets `doubleBooked` to `true`.
77
31
  *
32
+ * ## Admin overwrites
78
33
  *
79
- * The call fails, if at least 1 of the specified booking is already part of a
80
- * multi-service booking.
34
+ * There are small but important differences in confirmation behavior if the
35
+ * booking was created with special `flowControlSettings`:
36
+ * + If the booking's `flowControlSettings.skipAvailabilityValidation` was set to
37
+ * `true`, the booking is never declined regardless of double booking conflicts.
38
+ * Instead, it's marked `CONFIRMED` or `PENDING`, depending on whether the
39
+ * service requires business approval.
40
+ * + If the booking's `flowControlSettings.skipBusinessConfirmation` was set to
41
+ * `true`, the booking skips `PENDING` status and is marked `CONFIRMED`
42
+ * immediately.
81
43
  */
82
- export declare function addBookingsToMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
44
+ export declare function confirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
83
45
  /**
84
- * Removes single-service bookings from a multi-service booking and returns the
85
- * removed bookings.
86
- *
46
+ * Confirms or declines up to 300 bookings.
87
47
  *
88
- * If you specify an empty `bookings` array, all single-service bookings for which
89
- * the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
90
- * has read permissions are removed from the multi-service booking.
91
48
  *
92
- * If the call would create a multi-service booking including only 1 single-service
93
- * booking, the multi-service booking is also deleted.
49
+ * See *Confirm Or Decline Booking*
50
+ * ([SDK](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking))
51
+ * for details about when a booking is confirmed or declined.
94
52
  */
95
- export declare function removeBookingsFromMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
53
+ export declare function bulkConfirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
96
54
  /**
97
55
  * Creates a booking.
98
56
  *
@@ -457,54 +415,96 @@ export declare function bookingsCancelBooking(payload: object): RequestOptionsFa
457
415
  */
458
416
  export declare function bookingsUpdateNumberOfParticipants(payload: object): RequestOptionsFactory<any>;
459
417
  /**
460
- * Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
461
- * on the `paymentStatus` you provide, double booking conflicts, and whether
462
- * the service requires business approval.
418
+ * Creates a multi-service booking.
463
419
  *
464
- * ## eCommerce checkout restriction
465
420
  *
466
- * Call this method only when using a custom checkout page. Don't
467
- * call it when using a *Wix eCommerce checkout*
468
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
469
- * In such cases, Wix automatically updates the booking status based on
470
- * the `paymentStatus` of the corresponding *Wix eCommerce order*
471
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
421
+ * See Create Booking for more information.
422
+ */
423
+ export declare function createMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
424
+ /**
425
+ * Reschedules a multi-service booking.
472
426
  *
473
- * ## New booking status
474
427
  *
475
- * The booking `status` is set to `DECLINED` if both of the following conditions
476
- * are met:
477
- * + You provide `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT` as payment status.
478
- * + There is a double booking conflict.
428
+ * The call fails if at least 1 individual booking can't be rescheduled due
429
+ * the service being unavailable or a rescheduling policy violation.
479
430
  *
480
- * If only one or none of these conditions is met, `status` is set to `PENDING`
481
- * or `CONFIRMED` depending on whether the service requires business approval.
482
431
  *
483
- * ## Double bookings
432
+ * See Reschedule Booking for more information.
433
+ */
434
+ export declare function rescheduleMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
435
+ /**
436
+ * Retrieves a multi-service booking's availability.
484
437
  *
485
- * If there is a double booking conflict, but the booking has already been at least
486
- * partially paid, the method still marks the booking as `PENDING` or `CONFIRMED`.
487
- * Then, it also sets `doubleBooked` to `true`.
488
438
  *
489
- * ## Admin overwrites
439
+ * Use List Multi Service Availability Time Slots to check availability for a
440
+ * `SEQUENTIAL_BOOKINGS` multi-service booking.
441
+ */
442
+ export declare function getMultiServiceBookingAvailability(payload: object): RequestOptionsFactory<any>;
443
+ /** Cancels a multi-service booking and thus all its individual bookings. */
444
+ export declare function cancelMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
445
+ /**
446
+ * Updates the status of a multi-service booking to `PENDING`.
490
447
  *
491
- * There are small but important differences in confirmation behavior if the
492
- * booking was created with special `flowControlSettings`:
493
- * + If the booking's `flowControlSettings.skipAvailabilityValidation` was set to
494
- * `true`, the booking is never declined regardless of double booking conflicts.
495
- * Instead, it's marked `CONFIRMED` or `PENDING`, depending on whether the
496
- * service requires business approval.
497
- * + If the booking's `flowControlSettings.skipBusinessConfirmation` was set to
498
- * `true`, the booking skips `PENDING` status and is marked `CONFIRMED`
499
- * immediately.
448
+ *
449
+ * Also updates the status of each of individual bookings within the multi-service booking to `PENDING`.
450
+ *
451
+ * The call fails if the status for at least a single individual booking can't be updated.
452
+ *
453
+ * See Mark Booking as Pending for more information.
500
454
  */
501
- export declare function confirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
455
+ export declare function markMultiServiceBookingAsPending(payload: object): RequestOptionsFactory<any>;
502
456
  /**
503
- * Confirms or declines up to 300 bookings.
457
+ * Updates the status of a multi-service booking to `CONFIRMED`.
504
458
  *
505
459
  *
506
- * See *Confirm Or Decline Booking*
507
- * ([SDK](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking))
508
- * for details about when a booking is confirmed or declined.
460
+ * Also updates the status of each of individual bookings within the multi-service booking to `CONFIRMED`.
461
+ *
462
+ * The call fails if the status for at least a single individual booking can't be updated.
463
+ *
464
+ * See Confirm Booking for more information.
509
465
  */
510
- export declare function bulkConfirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
466
+ export declare function confirmMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
467
+ /**
468
+ * Updates the status of a multi-service booking to `DECLINED`.
469
+ *
470
+ *
471
+ * Also updates the status of each of individual bookings within the multi-service booking to `DECLINED`.
472
+ *
473
+ * The call fails if the status for at least a single individual booking can't be updated.
474
+ *
475
+ * See Decline Booking for more information.
476
+ */
477
+ export declare function declineMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
478
+ /** Retrieves the allowed actions for a list of multi-service bookings. */
479
+ export declare function bulkGetMultiServiceBookingAllowedActions(payload: object): RequestOptionsFactory<any>;
480
+ /**
481
+ * Retrieves all single-service bookings belonging to a multi-service booking.
482
+ *
483
+ *
484
+ * If you call as an [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
485
+ * who has permissions to read only part of the bookings,
486
+ * only the permitted bookings are retrieved. The returned total number of
487
+ * bookings includes also the bookings for which you don't have permissions.
488
+ */
489
+ export declare function getMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
490
+ /**
491
+ * Adds a list of single-service bookings to a multi-service booking.
492
+ *
493
+ *
494
+ * The call fails, if at least 1 of the specified booking is already part of a
495
+ * multi-service booking.
496
+ */
497
+ export declare function addBookingsToMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
498
+ /**
499
+ * Removes single-service bookings from a multi-service booking and returns the
500
+ * removed bookings.
501
+ *
502
+ *
503
+ * If you specify an empty `bookings` array, all single-service bookings for which
504
+ * the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
505
+ * has read permissions are removed from the multi-service booking.
506
+ *
507
+ * If the call would create a multi-service booking including only 1 single-service
508
+ * booking, the multi-service booking is also deleted.
509
+ */
510
+ export declare function removeBookingsFromMultiServiceBooking(payload: object): RequestOptionsFactory<any>;