@wix/auto_sdk_bookings_bookings 1.0.85 → 1.0.87
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 {
|
|
@@ -726,6 +731,14 @@ interface FlowControlSettings {
|
|
|
726
731
|
* pricing plan.
|
|
727
732
|
*/
|
|
728
733
|
withRefund?: boolean | null;
|
|
734
|
+
/**
|
|
735
|
+
* Whether [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) validations are skipped when creating a booking.
|
|
736
|
+
* For example, customers can choose an add-on from an [add-on group](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-add-on-groups) that's not associated with the service or choose more than the maximum number of different add-ons from a group.
|
|
737
|
+
* 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`.
|
|
738
|
+
*
|
|
739
|
+
* Default: `false`.
|
|
740
|
+
*/
|
|
741
|
+
skipAddOnValidation?: boolean | null;
|
|
729
742
|
}
|
|
730
743
|
interface ExtendedFields {
|
|
731
744
|
/**
|
|
@@ -1767,6 +1780,14 @@ interface CreateBookingFlowControlSettings {
|
|
|
1767
1780
|
* Default: `false`.
|
|
1768
1781
|
*/
|
|
1769
1782
|
skipSelectedPaymentOptionValidation?: boolean;
|
|
1783
|
+
/**
|
|
1784
|
+
* Whether Wix Bookings validates [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) when creating a booking.
|
|
1785
|
+
* 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`.
|
|
1786
|
+
* 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.
|
|
1787
|
+
*
|
|
1788
|
+
* Default: `false`.
|
|
1789
|
+
*/
|
|
1790
|
+
skipAddOnValidation?: boolean;
|
|
1770
1791
|
}
|
|
1771
1792
|
interface CreateBookingResponse {
|
|
1772
1793
|
/** Created booking. */
|
|
@@ -1881,6 +1902,12 @@ interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsI
|
|
|
1881
1902
|
* For example, whether to check availability when rescheduling a booking.
|
|
1882
1903
|
*/
|
|
1883
1904
|
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
1905
|
+
/**
|
|
1906
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) added to the booking.
|
|
1907
|
+
* 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.
|
|
1908
|
+
* @maxSize 21
|
|
1909
|
+
*/
|
|
1910
|
+
bookedAddOns?: BookedAddOn[];
|
|
1884
1911
|
}
|
|
1885
1912
|
/** @oneof */
|
|
1886
1913
|
interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
@@ -1919,6 +1946,13 @@ interface RescheduleBookingFlowControlSettings {
|
|
|
1919
1946
|
* Default: `false`.
|
|
1920
1947
|
*/
|
|
1921
1948
|
skipBusinessConfirmation?: boolean;
|
|
1949
|
+
/**
|
|
1950
|
+
* Whether you can update the list of add-ons associated with the booking when rescheduling.
|
|
1951
|
+
* 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`.
|
|
1952
|
+
*
|
|
1953
|
+
* Default: `false`.
|
|
1954
|
+
*/
|
|
1955
|
+
allowAddOnChanges?: boolean;
|
|
1922
1956
|
}
|
|
1923
1957
|
interface RescheduleBookingResponse {
|
|
1924
1958
|
/** Rescheduled booking. */
|
|
@@ -1964,6 +1998,11 @@ interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoO
|
|
|
1964
1998
|
* For a schedule, this is the end date of the last session.
|
|
1965
1999
|
*/
|
|
1966
2000
|
previousEndDate?: Date | null;
|
|
2001
|
+
/**
|
|
2002
|
+
* The add-ons that were associated with the booking before rescheduling.
|
|
2003
|
+
* @maxSize 21
|
|
2004
|
+
*/
|
|
2005
|
+
previousBookedAddOns?: BookedAddOn[];
|
|
1967
2006
|
}
|
|
1968
2007
|
/** @oneof */
|
|
1969
2008
|
interface BookingRescheduledPreviousParticipantsInfoOneOf {
|
|
@@ -2898,6 +2937,14 @@ interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOne
|
|
|
2898
2937
|
* To prevent conflicting changes, the current revision must be specified when managing the booking.
|
|
2899
2938
|
*/
|
|
2900
2939
|
revision?: string | null;
|
|
2940
|
+
/**
|
|
2941
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
|
|
2942
|
+
* You can only specify add-ons if both of these conditions are met:
|
|
2943
|
+
* - The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`.
|
|
2944
|
+
* - You must have `BOOKINGS.MANAGE_ADDONS` permissions and specify `flowControlSettings.allowAddOnChanges` as `true`.
|
|
2945
|
+
* @maxSize 21
|
|
2946
|
+
*/
|
|
2947
|
+
bookedAddOns?: BookedAddOn[];
|
|
2901
2948
|
}
|
|
2902
2949
|
/** @oneof */
|
|
2903
2950
|
interface RescheduleBookingInfoParticipantsInfoOneOf {
|
|
@@ -3988,7 +4035,7 @@ interface GetAnonymousActionDetailsOptions {
|
|
|
3988
4035
|
* @returns Response for CancelBookingAnonymously
|
|
3989
4036
|
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously
|
|
3990
4037
|
*/
|
|
3991
|
-
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>>;
|
|
4038
|
+
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>>;
|
|
3992
4039
|
interface CancelBookingAnonymouslyOptions {
|
|
3993
4040
|
/**
|
|
3994
4041
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
@@ -4010,7 +4057,7 @@ interface CancelBookingAnonymouslyOptions {
|
|
|
4010
4057
|
* @returns Response for RescheduleBookingAnonymously
|
|
4011
4058
|
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously
|
|
4012
4059
|
*/
|
|
4013
|
-
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>>;
|
|
4060
|
+
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>>;
|
|
4014
4061
|
interface RescheduleBookingAnonymouslyOptions {
|
|
4015
4062
|
/**
|
|
4016
4063
|
* Revision number, which increments by 1 each time the booking is rescheduled.
|
|
@@ -4028,7 +4075,7 @@ interface RescheduleBookingAnonymouslyOptions {
|
|
|
4028
4075
|
* @returns Response for GetBookingAnonymously
|
|
4029
4076
|
* @fqn com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously
|
|
4030
4077
|
*/
|
|
4031
|
-
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>>;
|
|
4078
|
+
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>>;
|
|
4032
4079
|
/**
|
|
4033
4080
|
* Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
|
|
4034
4081
|
* on the `paymentStatus` you provide, double booking conflicts, and whether
|
|
@@ -4075,7 +4122,7 @@ declare function getBookingAnonymously(token: string): Promise<NonNullablePaths<
|
|
|
4075
4122
|
* @applicableIdentity APP
|
|
4076
4123
|
* @fqn com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking
|
|
4077
4124
|
*/
|
|
4078
|
-
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> & {
|
|
4125
|
+
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> & {
|
|
4079
4126
|
__applicationErrorsType?: ConfirmOrDeclineBookingApplicationErrors;
|
|
4080
4127
|
}>;
|
|
4081
4128
|
interface ConfirmOrDeclineBookingOptions {
|
|
@@ -4148,12 +4195,26 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4148
4195
|
* If you omit `resource`, resource assignment and availability validation occur during booking confirmation.
|
|
4149
4196
|
* If no resources are available, the behavior depends on the confirmation method used and payment status.
|
|
4150
4197
|
*
|
|
4198
|
+
* ### Booking form data
|
|
4199
|
+
*
|
|
4200
|
+
* 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).
|
|
4201
|
+
* To create a booking with a completed booking form, specify the relevant data in `formSubmission`.
|
|
4202
|
+
* Ensure the values of the corresponding fields in `booking.contactDetails` and `formSubmission` are identical.
|
|
4203
|
+
* If these values don't match, Create Booking fails.
|
|
4204
|
+
* Therefore, we recommend specifying only `booking.contactDetails.contactId` when providing `formSubmission`.
|
|
4205
|
+
* Learn more about the [Bookings and Wix Forms integration](https://dev.wix.com/docs/rest/business-solutions/bookings/wix-forms-integration).
|
|
4206
|
+
*
|
|
4151
4207
|
* ### Participant information
|
|
4152
4208
|
*
|
|
4153
4209
|
* You must specify either `participantsChoices` or `totalParticipants`.
|
|
4154
4210
|
* The call fails if the specified `participantsChoices` aren't among the supported
|
|
4155
4211
|
* [service options and variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction).
|
|
4156
4212
|
*
|
|
4213
|
+
* ### Add-ons
|
|
4214
|
+
*
|
|
4215
|
+
* 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`.
|
|
4216
|
+
* Each selected add-on must belong to an [add-on group](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-add-on-groups) associated with the service and respect the group's selection limits.
|
|
4217
|
+
*
|
|
4157
4218
|
* ### Notify customers
|
|
4158
4219
|
*
|
|
4159
4220
|
* You can specify a `participantNotification.message` for the customer that's send
|
|
@@ -4175,17 +4236,6 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4175
4236
|
*
|
|
4176
4237
|
* 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.
|
|
4177
4238
|
*
|
|
4178
|
-
* ### Booking form data
|
|
4179
|
-
*
|
|
4180
|
-
* When customers sign up for a service, they must fill out the booking form.
|
|
4181
|
-
* To create a booking with a completed booking form, specify the relevant data in
|
|
4182
|
-
* `formSubmission`. Ensure the values of the corresponding fields in
|
|
4183
|
-
* `booking.contactDetails` and `formSubmission` are identical. If these values
|
|
4184
|
-
* don't match, Create Booking fails. Therefore, we recommend specifying
|
|
4185
|
-
* only `booking.contactDetails.contactId` when providing `formSubmission`.
|
|
4186
|
-
*
|
|
4187
|
-
* 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.
|
|
4188
|
-
*
|
|
4189
4239
|
* ### Admin overwrites
|
|
4190
4240
|
*
|
|
4191
4241
|
* There are small but important differences when you specify special
|
|
@@ -4198,6 +4248,8 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4198
4248
|
* bookings that require manual confirmation.
|
|
4199
4249
|
* - `{"skipSelectedPaymentOptionValidation": true}`: Allows customers to pay
|
|
4200
4250
|
* with payment methods that aren't supported for the service.
|
|
4251
|
+
* - `{"skipAddOnValidation": true}`: Allows customers to choose add-ons that aren't associated with the service or exceed group selection limits.
|
|
4252
|
+
* - `{"allowAddOnChanges": true}`: Allows customers to update the list of add-ons associated with the booking when rescheduling.
|
|
4201
4253
|
*
|
|
4202
4254
|
* When using special `flowControlSettings`, ensure you have sufficient
|
|
4203
4255
|
* permissions. If you encounter failed calls due to insufficient permissions,
|
|
@@ -4221,7 +4273,7 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4221
4273
|
* @applicableIdentity APP
|
|
4222
4274
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.CreateBooking
|
|
4223
4275
|
*/
|
|
4224
|
-
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> & {
|
|
4276
|
+
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> & {
|
|
4225
4277
|
__applicationErrorsType?: CreateBookingApplicationErrors;
|
|
4226
4278
|
}>;
|
|
4227
4279
|
interface CreateBookingOptions {
|
|
@@ -4279,6 +4331,13 @@ interface BulkCreateBookingOptions {
|
|
|
4279
4331
|
* a different session.
|
|
4280
4332
|
*
|
|
4281
4333
|
*
|
|
4334
|
+
* ### Updating add-ons
|
|
4335
|
+
*
|
|
4336
|
+
* 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.
|
|
4337
|
+
* To do so, both of these conditions must be met:
|
|
4338
|
+
* + The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`.
|
|
4339
|
+
* + You must have `BOOKINGS.MANAGE_ADDONS` permissions and specify `flowControlSettings.allowAddOnChanges` as `true`.
|
|
4340
|
+
*
|
|
4282
4341
|
* ### Course booking limitation
|
|
4283
4342
|
*
|
|
4284
4343
|
* You can't reschedule course bookings.
|
|
@@ -4343,7 +4402,7 @@ interface BulkCreateBookingOptions {
|
|
|
4343
4402
|
* @applicableIdentity MEMBER
|
|
4344
4403
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.RescheduleBooking
|
|
4345
4404
|
*/
|
|
4346
|
-
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> & {
|
|
4405
|
+
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> & {
|
|
4347
4406
|
__applicationErrorsType?: RescheduleBookingApplicationErrors;
|
|
4348
4407
|
}>;
|
|
4349
4408
|
interface RescheduleBookingOptions extends RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
@@ -4373,6 +4432,12 @@ interface RescheduleBookingOptions extends RescheduleBookingOptionsParticipantsI
|
|
|
4373
4432
|
* participants have booked the same service variant.
|
|
4374
4433
|
*/
|
|
4375
4434
|
participantsChoices?: ParticipantChoices;
|
|
4435
|
+
/**
|
|
4436
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) added to the booking.
|
|
4437
|
+
* 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.
|
|
4438
|
+
* @maxSize 21
|
|
4439
|
+
*/
|
|
4440
|
+
bookedAddOns?: BookedAddOn[];
|
|
4376
4441
|
}
|
|
4377
4442
|
/** @oneof */
|
|
4378
4443
|
interface RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
@@ -4449,7 +4514,7 @@ interface RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
|
4449
4514
|
* @applicableIdentity APP
|
|
4450
4515
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.ConfirmBooking
|
|
4451
4516
|
*/
|
|
4452
|
-
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> & {
|
|
4517
|
+
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> & {
|
|
4453
4518
|
__applicationErrorsType?: ConfirmBookingApplicationErrors;
|
|
4454
4519
|
}>;
|
|
4455
4520
|
interface ConfirmBookingOptions {
|
|
@@ -4485,7 +4550,7 @@ interface ConfirmBookingOptions {
|
|
|
4485
4550
|
* @applicableIdentity APP
|
|
4486
4551
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.SetBookingSubmissionId
|
|
4487
4552
|
*/
|
|
4488
|
-
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> & {
|
|
4553
|
+
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> & {
|
|
4489
4554
|
__applicationErrorsType?: SetBookingSubmissionIdApplicationErrors;
|
|
4490
4555
|
}>;
|
|
4491
4556
|
/**
|
|
@@ -4561,7 +4626,7 @@ interface UpdateExtendedFieldsOptions {
|
|
|
4561
4626
|
* @applicableIdentity APP
|
|
4562
4627
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.DeclineBooking
|
|
4563
4628
|
*/
|
|
4564
|
-
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> & {
|
|
4629
|
+
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> & {
|
|
4565
4630
|
__applicationErrorsType?: DeclineBookingApplicationErrors;
|
|
4566
4631
|
}>;
|
|
4567
4632
|
interface DeclineBookingOptions {
|
|
@@ -4636,7 +4701,7 @@ interface DeclineBookingOptions {
|
|
|
4636
4701
|
* @applicableIdentity MEMBER
|
|
4637
4702
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.CancelBooking
|
|
4638
4703
|
*/
|
|
4639
|
-
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> & {
|
|
4704
|
+
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> & {
|
|
4640
4705
|
__applicationErrorsType?: CancelBookingApplicationErrors;
|
|
4641
4706
|
}>;
|
|
4642
4707
|
interface CancelBookingOptions {
|
|
@@ -4681,7 +4746,7 @@ interface CancelBookingOptions {
|
|
|
4681
4746
|
* @applicableIdentity APP
|
|
4682
4747
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants
|
|
4683
4748
|
*/
|
|
4684
|
-
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> & {
|
|
4749
|
+
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> & {
|
|
4685
4750
|
__applicationErrorsType?: UpdateNumberOfParticipantsApplicationErrors;
|
|
4686
4751
|
}>;
|
|
4687
4752
|
interface UpdateNumberOfParticipantsOptions extends UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
@@ -4791,7 +4856,7 @@ interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
|
4791
4856
|
* @applicableIdentity APP
|
|
4792
4857
|
* @fqn com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending
|
|
4793
4858
|
*/
|
|
4794
|
-
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> & {
|
|
4859
|
+
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> & {
|
|
4795
4860
|
__applicationErrorsType?: MarkBookingAsPendingApplicationErrors;
|
|
4796
4861
|
}>;
|
|
4797
4862
|
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
|
},
|