@wix/auto_sdk_bookings_services 1.0.317 → 1.0.319

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.
@@ -1,4 +1,4 @@
1
- import { d5 as CreateServiceRequest$1, d6 as CreateServiceResponse$1, da as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, df as GetServiceRequest$1, dg as GetServiceResponse$1, dl as UpdateServiceRequest$1, dm as UpdateServiceResponse$1, dn as BulkUpdateServicesRequest$1, e as BulkUpdateServicesResponse$1, dq as BulkUpdateServicesByFilterRequest$1, h as BulkUpdateServicesByFilterResponse$1, dr as DeleteServiceRequest$1, dt as DeleteServiceResponse$1, du as BulkDeleteServicesRequest$1, j as BulkDeleteServicesResponse$1, dv as BulkDeleteServicesByFilterRequest$1, l as BulkDeleteServicesByFilterResponse$1, dw as QueryServicesRequest$1, dC as QueryServicesResponse$1, dF as SearchServicesRequest$1, n as SearchServicesResponse$1, ej as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, em as QueryBookingFormsRequest$1, q as QueryBookingFormsResponse$1, eq as CountServicesRequest$1, t as CountServicesResponse$1, er as QueryLocationsRequest$1, v as QueryLocationsResponse$1, ew as QueryCategoriesRequest$1, x as QueryCategoriesResponse$1, eA as SetServiceLocationsRequest$1, z as SetServiceLocationsResponse$1, eE as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eH as DisablePricingPlansForServiceRequest$1, H as DisablePricingPlansForServiceResponse$1, eI as SetCustomSlugRequest$1, K as SetCustomSlugResponse$1, eJ as ValidateSlugRequest$1, N as ValidateSlugResponse$1, eK as CloneServiceRequest$1, O as CloneServiceResponse$1, f9 as CreateAddOnGroupRequest$1, T as CreateAddOnGroupResponse$1, fa as DeleteAddOnGroupRequest$1, fb as DeleteAddOnGroupResponse$1, fc as UpdateAddOnGroupRequest$1, _ as UpdateAddOnGroupResponse$1, fd as ListAddOnGroupsByServiceIdRequest$1, a1 as ListAddOnGroupsByServiceIdResponse$1, fh as SetAddOnsForGroupRequest$1, a3 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-C6xUgxy_.mjs';
1
+ import { d5 as CreateServiceRequest$1, d6 as CreateServiceResponse$1, da as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, df as GetServiceRequest$1, dg as GetServiceResponse$1, dl as UpdateServiceRequest$1, dm as UpdateServiceResponse$1, dn as BulkUpdateServicesRequest$1, e as BulkUpdateServicesResponse$1, dq as BulkUpdateServicesByFilterRequest$1, h as BulkUpdateServicesByFilterResponse$1, dr as DeleteServiceRequest$1, dt as DeleteServiceResponse$1, du as BulkDeleteServicesRequest$1, j as BulkDeleteServicesResponse$1, dv as BulkDeleteServicesByFilterRequest$1, l as BulkDeleteServicesByFilterResponse$1, dw as QueryServicesRequest$1, dC as QueryServicesResponse$1, dF as SearchServicesRequest$1, n as SearchServicesResponse$1, ej as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, em as QueryBookingFormsRequest$1, q as QueryBookingFormsResponse$1, eq as CountServicesRequest$1, t as CountServicesResponse$1, er as QueryLocationsRequest$1, v as QueryLocationsResponse$1, ew as QueryCategoriesRequest$1, x as QueryCategoriesResponse$1, eA as SetServiceLocationsRequest$1, z as SetServiceLocationsResponse$1, eE as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, eH as DisablePricingPlansForServiceRequest$1, H as DisablePricingPlansForServiceResponse$1, eI as SetCustomSlugRequest$1, K as SetCustomSlugResponse$1, eJ as ValidateSlugRequest$1, N as ValidateSlugResponse$1, eK as CloneServiceRequest$1, O as CloneServiceResponse$1, f9 as CreateAddOnGroupRequest$1, T as CreateAddOnGroupResponse$1, fa as DeleteAddOnGroupRequest$1, fb as DeleteAddOnGroupResponse$1, fc as UpdateAddOnGroupRequest$1, _ as UpdateAddOnGroupResponse$1, fd as ListAddOnGroupsByServiceIdRequest$1, a1 as ListAddOnGroupsByServiceIdResponse$1, fh as SetAddOnsForGroupRequest$1, a3 as SetAddOnsForGroupResponse$1 } from './bookings-services-v2-service-services.universal-fVi139WP.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** The `service` object represents an offering that a business provides to its customers. */
@@ -631,6 +631,13 @@ interface DiscountInfo {
631
631
  * Not returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout.
632
632
  */
633
633
  priceAfterDiscount?: Money;
634
+ /**
635
+ * Number of billing cycles the discount applies to, starting from the first paid cycle.
636
+ * Returned only for services with subscription pricing.
637
+ * Not returned when the discount applies to all of the service's payments (`totalPayments`).
638
+ * @min 1
639
+ */
640
+ discountedCycleCount?: number | null;
634
641
  }
635
642
  /** A mandatory fee the customer pays in addition to the service price. */
636
643
  interface AdditionalFee {
@@ -952,6 +959,19 @@ interface BookingPolicy {
952
959
  saveCreditCardPolicy?: SaveCreditCardPolicy;
953
960
  /** Rule for requiring customers to complete an [intake form](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/introduction) during or after booking. */
954
961
  intakeFormPolicy?: IntakeFormPolicy;
962
+ /**
963
+ * Whether logged-in members can book the service for a guest, someone other than
964
+ * themselves, by entering the guest's contact details in the booking form.
965
+ *
966
+ * When `true`, [bookings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/introduction)
967
+ * for the service can have `bookedForSomeoneElse` set to `true`.
968
+ * This field can't be `true` when `intakeFormPolicy.enabled` is `true` and
969
+ * `intakeFormPolicy.completionRequirement` is `REQUIRED_BEFORE_BOOKING`.
970
+ *
971
+ * Default: `false`.
972
+ * @readonly
973
+ */
974
+ bookForSomeoneElseAllowed?: boolean | null;
955
975
  }
956
976
  /** A description of the policy to display to participants. */
957
977
  interface PolicyDescription {
@@ -2079,7 +2099,8 @@ interface Booking extends BookingParticipantsInfoOneOf {
2079
2099
  bookedEntity?: BookedEntity;
2080
2100
  /**
2081
2101
  * Contact details of the site visitor or [member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members/introduction)
2082
- * making the booking.
2102
+ * making the booking. When `bookedForSomeoneElse` is `true`, these are the guest's
2103
+ * contact details.
2083
2104
  */
2084
2105
  contactDetails?: ContactDetails;
2085
2106
  /**
@@ -2239,6 +2260,20 @@ interface Booking extends BookingParticipantsInfoOneOf {
2239
2260
  * When the service supports deposit payments and `fullUpfrontPaymentAllowed` is `true`, this field can be `true` or `false`.
2240
2261
  */
2241
2262
  depositSelected?: boolean | null;
2263
+ /**
2264
+ * Whether a logged-in member made this booking for a guest, someone other than themselves.
2265
+ *
2266
+ * When `true`, `contactDetails` are the guest's, not the member's. They aren't
2267
+ * replaced with the details of the eCommerce order's buyer.
2268
+ *
2269
+ * You can set this field to `true` only when the service's
2270
+ * [booking policy](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction)
2271
+ * has `bookForSomeoneElseAllowed` set to `true`.
2272
+ * You can't set it to `true` when `selectedPaymentOption` is `MEMBERSHIP`.
2273
+ *
2274
+ * Default: `false`.
2275
+ */
2276
+ bookedForSomeoneElse?: boolean | null;
2242
2277
  }
2243
2278
  /** @oneof */
2244
2279
  interface BookingParticipantsInfoOneOf {