@wix/auto_sdk_bookings_bookings 1.0.25 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/build/{es/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.mts} +629 -247
  2. package/build/{cjs/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.ts} +629 -247
  3. package/build/{es/src/bookings-v2-booking-bookings.public.d.ts → index.d.mts} +84 -34
  4. package/build/{internal/cjs/src/bookings-v2-booking-bookings.public.d.ts → index.d.ts} +84 -34
  5. package/build/index.js +2387 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +2323 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.mts} +629 -247
  10. package/build/internal/{es/src/bookings-v2-booking-bookings.types.d.ts → bookings-v2-booking-bookings.universal-BEUtU-41.d.ts} +629 -247
  11. package/build/{cjs/src/bookings-v2-booking-bookings.public.d.ts → internal/index.d.mts} +84 -34
  12. package/build/internal/{es/src/bookings-v2-booking-bookings.public.d.ts → index.d.ts} +84 -34
  13. package/build/internal/index.js +2387 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +2323 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +1666 -0
  18. package/build/internal/meta.d.ts +1666 -0
  19. package/build/internal/meta.js +1522 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1475 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +1666 -0
  24. package/build/meta.d.ts +1666 -0
  25. package/build/meta.js +1522 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1475 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-v2-booking-bookings.context.d.ts +0 -61
  40. package/build/cjs/src/bookings-v2-booking-bookings.context.js +0 -77
  41. package/build/cjs/src/bookings-v2-booking-bookings.context.js.map +0 -1
  42. package/build/cjs/src/bookings-v2-booking-bookings.http.d.ts +0 -510
  43. package/build/cjs/src/bookings-v2-booking-bookings.http.js +0 -1579
  44. package/build/cjs/src/bookings-v2-booking-bookings.http.js.map +0 -1
  45. package/build/cjs/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
  46. package/build/cjs/src/bookings-v2-booking-bookings.meta.js +0 -427
  47. package/build/cjs/src/bookings-v2-booking-bookings.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-v2-booking-bookings.public.js +0 -313
  49. package/build/cjs/src/bookings-v2-booking-bookings.public.js.map +0 -1
  50. package/build/cjs/src/bookings-v2-booking-bookings.types.js +0 -165
  51. package/build/cjs/src/bookings-v2-booking-bookings.types.js.map +0 -1
  52. package/build/cjs/src/bookings-v2-booking-bookings.universal.d.ts +0 -4359
  53. package/build/cjs/src/bookings-v2-booking-bookings.universal.js +0 -1654
  54. package/build/cjs/src/bookings-v2-booking-bookings.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/bookings-v2-booking-bookings.context.d.ts +0 -61
  66. package/build/es/src/bookings-v2-booking-bookings.context.js +0 -61
  67. package/build/es/src/bookings-v2-booking-bookings.context.js.map +0 -1
  68. package/build/es/src/bookings-v2-booking-bookings.http.d.ts +0 -510
  69. package/build/es/src/bookings-v2-booking-bookings.http.js +0 -1555
  70. package/build/es/src/bookings-v2-booking-bookings.http.js.map +0 -1
  71. package/build/es/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
  72. package/build/es/src/bookings-v2-booking-bookings.meta.js +0 -380
  73. package/build/es/src/bookings-v2-booking-bookings.meta.js.map +0 -1
  74. package/build/es/src/bookings-v2-booking-bookings.public.js +0 -276
  75. package/build/es/src/bookings-v2-booking-bookings.public.js.map +0 -1
  76. package/build/es/src/bookings-v2-booking-bookings.types.js +0 -162
  77. package/build/es/src/bookings-v2-booking-bookings.types.js.map +0 -1
  78. package/build/es/src/bookings-v2-booking-bookings.universal.d.ts +0 -4359
  79. package/build/es/src/bookings-v2-booking-bookings.universal.js +0 -1607
  80. package/build/es/src/bookings-v2-booking-bookings.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.d.ts +0 -61
  91. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js +0 -77
  92. package/build/internal/cjs/src/bookings-v2-booking-bookings.context.js.map +0 -1
  93. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.d.ts +0 -510
  94. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js +0 -1579
  95. package/build/internal/cjs/src/bookings-v2-booking-bookings.http.js.map +0 -1
  96. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
  97. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js +0 -427
  98. package/build/internal/cjs/src/bookings-v2-booking-bookings.meta.js.map +0 -1
  99. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js +0 -313
  100. package/build/internal/cjs/src/bookings-v2-booking-bookings.public.js.map +0 -1
  101. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js +0 -165
  102. package/build/internal/cjs/src/bookings-v2-booking-bookings.types.js.map +0 -1
  103. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.d.ts +0 -4359
  104. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js +0 -1654
  105. package/build/internal/cjs/src/bookings-v2-booking-bookings.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/bookings-v2-booking-bookings.context.d.ts +0 -61
  116. package/build/internal/es/src/bookings-v2-booking-bookings.context.js +0 -61
  117. package/build/internal/es/src/bookings-v2-booking-bookings.context.js.map +0 -1
  118. package/build/internal/es/src/bookings-v2-booking-bookings.http.d.ts +0 -510
  119. package/build/internal/es/src/bookings-v2-booking-bookings.http.js +0 -1555
  120. package/build/internal/es/src/bookings-v2-booking-bookings.http.js.map +0 -1
  121. package/build/internal/es/src/bookings-v2-booking-bookings.meta.d.ts +0 -61
  122. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js +0 -380
  123. package/build/internal/es/src/bookings-v2-booking-bookings.meta.js.map +0 -1
  124. package/build/internal/es/src/bookings-v2-booking-bookings.public.js +0 -276
  125. package/build/internal/es/src/bookings-v2-booking-bookings.public.js.map +0 -1
  126. package/build/internal/es/src/bookings-v2-booking-bookings.types.js +0 -162
  127. package/build/internal/es/src/bookings-v2-booking-bookings.types.js.map +0 -1
  128. package/build/internal/es/src/bookings-v2-booking-bookings.universal.d.ts +0 -4359
  129. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js +0 -1607
  130. package/build/internal/es/src/bookings-v2-booking-bookings.universal.js.map +0 -1
@@ -1,510 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
4
- * on the `paymentStatus` you provide, double booking conflicts, and whether
5
- * the service requires business approval.
6
- *
7
- * ## eCommerce checkout restriction
8
- *
9
- * Call this method only when using a custom checkout page. Don't
10
- * call it when using a *Wix eCommerce checkout*
11
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
12
- * In such cases, Wix automatically updates the booking status based on
13
- * the `paymentStatus` of the corresponding *Wix eCommerce order*
14
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
15
- *
16
- * ## New booking status
17
- *
18
- * The booking `status` is set to `DECLINED` if both of the following conditions
19
- * are met:
20
- * + You provide `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT` as payment status.
21
- * + There is a double booking conflict.
22
- *
23
- * If only one or none of these conditions is met, `status` is set to `PENDING`
24
- * or `CONFIRMED` depending on whether the service requires business approval.
25
- *
26
- * ## Double bookings
27
- *
28
- * If there is a double booking conflict, but the booking has already been at least
29
- * partially paid, the method still marks the booking as `PENDING` or `CONFIRMED`.
30
- * Then, it also sets `doubleBooked` to `true`.
31
- *
32
- * ## Admin overwrites
33
- *
34
- * There are small but important differences in confirmation behavior if the
35
- * booking was created with special `flowControlSettings`:
36
- * + If the booking's `flowControlSettings.skipAvailabilityValidation` was set to
37
- * `true`, the booking is never declined regardless of double booking conflicts.
38
- * Instead, it's marked `CONFIRMED` or `PENDING`, depending on whether the
39
- * service requires business approval.
40
- * + If the booking's `flowControlSettings.skipBusinessConfirmation` was set to
41
- * `true`, the booking skips `PENDING` status and is marked `CONFIRMED`
42
- * immediately.
43
- */
44
- export declare function confirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
45
- /**
46
- * Confirms or declines up to 300 bookings.
47
- *
48
- *
49
- * See *Confirm Or Decline Booking*
50
- * ([SDK](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking))
51
- * for details about when a booking is confirmed or declined.
52
- */
53
- export declare function bulkConfirmOrDeclineBooking(payload: object): RequestOptionsFactory<any>;
54
- /**
55
- * Creates a booking.
56
- *
57
- *
58
- * ## Appointment booking
59
- *
60
- * For appointment-based services, specify the relevant `slot` in
61
- * `bookedEntity.slot`. We recommend specifying the complete
62
- * `availabilityEntries.slot` returned in *Query Availability*
63
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
64
- * in your call's request to avoid failed calls due to unavailability.
65
- *
66
- * ## Class session booking
67
- *
68
- * For class services, specify the relevant *event ID*
69
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
70
- * as `bookedEntity.slot.eventId`.
71
- * We recommend retrieving the event ID from *Query Availability's*
72
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
73
- * `availabilityEntries.slot.eventId` to avoid failed calls due to unavailability.
74
- * Specifying an event ID leads to automatic calculations of `slot.startDate`, `slot.endDate`,
75
- * `slot.timezone`, `slot.resource`, and `slot.location`. All manually specified
76
- * values are overridden.
77
- *
78
- * ## Course booking
79
- *
80
- * For course services, specify the course's schedule ID in `bookedEntity.schedule.scheduleId`.
81
- * We recommend following [this sample flow](https://dev.wix.com/docs/rest/business-solutions/bookings/sample-booking-flows#book-a-course)
82
- * to minimize failed calls due to unavailability.
83
- *
84
- * ## Related resources
85
- *
86
- * Specifying a `resource` triggers an availability check, resulting in a failed
87
- * call if the resource is unavailable. Omitting a resource allows Wix Bookings
88
- * to assign a resource belonging to the relevant type randomly when the merchant
89
- * confirms the booking.
90
- *
91
- * ## Participant information
92
- *
93
- * You must specify either `participantsChoices` or `totalParticipants`.
94
- * The call fails if the specified `participantsChoices` aren't among the supported
95
- * _service options and variants_
96
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
97
- *
98
- * ## Notify customers
99
- *
100
- * You can specify a `participantNotification.message` for the customer that's send
101
- * immediately. Ensure `participantNotification.notifyParticipants` is set to `true`
102
- * to send the message.
103
- *
104
- * If you specify `{"sendSmsReminder": true}`, the customer receives an SMS 24 hours
105
- * before the session starts. The phone number is taken from `contactDetails.phone`.
106
- *
107
- * ## Booking status
108
- *
109
- * Bookings default to the `CREATED` status, not affecting the business calendar
110
- * or resource availability. You can specify a different status when the calling
111
- * [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
112
- * has `Manage Bookings` permissions.
113
- *
114
- * ## Payment options
115
- *
116
- * The specified `selectedPaymentOption` indicates how the customer intends to
117
- * pay, allowing for later changes to a different method supported by the service.
118
- *
119
- * ## Payment status
120
- *
121
- * A booking is initially created with `{"paymentStatus": "UNDEFINED"}` regardless
122
- * of the payment status specified in Create Booking. If a customer uses an
123
- * _eCommerce checkout_
124
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)),
125
- * Wix Bookings automatically syncs the booking's payment status from
126
- * the corresponding *eCommerce order*
127
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
128
- *
129
- * If a booking doesn't have a corresponding eCommerce order, for example, since
130
- * the customer didn't use the eCommerce checkout, you can update the booking's
131
- * payment status with *Confirm Or Decline Booking*
132
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
133
- *
134
- * ## Booking form data
135
- *
136
- * When customers sign up for a service, they must fill out the booking form.
137
- * To create a booking with a completed booking form, specify the relevant data in
138
- * `formSubmission`. Ensure the values of the corresponding fields in
139
- * `booking.contactDetails` and `formSubmission` are identical. If these values
140
- * don't match, Create Booking fails. Therefore, we recommend specifying
141
- * only `booking.contactDetails.contactId` when providing `formSubmission`.
142
- *
143
- * ## Admin overwrites
144
- *
145
- * There are small but important differences when you specify special
146
- * `flowControlSettings`:
147
- *
148
- * - `{"skipAvailabilityValidation": true}`: The call succeeds
149
- * regardless of availability. If you don't specify any resource, the call
150
- * succeeds even if no resource of the relevant type is available.
151
- * - `{"skipBusinessConfirmation": true}`: Automatically confirms `PENDING`
152
- * bookings that require manual confirmation.
153
- * - `{"skipSelectedPaymentOptionValidation": true}`: Allows customers to pay
154
- * with payment methods that aren't supported for the service.
155
- *
156
- * When using special `flowControlSettings`, ensure you have sufficient
157
- * permissions. If you encounter failed calls due to insufficient permissions,
158
- * consider the following options:
159
- *
160
- * - **App developers** can use a higher
161
- * [permission](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions),
162
- * such as `MANAGE BOOKINGS - ALL PERMISSIONS`.
163
- * - **Site developers** can utilize
164
- * [elevation](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/authorization/elevation).
165
- *
166
- * Granting additional permissions and using elevation permits method calls that
167
- * would typically fail due to authorization checks. Therefore, you should use
168
- * them intentionally and securely.
169
- */
170
- export declare function createBooking(payload: object): RequestOptionsFactory<any>;
171
- /**
172
- * Creates up to 8 bookings.
173
- *
174
- *
175
- * See *Create Booking*
176
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/create-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-booking))
177
- * for more information.
178
- *
179
- * If any of the specified bookings is missing a required field the entire call
180
- * fails.
181
- *
182
- * If you specify 1 or more unavailable bookings, the call succeeds
183
- * while the unavailable bookings aren't created. Instead, they're counted as
184
- * failures in the returned `bulkActionMetadata`.
185
- */
186
- export declare function bulkCreateBooking(payload: object): RequestOptionsFactory<any>;
187
- /**
188
- * Reschedules an appointment booking to a different slot or a class booking to
189
- * a different session.
190
- *
191
- *
192
- * ## Course booking limitation
193
- *
194
- * You can't reschedule course bookings.
195
- *
196
- * ## Appointment sessions
197
- *
198
- * For appointments, the old session is removed from the business calendar
199
- * while a new session is added. We recommend calling *Query Availability*
200
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
201
- * first and specifying the entire retrieved `slot`.
202
- *
203
- * ## Class sessions
204
- *
205
- * For classes, the new session must be an existing session belonging to the
206
- * same class. We recommend retrieving `availabilityEntries.slot.eventId`
207
- * from *Query Availability*
208
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
209
- * to avoid failed Reschedule Booking calls due to unavailability. Specify
210
- * only `slot.eventId` instead of the entire `slot` object.
211
- *
212
- * ## Notify customers
213
- *
214
- * You can specify a `participantNotification.message` for the customer. To send
215
- * the message, you must also specify `participantNotification.notifyParticipants`
216
- * as `true`.
217
- *
218
- * ## Admin overwrites
219
- *
220
- * There are small but important differences when you specify special
221
- * `flowControlSettings`:
222
- *
223
- * - `{"ignoreReschedulePolicy": true}`: The call succeeds even if the
224
- * service's `reschedulePolicy` doesn't allow it.
225
- * - `{"skipAvailabilityValidation": true}`: The call succeeds even if
226
- * the specified session, slot, or resource isn't available. If you don't
227
- * specify any resource, the call succeeds even if no resource of the relevant
228
- * type is available.
229
- * - `{"skipBusinessConfirmation": true}`: Any `PENDING` booking is
230
- * automatically confirmed even if the services requires the merchants's
231
- * manual confirmation.
232
- *
233
- * When using special `flowControlSettings`, ensure you have sufficient
234
- * permissions. If you encounter failed calls due to insufficient permissions,
235
- * consider the following options:
236
- *
237
- * - **App developers** can use a higher
238
- * [permission](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions),
239
- * such as `MANAGE BOOKINGS - ALL PERMISSIONS`.
240
- * - **Site developers** can utilize
241
- * [elevation](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/authorization/elevation).
242
- *
243
- * Granting additional permissions and using elevation permits method calls that
244
- * would typically fail due to authorization checks. Therefore, you should use
245
- * them intentionally and securely.
246
- */
247
- export declare function rescheduleBooking(payload: object): RequestOptionsFactory<any>;
248
- /**
249
- * Updates the booking status to `CONFIRMED` and updates the relevant session's
250
- * `participants.approvalStatus` to `APPROVED` without checking whether the relevant
251
- * slot or schedule is still available.
252
- *
253
- * ## eCommerce checkout restriction
254
- *
255
- * Call this method only when using a custom checkout page. Don't
256
- * call it when using a *Wix eCommerce checkout*
257
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
258
- * In such cases, Wix automatically updates the booking status based on
259
- * the `paymentStatus` of the corresponding *Wix eCommerce order*
260
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
261
- *
262
- * ## When to call Confirm Or Decline Booking instead
263
- *
264
- * Confirm Booking doesn't check whether a slot or schedule is still available. For
265
- * these checks you can call *Confirm or Decline Booking*
266
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
267
- *
268
- * ## Original status validation
269
- *
270
- * You can only confirm bookings with a status of `PENDING`, `CREATED`, or
271
- * `WAITING_LIST`.
272
- *
273
- * ## Double bookings
274
- *
275
- * Confirm Booking doesn't check whether a slot or schedule is still available.
276
- * You can specify
277
- *
278
- * ```json
279
- * {
280
- * "flowControlSettings": {
281
- * "checkAvailabilityValidation": true
282
- * },
283
- * "doubleBooked": true
284
- * }
285
- * ```
286
- * to forcefully set the booking's `doubleBooked` flag to `true`, regardless of
287
- * a potential double booking conflict. You must call with `Manage Bookings`
288
- * permissions to do so. For the default flow control settings
289
- * `{"checkAvailabilityValidation": false}`, the specified `doubleBooked` value
290
- * is ignored.
291
- *
292
- * ## Payment status
293
- *
294
- * Also updates the booking's `paymentStatus`, if you specify a new payment
295
- * status.
296
- *
297
- * ## Notify customers
298
- *
299
- * You can specify a `participantNotification.message` for the customer. To send
300
- * the message, you must also specify `participantNotification.notifyParticipants`
301
- * as `true`.
302
- */
303
- export declare function bookingsConfirmBooking(payload: object): RequestOptionsFactory<any>;
304
- /**
305
- * Updates the extended fields for a booking.
306
- *
307
- *
308
- * If you specify an extended field `namespace` that doesn't exist yet, it's
309
- * created.
310
- *
311
- * Learn more about [extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/about-backend-extensions#schema-plugin-extensions).
312
- */
313
- export declare function updateExtendedFields(payload: object): RequestOptionsFactory<any>;
314
- /**
315
- * Updates the booking status to `DECLINED` and updates the relevant session's
316
- * `participants.approvalStatus` to `DECLINED` without checking whether the relevant
317
- * slot or schedule is still available.
318
- *
319
- *
320
- * ## eCommerce checkout restriction
321
- *
322
- * Call this method only when using a custom checkout page. Don't
323
- * call it when using a *Wix eCommerce checkout*
324
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
325
- * In such cases, Wix automatically updates the booking status based on
326
- * the `paymentStatus` of the corresponding *Wix eCommerce order*
327
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
328
- *
329
- * ## When to call Confirm Or Decline Booking instead
330
- *
331
- * The method doesn't check whether a slot or schedule is still available. For
332
- * these checks you can call *Confirm or Decline Booking*
333
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
334
- *
335
- * ## Original status validation
336
- *
337
- * You can only decline bookings with a `status` of `PENDING`, `CREATED`, or
338
- * `WAITING_LIST`.
339
- *
340
- * ## Payment status
341
- *
342
- * Also updates the booking's `paymentStatus`, if you specify a new payment
343
- * status.
344
- *
345
- * ## Notify customers
346
- *
347
- * You can specify a `participantNotification.message` for the customer. To send
348
- * the message, you must also specify `participantNotification.notifyParticipants`
349
- * as `true`.
350
- */
351
- export declare function bookingsDeclineBooking(payload: object): RequestOptionsFactory<any>;
352
- /**
353
- * Updates the booking status to `CANCELED`.
354
- *
355
- *
356
- * ## Appointments
357
- *
358
- * For appointments, the corresponding event is removed from the Bookings
359
- * calendar.
360
- *
361
- * ## Class and course bookings
362
- *
363
- * For class or course bookings, the relevant participants are removed
364
- * from the class session or the course. However, the class session or course
365
- * remain on the business calendar.
366
- *
367
- * ## Notify customers
368
- *
369
- * You can specify a `participantNotification.message` for the customer. To send
370
- * the message, you must also specify `participantNotification.notifyParticipants`
371
- * as `true`.
372
- *
373
- * ## Admin overwrites
374
- *
375
- * There are small but important differences when you specify special
376
- * `flowControlSettings`:
377
- *
378
- * - `{"ignoreCancellationPolicy": true}`: The call succeeds even if the
379
- * service's `cancellationPolicy` doesn't allow it.
380
- * - `{"withRefund": true}`: The customer is refunded even if the service's
381
- * `refundPolicy` doesn't allow it.
382
- * - `{"waiveCancellationFee": true}`: The customer doesn't have to pay
383
- * the cancellation fee, even if the service's `cancellationPolicy` requires it.
384
- *
385
- * When using special `flowControlSettings`, ensure you have sufficient
386
- * permissions. If you encounter failed calls due to insufficient permissions,
387
- * consider the following options:
388
- *
389
- * - **App developers** can use a higher
390
- * [permission](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions),
391
- * such as `MANAGE BOOKINGS - ALL PERMISSIONS`.
392
- * - **Site developers** can utilize
393
- * [elevation](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/authorization/elevation).
394
- *
395
- * Granting additional permissions and using elevation permits method calls that
396
- * would typically fail due to authorization checks. Therefore, you should use
397
- * them intentionally and securely.
398
- */
399
- export declare function bookingsCancelBooking(payload: object): RequestOptionsFactory<any>;
400
- /**
401
- * Updates the number of participants for a class or course booking and changes
402
- * the `totalNumberOfParticipants` for the relevant sessions.
403
- *
404
- *
405
- * ## Appointment limitation
406
- *
407
- * You can't update the number of participants for appointment bookings.
408
- *
409
- * ## Participant information
410
- *
411
- * You must specify either `participantsChoices` or `totalParticipants`.
412
- * The call fails if the specified `participantsChoices` aren't among the
413
- * supported *service options and variants*
414
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
415
- */
416
- export declare function bookingsUpdateNumberOfParticipants(payload: object): RequestOptionsFactory<any>;
417
- /**
418
- * Creates a multi-service booking.
419
- *
420
- *
421
- * See Create Booking for more information.
422
- */
423
- export declare function createMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
424
- /**
425
- * Reschedules a multi-service booking.
426
- *
427
- *
428
- * The call fails if at least 1 individual booking can't be rescheduled due
429
- * the service being unavailable or a rescheduling policy violation.
430
- *
431
- *
432
- * See Reschedule Booking for more information.
433
- */
434
- export declare function rescheduleMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
435
- /**
436
- * Retrieves a multi-service booking's availability.
437
- *
438
- *
439
- * Use List Multi Service Availability Time Slots to check availability for a
440
- * `SEQUENTIAL_BOOKINGS` multi-service booking.
441
- */
442
- export declare function getMultiServiceBookingAvailability(payload: object): RequestOptionsFactory<any>;
443
- /** Cancels a multi-service booking and thus all its individual bookings. */
444
- export declare function cancelMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
445
- /**
446
- * Updates the status of a multi-service booking to `PENDING`.
447
- *
448
- *
449
- * Also updates the status of each of individual bookings within the multi-service booking to `PENDING`.
450
- *
451
- * The call fails if the status for at least a single individual booking can't be updated.
452
- *
453
- * See Mark Booking as Pending for more information.
454
- */
455
- export declare function markMultiServiceBookingAsPending(payload: object): RequestOptionsFactory<any>;
456
- /**
457
- * Updates the status of a multi-service booking to `CONFIRMED`.
458
- *
459
- *
460
- * Also updates the status of each of individual bookings within the multi-service booking to `CONFIRMED`.
461
- *
462
- * The call fails if the status for at least a single individual booking can't be updated.
463
- *
464
- * See Confirm Booking for more information.
465
- */
466
- export declare function confirmMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
467
- /**
468
- * Updates the status of a multi-service booking to `DECLINED`.
469
- *
470
- *
471
- * Also updates the status of each of individual bookings within the multi-service booking to `DECLINED`.
472
- *
473
- * The call fails if the status for at least a single individual booking can't be updated.
474
- *
475
- * See Decline Booking for more information.
476
- */
477
- export declare function declineMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
478
- /** Retrieves the allowed actions for a list of multi-service bookings. */
479
- export declare function bulkGetMultiServiceBookingAllowedActions(payload: object): RequestOptionsFactory<any>;
480
- /**
481
- * Retrieves all single-service bookings belonging to a multi-service booking.
482
- *
483
- *
484
- * If you call as an [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
485
- * who has permissions to read only part of the bookings,
486
- * only the permitted bookings are retrieved. The returned total number of
487
- * bookings includes also the bookings for which you don't have permissions.
488
- */
489
- export declare function getMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
490
- /**
491
- * Adds a list of single-service bookings to a multi-service booking.
492
- *
493
- *
494
- * The call fails, if at least 1 of the specified booking is already part of a
495
- * multi-service booking.
496
- */
497
- export declare function addBookingsToMultiServiceBooking(payload: object): RequestOptionsFactory<any>;
498
- /**
499
- * Removes single-service bookings from a multi-service booking and returns the
500
- * removed bookings.
501
- *
502
- *
503
- * If you specify an empty `bookings` array, all single-service bookings for which
504
- * the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
505
- * has read permissions are removed from the multi-service booking.
506
- *
507
- * If the call would create a multi-service booking including only 1 single-service
508
- * booking, the multi-service booking is also deleted.
509
- */
510
- export declare function removeBookingsFromMultiServiceBooking(payload: object): RequestOptionsFactory<any>;