@wix/bookings 1.0.105 → 1.0.107

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 (85) hide show
  1. package/build/cjs/src/bookings-availability-v1-slot-availability.types.d.ts +2 -2
  2. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.d.ts +2 -2
  3. package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +13 -15
  4. package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
  5. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +13 -17
  6. package/build/cjs/src/bookings-calendar-v1-session.universal.js +0 -1
  7. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
  8. package/build/cjs/src/bookings-calendar-v2-external-calendar.public.d.ts +3 -3
  9. package/build/cjs/src/bookings-calendar-v2-external-calendar.public.js +1 -1
  10. package/build/cjs/src/bookings-calendar-v2-external-calendar.public.js.map +1 -1
  11. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.d.ts +14 -16
  12. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
  13. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.d.ts +15 -21
  14. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +4 -9
  15. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  16. package/build/cjs/src/bookings-calendar-v2-session-view.types.d.ts +11 -11
  17. package/build/cjs/src/bookings-calendar-v2-session-view.universal.d.ts +11 -11
  18. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
  19. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js +1 -1
  20. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -1
  21. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +24 -26
  22. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  23. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +25 -31
  24. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +3 -9
  25. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  26. package/build/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +31 -31
  27. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +31 -31
  28. package/build/cjs/src/bookings-services-v2-service.http.js +1 -1
  29. package/build/cjs/src/bookings-services-v2-service.http.js.map +1 -1
  30. package/build/cjs/src/bookings-services-v2-service.public.d.ts +1 -1
  31. package/build/cjs/src/bookings-services-v2-service.types.d.ts +96 -48
  32. package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
  33. package/build/cjs/src/bookings-services-v2-service.universal.d.ts +96 -48
  34. package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
  35. package/build/cjs/src/bookings-v2-booking.types.d.ts +72 -72
  36. package/build/cjs/src/bookings-v2-booking.universal.d.ts +72 -72
  37. package/build/cjs/src/bookings-v2-price-info.http.d.ts +11 -11
  38. package/build/cjs/src/bookings-v2-price-info.http.js +12 -12
  39. package/build/cjs/src/bookings-v2-price-info.http.js.map +1 -1
  40. package/build/cjs/src/bookings-v2-price-info.types.d.ts +32 -32
  41. package/build/cjs/src/bookings-v2-price-info.universal.d.ts +47 -47
  42. package/build/cjs/src/bookings-v2-price-info.universal.js +11 -11
  43. package/build/es/src/bookings-availability-v1-slot-availability.types.d.ts +2 -2
  44. package/build/es/src/bookings-availability-v1-slot-availability.universal.d.ts +2 -2
  45. package/build/es/src/bookings-calendar-v1-session.types.d.ts +13 -15
  46. package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -1
  47. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +13 -17
  48. package/build/es/src/bookings-calendar-v1-session.universal.js +0 -1
  49. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
  50. package/build/es/src/bookings-calendar-v2-external-calendar.public.d.ts +3 -3
  51. package/build/es/src/bookings-calendar-v2-external-calendar.public.js +1 -1
  52. package/build/es/src/bookings-calendar-v2-external-calendar.public.js.map +1 -1
  53. package/build/es/src/bookings-calendar-v2-external-calendar.types.d.ts +14 -16
  54. package/build/es/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
  55. package/build/es/src/bookings-calendar-v2-external-calendar.universal.d.ts +15 -21
  56. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js +4 -9
  57. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  58. package/build/es/src/bookings-calendar-v2-session-view.types.d.ts +11 -11
  59. package/build/es/src/bookings-calendar-v2-session-view.universal.d.ts +11 -11
  60. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +3 -3
  61. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js +1 -1
  62. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -1
  63. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +24 -26
  64. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  65. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +25 -31
  66. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +3 -9
  67. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  68. package/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +31 -31
  69. package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +31 -31
  70. package/build/es/src/bookings-services-v2-service.http.js +1 -1
  71. package/build/es/src/bookings-services-v2-service.http.js.map +1 -1
  72. package/build/es/src/bookings-services-v2-service.public.d.ts +1 -1
  73. package/build/es/src/bookings-services-v2-service.types.d.ts +96 -48
  74. package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
  75. package/build/es/src/bookings-services-v2-service.universal.d.ts +96 -48
  76. package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
  77. package/build/es/src/bookings-v2-booking.types.d.ts +72 -72
  78. package/build/es/src/bookings-v2-booking.universal.d.ts +72 -72
  79. package/build/es/src/bookings-v2-price-info.http.d.ts +11 -11
  80. package/build/es/src/bookings-v2-price-info.http.js +12 -12
  81. package/build/es/src/bookings-v2-price-info.http.js.map +1 -1
  82. package/build/es/src/bookings-v2-price-info.types.d.ts +32 -32
  83. package/build/es/src/bookings-v2-price-info.universal.d.ts +47 -47
  84. package/build/es/src/bookings-v2-price-info.universal.js +11 -11
  85. package/package.json +2 -2
@@ -14,7 +14,7 @@ import { CalculatePriceRequest, CalculatePriceResponse, PreviewPriceRequest, Pre
14
14
  * of each line item before
15
15
  * the booking is actually created.
16
16
  *
17
- * Use [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) to get the base price
17
+ * Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
18
18
  * after the booking is created.
19
19
  *
20
20
  * Passing line items that belong to different services results in an error.
@@ -23,10 +23,10 @@ import { CalculatePriceRequest, CalculatePriceResponse, PreviewPriceRequest, Pre
23
23
  *
24
24
  * Wix Bookings has its own default pricing logic for previewing the price. You must
25
25
  * pass the `serviceId` in the `slot`
26
- * or `schedule` object to [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price).
26
+ * or `schedule` object to [`previewPrice()`].
27
27
  *
28
- * You cannot call `Preview Price` if you have customized Bookings pricing logic using the
29
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `Preview Price` if custom pricing
28
+ * You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
29
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
30
30
  * logic has been implemented for the site results in an error.
31
31
  */
32
32
  export declare function previewPrice(payload: PreviewPriceRequest): RequestOptionsFactory<PreviewPriceResponse>;
@@ -35,10 +35,10 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
35
35
  *
36
36
  *
37
37
  *
38
- * You can call [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) after a booking is created. The returned calculated price includes information about each line
38
+ * You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
39
39
  * item's price and the booking's total price.
40
40
  *
41
- * You can use [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price) to get the base price
41
+ * You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
42
42
  * before a booking is created.
43
43
  *
44
44
  * The calculated price is the base price that will be used as a basis for charging the customer.
@@ -49,13 +49,13 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
49
49
  *
50
50
  * Wix Bookings has its own default pricing logic for calculating the price. When
51
51
  * using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
52
- * or `schedule` object to [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price).
52
+ * or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
53
53
  *
54
54
  * Alternatively you can customize the pricing logic using the
55
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
55
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
56
56
  * If you integrate with a pricing provider, the customized pricing logic becomes
57
- * the default logic. This means that, if the pricing provider SPI is implemented,
58
- * when calling the API's `Calculate Price` endpoint,
59
- * the [SPI's `Calculate Price` endpoint](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) is used instead.
57
+ * the default logic. This means that, if the Pricing Integration SPI is implemented,
58
+ * when calling the API's `calculatePrice()` function,
59
+ * the REST SPI's `Calculate Price` endpoint is used instead.
60
60
  */
61
61
  export declare function calculatePrice(payload: CalculatePriceRequest): RequestOptionsFactory<CalculatePriceResponse>;
@@ -22,8 +22,8 @@ const _contactDetails = { fullAddress: '_address' };
22
22
  const _previewPriceRequest = { bookingLineItems: '_bookingLineItem' };
23
23
  const _previewPriceResponse = { priceInfo: '_priceInfo' };
24
24
  const _priceInfo = {
25
- deposit: 'google.protobuf.DoubleValue',
26
25
  calculatedPrice: 'DOUBLE',
26
+ deposit: 'google.protobuf.DoubleValue',
27
27
  bookingLineItems: '_bookingLineItem',
28
28
  };
29
29
  function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
@@ -75,7 +75,7 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
75
75
  * of each line item before
76
76
  * the booking is actually created.
77
77
  *
78
- * Use [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) to get the base price
78
+ * Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
79
79
  * after the booking is created.
80
80
  *
81
81
  * Passing line items that belong to different services results in an error.
@@ -84,10 +84,10 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
84
84
  *
85
85
  * Wix Bookings has its own default pricing logic for previewing the price. You must
86
86
  * pass the `serviceId` in the `slot`
87
- * or `schedule` object to [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price).
87
+ * or `schedule` object to [`previewPrice()`].
88
88
  *
89
- * You cannot call `Preview Price` if you have customized Bookings pricing logic using the
90
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `Preview Price` if custom pricing
89
+ * You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
90
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
91
91
  * logic has been implemented for the site results in an error.
92
92
  */
93
93
  function previewPrice(payload) {
@@ -119,10 +119,10 @@ exports.previewPrice = previewPrice;
119
119
  *
120
120
  *
121
121
  *
122
- * You can call [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) after a booking is created. The returned calculated price includes information about each line
122
+ * You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
123
123
  * item's price and the booking's total price.
124
124
  *
125
- * You can use [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price) to get the base price
125
+ * You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
126
126
  * before a booking is created.
127
127
  *
128
128
  * The calculated price is the base price that will be used as a basis for charging the customer.
@@ -133,14 +133,14 @@ exports.previewPrice = previewPrice;
133
133
  *
134
134
  * Wix Bookings has its own default pricing logic for calculating the price. When
135
135
  * using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
136
- * or `schedule` object to [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price).
136
+ * or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
137
137
  *
138
138
  * Alternatively you can customize the pricing logic using the
139
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
139
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
140
140
  * If you integrate with a pricing provider, the customized pricing logic becomes
141
- * the default logic. This means that, if the pricing provider SPI is implemented,
142
- * when calling the API's `Calculate Price` endpoint,
143
- * the [SPI's `Calculate Price` endpoint](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) is used instead.
141
+ * the default logic. This means that, if the Pricing Integration SPI is implemented,
142
+ * when calling the API's `calculatePrice()` function,
143
+ * the REST SPI's `Calculate Price` endpoint is used instead.
144
144
  */
145
145
  function calculatePrice(payload) {
146
146
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_calculatePriceRequest, { _address, _addressLocation, _booking, _contactDetails });
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-price-info.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAUhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,gBAAgB,GAAG,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,CAAC;AAChF,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,uBAAuB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC5D,MAAM,eAAe,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,oBAAoB,GAAG,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;AACtE,MAAM,qBAAqB,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC1D,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,6BAA6B;IACtC,eAAe,EAAE,QAAQ;IACzB,gBAAgB,EAAE,kBAAkB;CACrC,CAAC;AAEF,SAAS,0DAA0D,CACjE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,aAAa;aACxB;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAA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AAE,0DAA0D,CAAC;gBAC9D,SAAS,EAAE,uBAAuB;gBAClC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gBAAgB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEnC,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA/BD,wCA+BC"}
@@ -1,12 +1,4 @@
1
1
  export interface PriceInfo extends PriceInfoTotalPriceOneOf {
2
- /** List of line items, including the number of participants and the price per participant. */
3
- bookingLineItems?: BookingLineItem[];
4
- /**
5
- * Total deposit the customer must pay when booking the service.
6
- *
7
- * Available when: The service includes a deposit.
8
- */
9
- deposit?: number | null;
10
2
  /**
11
3
  * Calculated total price. Available only when the
12
4
  * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
@@ -21,6 +13,14 @@ export interface PriceInfo extends PriceInfoTotalPriceOneOf {
21
13
  * [`schedule.rate.priceText`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) property.
22
14
  */
23
15
  priceDescription?: string;
16
+ /** List of line items, including the number of participants and the price per participant. */
17
+ bookingLineItems?: BookingLineItem[];
18
+ /**
19
+ * Total deposit the customer must pay when booking the service.
20
+ *
21
+ * Available when: The service includes a deposit.
22
+ */
23
+ deposit?: number | null;
24
24
  }
25
25
  /** @oneof */
26
26
  export interface PriceInfoTotalPriceOneOf {
@@ -46,7 +46,7 @@ export interface BookingLineItem {
46
46
  * Required when not using Wix Booking's default pricing logic.
47
47
  *
48
48
  * Optional when using custom pricing logic defined with the
49
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
49
+ * [Bookings Pricing Integration SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
50
50
  */
51
51
  serviceId?: string | null;
52
52
  /** Resource ID. Required for services of type appointment or class. */
@@ -66,12 +66,6 @@ export interface BookingLineItem {
66
66
  pricePerParticipant?: number | null;
67
67
  }
68
68
  export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
69
- /**
70
- * ID of the corresponding option for the choice. For example, the choice `child`
71
- * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
72
- * for the `ageGroup` option.
73
- */
74
- optionId?: string;
75
69
  /**
76
70
  * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
77
71
  * Choices are specific values for an option the customer can choose to book. For example,
@@ -79,6 +73,12 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
79
73
  * Each choice may have a different price.
80
74
  */
81
75
  custom?: string;
76
+ /**
77
+ * ID of the corresponding option for the choice. For example, the choice `child`
78
+ * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
79
+ * for the `ageGroup` option.
80
+ */
81
+ optionId?: string;
82
82
  }
83
83
  /** @oneof */
84
84
  export interface ServiceChoiceChoiceOneOf {
@@ -104,6 +104,13 @@ export interface CalculatePriceRequest {
104
104
  }
105
105
  /** The booking object, version 2. */
106
106
  export interface Booking extends BookingParticipantsInfoOneOf {
107
+ /** Total number of participants. Available only when the booking includes a single service variant. */
108
+ totalParticipants?: number;
109
+ /**
110
+ * Information about the booked service choices and participants.
111
+ * Available only when the booking includes multiple service variants.
112
+ */
113
+ participantsChoices?: ParticipantChoices;
107
114
  /**
108
115
  * Booking ID.
109
116
  * @readonly
@@ -197,13 +204,6 @@ export interface Booking extends BookingParticipantsInfoOneOf {
197
204
  * @readonly
198
205
  */
199
206
  doubleBooked?: boolean | null;
200
- /** Total number of participants. Available only when the booking includes a single service variant. */
201
- totalParticipants?: number;
202
- /**
203
- * Information about the booked service choices and participants.
204
- * Available only when the booking includes multiple service variants.
205
- */
206
- participantsChoices?: ParticipantChoices;
207
207
  }
208
208
  /** @oneof */
209
209
  export interface BookingParticipantsInfoOneOf {
@@ -216,6 +216,10 @@ export interface BookingParticipantsInfoOneOf {
216
216
  participantsChoices?: ParticipantChoices;
217
217
  }
218
218
  export interface BookedEntity extends BookedEntityItemOneOf {
219
+ /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
220
+ slot?: BookedSlot;
221
+ /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
222
+ schedule?: BookedSchedule;
219
223
  /** Session title at the time of booking. */
220
224
  title?: string | null;
221
225
  /**
@@ -226,10 +230,6 @@ export interface BookedEntity extends BookedEntityItemOneOf {
226
230
  * + "COURSE" Courses.
227
231
  */
228
232
  tags?: string[] | null;
229
- /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
230
- slot?: BookedSlot;
231
- /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
232
- schedule?: BookedSchedule;
233
233
  }
234
234
  /** @oneof */
235
235
  export interface BookedEntityItemOneOf {
@@ -345,6 +345,10 @@ export interface ContactDetails {
345
345
  }
346
346
  /** Physical address */
347
347
  export interface Address extends AddressStreetOneOf {
348
+ /** Street name, number and apartment number. */
349
+ streetAddress?: StreetAddress;
350
+ /** Main address line, usually street and number, as free text. */
351
+ addressLine?: string | null;
348
352
  /** Country code. */
349
353
  country?: string | null;
350
354
  /** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -365,10 +369,6 @@ export interface Address extends AddressStreetOneOf {
365
369
  countryFullname?: string | null;
366
370
  /** Multi-level subdivisions from top to bottom. */
367
371
  subdivisions?: Subdivision[];
368
- /** Street name, number and apartment number. */
369
- streetAddress?: StreetAddress;
370
- /** Main address line, usually street and number, as free text. */
371
- addressLine?: string | null;
372
372
  }
373
373
  /** @oneof */
374
374
  export interface AddressStreetOneOf {
@@ -513,8 +513,6 @@ export interface ParticipantNotification {
513
513
  message?: string | null;
514
514
  }
515
515
  export interface IdentificationData extends IdentificationDataIdOneOf {
516
- /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
517
- contactId?: string | null;
518
516
  /** ID of a site visitor that has not logged in to the site. */
519
517
  anonymousVisitorId?: string;
520
518
  /** ID of a site visitor that has logged in to the site. */
@@ -523,6 +521,8 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
523
521
  wixUserId?: string;
524
522
  /** ID of an app. */
525
523
  appId?: string;
524
+ /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
525
+ contactId?: string | null;
526
526
  }
527
527
  /** @oneof */
528
528
  export interface IdentificationDataIdOneOf {
@@ -5,14 +5,6 @@ export declare const __debug: {
5
5
  };
6
6
  };
7
7
  export interface PriceInfo extends PriceInfoTotalPriceOneOf {
8
- /** List of line items, including the number of participants and the price per participant. */
9
- bookingLineItems?: BookingLineItem[];
10
- /**
11
- * Total deposit the customer must pay when booking the service.
12
- *
13
- * Available when: The service includes a deposit.
14
- */
15
- deposit?: number | null;
16
8
  /**
17
9
  * Calculated total price. Available only when the
18
10
  * service's
@@ -27,6 +19,14 @@ export interface PriceInfo extends PriceInfoTotalPriceOneOf {
27
19
  * `schedule.rate.priceText` property.
28
20
  */
29
21
  priceDescription?: string;
22
+ /** List of line items, including the number of participants and the price per participant. */
23
+ bookingLineItems?: BookingLineItem[];
24
+ /**
25
+ * Total deposit the customer must pay when booking the service.
26
+ *
27
+ * Available when: The service includes a deposit.
28
+ */
29
+ deposit?: number | null;
30
30
  }
31
31
  /** @oneof */
32
32
  export interface PriceInfoTotalPriceOneOf {
@@ -70,18 +70,18 @@ export interface BookingLineItem {
70
70
  }
71
71
  export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
72
72
  /**
73
- * ID of the corresponding option for the choice. For example, the choice `child`
74
- * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
75
- * for the `ageGroup` option.
76
- */
77
- optionId?: string;
78
- /**
79
- * Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
73
+ * Value for one of the choices in the `CustomServiceOption.choices` list.
80
74
  * Choices are specific values for an option the customer can choose to book. For example,
81
75
  * the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.
82
76
  * Each choice may have a different price.
83
77
  */
84
78
  custom?: string;
79
+ /**
80
+ * ID of the corresponding option for the choice. For example, the choice `child`
81
+ * could correspond to the option `ageGroup`. In this case, `optionId` is the ID
82
+ * for the `ageGroup` option.
83
+ */
84
+ optionId?: string;
85
85
  }
86
86
  /** @oneof */
87
87
  export interface ServiceChoiceChoiceOneOf {
@@ -107,6 +107,13 @@ export interface CalculatePriceRequest {
107
107
  }
108
108
  /** The booking object, version 2. */
109
109
  export interface Booking extends BookingParticipantsInfoOneOf {
110
+ /** Total number of participants. Available only when the booking includes a single service variant. */
111
+ totalParticipants?: number;
112
+ /**
113
+ * Information about the booked service choices and participants.
114
+ * Available only when the booking includes multiple service variants.
115
+ */
116
+ participantsChoices?: ParticipantChoices;
110
117
  /**
111
118
  * Booking ID.
112
119
  * @readonly
@@ -123,18 +130,18 @@ export interface Booking extends BookingParticipantsInfoOneOf {
123
130
  * One of:
124
131
  * - `"CREATED"` - The booking was created.
125
132
  * - `"UPDATED"` - The booking was updated.
126
- * - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar. A booking can be manually confirmed using the [`Confirm Or Decline API`](www.example.com). A booking can be automatically confirmed when the following requirements are met:
133
+ * - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar. A booking can be manually confirmed using the [`confirmOrDecline()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/confirmordeclinebooking) API. A booking can be automatically confirmed when the following requirements are met:
127
134
  * + The service is configured as automatically confirmed.
128
135
  * + The system invoked the eCommerce checkout API and created an order.
129
136
  * - `"CANCELED"` - The booking has been canceled and synced to the bookings calendar.
130
- * The booking can be canceled using [`Cancel Booking API`](www.example.com).
137
+ * The booking can be canceled using [`cancelBooking()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/cancelbooking) API.
131
138
  * - `"PENDING"` - The booking is waiting to be confirmed or declined by the owner and the booking is synced to the bookings calendar.
132
- * Bookings can be manually set as `PENDING` using the [`setAsPending` API](www.example.com), by those with Manage Booking Status permissions scopes.
139
+ * Bookings can be manually set as `PENDING` using the `setAsPending()` API, by those with Manage Booking Status permissions scopes.
133
140
  * Bookings can be automatically set as `PENDING` when the following requirements are met:
134
141
  * + The service is configured as manually confirmed.
135
142
  * + Invoking the eCommerce checkout API and an order has been created.
136
143
  * - `"WAITING_LIST"` - The booking is on a waiting list.
137
- * - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar. Bookings can be manually declined using the [`Decline Booking` API](www.example.com) by those with Manage Booking Status permission scopes. Booking can be automatically declined when one of the following requirements are met:
144
+ * - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar. Bookings can be manually declined using the [`declineBooking()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/declinebooking) API by those with Manage Booking Status permission scopes. Bookings can be automatically declined when one of the following requirements are met:
138
145
  * + Invoking the `eCommerce checkout` API and the order declined event has been sent.
139
146
  * + Invoking the `eCommerce checkout` API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
140
147
  */
@@ -199,13 +206,6 @@ export interface Booking extends BookingParticipantsInfoOneOf {
199
206
  * @readonly
200
207
  */
201
208
  doubleBooked?: boolean | null;
202
- /** Total number of participants. Available only when the booking includes a single service variant. */
203
- totalParticipants?: number;
204
- /**
205
- * Information about the booked service choices and participants.
206
- * Available only when the booking includes multiple service variants.
207
- */
208
- participantsChoices?: ParticipantChoices;
209
209
  }
210
210
  /** @oneof */
211
211
  export interface BookingParticipantsInfoOneOf {
@@ -218,6 +218,10 @@ export interface BookingParticipantsInfoOneOf {
218
218
  participantsChoices?: ParticipantChoices;
219
219
  }
220
220
  export interface BookedEntity extends BookedEntityItemOneOf {
221
+ /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
222
+ slot?: BookedSlot;
223
+ /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
224
+ schedule?: BookedSchedule;
221
225
  /** Session title at the time of booking. */
222
226
  title?: string | null;
223
227
  /**
@@ -228,10 +232,6 @@ export interface BookedEntity extends BookedEntityItemOneOf {
228
232
  * + "COURSE" Courses.
229
233
  */
230
234
  tags?: string[] | null;
231
- /** The booked slot, once booked becomes a session, The booking is automatically assigned to the session if it already exists, or creates a session if one doesn't already exist. */
232
- slot?: BookedSlot;
233
- /** The booked schedule. The booking is automatically assigned to the schedule's sessions. */
234
- schedule?: BookedSchedule;
235
235
  }
236
236
  /** @oneof */
237
237
  export interface BookedEntityItemOneOf {
@@ -347,6 +347,10 @@ export interface ContactDetails {
347
347
  }
348
348
  /** Physical address */
349
349
  export interface Address extends AddressStreetOneOf {
350
+ /** Street name, number and apartment number. */
351
+ streetAddress?: StreetAddress;
352
+ /** Main address line, usually street and number, as free text. */
353
+ addressLine?: string | null;
350
354
  /** Country code. */
351
355
  country?: string | null;
352
356
  /** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -367,10 +371,6 @@ export interface Address extends AddressStreetOneOf {
367
371
  countryFullname?: string | null;
368
372
  /** Multi-level subdivisions from top to bottom. */
369
373
  subdivisions?: Subdivision[];
370
- /** Street name, number and apartment number. */
371
- streetAddress?: StreetAddress;
372
- /** Main address line, usually street and number, as free text. */
373
- addressLine?: string | null;
374
374
  }
375
375
  /** @oneof */
376
376
  export interface AddressStreetOneOf {
@@ -512,8 +512,6 @@ export interface ParticipantNotification {
512
512
  message?: string | null;
513
513
  }
514
514
  export interface IdentificationData extends IdentificationDataIdOneOf {
515
- /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
516
- contactId?: string | null;
517
515
  /** ID of a site visitor that has not logged in to the site. */
518
516
  anonymousVisitorId?: string;
519
517
  /** ID of a site visitor that has logged in to the site. */
@@ -522,6 +520,8 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
522
520
  wixUserId?: string;
523
521
  /** ID of an app. */
524
522
  appId?: string;
523
+ /** ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. */
524
+ contactId?: string | null;
525
525
  }
526
526
  /** @oneof */
527
527
  export interface IdentificationDataIdOneOf {
@@ -600,7 +600,7 @@ export interface CalculatePriceResponse {
600
600
  * of each line item before
601
601
  * the booking is actually created.
602
602
  *
603
- * Use [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) to get the base price
603
+ * Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
604
604
  * after the booking is created.
605
605
  *
606
606
  * Passing line items that belong to different services results in an error.
@@ -609,10 +609,10 @@ export interface CalculatePriceResponse {
609
609
  *
610
610
  * Wix Bookings has its own default pricing logic for previewing the price. You must
611
611
  * pass the `serviceId` in the `slot`
612
- * or `schedule` object to [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price).
612
+ * or `schedule` object to [`previewPrice()`].
613
613
  *
614
- * You cannot call `Preview Price` if you have customized Bookings pricing logic using the
615
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `Preview Price` if custom pricing
614
+ * You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
615
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
616
616
  * logic has been implemented for the site results in an error.
617
617
  * @param bookingLineItems - List of line items to preview the price for.
618
618
  * @public
@@ -625,10 +625,10 @@ export declare function previewPrice(bookingLineItems: BookingLineItem[]): Promi
625
625
  *
626
626
  *
627
627
  *
628
- * You can call [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) after a booking is created. The returned calculated price includes information about each line
628
+ * You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
629
629
  * item's price and the booking's total price.
630
630
  *
631
- * You can use [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price) to get the base price
631
+ * You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
632
632
  * before a booking is created.
633
633
  *
634
634
  * The calculated price is the base price that will be used as a basis for charging the customer.
@@ -639,14 +639,14 @@ export declare function previewPrice(bookingLineItems: BookingLineItem[]): Promi
639
639
  *
640
640
  * Wix Bookings has its own default pricing logic for calculating the price. When
641
641
  * using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
642
- * or `schedule` object to [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price).
642
+ * or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
643
643
  *
644
644
  * Alternatively you can customize the pricing logic using the
645
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
645
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
646
646
  * If you integrate with a pricing provider, the customized pricing logic becomes
647
- * the default logic. This means that, if the pricing provider SPI is implemented,
648
- * when calling the API's `Calculate Price` endpoint,
649
- * the [SPI's `Calculate Price` endpoint](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) is used instead.
647
+ * the default logic. This means that, if the Pricing Integration SPI is implemented,
648
+ * when calling the API's `calculatePrice()` function,
649
+ * the REST SPI's `Calculate Price` endpoint is used instead.
650
650
  * @param booking - Booking to calculate the price for.
651
651
  * @public
652
652
  * @documentationMaturity preview
@@ -140,7 +140,7 @@ const _previewPriceResponse = {};
140
140
  * of each line item before
141
141
  * the booking is actually created.
142
142
  *
143
- * Use [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) to get the base price
143
+ * Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
144
144
  * after the booking is created.
145
145
  *
146
146
  * Passing line items that belong to different services results in an error.
@@ -149,10 +149,10 @@ const _previewPriceResponse = {};
149
149
  *
150
150
  * Wix Bookings has its own default pricing logic for previewing the price. You must
151
151
  * pass the `serviceId` in the `slot`
152
- * or `schedule` object to [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price).
152
+ * or `schedule` object to [`previewPrice()`].
153
153
  *
154
- * You cannot call `Preview Price` if you have customized Bookings pricing logic using the
155
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `Preview Price` if custom pricing
154
+ * You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
155
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
156
156
  * logic has been implemented for the site results in an error.
157
157
  * @param bookingLineItems - List of line items to preview the price for.
158
158
  * @public
@@ -208,10 +208,10 @@ exports.previewPrice = previewPrice;
208
208
  *
209
209
  *
210
210
  *
211
- * You can call [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) after a booking is created. The returned calculated price includes information about each line
211
+ * You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
212
212
  * item's price and the booking's total price.
213
213
  *
214
- * You can use [`Preview Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/preview-price) to get the base price
214
+ * You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
215
215
  * before a booking is created.
216
216
  *
217
217
  * The calculated price is the base price that will be used as a basis for charging the customer.
@@ -222,14 +222,14 @@ exports.previewPrice = previewPrice;
222
222
  *
223
223
  * Wix Bookings has its own default pricing logic for calculating the price. When
224
224
  * using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
225
- * or `schedule` object to [`Calculate Price`](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price).
225
+ * or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
226
226
  *
227
227
  * Alternatively you can customize the pricing logic using the
228
- * [Bookings Pricing Provider SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
228
+ * [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
229
229
  * If you integrate with a pricing provider, the customized pricing logic becomes
230
- * the default logic. This means that, if the pricing provider SPI is implemented,
231
- * when calling the API's `Calculate Price` endpoint,
232
- * the [SPI's `Calculate Price` endpoint](https://dev.wix.com/api/rest/wix-bookings/pricing/calculate-price) is used instead.
230
+ * the default logic. This means that, if the Pricing Integration SPI is implemented,
231
+ * when calling the API's `calculatePrice()` function,
232
+ * the REST SPI's `Calculate Price` endpoint is used instead.
233
233
  * @param booking - Booking to calculate the price for.
234
234
  * @public
235
235
  * @documentationMaturity preview
@@ -147,6 +147,8 @@ export interface QueryAvailabilityRequest {
147
147
  slotsPerDay?: number | null;
148
148
  }
149
149
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
150
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
151
+ cursorPaging?: CursorPaging;
150
152
  /**
151
153
  * Filter object. For a list of
152
154
  * fields you can filter by, see [Calendar Availability: Supported Fields, Filters, and Sorting](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/supported-fields,-filters,-and-sorting).
@@ -161,8 +163,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
161
163
  sort?: Sorting[];
162
164
  /** List of projected fields to return. All fields are supported. */
163
165
  fields?: string[];
164
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
165
- cursorPaging?: CursorPaging;
166
166
  }
167
167
  /** @oneof */
168
168
  export interface QueryV2PagingMethodOneOf {
@@ -149,6 +149,8 @@ export interface QueryAvailabilityRequest {
149
149
  slotsPerDay?: number | null;
150
150
  }
151
151
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
152
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
153
+ cursorPaging?: CursorPaging;
152
154
  /**
153
155
  * Filter object. You must include the `startDate` and `endDate` in the filter. This avoids large results that can impact performance.
154
156
  */
@@ -157,8 +159,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
157
159
  sort?: Sorting[];
158
160
  /** List of projected fields to return. All fields are supported. */
159
161
  fields?: string[];
160
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
161
- cursorPaging?: CursorPaging;
162
162
  }
163
163
  /** @oneof */
164
164
  export interface QueryV2PagingMethodOneOf {