@wix/auto_sdk_bookings_pricing 1.0.17 → 1.0.19
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/src/bookings-v2-price-info-pricing.types.d.ts → bookings-v2-price-info-pricing.universal-Bg2-I7Zy.d.mts} +79 -61
- package/build/{internal/cjs/src/bookings-v2-price-info-pricing.types.d.ts → bookings-v2-price-info-pricing.universal-Bg2-I7Zy.d.ts} +79 -61
- package/build/{internal/es/src/bookings-v2-price-info-pricing.public.d.ts → index.d.mts} +11 -8
- package/build/{internal/cjs/src/bookings-v2-price-info-pricing.public.d.ts → index.d.ts} +11 -8
- package/build/index.js +314 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +280 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/bookings-v2-price-info-pricing.types.d.ts → internal/bookings-v2-price-info-pricing.universal-Bg2-I7Zy.d.mts} +79 -61
- package/build/internal/{es/src/bookings-v2-price-info-pricing.types.d.ts → bookings-v2-price-info-pricing.universal-Bg2-I7Zy.d.ts} +79 -61
- package/build/{cjs/src/bookings-v2-price-info-pricing.public.d.ts → internal/index.d.mts} +11 -8
- package/build/{es/src/bookings-v2-price-info-pricing.public.d.ts → internal/index.d.ts} +11 -8
- package/build/internal/index.js +314 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +280 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +803 -0
- package/build/internal/meta.d.ts +803 -0
- package/build/internal/meta.js +194 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +166 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +803 -0
- package/build/meta.d.ts +803 -0
- package/build/meta.js +194 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +166 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-price-info-pricing.context.d.ts +0 -6
- package/build/cjs/src/bookings-v2-price-info-pricing.context.js +0 -18
- package/build/cjs/src/bookings-v2-price-info-pricing.context.js.map +0 -1
- package/build/cjs/src/bookings-v2-price-info-pricing.http.d.ts +0 -59
- package/build/cjs/src/bookings-v2-price-info-pricing.http.js +0 -184
- package/build/cjs/src/bookings-v2-price-info-pricing.http.js.map +0 -1
- package/build/cjs/src/bookings-v2-price-info-pricing.meta.d.ts +0 -14
- package/build/cjs/src/bookings-v2-price-info-pricing.meta.js +0 -66
- package/build/cjs/src/bookings-v2-price-info-pricing.meta.js.map +0 -1
- package/build/cjs/src/bookings-v2-price-info-pricing.public.js +0 -28
- package/build/cjs/src/bookings-v2-price-info-pricing.public.js.map +0 -1
- package/build/cjs/src/bookings-v2-price-info-pricing.types.js +0 -133
- package/build/cjs/src/bookings-v2-price-info-pricing.types.js.map +0 -1
- package/build/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +0 -1007
- package/build/cjs/src/bookings-v2-price-info-pricing.universal.js +0 -303
- package/build/cjs/src/bookings-v2-price-info-pricing.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/bookings-v2-price-info-pricing.context.d.ts +0 -6
- package/build/es/src/bookings-v2-price-info-pricing.context.js +0 -6
- package/build/es/src/bookings-v2-price-info-pricing.context.js.map +0 -1
- package/build/es/src/bookings-v2-price-info-pricing.http.d.ts +0 -59
- package/build/es/src/bookings-v2-price-info-pricing.http.js +0 -179
- package/build/es/src/bookings-v2-price-info-pricing.http.js.map +0 -1
- package/build/es/src/bookings-v2-price-info-pricing.meta.d.ts +0 -14
- package/build/es/src/bookings-v2-price-info-pricing.meta.js +0 -38
- package/build/es/src/bookings-v2-price-info-pricing.meta.js.map +0 -1
- package/build/es/src/bookings-v2-price-info-pricing.public.js +0 -14
- package/build/es/src/bookings-v2-price-info-pricing.public.js.map +0 -1
- package/build/es/src/bookings-v2-price-info-pricing.types.js +0 -130
- package/build/es/src/bookings-v2-price-info-pricing.types.js.map +0 -1
- package/build/es/src/bookings-v2-price-info-pricing.universal.d.ts +0 -1007
- package/build/es/src/bookings-v2-price-info-pricing.universal.js +0 -275
- package/build/es/src/bookings-v2-price-info-pricing.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.context.d.ts +0 -6
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.context.js +0 -18
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.d.ts +0 -59
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.js +0 -184
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.meta.d.ts +0 -14
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.meta.js +0 -66
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.public.js +0 -28
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.js +0 -133
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +0 -1007
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js +0 -303
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-price-info-pricing.context.d.ts +0 -6
- package/build/internal/es/src/bookings-v2-price-info-pricing.context.js +0 -6
- package/build/internal/es/src/bookings-v2-price-info-pricing.context.js.map +0 -1
- package/build/internal/es/src/bookings-v2-price-info-pricing.http.d.ts +0 -59
- package/build/internal/es/src/bookings-v2-price-info-pricing.http.js +0 -179
- package/build/internal/es/src/bookings-v2-price-info-pricing.http.js.map +0 -1
- package/build/internal/es/src/bookings-v2-price-info-pricing.meta.d.ts +0 -14
- package/build/internal/es/src/bookings-v2-price-info-pricing.meta.js +0 -38
- package/build/internal/es/src/bookings-v2-price-info-pricing.meta.js.map +0 -1
- package/build/internal/es/src/bookings-v2-price-info-pricing.public.js +0 -14
- package/build/internal/es/src/bookings-v2-price-info-pricing.public.js.map +0 -1
- package/build/internal/es/src/bookings-v2-price-info-pricing.types.js +0 -130
- package/build/internal/es/src/bookings-v2-price-info-pricing.types.js.map +0 -1
- package/build/internal/es/src/bookings-v2-price-info-pricing.universal.d.ts +0 -1007
- package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js +0 -275
- package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface PriceInfo extends PriceInfoTotalPriceOneOf {
|
|
2
2
|
/**
|
|
3
3
|
* Calculated total price. Available if the _service's_
|
|
4
4
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction))
|
|
@@ -36,7 +36,7 @@ export interface PriceInfo extends PriceInfoTotalPriceOneOf {
|
|
|
36
36
|
deposit?: number | null;
|
|
37
37
|
}
|
|
38
38
|
/** @oneof */
|
|
39
|
-
|
|
39
|
+
interface PriceInfoTotalPriceOneOf {
|
|
40
40
|
/**
|
|
41
41
|
* Calculated total price. Available if the _service's_
|
|
42
42
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction))
|
|
@@ -61,7 +61,7 @@ export interface PriceInfoTotalPriceOneOf {
|
|
|
61
61
|
*/
|
|
62
62
|
priceDescriptionInfo?: PriceDescriptionInfo;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
interface BookingLineItem {
|
|
65
65
|
/**
|
|
66
66
|
* _Service ID_
|
|
67
67
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction)).
|
|
@@ -109,7 +109,7 @@ export interface BookingLineItem {
|
|
|
109
109
|
*/
|
|
110
110
|
pricePerParticipant?: number | null;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
113
113
|
/**
|
|
114
114
|
* Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
|
|
115
115
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -127,7 +127,7 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
|
127
127
|
optionId?: string;
|
|
128
128
|
}
|
|
129
129
|
/** @oneof */
|
|
130
|
-
|
|
130
|
+
interface ServiceChoiceChoiceOneOf {
|
|
131
131
|
/**
|
|
132
132
|
* Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
|
|
133
133
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -137,7 +137,7 @@ export interface ServiceChoiceChoiceOneOf {
|
|
|
137
137
|
custom?: string;
|
|
138
138
|
duration?: Duration;
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
interface Duration {
|
|
141
141
|
/**
|
|
142
142
|
* Duration of the service in minutes.
|
|
143
143
|
* Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
|
|
@@ -152,7 +152,7 @@ export interface Duration {
|
|
|
152
152
|
*/
|
|
153
153
|
name?: string | null;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
interface PriceDescriptionInfo {
|
|
156
156
|
/**
|
|
157
157
|
* Price description in the site's main language. Refer to the *Site Properties API*
|
|
158
158
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/introduction))
|
|
@@ -167,7 +167,7 @@ export interface PriceDescriptionInfo {
|
|
|
167
167
|
*/
|
|
168
168
|
translated?: string | null;
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
interface PreviewPriceRequest {
|
|
171
171
|
/**
|
|
172
172
|
* List of line items to preview the price for.
|
|
173
173
|
* @minSize 1
|
|
@@ -175,11 +175,11 @@ export interface PreviewPriceRequest {
|
|
|
175
175
|
*/
|
|
176
176
|
bookingLineItems: BookingLineItem[];
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
interface PreviewPriceResponse {
|
|
179
179
|
/** Information about each line item's price and the estimated total price based on the line items. */
|
|
180
180
|
priceInfo?: PriceInfo;
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
interface CalculatePriceRequest {
|
|
183
183
|
/**
|
|
184
184
|
* _Booking_
|
|
185
185
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/introduction))
|
|
@@ -188,7 +188,7 @@ export interface CalculatePriceRequest {
|
|
|
188
188
|
booking: Booking;
|
|
189
189
|
}
|
|
190
190
|
/** An entity representing a scheduled appointment, class session, or course. */
|
|
191
|
-
|
|
191
|
+
interface Booking extends BookingParticipantsInfoOneOf {
|
|
192
192
|
/**
|
|
193
193
|
* Total number of participants. Available only when the relevant service
|
|
194
194
|
* doesn't have _variants and options_
|
|
@@ -207,7 +207,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
207
207
|
* @format GUID
|
|
208
208
|
* @readonly
|
|
209
209
|
*/
|
|
210
|
-
|
|
210
|
+
_id?: string | null;
|
|
211
211
|
/**
|
|
212
212
|
* An object describing the *slot*
|
|
213
213
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability))
|
|
@@ -230,14 +230,14 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
230
230
|
* double booking and the customer hasn't paid or is eligible for an automatic
|
|
231
231
|
* refund. Currently, only payments with pricing plans are automatically refundable.
|
|
232
232
|
*/
|
|
233
|
-
status?:
|
|
233
|
+
status?: BookingStatusWithLiterals;
|
|
234
234
|
/**
|
|
235
235
|
* The payment status of the booking corresponds to the `paymentStatus` of the
|
|
236
236
|
* related *eCommerce order*
|
|
237
237
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup)| [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)),
|
|
238
238
|
* if one exists. All payment statuses are supported for every booking `status`.
|
|
239
239
|
*/
|
|
240
|
-
paymentStatus?:
|
|
240
|
+
paymentStatus?: PaymentStatusWithLiterals;
|
|
241
241
|
/**
|
|
242
242
|
* Payment option selected by the customer. If the customer hasn't completed their
|
|
243
243
|
* checkout, they may still change the payment method. Must be one of the payment
|
|
@@ -247,12 +247,12 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
247
247
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)),
|
|
248
248
|
* Wix Bookings uses the service's default payment option
|
|
249
249
|
*/
|
|
250
|
-
selectedPaymentOption?:
|
|
250
|
+
selectedPaymentOption?: SelectedPaymentOptionWithLiterals;
|
|
251
251
|
/**
|
|
252
252
|
* Date and time the booking was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
253
253
|
* @readonly
|
|
254
254
|
*/
|
|
255
|
-
|
|
255
|
+
_createdDate?: Date | null;
|
|
256
256
|
/** External user ID that you can provide. */
|
|
257
257
|
externalUserId?: string | null;
|
|
258
258
|
/**
|
|
@@ -284,7 +284,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
284
284
|
* Date and time the booking was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
285
285
|
* @readonly
|
|
286
286
|
*/
|
|
287
|
-
|
|
287
|
+
_updatedDate?: Date | null;
|
|
288
288
|
/**
|
|
289
289
|
* Custom field data for this object.
|
|
290
290
|
* Extended fields must be configured in the app dashboard before they can be accessed with API calls.
|
|
@@ -298,7 +298,7 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
298
298
|
doubleBooked?: boolean | null;
|
|
299
299
|
}
|
|
300
300
|
/** @oneof */
|
|
301
|
-
|
|
301
|
+
interface BookingParticipantsInfoOneOf {
|
|
302
302
|
/**
|
|
303
303
|
* Total number of participants. Available only when the relevant service
|
|
304
304
|
* doesn't have _variants and options_
|
|
@@ -319,12 +319,14 @@ export interface BookingParticipantsInfoOneOf {
|
|
|
319
319
|
* Multi-service booking is available if each of its bookings is available separately.
|
|
320
320
|
* For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
declare enum MultiServiceBookingType {
|
|
323
323
|
SEQUENTIAL_BOOKINGS = "SEQUENTIAL_BOOKINGS",
|
|
324
324
|
SEPARATE_BOOKINGS = "SEPARATE_BOOKINGS",
|
|
325
325
|
PARALLEL_BOOKINGS = "PARALLEL_BOOKINGS"
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
/** @enumType */
|
|
328
|
+
type MultiServiceBookingTypeWithLiterals = MultiServiceBookingType | 'SEQUENTIAL_BOOKINGS' | 'SEPARATE_BOOKINGS' | 'PARALLEL_BOOKINGS';
|
|
329
|
+
interface BookedEntity extends BookedEntityItemOneOf {
|
|
328
330
|
/**
|
|
329
331
|
* Booked *slot*
|
|
330
332
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
|
|
@@ -356,7 +358,7 @@ export interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
356
358
|
tags?: string[] | null;
|
|
357
359
|
}
|
|
358
360
|
/** @oneof */
|
|
359
|
-
|
|
361
|
+
interface BookedEntityItemOneOf {
|
|
360
362
|
/**
|
|
361
363
|
* Booked *slot*
|
|
362
364
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
|
|
@@ -372,7 +374,7 @@ export interface BookedEntityItemOneOf {
|
|
|
372
374
|
*/
|
|
373
375
|
schedule?: BookedSchedule;
|
|
374
376
|
}
|
|
375
|
-
|
|
377
|
+
interface BookedSlot {
|
|
376
378
|
/** Session ID. */
|
|
377
379
|
sessionId?: string | null;
|
|
378
380
|
/** Service ID. */
|
|
@@ -414,12 +416,12 @@ export interface BookedSlot {
|
|
|
414
416
|
/** Location where the session takes place. */
|
|
415
417
|
location?: Location;
|
|
416
418
|
}
|
|
417
|
-
|
|
419
|
+
interface BookedResource {
|
|
418
420
|
/**
|
|
419
421
|
* ID of the booking's primary resource.
|
|
420
422
|
* @format GUID
|
|
421
423
|
*/
|
|
422
|
-
|
|
424
|
+
_id?: string;
|
|
423
425
|
/**
|
|
424
426
|
* Resource's name at the time of booking.
|
|
425
427
|
* @maxLength 40
|
|
@@ -436,13 +438,13 @@ export interface BookedResource {
|
|
|
436
438
|
*/
|
|
437
439
|
scheduleId?: string | null;
|
|
438
440
|
}
|
|
439
|
-
|
|
441
|
+
interface Location {
|
|
440
442
|
/**
|
|
441
443
|
* Business location ID. Available only for locations that are business locations,
|
|
442
444
|
* meaning the `location_type` is `"OWNER_BUSINESS"`.
|
|
443
445
|
* @format GUID
|
|
444
446
|
*/
|
|
445
|
-
|
|
447
|
+
_id?: string | null;
|
|
446
448
|
/** Location name. */
|
|
447
449
|
name?: string | null;
|
|
448
450
|
/** The full address of this location. */
|
|
@@ -459,15 +461,17 @@ export interface Location {
|
|
|
459
461
|
* - `"OWNER_CUSTOM"`: The address as set when creating the service.
|
|
460
462
|
* - `"CUSTOM"`: The address as set for the individual session.
|
|
461
463
|
*/
|
|
462
|
-
locationType?:
|
|
464
|
+
locationType?: LocationTypeWithLiterals;
|
|
463
465
|
}
|
|
464
|
-
|
|
466
|
+
declare enum LocationType {
|
|
465
467
|
UNDEFINED = "UNDEFINED",
|
|
466
468
|
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
467
469
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
468
470
|
CUSTOM = "CUSTOM"
|
|
469
471
|
}
|
|
470
|
-
|
|
472
|
+
/** @enumType */
|
|
473
|
+
type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
|
|
474
|
+
interface BookedSchedule {
|
|
471
475
|
/**
|
|
472
476
|
* _Schedule ID_
|
|
473
477
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
|
|
@@ -503,7 +507,7 @@ export interface BookedSchedule {
|
|
|
503
507
|
*/
|
|
504
508
|
lastSessionEnd?: string | null;
|
|
505
509
|
}
|
|
506
|
-
|
|
510
|
+
interface ContactDetails {
|
|
507
511
|
/**
|
|
508
512
|
* Contact ID.
|
|
509
513
|
* @format GUID
|
|
@@ -542,7 +546,7 @@ export interface ContactDetails {
|
|
|
542
546
|
countryCode?: string | null;
|
|
543
547
|
}
|
|
544
548
|
/** Physical address */
|
|
545
|
-
|
|
549
|
+
interface Address extends AddressStreetOneOf {
|
|
546
550
|
/** Street name, number and apartment number. */
|
|
547
551
|
streetAddress?: StreetAddress;
|
|
548
552
|
/** Main address line, usually street and number, as free text. */
|
|
@@ -572,13 +576,13 @@ export interface Address extends AddressStreetOneOf {
|
|
|
572
576
|
subdivisions?: Subdivision[];
|
|
573
577
|
}
|
|
574
578
|
/** @oneof */
|
|
575
|
-
|
|
579
|
+
interface AddressStreetOneOf {
|
|
576
580
|
/** Street name, number and apartment number. */
|
|
577
581
|
streetAddress?: StreetAddress;
|
|
578
582
|
/** Main address line, usually street and number, as free text. */
|
|
579
583
|
addressLine?: string | null;
|
|
580
584
|
}
|
|
581
|
-
|
|
585
|
+
interface StreetAddress {
|
|
582
586
|
/** Street number. */
|
|
583
587
|
number?: string;
|
|
584
588
|
/** Street name. */
|
|
@@ -586,24 +590,24 @@ export interface StreetAddress {
|
|
|
586
590
|
/** Apartment number. */
|
|
587
591
|
apt?: string;
|
|
588
592
|
}
|
|
589
|
-
|
|
593
|
+
interface AddressLocation {
|
|
590
594
|
/** Address latitude. */
|
|
591
595
|
latitude?: number | null;
|
|
592
596
|
/** Address longitude. */
|
|
593
597
|
longitude?: number | null;
|
|
594
598
|
}
|
|
595
|
-
|
|
599
|
+
interface Subdivision {
|
|
596
600
|
/** Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
597
601
|
code?: string;
|
|
598
602
|
/** Subdivision full name. */
|
|
599
603
|
name?: string;
|
|
600
604
|
}
|
|
601
|
-
|
|
605
|
+
interface CustomFormField {
|
|
602
606
|
/**
|
|
603
607
|
* ID of the form field as defined in the form.
|
|
604
608
|
* @format GUID
|
|
605
609
|
*/
|
|
606
|
-
|
|
610
|
+
_id?: string;
|
|
607
611
|
/** Value that was submitted for this field. */
|
|
608
612
|
value?: string | null;
|
|
609
613
|
/**
|
|
@@ -611,9 +615,9 @@ export interface CustomFormField {
|
|
|
611
615
|
* @readonly
|
|
612
616
|
*/
|
|
613
617
|
label?: string | null;
|
|
614
|
-
valueType?:
|
|
618
|
+
valueType?: ValueTypeWithLiterals;
|
|
615
619
|
}
|
|
616
|
-
|
|
620
|
+
declare enum ValueType {
|
|
617
621
|
/** Short text. This is the default value type. */
|
|
618
622
|
SHORT_TEXT = "SHORT_TEXT",
|
|
619
623
|
/** Long text. */
|
|
@@ -621,8 +625,10 @@ export declare enum ValueType {
|
|
|
621
625
|
/** A text that represents the check box value. If selected the value is `true`, otherwise `false`. */
|
|
622
626
|
CHECK_BOX = "CHECK_BOX"
|
|
623
627
|
}
|
|
628
|
+
/** @enumType */
|
|
629
|
+
type ValueTypeWithLiterals = ValueType | 'SHORT_TEXT' | 'LONG_TEXT' | 'CHECK_BOX';
|
|
624
630
|
/** Booking status. */
|
|
625
|
-
|
|
631
|
+
declare enum BookingStatus {
|
|
626
632
|
/**
|
|
627
633
|
* The booking was created, but the customer hasn't completed the related
|
|
628
634
|
* eCommerce order yet.
|
|
@@ -659,11 +665,13 @@ export declare enum BookingStatus {
|
|
|
659
665
|
*/
|
|
660
666
|
WAITING_LIST = "WAITING_LIST"
|
|
661
667
|
}
|
|
668
|
+
/** @enumType */
|
|
669
|
+
type BookingStatusWithLiterals = BookingStatus | 'CREATED' | 'CONFIRMED' | 'CANCELED' | 'PENDING' | 'DECLINED' | 'WAITING_LIST';
|
|
662
670
|
/**
|
|
663
671
|
* Payment status.
|
|
664
672
|
* Automatically updated when using eCommerce checkout APIs.
|
|
665
673
|
*/
|
|
666
|
-
|
|
674
|
+
declare enum PaymentStatus {
|
|
667
675
|
/** Undefined payment status. */
|
|
668
676
|
UNDEFINED = "UNDEFINED",
|
|
669
677
|
/** The booking isn't paid. */
|
|
@@ -677,6 +685,8 @@ export declare enum PaymentStatus {
|
|
|
677
685
|
/** The booking is free of charge. */
|
|
678
686
|
EXEMPT = "EXEMPT"
|
|
679
687
|
}
|
|
688
|
+
/** @enumType */
|
|
689
|
+
type PaymentStatusWithLiterals = PaymentStatus | 'UNDEFINED' | 'NOT_PAID' | 'PAID' | 'PARTIALLY_PAID' | 'REFUNDED' | 'EXEMPT';
|
|
680
690
|
/**
|
|
681
691
|
* Selected payment option.
|
|
682
692
|
*
|
|
@@ -684,7 +694,7 @@ export declare enum PaymentStatus {
|
|
|
684
694
|
* This field is set when the user selects an option during booking.
|
|
685
695
|
* If left undefined, the payment option is resolved by the service configuration on checkout.
|
|
686
696
|
*/
|
|
687
|
-
|
|
697
|
+
declare enum SelectedPaymentOption {
|
|
688
698
|
/** Undefined payment option. */
|
|
689
699
|
UNDEFINED = "UNDEFINED",
|
|
690
700
|
/** Offline payment. */
|
|
@@ -699,11 +709,13 @@ export declare enum SelectedPaymentOption {
|
|
|
699
709
|
*/
|
|
700
710
|
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
|
|
701
711
|
}
|
|
702
|
-
|
|
712
|
+
/** @enumType */
|
|
713
|
+
type SelectedPaymentOptionWithLiterals = SelectedPaymentOption | 'UNDEFINED' | 'OFFLINE' | 'ONLINE' | 'MEMBERSHIP' | 'MEMBERSHIP_OFFLINE';
|
|
714
|
+
interface BookingSource {
|
|
703
715
|
/** Platform from which a booking was created. */
|
|
704
|
-
platform?:
|
|
716
|
+
platform?: PlatformWithLiterals;
|
|
705
717
|
/** Actor that created this booking. */
|
|
706
|
-
actor?:
|
|
718
|
+
actor?: ActorWithLiterals;
|
|
707
719
|
/**
|
|
708
720
|
* Wix site ID of the application that created the booking.
|
|
709
721
|
* @format GUID
|
|
@@ -716,17 +728,21 @@ export interface BookingSource {
|
|
|
716
728
|
*/
|
|
717
729
|
appName?: string | null;
|
|
718
730
|
}
|
|
719
|
-
|
|
731
|
+
declare enum Platform {
|
|
720
732
|
UNDEFINED_PLATFORM = "UNDEFINED_PLATFORM",
|
|
721
733
|
WEB = "WEB",
|
|
722
734
|
MOBILE_APP = "MOBILE_APP"
|
|
723
735
|
}
|
|
724
|
-
|
|
736
|
+
/** @enumType */
|
|
737
|
+
type PlatformWithLiterals = Platform | 'UNDEFINED_PLATFORM' | 'WEB' | 'MOBILE_APP';
|
|
738
|
+
declare enum Actor {
|
|
725
739
|
UNDEFINED_ACTOR = "UNDEFINED_ACTOR",
|
|
726
740
|
BUSINESS = "BUSINESS",
|
|
727
741
|
CUSTOMER = "CUSTOMER"
|
|
728
742
|
}
|
|
729
|
-
|
|
743
|
+
/** @enumType */
|
|
744
|
+
type ActorWithLiterals = Actor | 'UNDEFINED_ACTOR' | 'BUSINESS' | 'CUSTOMER';
|
|
745
|
+
interface ParticipantNotification {
|
|
730
746
|
/**
|
|
731
747
|
* Whether to send the message about the changes to the customer.
|
|
732
748
|
*
|
|
@@ -736,7 +752,7 @@ export interface ParticipantNotification {
|
|
|
736
752
|
/** Custom message to send to the participants about the changes to the booking. */
|
|
737
753
|
message?: string | null;
|
|
738
754
|
}
|
|
739
|
-
|
|
755
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
740
756
|
/**
|
|
741
757
|
* ID of a site visitor that has not logged in to the site.
|
|
742
758
|
* @format GUID
|
|
@@ -764,7 +780,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
764
780
|
contactId?: string | null;
|
|
765
781
|
}
|
|
766
782
|
/** @oneof */
|
|
767
|
-
|
|
783
|
+
interface IdentificationDataIdOneOf {
|
|
768
784
|
/**
|
|
769
785
|
* ID of a site visitor that has not logged in to the site.
|
|
770
786
|
* @format GUID
|
|
@@ -786,14 +802,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
786
802
|
*/
|
|
787
803
|
appId?: string;
|
|
788
804
|
}
|
|
789
|
-
|
|
805
|
+
declare enum IdentityType {
|
|
790
806
|
UNKNOWN = "UNKNOWN",
|
|
791
807
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
792
808
|
MEMBER = "MEMBER",
|
|
793
809
|
WIX_USER = "WIX_USER",
|
|
794
810
|
APP = "APP"
|
|
795
811
|
}
|
|
796
|
-
|
|
812
|
+
interface FlowControlSettings {
|
|
797
813
|
/** Whether availability is checked when creating or confirming the booking. */
|
|
798
814
|
skipAvailabilityValidation?: boolean;
|
|
799
815
|
/**
|
|
@@ -815,7 +831,7 @@ export interface FlowControlSettings {
|
|
|
815
831
|
*/
|
|
816
832
|
withRefund?: boolean | null;
|
|
817
833
|
}
|
|
818
|
-
|
|
834
|
+
interface ExtendedFields {
|
|
819
835
|
/**
|
|
820
836
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
821
837
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -826,7 +842,7 @@ export interface ExtendedFields {
|
|
|
826
842
|
*/
|
|
827
843
|
namespaces?: Record<string, Record<string, any>>;
|
|
828
844
|
}
|
|
829
|
-
|
|
845
|
+
interface ParticipantChoices {
|
|
830
846
|
/**
|
|
831
847
|
* Information about the booked service choices. Includes the number of participants.
|
|
832
848
|
* @minSize 1
|
|
@@ -834,7 +850,7 @@ export interface ParticipantChoices {
|
|
|
834
850
|
*/
|
|
835
851
|
serviceChoices?: ServiceChoices[];
|
|
836
852
|
}
|
|
837
|
-
|
|
853
|
+
interface ServiceChoices {
|
|
838
854
|
/**
|
|
839
855
|
* Number of participants for this _variant_
|
|
840
856
|
* ([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)).
|
|
@@ -847,22 +863,22 @@ export interface ServiceChoices {
|
|
|
847
863
|
*/
|
|
848
864
|
choices?: ServiceChoice[];
|
|
849
865
|
}
|
|
850
|
-
|
|
866
|
+
interface MultiServiceBookingInfo {
|
|
851
867
|
/**
|
|
852
868
|
* Multi-service booking ID.
|
|
853
869
|
* @format GUID
|
|
854
870
|
* @readonly
|
|
855
871
|
*/
|
|
856
|
-
|
|
872
|
+
_id?: string | null;
|
|
857
873
|
/** Type of the multi-service booking. */
|
|
858
|
-
type?:
|
|
874
|
+
type?: MultiServiceBookingTypeWithLiterals;
|
|
859
875
|
}
|
|
860
|
-
|
|
876
|
+
interface BookedAddOn {
|
|
861
877
|
/**
|
|
862
878
|
* The ID of the Add-On.
|
|
863
879
|
* @format GUID
|
|
864
880
|
*/
|
|
865
|
-
|
|
881
|
+
_id?: string;
|
|
866
882
|
/**
|
|
867
883
|
* The ID of the Add-Ons group.
|
|
868
884
|
* @format GUID
|
|
@@ -894,7 +910,9 @@ export interface BookedAddOn {
|
|
|
894
910
|
*/
|
|
895
911
|
nameTranslated?: string | null;
|
|
896
912
|
}
|
|
897
|
-
|
|
913
|
+
interface CalculatePriceResponse {
|
|
898
914
|
/** Information about each line item's base price and the total base price. */
|
|
899
915
|
priceInfo?: PriceInfo;
|
|
900
916
|
}
|
|
917
|
+
|
|
918
|
+
export { Actor as A, type BookingLineItem as B, type CalculatePriceResponse as C, type Duration as D, type ParticipantNotification as E, type IdentificationData as F, type IdentificationDataIdOneOf as G, type FlowControlSettings as H, IdentityType as I, type ExtendedFields as J, type ParticipantChoices as K, LocationType as L, MultiServiceBookingType as M, type ServiceChoices as N, type MultiServiceBookingInfo as O, type PreviewPriceResponse as P, type BookedAddOn as Q, SelectedPaymentOption as S, ValueType as V, type Booking as a, BookingStatus as b, PaymentStatus as c, Platform as d, type PriceInfo as e, type PriceInfoTotalPriceOneOf as f, type ServiceChoice as g, type ServiceChoiceChoiceOneOf as h, type PriceDescriptionInfo as i, type PreviewPriceRequest as j, type CalculatePriceRequest as k, type BookingParticipantsInfoOneOf as l, type BookedEntity as m, type BookedEntityItemOneOf as n, type BookedSlot as o, type BookedResource as p, type Location as q, type BookedSchedule as r, type ContactDetails as s, type Address as t, type AddressStreetOneOf as u, type StreetAddress as v, type AddressLocation as w, type Subdivision as x, type CustomFormField as y, type BookingSource as z };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function previewPrice(httpClient: HttpClient): PreviewPriceSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { B as BookingLineItem, P as PreviewPriceResponse, a as Booking, C as CalculatePriceResponse } from './bookings-v2-price-info-pricing.universal-Bg2-I7Zy.mjs';
|
|
3
|
+
export { A as Actor, t as Address, w as AddressLocation, u as AddressStreetOneOf, Q as BookedAddOn, m as BookedEntity, n as BookedEntityItemOneOf, p as BookedResource, r as BookedSchedule, o as BookedSlot, l as BookingParticipantsInfoOneOf, z as BookingSource, b as BookingStatus, k as CalculatePriceRequest, s as ContactDetails, y as CustomFormField, D as Duration, J as ExtendedFields, H as FlowControlSettings, F as IdentificationData, G as IdentificationDataIdOneOf, I as IdentityType, q as Location, L as LocationType, O as MultiServiceBookingInfo, M as MultiServiceBookingType, K as ParticipantChoices, E as ParticipantNotification, c as PaymentStatus, d as Platform, j as PreviewPriceRequest, i as PriceDescriptionInfo, e as PriceInfo, f as PriceInfoTotalPriceOneOf, S as SelectedPaymentOption, g as ServiceChoice, h as ServiceChoiceChoiceOneOf, N as ServiceChoices, v as StreetAddress, x as Subdivision, V as ValueType } from './bookings-v2-price-info-pricing.universal-Bg2-I7Zy.mjs';
|
|
4
|
+
|
|
5
|
+
declare function previewPrice$1(httpClient: HttpClient): PreviewPriceSignature;
|
|
7
6
|
interface PreviewPriceSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Previews the base price for a set of line items belonging to the same
|
|
@@ -34,7 +33,7 @@ interface PreviewPriceSignature {
|
|
|
34
33
|
*/
|
|
35
34
|
(bookingLineItems: BookingLineItem[]): Promise<PreviewPriceResponse>;
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
declare function calculatePrice$1(httpClient: HttpClient): CalculatePriceSignature;
|
|
38
37
|
interface CalculatePriceSignature {
|
|
39
38
|
/**
|
|
40
39
|
* Calculates the base price of a booking.
|
|
@@ -71,4 +70,8 @@ interface CalculatePriceSignature {
|
|
|
71
70
|
*/
|
|
72
71
|
(booking: Booking): Promise<CalculatePriceResponse>;
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
|
|
74
|
+
declare const previewPrice: MaybeContext<BuildRESTFunction<typeof previewPrice$1> & typeof previewPrice$1>;
|
|
75
|
+
declare const calculatePrice: MaybeContext<BuildRESTFunction<typeof calculatePrice$1> & typeof calculatePrice$1>;
|
|
76
|
+
|
|
77
|
+
export { Booking, BookingLineItem, CalculatePriceResponse, PreviewPriceResponse, calculatePrice, previewPrice };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function previewPrice(httpClient: HttpClient): PreviewPriceSignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { B as BookingLineItem, P as PreviewPriceResponse, a as Booking, C as CalculatePriceResponse } from './bookings-v2-price-info-pricing.universal-Bg2-I7Zy.js';
|
|
3
|
+
export { A as Actor, t as Address, w as AddressLocation, u as AddressStreetOneOf, Q as BookedAddOn, m as BookedEntity, n as BookedEntityItemOneOf, p as BookedResource, r as BookedSchedule, o as BookedSlot, l as BookingParticipantsInfoOneOf, z as BookingSource, b as BookingStatus, k as CalculatePriceRequest, s as ContactDetails, y as CustomFormField, D as Duration, J as ExtendedFields, H as FlowControlSettings, F as IdentificationData, G as IdentificationDataIdOneOf, I as IdentityType, q as Location, L as LocationType, O as MultiServiceBookingInfo, M as MultiServiceBookingType, K as ParticipantChoices, E as ParticipantNotification, c as PaymentStatus, d as Platform, j as PreviewPriceRequest, i as PriceDescriptionInfo, e as PriceInfo, f as PriceInfoTotalPriceOneOf, S as SelectedPaymentOption, g as ServiceChoice, h as ServiceChoiceChoiceOneOf, N as ServiceChoices, v as StreetAddress, x as Subdivision, V as ValueType } from './bookings-v2-price-info-pricing.universal-Bg2-I7Zy.js';
|
|
4
|
+
|
|
5
|
+
declare function previewPrice$1(httpClient: HttpClient): PreviewPriceSignature;
|
|
7
6
|
interface PreviewPriceSignature {
|
|
8
7
|
/**
|
|
9
8
|
* Previews the base price for a set of line items belonging to the same
|
|
@@ -34,7 +33,7 @@ interface PreviewPriceSignature {
|
|
|
34
33
|
*/
|
|
35
34
|
(bookingLineItems: BookingLineItem[]): Promise<PreviewPriceResponse>;
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
declare function calculatePrice$1(httpClient: HttpClient): CalculatePriceSignature;
|
|
38
37
|
interface CalculatePriceSignature {
|
|
39
38
|
/**
|
|
40
39
|
* Calculates the base price of a booking.
|
|
@@ -71,4 +70,8 @@ interface CalculatePriceSignature {
|
|
|
71
70
|
*/
|
|
72
71
|
(booking: Booking): Promise<CalculatePriceResponse>;
|
|
73
72
|
}
|
|
74
|
-
|
|
73
|
+
|
|
74
|
+
declare const previewPrice: MaybeContext<BuildRESTFunction<typeof previewPrice$1> & typeof previewPrice$1>;
|
|
75
|
+
declare const calculatePrice: MaybeContext<BuildRESTFunction<typeof calculatePrice$1> & typeof calculatePrice$1>;
|
|
76
|
+
|
|
77
|
+
export { Booking, BookingLineItem, CalculatePriceResponse, PreviewPriceResponse, calculatePrice, previewPrice };
|