@wix/auto_sdk_bookings_bookings 1.0.94 → 1.0.95
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/index.d.ts +32 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +35 -14
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +32 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +35 -14
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +32 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +35 -14
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +32 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +35 -14
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -11,10 +11,18 @@ interface ConfirmOrDeclineBookingSignature {
|
|
|
11
11
|
*
|
|
12
12
|
* ### eCommerce checkout restriction
|
|
13
13
|
*
|
|
14
|
-
* Call this method only when using a custom checkout page.
|
|
15
|
-
* call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
16
|
-
* In such cases, Wix automatically updates the booking status based on
|
|
17
|
-
*
|
|
14
|
+
* Call this method only when using a custom checkout page.
|
|
15
|
+
* Don't call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
16
|
+
* In such cases, Wix Bookings automatically updates the booking status based on the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
|
|
17
|
+
*
|
|
18
|
+
* ### When to call Confirm Booking or Decline Booking instead
|
|
19
|
+
*
|
|
20
|
+
* This method has specific limitations based on payment status and double booking conflicts.
|
|
21
|
+
* Use the alternative methods in these scenarios:
|
|
22
|
+
* + **To force confirm double-booked free bookings:** Call [Confirm Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-booking).
|
|
23
|
+
* Confirm Or Decline Booking can't confirm double-booked free bookings.
|
|
24
|
+
* + **To decline bookings without double booking conflicts:** Call [Decline Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/decline-booking).
|
|
25
|
+
* Confirm Or Decline Booking only declines bookings when both a double booking conflict exists and payment status is unpaid.
|
|
18
26
|
*
|
|
19
27
|
* ### New booking status
|
|
20
28
|
*
|
|
@@ -415,6 +423,10 @@ interface CreateBookingSignature {
|
|
|
415
423
|
*
|
|
416
424
|
* The specified `selectedPaymentOption` indicates how the customer intends to pay, allowing for later changes to a different method supported by the service.
|
|
417
425
|
*
|
|
426
|
+
* When the customer pays with a [Wix eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/checkout/introduction), you must specify a `selectedPaymentOption`.
|
|
427
|
+
* Otherwise, the Create Booking call fails.
|
|
428
|
+
* For custom checkouts, you don't have to specify a `selectedPaymentOption`.
|
|
429
|
+
*
|
|
418
430
|
* ### Payment status
|
|
419
431
|
*
|
|
420
432
|
* All bookings are created with `paymentStatus=UNDEFINED`, ignoring the payment status you specify.
|
|
@@ -567,6 +579,11 @@ interface ConfirmBookingSignature {
|
|
|
567
579
|
* In such cases, Wix automatically updates the booking status based on
|
|
568
580
|
* the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
|
|
569
581
|
*
|
|
582
|
+
* ### When to call Confirm Booking
|
|
583
|
+
*
|
|
584
|
+
* When using a custom checkout flow for free bookings, call this method to confirm bookings even when a double booking conflict exists.
|
|
585
|
+
* The alternative [Confirm or Decline Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking) method doesn't support confirming double-booked free bookings in this scenario.
|
|
586
|
+
*
|
|
570
587
|
* ### When to call Confirm Or Decline Booking instead
|
|
571
588
|
*
|
|
572
589
|
* Confirm Booking doesn't check whether a slot or schedule is still available.
|
|
@@ -648,22 +665,24 @@ interface UpdateExtendedFieldsSignature {
|
|
|
648
665
|
declare function declineBooking$1(httpClient: HttpClient): DeclineBookingSignature;
|
|
649
666
|
interface DeclineBookingSignature {
|
|
650
667
|
/**
|
|
651
|
-
* Updates the booking status to `DECLINED`
|
|
652
|
-
* `participants.approvalStatus` to `DECLINED` without checking whether the relevant
|
|
653
|
-
* slot or schedule is still available.
|
|
668
|
+
* Updates the booking status to `DECLINED` without checking whether the relevant slot or schedule is still available.
|
|
654
669
|
*
|
|
655
670
|
*
|
|
656
671
|
* ### eCommerce checkout restriction
|
|
657
672
|
*
|
|
658
|
-
* Call this method only when using a custom checkout page.
|
|
659
|
-
* call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
660
|
-
* In such cases, Wix automatically updates the booking status based on
|
|
661
|
-
*
|
|
673
|
+
* Call this method only when using a custom checkout page.
|
|
674
|
+
* Don't call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
675
|
+
* In such cases, Wix Bookings automatically updates the booking status based on the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
|
|
676
|
+
*
|
|
677
|
+
* ### When to call Decline Booking
|
|
678
|
+
*
|
|
679
|
+
* When using a custom checkout, call this method to decline bookings that don't have a double booking conflict.
|
|
680
|
+
* The alternative [Confirm or Decline Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking) method doesn't support this scenario.
|
|
662
681
|
*
|
|
663
682
|
* ### When to call Confirm Or Decline Booking instead
|
|
664
683
|
*
|
|
665
|
-
*
|
|
666
|
-
* these checks you can call [Confirm or Decline Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking).
|
|
684
|
+
* Decline Booking doesn't check whether a slot or schedule is still available.
|
|
685
|
+
* For these checks you can call [Confirm or Decline Booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking).
|
|
667
686
|
*
|
|
668
687
|
* ### Original status validation
|
|
669
688
|
*
|