@wix/headless-bookings 0.0.49 → 0.0.50

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.
@@ -11,7 +11,7 @@ import type { Service } from '@wix/auto_sdk_bookings_services';
11
11
  * - Offline payment: payNow = 0
12
12
  *
13
13
  * Force checkout when:
14
- * - Service has cancellation fee
14
+ * - Service has cancellation fee policy
15
15
  *
16
16
  * @param checkout - The checkout response from createCheckout
17
17
  * @param service - The service being booked
@@ -9,15 +9,15 @@
9
9
  * - Offline payment: payNow = 0
10
10
  *
11
11
  * Force checkout when:
12
- * - Service has cancellation fee
12
+ * - Service has cancellation fee policy
13
13
  *
14
14
  * @param checkout - The checkout response from createCheckout
15
15
  * @param service - The service being booked
16
16
  * @returns true if checkout page is required, false if can skip to order
17
17
  */
18
18
  export function isCheckoutRequired(checkout, service) {
19
- // Force checkout for cancellation fee
20
- const hasCancellationFee = service.bookingPolicy?.cancellationPolicy?.enabled;
19
+ // Force checkout for cancellation fee policy
20
+ const hasCancellationFee = service.bookingPolicy?.cancellationFeePolicy?.enabled;
21
21
  if (hasCancellationFee) {
22
22
  return true;
23
23
  }
@@ -11,7 +11,7 @@ import type { Service } from '@wix/auto_sdk_bookings_services';
11
11
  * - Offline payment: payNow = 0
12
12
  *
13
13
  * Force checkout when:
14
- * - Service has cancellation fee
14
+ * - Service has cancellation fee policy
15
15
  *
16
16
  * @param checkout - The checkout response from createCheckout
17
17
  * @param service - The service being booked
@@ -9,15 +9,15 @@
9
9
  * - Offline payment: payNow = 0
10
10
  *
11
11
  * Force checkout when:
12
- * - Service has cancellation fee
12
+ * - Service has cancellation fee policy
13
13
  *
14
14
  * @param checkout - The checkout response from createCheckout
15
15
  * @param service - The service being booked
16
16
  * @returns true if checkout page is required, false if can skip to order
17
17
  */
18
18
  export function isCheckoutRequired(checkout, service) {
19
- // Force checkout for cancellation fee
20
- const hasCancellationFee = service.bookingPolicy?.cancellationPolicy?.enabled;
19
+ // Force checkout for cancellation fee policy
20
+ const hasCancellationFee = service.bookingPolicy?.cancellationFeePolicy?.enabled;
21
21
  if (hasCancellationFee) {
22
22
  return true;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-bookings",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -72,5 +72,5 @@
72
72
  "groupId": "com.wixpress.headless-components"
73
73
  }
74
74
  },
75
- "falconPackageHash": "ce9857f84a2dc23726f81fe1b20c314c9c652cbe712b90742c92d448"
75
+ "falconPackageHash": "b53d33f9b4d27501462704339b690fd61f728decff76e086217fa104"
76
76
  }