@wix/auto_sdk_bookings_pricing 1.0.3 → 1.0.5

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 (41) hide show
  1. package/build/cjs/src/bookings-v2-price-info-pricing.http.d.ts +36 -37
  2. package/build/cjs/src/bookings-v2-price-info-pricing.http.js +36 -37
  3. package/build/cjs/src/bookings-v2-price-info-pricing.http.js.map +1 -1
  4. package/build/cjs/src/bookings-v2-price-info-pricing.public.d.ts +39 -38
  5. package/build/cjs/src/bookings-v2-price-info-pricing.public.js.map +1 -1
  6. package/build/cjs/src/bookings-v2-price-info-pricing.types.d.ts +61 -42
  7. package/build/cjs/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  8. package/build/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +129 -112
  9. package/build/cjs/src/bookings-v2-price-info-pricing.universal.js +39 -38
  10. package/build/cjs/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  11. package/build/es/src/bookings-v2-price-info-pricing.http.d.ts +36 -37
  12. package/build/es/src/bookings-v2-price-info-pricing.http.js +36 -37
  13. package/build/es/src/bookings-v2-price-info-pricing.http.js.map +1 -1
  14. package/build/es/src/bookings-v2-price-info-pricing.public.d.ts +39 -38
  15. package/build/es/src/bookings-v2-price-info-pricing.public.js.map +1 -1
  16. package/build/es/src/bookings-v2-price-info-pricing.types.d.ts +61 -42
  17. package/build/es/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  18. package/build/es/src/bookings-v2-price-info-pricing.universal.d.ts +129 -112
  19. package/build/es/src/bookings-v2-price-info-pricing.universal.js +39 -38
  20. package/build/es/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  21. package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.d.ts +36 -37
  22. package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.js +36 -37
  23. package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.js.map +1 -1
  24. package/build/internal/cjs/src/bookings-v2-price-info-pricing.public.d.ts +39 -38
  25. package/build/internal/cjs/src/bookings-v2-price-info-pricing.public.js.map +1 -1
  26. package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.d.ts +61 -42
  27. package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  28. package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +129 -112
  29. package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js +39 -38
  30. package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  31. package/build/internal/es/src/bookings-v2-price-info-pricing.http.d.ts +36 -37
  32. package/build/internal/es/src/bookings-v2-price-info-pricing.http.js +36 -37
  33. package/build/internal/es/src/bookings-v2-price-info-pricing.http.js.map +1 -1
  34. package/build/internal/es/src/bookings-v2-price-info-pricing.public.d.ts +39 -38
  35. package/build/internal/es/src/bookings-v2-price-info-pricing.public.js.map +1 -1
  36. package/build/internal/es/src/bookings-v2-price-info-pricing.types.d.ts +61 -42
  37. package/build/internal/es/src/bookings-v2-price-info-pricing.types.js.map +1 -1
  38. package/build/internal/es/src/bookings-v2-price-info-pricing.universal.d.ts +129 -112
  39. package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js +39 -38
  40. package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js.map +1 -1
  41. package/package.json +2 -2
@@ -1,60 +1,59 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
2
  /**
3
- * Previews the base price for a set of line items belonging to the same service
4
- * before a potential booking is actually created.
3
+ * Previews the base price for a set of line items belonging to the same
4
+ * service, before a booking is created. During the booking flow, additional
5
+ * taxes and fees may be added to the base price.
5
6
  *
6
7
  *
8
+ * ## Response
7
9
  *
8
- * The returned price preview information about each line
9
- * item's price and sums up each line item's price.
10
+ * The response includes each line item's individual preview price and the
11
+ * total of all line item preview prices. Note that the final price upon
12
+ * booking creation may differ from the preview price.
10
13
  *
11
- * The previewed price is not the actual price that will be used to charge the customer.
12
- * `Preview Price` only estimates the base price by adding up the price
13
- * of each line item before
14
- * the booking is actually created.
14
+ * ## Errors
15
15
  *
16
- * Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
17
- * after the booking is created.
16
+ * _Preview Price_ fails if:
18
17
  *
19
- * Passing line items that belong to different services results in an error.
18
+ * - You specify line items that belong to different *services*
19
+ * ([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)).
20
+ * - The site is using the *Bookings Pricing Integration SPI*
21
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/introduction)).
20
22
  *
21
- * ## Calculating the previewed price
23
+ * ## When to call Calculate Price instead
22
24
  *
23
- * Wix Bookings has its own default pricing logic for previewing the price. You must
24
- * pass the `serviceId` in the `slot`
25
- * or `schedule` object to `previewPrice()`.
26
- *
27
- * You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
28
- * [BookingsCustomPricing](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/service-plugins-spis/bookings-custom-pricing/introduction) service plugin. Calling `previewPrice` if custom pricing
29
- * logic has been implemented for the site results in an error.
25
+ * To retrieve the price of an existing booking, call *Calculate Price*
26
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/calculate-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/calculate-price)).
30
27
  */
31
28
  export declare function previewPrice(payload: object): RequestOptionsFactory<any>;
32
29
  /**
33
30
  * Calculates the base price of a booking.
34
31
  *
35
32
  *
33
+ * The returned price serves as the foundation for charging the customer. During the
34
+ * _eCommerce checkout_
35
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/introduction)),
36
+ * additional taxes and fees may be added to this base price.
36
37
  *
37
- * You can call `calculatePrice()` after a booking is created. The returned calculated price includes information about each line
38
- * item's price and the booking's total price.
39
- *
40
- * You can use `previewPrice()` to get the base price
41
- * before a booking is created.
38
+ * ## Price calculation method
42
39
  *
43
- * The calculated price is the base price that will be used as a basis for charging the customer.
44
- * During checkout, additional taxes
45
- * and fees might be added to this base price.
40
+ * By default, Wix Bookings calculates a booking's price based on the relevant
41
+ * `serviceOptionsAndVariants.variants.values.price`
42
+ * ([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)).
43
+ * You must then specify either `booking.bookedEntity.slot.serviceId` or
44
+ * `booking.bookedEntity.schedule.scheduleId`.
46
45
  *
47
- * ## Calculating the price
46
+ * If the business uses the *Wix Bookings Pricing Integration service plugin*
47
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/introduction)),
48
+ * the returned `priceInfo` object reflects values received from the SPI implementor in
49
+ * _Calculate Price_
50
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/calculate-price)).
51
+ * In this case, it suffices to specify `booking.bookedEntity`.
48
52
  *
49
- * Wix Bookings has its own default pricing logic for calculating the price. When
50
- * using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
51
- * or `schedule` object to `calculatePrice()`.
53
+ * ## When to call Preview Price instead
52
54
  *
53
- * Alternatively you can customize the pricing logic using the
54
- * [BookingsCustomPricing](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/service-plugins-spis/bookings-custom-pricing/introduction) service plugin.
55
- * If you integrate with a pricing provider, the customized pricing logic becomes
56
- * the default logic. This means that, if the Custom Pricing service plugin is implemented,
57
- * when calling `calculatePrice()`,
58
- * the customized logic is used instead.
55
+ * To estimate the price for multiple booking line items before the booking exists,
56
+ * call *Preview Price*
57
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/preview-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/preview-price)).
59
58
  */
60
59
  export declare function calculatePrice(payload: object): RequestOptionsFactory<any>;
@@ -40,33 +40,30 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
40
40
  }
41
41
  const PACKAGE_NAME = '@wix/auto_sdk_bookings_pricing';
42
42
  /**
43
- * Previews the base price for a set of line items belonging to the same service
44
- * before a potential booking is actually created.
43
+ * Previews the base price for a set of line items belonging to the same
44
+ * service, before a booking is created. During the booking flow, additional
45
+ * taxes and fees may be added to the base price.
45
46
  *
46
47
  *
48
+ * ## Response
47
49
  *
48
- * The returned price preview information about each line
49
- * item's price and sums up each line item's price.
50
+ * The response includes each line item's individual preview price and the
51
+ * total of all line item preview prices. Note that the final price upon
52
+ * booking creation may differ from the preview price.
50
53
  *
51
- * The previewed price is not the actual price that will be used to charge the customer.
52
- * `Preview Price` only estimates the base price by adding up the price
53
- * of each line item before
54
- * the booking is actually created.
54
+ * ## Errors
55
55
  *
56
- * Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
57
- * after the booking is created.
56
+ * _Preview Price_ fails if:
58
57
  *
59
- * Passing line items that belong to different services results in an error.
58
+ * - You specify line items that belong to different *services*
59
+ * ([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)).
60
+ * - The site is using the *Bookings Pricing Integration SPI*
61
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/introduction)).
60
62
  *
61
- * ## Calculating the previewed price
63
+ * ## When to call Calculate Price instead
62
64
  *
63
- * Wix Bookings has its own default pricing logic for previewing the price. You must
64
- * pass the `serviceId` in the `slot`
65
- * or `schedule` object to `previewPrice()`.
66
- *
67
- * You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
68
- * [BookingsCustomPricing](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/service-plugins-spis/bookings-custom-pricing/introduction) service plugin. Calling `previewPrice` if custom pricing
69
- * logic has been implemented for the site results in an error.
65
+ * To retrieve the price of an existing booking, call *Calculate Price*
66
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/calculate-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/calculate-price)).
70
67
  */
71
68
  export function previewPrice(payload) {
72
69
  function __previewPrice({ host }) {
@@ -106,29 +103,31 @@ export function previewPrice(payload) {
106
103
  * Calculates the base price of a booking.
107
104
  *
108
105
  *
106
+ * The returned price serves as the foundation for charging the customer. During the
107
+ * _eCommerce checkout_
108
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/introduction)),
109
+ * additional taxes and fees may be added to this base price.
109
110
  *
110
- * You can call `calculatePrice()` after a booking is created. The returned calculated price includes information about each line
111
- * item's price and the booking's total price.
112
- *
113
- * You can use `previewPrice()` to get the base price
114
- * before a booking is created.
111
+ * ## Price calculation method
115
112
  *
116
- * The calculated price is the base price that will be used as a basis for charging the customer.
117
- * During checkout, additional taxes
118
- * and fees might be added to this base price.
113
+ * By default, Wix Bookings calculates a booking's price based on the relevant
114
+ * `serviceOptionsAndVariants.variants.values.price`
115
+ * ([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)).
116
+ * You must then specify either `booking.bookedEntity.slot.serviceId` or
117
+ * `booking.bookedEntity.schedule.scheduleId`.
119
118
  *
120
- * ## Calculating the price
119
+ * If the business uses the *Wix Bookings Pricing Integration service plugin*
120
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/introduction)),
121
+ * the returned `priceInfo` object reflects values received from the SPI implementor in
122
+ * _Calculate Price_
123
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/calculate-price)).
124
+ * In this case, it suffices to specify `booking.bookedEntity`.
121
125
  *
122
- * Wix Bookings has its own default pricing logic for calculating the price. When
123
- * using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
124
- * or `schedule` object to `calculatePrice()`.
126
+ * ## When to call Preview Price instead
125
127
  *
126
- * Alternatively you can customize the pricing logic using the
127
- * [BookingsCustomPricing](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/service-plugins-spis/bookings-custom-pricing/introduction) service plugin.
128
- * If you integrate with a pricing provider, the customized pricing logic becomes
129
- * the default logic. This means that, if the Custom Pricing service plugin is implemented,
130
- * when calling `calculatePrice()`,
131
- * the customized logic is used instead.
128
+ * To estimate the price for multiple booking line items before the booking exists,
129
+ * call *Preview Price*
130
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/preview-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/preview-price)).
132
131
  */
133
132
  export function calculatePrice(payload) {
134
133
  function __calculatePrice({ host }) {
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-price-info-pricing.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info-pricing.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,0DAA0D,CACjE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EA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E,mBAAmB,EAAE;wBAC7B,EAAE,IAAI,EAAE,gDAAgD,EAAE;qBAC3D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"bookings-v2-price-info-pricing.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info-pricing.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,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,EAAE;aACb;YACD;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,aAAa;aACxB;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,aAAa;aACxB;YACD;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,aAAa;aACxB;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,gCAAgC,CAAC;AAEtD;;;;;;;;;;;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BAC3B,EAAE,IAAI,EAAE,qBAAqB,EAAE;oBAC/B,EAAE,IAAI,EAAE,sBAAsB,EAAE;iBACjC;aACF;YACD;gBACE,WAAW,EAAE,4BAA4B;gBACzC,KAAK,EAAE;oBACL,EAAE,IAAI,EAAE,qDAAqD,EAAE;oBAC/D,EAAE,IAAI,EAAE,sDAAsD,EAAE;iBACjE;aACF;SACF,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,qEAAqE;YACvE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,0DAA0D,CAAC;gBAC9D,SAAS,EAAE,uBAAuB;gBAClC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,4BAA4B;oBACzC,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,2BAA2B,EAAE;wBACrC,EAAE,IAAI,EAAE,mBAAmB,EAAE;wBAC7B,EAAE,IAAI,EAAE,gDAAgD,EAAE;qBAC3D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
@@ -6,33 +6,30 @@ export declare const __metadata: {
6
6
  export declare function previewPrice(httpClient: HttpClient): PreviewPriceSignature;
7
7
  interface PreviewPriceSignature {
8
8
  /**
9
- * Previews the base price for a set of line items belonging to the same service
10
- * before a potential booking is actually created.
9
+ * Previews the base price for a set of line items belonging to the same
10
+ * service, before a booking is created. During the booking flow, additional
11
+ * taxes and fees may be added to the base price.
11
12
  *
12
13
  *
14
+ * ## Response
13
15
  *
14
- * The returned price preview information about each line
15
- * item's price and sums up each line item's price.
16
+ * The response includes each line item's individual preview price and the
17
+ * total of all line item preview prices. Note that the final price upon
18
+ * booking creation may differ from the preview price.
16
19
  *
17
- * The previewed price is not the actual price that will be used to charge the customer.
18
- * `Preview Price` only estimates the base price by adding up the price
19
- * of each line item before
20
- * the booking is actually created.
20
+ * ## Errors
21
21
  *
22
- * Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
23
- * after the booking is created.
22
+ * _Preview Price_ fails if:
24
23
  *
25
- * Passing line items that belong to different services results in an error.
24
+ * - You specify line items that belong to different *services*
25
+ * ([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)).
26
+ * - The site is using the *Bookings Pricing Integration SPI*
27
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/introduction)).
26
28
  *
27
- * ## Calculating the previewed price
29
+ * ## When to call Calculate Price instead
28
30
  *
29
- * Wix Bookings has its own default pricing logic for previewing the price. You must
30
- * pass the `serviceId` in the `slot`
31
- * or `schedule` object to `previewPrice()`.
32
- *
33
- * You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
34
- * [BookingsCustomPricing](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/service-plugins-spis/bookings-custom-pricing/introduction) service plugin. Calling `previewPrice` if custom pricing
35
- * logic has been implemented for the site results in an error.
31
+ * To retrieve the price of an existing booking, call *Calculate Price*
32
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/calculate-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/calculate-price)).
36
33
  * @param - List of line items to preview the price for.
37
34
  */
38
35
  (bookingLineItems: BookingLineItem[]): Promise<PreviewPriceResponse & PreviewPriceResponseNonNullableFields>;
@@ -43,30 +40,34 @@ interface CalculatePriceSignature {
43
40
  * Calculates the base price of a booking.
44
41
  *
45
42
  *
43
+ * The returned price serves as the foundation for charging the customer. During the
44
+ * _eCommerce checkout_
45
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/introduction)),
46
+ * additional taxes and fees may be added to this base price.
46
47
  *
47
- * You can call `calculatePrice()` after a booking is created. The returned calculated price includes information about each line
48
- * item's price and the booking's total price.
49
- *
50
- * You can use `previewPrice()` to get the base price
51
- * before a booking is created.
48
+ * ## Price calculation method
52
49
  *
53
- * The calculated price is the base price that will be used as a basis for charging the customer.
54
- * During checkout, additional taxes
55
- * and fees might be added to this base price.
50
+ * By default, Wix Bookings calculates a booking's price based on the relevant
51
+ * `serviceOptionsAndVariants.variants.values.price`
52
+ * ([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)).
53
+ * You must then specify either `booking.bookedEntity.slot.serviceId` or
54
+ * `booking.bookedEntity.schedule.scheduleId`.
56
55
  *
57
- * ## Calculating the price
56
+ * If the business uses the *Wix Bookings Pricing Integration service plugin*
57
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/introduction)),
58
+ * the returned `priceInfo` object reflects values received from the SPI implementor in
59
+ * _Calculate Price_
60
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/calculate-price)).
61
+ * In this case, it suffices to specify `booking.bookedEntity`.
58
62
  *
59
- * Wix Bookings has its own default pricing logic for calculating the price. When
60
- * using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
61
- * or `schedule` object to `calculatePrice()`.
63
+ * ## When to call Preview Price instead
62
64
  *
63
- * Alternatively you can customize the pricing logic using the
64
- * [BookingsCustomPricing](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/service-plugins-spis/bookings-custom-pricing/introduction) service plugin.
65
- * If you integrate with a pricing provider, the customized pricing logic becomes
66
- * the default logic. This means that, if the Custom Pricing service plugin is implemented,
67
- * when calling `calculatePrice()`,
68
- * the customized logic is used instead.
69
- * @param - Booking to calculate the price for.
65
+ * To estimate the price for multiple booking line items before the booking exists,
66
+ * call *Preview Price*
67
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/preview-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/preview-price)).
68
+ * @param - _Booking_
69
+ * ([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))
70
+ * to calculate the base price for.
70
71
  */
71
72
  (booking: Booking): Promise<CalculatePriceResponse & CalculatePriceResponseNonNullableFields>;
72
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-price-info-pricing.public.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info-pricing.public.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,cAAc,IAAI,uBAAuB,EACzC,YAAY,IAAI,qBAAqB,GACtC,MAAM,+CAA+C,CAAC;AAEvD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,gBAAmC,EAAE,EAAE,CAC7C,qBAAqB,CACnB,gBAAgB;IAChB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAsCD,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,OAAgB,EAAE,EAAE,CAC1B,uBAAuB,CACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAqCD,OAAO,EACL,KAAK,EAaL,aAAa,EAWb,YAAY,EAEZ,YAAY,EAEZ,uBAAuB,EAGvB,aAAa,EACb,QAAQ,EAOR,qBAAqB,EAMrB,SAAS,GACV,MAAM,+CAA+C,CAAC"}
1
+ {"version":3,"file":"bookings-v2-price-info-pricing.public.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info-pricing.public.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,cAAc,IAAI,uBAAuB,EACzC,YAAY,IAAI,qBAAqB,GACtC,MAAM,+CAA+C,CAAC;AAEvD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,gBAAmC,EAAE,EAAE,CAC7C,qBAAqB,CACnB,gBAAgB;IAChB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAmCD,MAAM,UAAU,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,OAAgB,EAAE,EAAE,CAC1B,uBAAuB,CACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAyCD,OAAO,EACL,KAAK,EAaL,aAAa,EAWb,YAAY,EAEZ,YAAY,EAEZ,uBAAuB,EAGvB,aAAa,EACb,QAAQ,EAOR,qBAAqB,EAMrB,SAAS,GACV,MAAM,+CAA+C,CAAC"}
@@ -1,27 +1,25 @@
1
1
  export interface PriceInfo extends PriceInfoTotalPriceOneOf {
2
2
  /**
3
- * Calculated total price. Available only when the
4
- * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
5
- * price has been set up as a numerical value in the
6
- * [`schedule.rate.labeledPriceOptions`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) object.
3
+ * Calculated total price. Available if the _service's_
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))
5
+ * `payment.rateType` is `FIXED`, `VARIED`, or `NO_FEE`.
7
6
  */
8
7
  calculatedPrice?: number;
9
8
  /**
10
- * Description of the total price. Available only when the
11
- * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
12
- * price has been set up as a text value in the
13
- * [`schedule.rate.priceText`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) property.
14
- * @deprecated Description of the total price. Available only when the
15
- * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
16
- * price has been set up as a text value in the
17
- * [`schedule.rate.priceText`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) property.
9
+ * Description of the total price. Available if the _service's_
10
+ * ([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))
11
+ * `payment.rateType` is `CUSTOM`.
12
+ * @deprecated Description of the total price. Available if the _service's_
13
+ * ([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))
14
+ * `payment.rateType` is `CUSTOM`.
18
15
  * @replacedBy price_description_info.original
19
16
  * @targetRemovalDate 2025-01-10
20
17
  */
21
18
  priceDescription?: string;
22
19
  /**
23
- * Description of the total price. Available only when the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object)'s
24
- * rateType is CUSTOM
20
+ * Description of the total price. Available if the _service's_
21
+ * ([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))
22
+ * `payment.rateType` is `CUSTOM`.
25
23
  */
26
24
  priceDescriptionInfo?: PriceDescriptionInfo;
27
25
  /**
@@ -30,60 +28,74 @@ export interface PriceInfo extends PriceInfoTotalPriceOneOf {
30
28
  */
31
29
  bookingLineItems?: BookingLineItem[];
32
30
  /**
33
- * Total deposit the customer must pay when booking the service.
34
- *
35
- * Available when: The service includes a deposit.
31
+ * Total deposit the customer must pay when booking the service. Available if
32
+ * the _service's_
33
+ * ([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))
34
+ * `payment.options.deposit` is set to `true`.
36
35
  */
37
36
  deposit?: number | null;
38
37
  }
39
38
  /** @oneof */
40
39
  export interface PriceInfoTotalPriceOneOf {
41
40
  /**
42
- * Calculated total price. Available only when the
43
- * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
44
- * price has been set up as a numerical value in the
45
- * [`schedule.rate.labeledPriceOptions`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) object.
41
+ * Calculated total price. Available if the _service's_
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))
43
+ * `payment.rateType` is `FIXED`, `VARIED`, or `NO_FEE`.
46
44
  */
47
45
  calculatedPrice?: number;
48
46
  /**
49
- * Description of the total price. Available only when the
50
- * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
51
- * price has been set up as a text value in the
52
- * [`schedule.rate.priceText`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) property.
53
- * @deprecated Description of the total price. Available only when the
54
- * [service](https://dev.wix.com/api/rest/wix-bookings/services/service/create-service)'s
55
- * price has been set up as a text value in the
56
- * [`schedule.rate.priceText`](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object) property.
47
+ * Description of the total price. Available if the _service's_
48
+ * ([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))
49
+ * `payment.rateType` is `CUSTOM`.
50
+ * @deprecated Description of the total price. Available if the _service's_
51
+ * ([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))
52
+ * `payment.rateType` is `CUSTOM`.
57
53
  * @replacedBy price_description_info.original
58
54
  * @targetRemovalDate 2025-01-10
59
55
  */
60
56
  priceDescription?: string;
61
57
  /**
62
- * Description of the total price. Available only when the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object)'s
63
- * rateType is CUSTOM
58
+ * Description of the total price. Available if the _service's_
59
+ * ([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))
60
+ * `payment.rateType` is `CUSTOM`.
64
61
  */
65
62
  priceDescriptionInfo?: PriceDescriptionInfo;
66
63
  }
67
64
  export interface BookingLineItem {
68
65
  /**
69
- * Service ID.
66
+ * _Service ID_
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)).
70
68
  *
71
- * Required when not using Wix Booking's default pricing logic.
69
+ * Required in *Calculate Price*
70
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/calculate-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/calculate-price))
71
+ * if the site uses Wix Bookings' default pricing logic.
72
72
  *
73
- * Optional when using custom pricing logic defined with the
74
- * [Bookings Pricing Integration SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
73
+ * Optional in *Calculate Price*
74
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/calculate-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/calculate-price))
75
+ * if the site use pricing logic defined by a
76
+ * Wix Bookings Pricing Integration service plugin*
77
+ * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-integration-service-plugin/introduction))
78
+ * integration.
75
79
  * @format GUID
76
80
  */
77
81
  serviceId?: string | null;
78
82
  /**
79
- * Resource ID. Required for services of type appointment or class.
83
+ * _Resource ID_
84
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)).
85
+ * Required in *Calculate Price*
86
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/calculate-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/calculate-price))
87
+ * and *Preview Price*
88
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/pricing/preview-price) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/pricing-api/preview-price))
89
+ * for appointment-based services and classes.
80
90
  * @format GUID
81
91
  */
82
92
  resourceId?: string | null;
83
93
  /**
84
94
  * Custom choices. Choices are specific values for an option the customer can choose to book.
85
95
  * For example, the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.
86
- * Each choice may have a different price.
96
+ * Each choice may have a different price. Refer to the *Service Options And Variants API*
97
+ * ([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))
98
+ * for more details.
87
99
  */
88
100
  choices?: ServiceChoice[];
89
101
  /**
@@ -142,12 +154,15 @@ export interface Duration {
142
154
  }
143
155
  export interface PriceDescriptionInfo {
144
156
  /**
145
- * The price description in the main site language
157
+ * Price description in the site's main language. Refer to the *Site Properties API*
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))
159
+ * for more details.
146
160
  * @maxLength 50
147
161
  */
148
162
  original?: string;
149
163
  /**
150
- * The translated price description in case the booking was made in a secondary language
164
+ * Translated price description. Available if the booking was made in a
165
+ * secondary language.
151
166
  * @maxLength 50
152
167
  */
153
168
  translated?: string | null;
@@ -165,7 +180,11 @@ export interface PreviewPriceResponse {
165
180
  priceInfo?: PriceInfo;
166
181
  }
167
182
  export interface CalculatePriceRequest {
168
- /** Booking to calculate the price for. */
183
+ /**
184
+ * _Booking_
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))
186
+ * to calculate the base price for.
187
+ */
169
188
  booking: Booking;
170
189
  }
171
190
  /** An entity representing a scheduled appointment, class session, or course. */
@@ -811,7 +830,7 @@ export interface ParticipantChoices {
811
830
  /**
812
831
  * Information about the booked service choices. Includes the number of participants.
813
832
  * @minSize 1
814
- * @maxSize 10
833
+ * @maxSize 20
815
834
  */
816
835
  serviceChoices?: ServiceChoices[];
817
836
  }
@@ -839,7 +858,7 @@ export interface MultiServiceBookingInfo {
839
858
  type?: MultiServiceBookingType;
840
859
  }
841
860
  export interface CalculatePriceResponse {
842
- /** Information about each line item's price and the actual total base price. */
861
+ /** Information about each line item's base price and the total base price. */
843
862
  priceInfo?: PriceInfo;
844
863
  }
845
864
  interface PriceDescriptionInfoNonNullableFields {
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-v2-price-info-pricing.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info-pricing.types.ts"],"names":[],"mappings":"AAoTA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,sEAA2C,CAAA;IAC3C,kEAAuC,CAAA;IACvC,kEAAuC,CAAA;AACzC,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AAgJD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AA4JD,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,kDAAkD;IAClD,sCAAyB,CAAA;IACzB,iBAAiB;IACjB,oCAAuB,CAAA;IACv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qB,CAAA;IACrB,8BAAqB,CAAA;AACvB,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB;AAiED,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB"}
1
+ {"version":3,"file":"bookings-v2-price-info-pricing.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-price-info-pricing.types.ts"],"names":[],"mappings":"AAuUA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,sEAA2C,CAAA;IAC3C,kEAAuC,CAAA;IACvC,kEAAuC,CAAA;AACzC,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AAgJD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AA4JD,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,kDAAkD;IAClD,sCAAyB,CAAA;IACzB,iBAAiB;IACjB,oCAAuB,CAAA;IACvB,sGAAsG;IACtG,oCAAuB,CAAA;AACzB,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB;AAED,sBAAsB;AACtB,MAAM,CAAN,IAAY,aAoCX;AApCD,WAAY,aAAa;IACvB;;;OAGG;IACH,oCAAmB,CAAA;IACnB;;;;;OAKG;IACH,wCAAuB,CAAA;IACvB;;;;;;OAMG;IACH,sCAAqB,CAAA;IACrB;;;OAGG;IACH,oCAAmB,CAAA;IACnB,6EAA6E;IAC7E,sCAAqB,CAAA;IACrB;;;;;;OAMG;IACH,8CAA6B,CAAA;AAC/B,CAAC,EApCW,aAAa,KAAb,aAAa,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