@wix/auto_sdk_bookings_bookings 1.0.85 → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +35 -23
- package/build/cjs/index.js +4 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +88 -23
- package/build/cjs/index.typings.js +4 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +35 -23
- package/build/es/index.mjs +4 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +88 -23
- package/build/es/index.typings.mjs +4 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +35 -23
- package/build/internal/cjs/index.js +4 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +88 -23
- package/build/internal/cjs/index.typings.js +4 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +35 -23
- package/build/internal/es/index.mjs +4 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +88 -23
- package/build/internal/es/index.typings.mjs +4 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -153,6 +153,11 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
153
153
|
* @readonly
|
|
154
154
|
*/
|
|
155
155
|
formId?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
|
|
158
|
+
* @maxSize 21
|
|
159
|
+
*/
|
|
160
|
+
bookedAddOns?: BookedAddOn[];
|
|
156
161
|
}
|
|
157
162
|
/** @oneof */
|
|
158
163
|
interface BookingParticipantsInfoOneOf {
|
|
@@ -715,6 +720,14 @@ interface FlowControlSettings {
|
|
|
715
720
|
* pricing plan.
|
|
716
721
|
*/
|
|
717
722
|
withRefund?: boolean | null;
|
|
723
|
+
/**
|
|
724
|
+
* Whether [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) validations are skipped when creating a booking.
|
|
725
|
+
* For example, customers can choose an add-on from an [add-on group](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-on-groups/introduction) that's not associated with the service or choose more than the maximum number of different add-ons from a group.
|
|
726
|
+
* The calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) must have `BOOKINGS.MANAGE_ADDONS` permissions when specifying `true`.
|
|
727
|
+
*
|
|
728
|
+
* Default: `false`.
|
|
729
|
+
*/
|
|
730
|
+
skipAddOnValidation?: boolean | null;
|
|
718
731
|
}
|
|
719
732
|
interface ExtendedFields {
|
|
720
733
|
/**
|
|
@@ -1745,6 +1758,14 @@ interface CreateBookingFlowControlSettings {
|
|
|
1745
1758
|
* Default: `false`.
|
|
1746
1759
|
*/
|
|
1747
1760
|
skipSelectedPaymentOptionValidation?: boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* Whether Wix Bookings validates [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) when creating a booking.
|
|
1763
|
+
* The calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) must have `BOOKINGS.MANAGE_ADDONS` permissions to specify `true`.
|
|
1764
|
+
* This allows customers to choose an add-on that's not associated with the service or choose more than the maximum number of add-ons from a group.
|
|
1765
|
+
*
|
|
1766
|
+
* Default: `false`.
|
|
1767
|
+
*/
|
|
1768
|
+
skipAddOnValidation?: boolean;
|
|
1748
1769
|
}
|
|
1749
1770
|
interface CreateBookingResponse {
|
|
1750
1771
|
/** Created booking. */
|
|
@@ -1859,6 +1880,12 @@ interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsI
|
|
|
1859
1880
|
* For example, whether to check availability when rescheduling a booking.
|
|
1860
1881
|
*/
|
|
1861
1882
|
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
1883
|
+
/**
|
|
1884
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) added to the booking.
|
|
1885
|
+
* 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.
|
|
1886
|
+
* @maxSize 21
|
|
1887
|
+
*/
|
|
1888
|
+
bookedAddOns?: BookedAddOn[];
|
|
1862
1889
|
}
|
|
1863
1890
|
/** @oneof */
|
|
1864
1891
|
interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
@@ -1897,6 +1924,13 @@ interface RescheduleBookingFlowControlSettings {
|
|
|
1897
1924
|
* Default: `false`.
|
|
1898
1925
|
*/
|
|
1899
1926
|
skipBusinessConfirmation?: boolean;
|
|
1927
|
+
/**
|
|
1928
|
+
* Whether you can update the list of add-ons associated with the booking when rescheduling.
|
|
1929
|
+
* The calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) must have `BOOKINGS.MANAGE_ADDONS` permissions to specify `true`.
|
|
1930
|
+
*
|
|
1931
|
+
* Default: `false`.
|
|
1932
|
+
*/
|
|
1933
|
+
allowAddOnChanges?: boolean;
|
|
1900
1934
|
}
|
|
1901
1935
|
interface RescheduleBookingResponse {
|
|
1902
1936
|
/** Rescheduled booking. */
|
|
@@ -1942,6 +1976,11 @@ interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoO
|
|
|
1942
1976
|
* For a schedule, this is the end date of the last session.
|
|
1943
1977
|
*/
|
|
1944
1978
|
previousEndDate?: Date | null;
|
|
1979
|
+
/**
|
|
1980
|
+
* The add-ons that were associated with the booking before rescheduling.
|
|
1981
|
+
* @maxSize 21
|
|
1982
|
+
*/
|
|
1983
|
+
previousBookedAddOns?: BookedAddOn[];
|
|
1945
1984
|
}
|
|
1946
1985
|
/** @oneof */
|
|
1947
1986
|
interface BookingRescheduledPreviousParticipantsInfoOneOf {
|
|
@@ -2876,6 +2915,14 @@ interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOne
|
|
|
2876
2915
|
* To prevent conflicting changes, the current revision must be specified when managing the booking.
|
|
2877
2916
|
*/
|
|
2878
2917
|
revision?: string | null;
|
|
2918
|
+
/**
|
|
2919
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
|
|
2920
|
+
* You can only specify add-ons if both of these conditions are met:
|
|
2921
|
+
* - The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`.
|
|
2922
|
+
* - You must have `BOOKINGS.MANAGE_ADDONS` permissions and specify `flowControlSettings.allowAddOnChanges` as `true`.
|
|
2923
|
+
* @maxSize 21
|
|
2924
|
+
*/
|
|
2925
|
+
bookedAddOns?: BookedAddOn[];
|
|
2879
2926
|
}
|
|
2880
2927
|
/** @oneof */
|
|
2881
2928
|
interface RescheduleBookingInfoParticipantsInfoOneOf {
|
|
@@ -3966,7 +4013,7 @@ interface GetAnonymousActionDetailsOptions {
|
|
|
3966
4013
|
* @returns Response for CancelBookingAnonymously
|
|
3967
4014
|
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously
|
|
3968
4015
|
*/
|
|
3969
|
-
declare function cancelBookingAnonymously(token: string, options?: CancelBookingAnonymouslyOptions): Promise<NonNullablePaths<CancelBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7>>;
|
|
4016
|
+
declare function cancelBookingAnonymously(token: string, options?: CancelBookingAnonymouslyOptions): Promise<NonNullablePaths<CancelBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7>>;
|
|
3970
4017
|
interface CancelBookingAnonymouslyOptions {
|
|
3971
4018
|
/**
|
|
3972
4019
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
@@ -3988,7 +4035,7 @@ interface CancelBookingAnonymouslyOptions {
|
|
|
3988
4035
|
* @returns Response for RescheduleBookingAnonymously
|
|
3989
4036
|
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously
|
|
3990
4037
|
*/
|
|
3991
|
-
declare function rescheduleBookingAnonymously(token: string, slot: V2Slot, options: NonNullablePaths<RescheduleBookingAnonymouslyOptions, `revision`, 2>): Promise<NonNullablePaths<RescheduleBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7>>;
|
|
4038
|
+
declare function rescheduleBookingAnonymously(token: string, slot: V2Slot, options: NonNullablePaths<RescheduleBookingAnonymouslyOptions, `revision`, 2>): Promise<NonNullablePaths<RescheduleBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7>>;
|
|
3992
4039
|
interface RescheduleBookingAnonymouslyOptions {
|
|
3993
4040
|
/**
|
|
3994
4041
|
* Revision number, which increments by 1 each time the booking is rescheduled.
|
|
@@ -4006,7 +4053,7 @@ interface RescheduleBookingAnonymouslyOptions {
|
|
|
4006
4053
|
* @returns Response for GetBookingAnonymously
|
|
4007
4054
|
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously
|
|
4008
4055
|
*/
|
|
4009
|
-
declare function getBookingAnonymously(token: string): Promise<NonNullablePaths<GetBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `allowedActionsAnonymously.cancel` | `allowedActionsAnonymously.reschedule`, 7>>;
|
|
4056
|
+
declare function getBookingAnonymously(token: string): Promise<NonNullablePaths<GetBookingAnonymouslyResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId` | `allowedActionsAnonymously.cancel` | `allowedActionsAnonymously.reschedule`, 7>>;
|
|
4010
4057
|
/**
|
|
4011
4058
|
* Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
|
|
4012
4059
|
* on the `paymentStatus` you provide, double booking conflicts, and whether
|
|
@@ -4053,7 +4100,7 @@ declare function getBookingAnonymously(token: string): Promise<NonNullablePaths<
|
|
|
4053
4100
|
* @applicableIdentity APP
|
|
4054
4101
|
* @fqn com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking
|
|
4055
4102
|
*/
|
|
4056
|
-
declare function confirmOrDeclineBooking(bookingId: string, options?: ConfirmOrDeclineBookingOptions): Promise<NonNullablePaths<ConfirmOrDeclineBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4103
|
+
declare function confirmOrDeclineBooking(bookingId: string, options?: ConfirmOrDeclineBookingOptions): Promise<NonNullablePaths<ConfirmOrDeclineBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4057
4104
|
__applicationErrorsType?: ConfirmOrDeclineBookingApplicationErrors;
|
|
4058
4105
|
}>;
|
|
4059
4106
|
interface ConfirmOrDeclineBookingOptions {
|
|
@@ -4126,12 +4173,26 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4126
4173
|
* If you omit `resource`, resource assignment and availability validation occur during booking confirmation.
|
|
4127
4174
|
* If no resources are available, the behavior depends on the confirmation method used and payment status.
|
|
4128
4175
|
*
|
|
4176
|
+
* ### Booking form data
|
|
4177
|
+
*
|
|
4178
|
+
* When customers sign up for a service, they must fill out the [booking form](https://support.wix.com/en/article/wix-bookings-creating-and-setting-up-your-booking-forms).
|
|
4179
|
+
* To create a booking with a completed booking form, specify the relevant data in `formSubmission`.
|
|
4180
|
+
* Ensure the values of the corresponding fields in `booking.contactDetails` and `formSubmission` are identical.
|
|
4181
|
+
* If these values don't match, Create Booking fails.
|
|
4182
|
+
* Therefore, we recommend specifying only `booking.contactDetails.contactId` when providing `formSubmission`.
|
|
4183
|
+
* Learn more about the [Bookings and Wix Forms integration](https://dev.wix.com/docs/rest/business-solutions/bookings/wix-forms-integration).
|
|
4184
|
+
*
|
|
4129
4185
|
* ### Participant information
|
|
4130
4186
|
*
|
|
4131
4187
|
* You must specify either `participantsChoices` or `totalParticipants`.
|
|
4132
4188
|
* The call fails if the specified `participantsChoices` aren't among the supported
|
|
4133
4189
|
* [service options and variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
|
|
4134
4190
|
*
|
|
4191
|
+
* ### Add-ons
|
|
4192
|
+
*
|
|
4193
|
+
* You can include [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) when creating a booking by specifying `bookedAddOns`.
|
|
4194
|
+
* Each selected add-on must belong to an [add-on group](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-on-groups/introduction) associated with the service and respect the group's selection limits.
|
|
4195
|
+
*
|
|
4135
4196
|
* ### Notify customers
|
|
4136
4197
|
*
|
|
4137
4198
|
* You can specify a `participantNotification.message` for the customer that's send
|
|
@@ -4153,17 +4214,6 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4153
4214
|
*
|
|
4154
4215
|
* For customers using a custom checkout, call [Confirm or Decline Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking) to update booking's payment status manually.
|
|
4155
4216
|
*
|
|
4156
|
-
* ### Booking form data
|
|
4157
|
-
*
|
|
4158
|
-
* When customers sign up for a service, they must fill out the booking form.
|
|
4159
|
-
* To create a booking with a completed booking form, specify the relevant data in
|
|
4160
|
-
* `formSubmission`. Ensure the values of the corresponding fields in
|
|
4161
|
-
* `booking.contactDetails` and `formSubmission` are identical. If these values
|
|
4162
|
-
* don't match, Create Booking fails. Therefore, we recommend specifying
|
|
4163
|
-
* only `booking.contactDetails.contactId` when providing `formSubmission`.
|
|
4164
|
-
*
|
|
4165
|
-
* You can follow [this sample flow](https://dev.wix.com/docs/api-reference/business-solutions/bookings/wix-forms-integration#create-a-booking-with-a-filled-out-booking-form) to create bookings with booking form submissions.
|
|
4166
|
-
*
|
|
4167
4217
|
* ### Admin overwrites
|
|
4168
4218
|
*
|
|
4169
4219
|
* There are small but important differences when you specify special
|
|
@@ -4176,6 +4226,8 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4176
4226
|
* bookings that require manual confirmation.
|
|
4177
4227
|
* - `{"skipSelectedPaymentOptionValidation": true}`: Allows customers to pay
|
|
4178
4228
|
* with payment methods that aren't supported for the service.
|
|
4229
|
+
* - `{"skipAddOnValidation": true}`: Allows customers to choose add-ons that aren't associated with the service or exceed group selection limits.
|
|
4230
|
+
* - `{"allowAddOnChanges": true}`: Allows customers to update the list of add-ons associated with the booking when rescheduling.
|
|
4179
4231
|
*
|
|
4180
4232
|
* When using special `flowControlSettings`, ensure you have sufficient
|
|
4181
4233
|
* permissions. If you encounter failed calls due to insufficient permissions,
|
|
@@ -4199,7 +4251,7 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4199
4251
|
* @applicableIdentity APP
|
|
4200
4252
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.CreateBooking
|
|
4201
4253
|
*/
|
|
4202
|
-
declare function createBooking(booking: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity`, 4>, options?: CreateBookingOptions): Promise<NonNullablePaths<CreateBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4254
|
+
declare function createBooking(booking: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity`, 4>, options?: CreateBookingOptions): Promise<NonNullablePaths<CreateBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4203
4255
|
__applicationErrorsType?: CreateBookingApplicationErrors;
|
|
4204
4256
|
}>;
|
|
4205
4257
|
interface CreateBookingOptions {
|
|
@@ -4257,6 +4309,13 @@ interface BulkCreateBookingOptions {
|
|
|
4257
4309
|
* a different session.
|
|
4258
4310
|
*
|
|
4259
4311
|
*
|
|
4312
|
+
* ### Updating add-ons
|
|
4313
|
+
*
|
|
4314
|
+
* You can also call this method to update the list of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
|
|
4315
|
+
* To do so, both of these conditions must be met:
|
|
4316
|
+
* + The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`.
|
|
4317
|
+
* + You must have `BOOKINGS.MANAGE_ADDONS` permissions and specify `flowControlSettings.allowAddOnChanges` as `true`.
|
|
4318
|
+
*
|
|
4260
4319
|
* ### Course booking limitation
|
|
4261
4320
|
*
|
|
4262
4321
|
* You can't reschedule course bookings.
|
|
@@ -4321,7 +4380,7 @@ interface BulkCreateBookingOptions {
|
|
|
4321
4380
|
* @applicableIdentity MEMBER
|
|
4322
4381
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.RescheduleBooking
|
|
4323
4382
|
*/
|
|
4324
|
-
declare function rescheduleBooking(bookingId: string, slot: V2Slot, options?: NonNullablePaths<RescheduleBookingOptions, `revision`, 2>): Promise<NonNullablePaths<RescheduleBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4383
|
+
declare function rescheduleBooking(bookingId: string, slot: V2Slot, options?: NonNullablePaths<RescheduleBookingOptions, `revision`, 2>): Promise<NonNullablePaths<RescheduleBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4325
4384
|
__applicationErrorsType?: RescheduleBookingApplicationErrors;
|
|
4326
4385
|
}>;
|
|
4327
4386
|
interface RescheduleBookingOptions extends RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
@@ -4351,6 +4410,12 @@ interface RescheduleBookingOptions extends RescheduleBookingOptionsParticipantsI
|
|
|
4351
4410
|
* participants have booked the same service variant.
|
|
4352
4411
|
*/
|
|
4353
4412
|
participantsChoices?: ParticipantChoices;
|
|
4413
|
+
/**
|
|
4414
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) added to the booking.
|
|
4415
|
+
* 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.
|
|
4416
|
+
* @maxSize 21
|
|
4417
|
+
*/
|
|
4418
|
+
bookedAddOns?: BookedAddOn[];
|
|
4354
4419
|
}
|
|
4355
4420
|
/** @oneof */
|
|
4356
4421
|
interface RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
@@ -4427,7 +4492,7 @@ interface RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
|
4427
4492
|
* @applicableIdentity APP
|
|
4428
4493
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.ConfirmBooking
|
|
4429
4494
|
*/
|
|
4430
|
-
declare function confirmBooking(bookingId: string, revision: string, options?: ConfirmBookingOptions): Promise<NonNullablePaths<ConfirmBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4495
|
+
declare function confirmBooking(bookingId: string, revision: string, options?: ConfirmBookingOptions): Promise<NonNullablePaths<ConfirmBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4431
4496
|
__applicationErrorsType?: ConfirmBookingApplicationErrors;
|
|
4432
4497
|
}>;
|
|
4433
4498
|
interface ConfirmBookingOptions {
|
|
@@ -4463,7 +4528,7 @@ interface ConfirmBookingOptions {
|
|
|
4463
4528
|
* @applicableIdentity APP
|
|
4464
4529
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.SetBookingSubmissionId
|
|
4465
4530
|
*/
|
|
4466
|
-
declare function setBookingSubmissionId(bookingId: string, submissionId: string): Promise<NonNullablePaths<SetBookingSubmissionIdResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4531
|
+
declare function setBookingSubmissionId(bookingId: string, submissionId: string): Promise<NonNullablePaths<SetBookingSubmissionIdResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4467
4532
|
__applicationErrorsType?: SetBookingSubmissionIdApplicationErrors;
|
|
4468
4533
|
}>;
|
|
4469
4534
|
/**
|
|
@@ -4539,7 +4604,7 @@ interface UpdateExtendedFieldsOptions {
|
|
|
4539
4604
|
* @applicableIdentity APP
|
|
4540
4605
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.DeclineBooking
|
|
4541
4606
|
*/
|
|
4542
|
-
declare function declineBooking(bookingId: string, revision: string, options?: DeclineBookingOptions): Promise<NonNullablePaths<DeclineBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4607
|
+
declare function declineBooking(bookingId: string, revision: string, options?: DeclineBookingOptions): Promise<NonNullablePaths<DeclineBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4543
4608
|
__applicationErrorsType?: DeclineBookingApplicationErrors;
|
|
4544
4609
|
}>;
|
|
4545
4610
|
interface DeclineBookingOptions {
|
|
@@ -4614,7 +4679,7 @@ interface DeclineBookingOptions {
|
|
|
4614
4679
|
* @applicableIdentity MEMBER
|
|
4615
4680
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.CancelBooking
|
|
4616
4681
|
*/
|
|
4617
|
-
declare function cancelBooking(bookingId: string, options?: NonNullablePaths<CancelBookingOptions, `revision`, 2>): Promise<NonNullablePaths<CancelBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4682
|
+
declare function cancelBooking(bookingId: string, options?: NonNullablePaths<CancelBookingOptions, `revision`, 2>): Promise<NonNullablePaths<CancelBookingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4618
4683
|
__applicationErrorsType?: CancelBookingApplicationErrors;
|
|
4619
4684
|
}>;
|
|
4620
4685
|
interface CancelBookingOptions {
|
|
@@ -4659,7 +4724,7 @@ interface CancelBookingOptions {
|
|
|
4659
4724
|
* @applicableIdentity APP
|
|
4660
4725
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants
|
|
4661
4726
|
*/
|
|
4662
|
-
declare function updateNumberOfParticipants(bookingId: string, options?: NonNullablePaths<UpdateNumberOfParticipantsOptions, `revision`, 2>): Promise<NonNullablePaths<UpdateNumberOfParticipantsResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4727
|
+
declare function updateNumberOfParticipants(bookingId: string, options?: NonNullablePaths<UpdateNumberOfParticipantsOptions, `revision`, 2>): Promise<NonNullablePaths<UpdateNumberOfParticipantsResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4663
4728
|
__applicationErrorsType?: UpdateNumberOfParticipantsApplicationErrors;
|
|
4664
4729
|
}>;
|
|
4665
4730
|
interface UpdateNumberOfParticipantsOptions extends UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
@@ -4769,7 +4834,7 @@ interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
|
4769
4834
|
* @applicableIdentity APP
|
|
4770
4835
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending
|
|
4771
4836
|
*/
|
|
4772
|
-
declare function markBookingAsPending(bookingId: string, revision: string, options?: MarkBookingAsPendingOptions): Promise<NonNullablePaths<MarkBookingAsPendingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId`, 7> & {
|
|
4837
|
+
declare function markBookingAsPending(bookingId: string, revision: string, options?: MarkBookingAsPendingOptions): Promise<NonNullablePaths<MarkBookingAsPendingResponse, `booking.totalParticipants` | `booking.participantsChoices.serviceChoices` | `booking.bookedEntity.slot.serviceId` | `booking.bookedEntity.slot.scheduleId` | `booking.bookedEntity.slot.resource._id` | `booking.bookedEntity.slot.location.locationType` | `booking.bookedEntity.schedule.scheduleId` | `booking.bookedEntity.tags` | `booking.contactDetails.fullAddress.streetAddress.number` | `booking.contactDetails.fullAddress.streetAddress.name` | `booking.contactDetails.fullAddress.streetAddress.apt` | `booking.contactDetails.fullAddress.subdivisions` | `booking.contactDetails.fullAddress.subdivisions.${number}.code` | `booking.contactDetails.fullAddress.subdivisions.${number}.name` | `booking.additionalFields` | `booking.additionalFields.${number}._id` | `booking.additionalFields.${number}.valueType` | `booking.status` | `booking.paymentStatus` | `booking.selectedPaymentOption` | `booking.createdBy.anonymousVisitorId` | `booking.createdBy.memberId` | `booking.createdBy.wixUserId` | `booking.createdBy.appId` | `booking.bookedAddOns` | `booking.bookedAddOns.${number}._id` | `booking.bookedAddOns.${number}.groupId`, 7> & {
|
|
4773
4838
|
__applicationErrorsType?: MarkBookingAsPendingApplicationErrors;
|
|
4774
4839
|
}>;
|
|
4775
4840
|
interface MarkBookingAsPendingOptions {
|
|
@@ -1969,7 +1969,8 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1969
1969
|
participantNotification: options?.participantNotification,
|
|
1970
1970
|
flowControlSettings: options?.flowControlSettings,
|
|
1971
1971
|
totalParticipants: options?.totalParticipants,
|
|
1972
|
-
participantsChoices: options?.participantsChoices
|
|
1972
|
+
participantsChoices: options?.participantsChoices,
|
|
1973
|
+
bookedAddOns: options?.bookedAddOns
|
|
1973
1974
|
});
|
|
1974
1975
|
const reqOpts = rescheduleBooking(payload);
|
|
1975
1976
|
sideEffects?.onSiteCall?.();
|
|
@@ -1989,7 +1990,8 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1989
1990
|
participantNotification: "$[2].participantNotification",
|
|
1990
1991
|
flowControlSettings: "$[2].flowControlSettings",
|
|
1991
1992
|
totalParticipants: "$[2].totalParticipants",
|
|
1992
|
-
participantsChoices: "$[2].participantsChoices"
|
|
1993
|
+
participantsChoices: "$[2].participantsChoices",
|
|
1994
|
+
bookedAddOns: "$[2].bookedAddOns"
|
|
1993
1995
|
},
|
|
1994
1996
|
singleArgumentUnchanged: false
|
|
1995
1997
|
},
|