@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
  /**
@@ -3976,10 +3978,18 @@ declare function onBookingNumberOfParticipantsUpdated(handler: (event: BookingNu
3976
3978
  *
3977
3979
  * ### eCommerce checkout restriction
3978
3980
  *
3979
- * Call this method only when using a custom checkout page. Don't
3980
- * call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
3981
- * In such cases, Wix automatically updates the booking status based on
3982
- * the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
3981
+ * Call this method only when using a custom checkout page.
3982
+ * Don't call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
3983
+ * 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).
3984
+ *
3985
+ * ### When to call Confirm Booking or Decline Booking instead
3986
+ *
3987
+ * This method has specific limitations based on payment status and double booking conflicts.
3988
+ * Use the alternative methods in these scenarios:
3989
+ * + **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).
3990
+ * Confirm Or Decline Booking can't confirm double-booked free bookings.
3991
+ * + **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).
3992
+ * Confirm Or Decline Booking only declines bookings when both a double booking conflict exists and payment status is unpaid.
3983
3993
  *
3984
3994
  * ### New booking status
3985
3995
  *
@@ -4584,6 +4594,10 @@ interface RemoveBookingsFromMultiServiceBookingOptions {
4584
4594
  *
4585
4595
  * The specified `selectedPaymentOption` indicates how the customer intends to pay, allowing for later changes to a different method supported by the service.
4586
4596
  *
4597
+ * 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`.
4598
+ * Otherwise, the Create Booking call fails.
4599
+ * For custom checkouts, you don't have to specify a `selectedPaymentOption`.
4600
+ *
4587
4601
  * ### Payment status
4588
4602
  *
4589
4603
  * All bookings are created with `paymentStatus=UNDEFINED`, ignoring the payment status you specify.
@@ -4819,6 +4833,11 @@ interface RescheduleBookingOptionsParticipantsInfoOneOf {
4819
4833
  * In such cases, Wix automatically updates the booking status based on
4820
4834
  * the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
4821
4835
  *
4836
+ * ### When to call Confirm Booking
4837
+ *
4838
+ * When using a custom checkout flow for free bookings, call this method to confirm bookings even when a double booking conflict exists.
4839
+ * 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.
4840
+ *
4822
4841
  * ### When to call Confirm Or Decline Booking instead
4823
4842
  *
4824
4843
  * Confirm Booking doesn't check whether a slot or schedule is still available.
@@ -4937,22 +4956,24 @@ interface UpdateExtendedFieldsOptions {
4937
4956
  namespaceData: Record<string, any> | null;
4938
4957
  }
4939
4958
  /**
4940
- * Updates the booking status to `DECLINED` and updates the relevant session's
4941
- * `participants.approvalStatus` to `DECLINED` without checking whether the relevant
4942
- * slot or schedule is still available.
4959
+ * Updates the booking status to `DECLINED` without checking whether the relevant slot or schedule is still available.
4943
4960
  *
4944
4961
  *
4945
4962
  * ### eCommerce checkout restriction
4946
4963
  *
4947
- * Call this method only when using a custom checkout page. Don't
4948
- * call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
4949
- * In such cases, Wix automatically updates the booking status based on
4950
- * the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction).
4964
+ * Call this method only when using a custom checkout page.
4965
+ * Don't call it when using a [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
4966
+ * 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).
4967
+ *
4968
+ * ### When to call Decline Booking
4969
+ *
4970
+ * When using a custom checkout, call this method to decline bookings that don't have a double booking conflict.
4971
+ * 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.
4951
4972
  *
4952
4973
  * ### When to call Confirm Or Decline Booking instead
4953
4974
  *
4954
- * The method doesn't check whether a slot or schedule is still available. For
4955
- * 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).
4975
+ * Decline Booking doesn't check whether a slot or schedule is still available.
4976
+ * 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).
4956
4977
  *
4957
4978
  * ### Original status validation
4958
4979
  *