@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.
@@ -85,7 +85,9 @@ interface Booking extends BookingParticipantsInfoOneOf {
85
85
  /**
86
86
  * Payment option selected by the customer. If the customer hasn't completed their checkout, they may still change the payment method. Must be one of the payment options offered by the [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction), unless `skipSelectedPaymentOptionValidation` is `true`.
87
87
  *
88
- * When undefined during an [eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/checkout/introduction), Wix Bookings uses the service's default payment option
88
+ * When the customer pays with a [Wix eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/checkout/introduction), this field is required.
89
+ * Otherwise, the Create Booking call fails.
90
+ * For custom checkouts, you don't have to specify this field.
89
91
  */
90
92
  selectedPaymentOption?: SelectedPaymentOptionWithLiterals;
91
93
  /**
@@ -3954,10 +3956,18 @@ declare function onBookingNumberOfParticipantsUpdated(handler: (event: BookingNu
3954
3956
  *
3955
3957
  * ### eCommerce checkout restriction
3956
3958
  *
3957
- * Call this method only when using a custom checkout page. Don't
3958
- * call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
3959
- * In such cases, Wix automatically updates the booking status based on
3960
- * the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
3959
+ * Call this method only when using a custom checkout page.
3960
+ * Don't call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
3961
+ * 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).
3962
+ *
3963
+ * ### When to call Confirm Booking or Decline Booking instead
3964
+ *
3965
+ * This method has specific limitations based on payment status and double booking conflicts.
3966
+ * Use the alternative methods in these scenarios:
3967
+ * + **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).
3968
+ * Confirm Or Decline Booking can't confirm double-booked free bookings.
3969
+ * + **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).
3970
+ * Confirm Or Decline Booking only declines bookings when both a double booking conflict exists and payment status is unpaid.
3961
3971
  *
3962
3972
  * ### New booking status
3963
3973
  *
@@ -4562,6 +4572,10 @@ interface RemoveBookingsFromMultiServiceBookingOptions {
4562
4572
  *
4563
4573
  * The specified `selectedPaymentOption` indicates how the customer intends to pay, allowing for later changes to a different method supported by the service.
4564
4574
  *
4575
+ * 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`.
4576
+ * Otherwise, the Create Booking call fails.
4577
+ * For custom checkouts, you don't have to specify a `selectedPaymentOption`.
4578
+ *
4565
4579
  * ### Payment status
4566
4580
  *
4567
4581
  * All bookings are created with `paymentStatus=UNDEFINED`, ignoring the payment status you specify.
@@ -4797,6 +4811,11 @@ interface RescheduleBookingOptionsParticipantsInfoOneOf {
4797
4811
  * In such cases, Wix automatically updates the booking status based on
4798
4812
  * the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
4799
4813
  *
4814
+ * ### When to call Confirm Booking
4815
+ *
4816
+ * When using a custom checkout flow for free bookings, call this method to confirm bookings even when a double booking conflict exists.
4817
+ * 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.
4818
+ *
4800
4819
  * ### When to call Confirm Or Decline Booking instead
4801
4820
  *
4802
4821
  * Confirm Booking doesn't check whether a slot or schedule is still available.
@@ -4915,22 +4934,24 @@ interface UpdateExtendedFieldsOptions {
4915
4934
  namespaceData: Record<string, any> | null;
4916
4935
  }
4917
4936
  /**
4918
- * Updates the booking status to `DECLINED` and updates the relevant session's
4919
- * `participants.approvalStatus` to `DECLINED` without checking whether the relevant
4920
- * slot or schedule is still available.
4937
+ * Updates the booking status to `DECLINED` without checking whether the relevant slot or schedule is still available.
4921
4938
  *
4922
4939
  *
4923
4940
  * ### eCommerce checkout restriction
4924
4941
  *
4925
- * Call this method only when using a custom checkout page. Don't
4926
- * call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
4927
- * In such cases, Wix automatically updates the booking status based on
4928
- * the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
4942
+ * Call this method only when using a custom checkout page.
4943
+ * Don't call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
4944
+ * 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).
4945
+ *
4946
+ * ### When to call Decline Booking
4947
+ *
4948
+ * When using a custom checkout, call this method to decline bookings that don't have a double booking conflict.
4949
+ * 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.
4929
4950
  *
4930
4951
  * ### When to call Confirm Or Decline Booking instead
4931
4952
  *
4932
- * The method doesn't check whether a slot or schedule is still available. For
4933
- * 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).
4953
+ * Decline Booking doesn't check whether a slot or schedule is still available.
4954
+ * 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).
4934
4955
  *
4935
4956
  * ### Original status validation
4936
4957
  *