@wix/auto_sdk_bookings_services 1.0.100 → 1.0.101
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/{bookings-services-v2-service-services.universal-Ckx3A9Qa.d.ts → bookings-services-v2-service-services.universal-bHx_aSVy.d.ts} +41 -43
- package/build/cjs/index.d.ts +40 -43
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-Ckx3A9Qa.d.mts → bookings-services-v2-service-services.universal-bHx_aSVy.d.mts} +41 -43
- package/build/es/index.d.mts +40 -43
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-Ckx3A9Qa.d.ts → bookings-services-v2-service-services.universal-bHx_aSVy.d.ts} +41 -43
- package/build/internal/cjs/index.d.ts +40 -43
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -5
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-Ckx3A9Qa.d.mts → bookings-services-v2-service-services.universal-bHx_aSVy.d.mts} +41 -43
- package/build/internal/es/index.d.mts +40 -43
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +4 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -5
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2507,7 +2507,7 @@ interface BookingPolicyWithServices {
|
|
|
2507
2507
|
/**
|
|
2508
2508
|
* Up to 5 services connected to the booking policy. If `totalServiceCount` is
|
|
2509
2509
|
* greater than 5, there are additional services connected to the policy.
|
|
2510
|
-
* You can call
|
|
2510
|
+
* You can call Search Services
|
|
2511
2511
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/search-services) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/search-services))
|
|
2512
2512
|
* specifying the relevant policy ID in the filter, to retrieve all services that are
|
|
2513
2513
|
* connected to a booking policy.
|
|
@@ -2552,7 +2552,7 @@ interface BookingForm {
|
|
|
2552
2552
|
/**
|
|
2553
2553
|
* Up to 5 services connected to the booking form. If `totalServiceCount` is
|
|
2554
2554
|
* greater than 5, there are additional services connected to the policy.
|
|
2555
|
-
* You can call
|
|
2555
|
+
* You can call Search Services
|
|
2556
2556
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/search-services) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/search-services))
|
|
2557
2557
|
* specifying the relevant policy ID in the filter, to retrieve all services that are
|
|
2558
2558
|
* connected to a booking policy.
|
|
@@ -2773,7 +2773,7 @@ interface EnablePricingPlansForServiceRequest {
|
|
|
2773
2773
|
*/
|
|
2774
2774
|
serviceId: string;
|
|
2775
2775
|
/**
|
|
2776
|
-
* IDs of the
|
|
2776
|
+
* IDs of the pricing plans
|
|
2777
2777
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
2778
2778
|
* to add to the service's `payment.pricingPlanIds` array.
|
|
2779
2779
|
* @format GUID
|
|
@@ -2804,7 +2804,7 @@ interface DisablePricingPlansForServiceRequest {
|
|
|
2804
2804
|
*/
|
|
2805
2805
|
serviceId: string;
|
|
2806
2806
|
/**
|
|
2807
|
-
* IDs of the
|
|
2807
|
+
* IDs of the pricing plans
|
|
2808
2808
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
2809
2809
|
* to remove from the service's `payment.pricingPlanIds` array.
|
|
2810
2810
|
* @format GUID
|
|
@@ -3812,7 +3812,7 @@ interface SetAddOnsForGroupOptions {
|
|
|
3812
3812
|
* - Specify all supported session durations in `schedule.availabilityConstraints.sessionDurations`.
|
|
3813
3813
|
* - Note that Wix Bookings doesn't display these values to customers and
|
|
3814
3814
|
* ignores them in pricing and availability calculations. Instead session
|
|
3815
|
-
* durations are retrieved from the relevant service
|
|
3815
|
+
* durations are retrieved from the relevant service variants
|
|
3816
3816
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
3817
3817
|
* - It is mandatory to specify `schedule.availabilityConstraints.sessionDurations`,
|
|
3818
3818
|
* even though these values are ignored.
|
|
@@ -3831,7 +3831,7 @@ declare function createService(service: Service): Promise<NonNullablePaths<Servi
|
|
|
3831
3831
|
* Creates multiple services.
|
|
3832
3832
|
*
|
|
3833
3833
|
*
|
|
3834
|
-
* See
|
|
3834
|
+
* See Create Service
|
|
3835
3835
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/create-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/create-service))
|
|
3836
3836
|
* for more details.
|
|
3837
3837
|
* @param services - Services to create.
|
|
@@ -3871,7 +3871,7 @@ declare function getService(serviceId: string): Promise<NonNullablePaths<Service
|
|
|
3871
3871
|
* Specify `schedule.availabilityConstraints.sessionDurations`
|
|
3872
3872
|
* only if you want to update it for appointment-based services without varied
|
|
3873
3873
|
* pricing based on session length. Don't specify `schedule.availabilityConstraints.sessionDurations`
|
|
3874
|
-
* for all other appointment-based services, classes, or courses. See
|
|
3874
|
+
* for all other appointment-based services, classes, or courses. See Create Service
|
|
3875
3875
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/create-service#session-durations) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/create-service#session-durations))
|
|
3876
3876
|
* for more details.
|
|
3877
3877
|
* @param _id - Service ID.
|
|
@@ -4028,7 +4028,7 @@ interface UpdateService {
|
|
|
4028
4028
|
* Updates up to 100 services.
|
|
4029
4029
|
*
|
|
4030
4030
|
*
|
|
4031
|
-
* See
|
|
4031
|
+
* See Update Service
|
|
4032
4032
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/update-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/update-service))
|
|
4033
4033
|
* for more details.
|
|
4034
4034
|
*
|
|
@@ -4060,7 +4060,7 @@ interface BulkUpdateServicesOptions {
|
|
|
4060
4060
|
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
|
|
4061
4061
|
* for more details.
|
|
4062
4062
|
*
|
|
4063
|
-
* See
|
|
4063
|
+
* See Update Service
|
|
4064
4064
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/update-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/update-service))
|
|
4065
4065
|
* for more details about updating a service.
|
|
4066
4066
|
*
|
|
@@ -4112,7 +4112,7 @@ interface DeleteServiceOptions {
|
|
|
4112
4112
|
* Deletes multiple services.
|
|
4113
4113
|
*
|
|
4114
4114
|
*
|
|
4115
|
-
* See
|
|
4115
|
+
* See Delete Service
|
|
4116
4116
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/delete-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/delete-service))
|
|
4117
4117
|
* for more details about deleting a service.
|
|
4118
4118
|
*
|
|
@@ -4143,7 +4143,7 @@ interface BulkDeleteServicesOptions {
|
|
|
4143
4143
|
* Deletes multiple services by filter.
|
|
4144
4144
|
*
|
|
4145
4145
|
*
|
|
4146
|
-
* See
|
|
4146
|
+
* See Delete Service
|
|
4147
4147
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/delete-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/delete-service))
|
|
4148
4148
|
* for more details about deleting a service.
|
|
4149
4149
|
*
|
|
@@ -4454,7 +4454,7 @@ type ServiceSearch = {
|
|
|
4454
4454
|
timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
|
|
4455
4455
|
};
|
|
4456
4456
|
/**
|
|
4457
|
-
* Retrieves a list of up to 100
|
|
4457
|
+
* Retrieves a list of up to 100 booking policies
|
|
4458
4458
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)),
|
|
4459
4459
|
* and information about the services that are connected to them,
|
|
4460
4460
|
* given the provided filtering, paging, and sorting.
|
|
@@ -4468,7 +4468,7 @@ type ServiceSearch = {
|
|
|
4468
4468
|
*
|
|
4469
4469
|
* ## Filters
|
|
4470
4470
|
*
|
|
4471
|
-
* For a complete list of supported filters, refer to
|
|
4471
|
+
* For a complete list of supported filters, refer to Booking Policies API: Supported Filters
|
|
4472
4472
|
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters)).
|
|
4473
4473
|
*
|
|
4474
4474
|
* When using date filters, you must use
|
|
@@ -4478,14 +4478,14 @@ type ServiceSearch = {
|
|
|
4478
4478
|
*
|
|
4479
4479
|
* If a booking policy is connected to more than 5 services, only a subset of
|
|
4480
4480
|
* those services is returned. The `bookingPolicies.totalServiceCount` values
|
|
4481
|
-
* indicate the total number of services linked to each policy. You can call
|
|
4481
|
+
* indicate the total number of services linked to each policy. You can call Search Services
|
|
4482
4482
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/search-services) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/search-services))
|
|
4483
4483
|
* and specify the relevant policy ID in the filter to retrieve all services
|
|
4484
4484
|
* connected to the booking policy.
|
|
4485
4485
|
*
|
|
4486
4486
|
* ## See also
|
|
4487
4487
|
*
|
|
4488
|
-
* To learn about working with
|
|
4488
|
+
* To learn about working with Query methods, see
|
|
4489
4489
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
4490
4490
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
4491
4491
|
* @param query - Information about filters, paging, and sorting. See the article about
|
|
@@ -4502,7 +4502,7 @@ type ServiceSearch = {
|
|
|
4502
4502
|
*/
|
|
4503
4503
|
declare function queryPolicies(query: CursorQuery): Promise<NonNullablePaths<QueryPoliciesResponse, `bookingPolicies` | `bookingPolicies.${number}.bookingPolicy._id` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.enabled` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.description` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.capacity` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicies.${number}.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.saveCreditCardPolicy.enabled` | `bookingPolicies.${number}.totalServiceCount`, 6>>;
|
|
4504
4504
|
/**
|
|
4505
|
-
* Retrieves a list of up to 100
|
|
4505
|
+
* Retrieves a list of up to 100 booking forms
|
|
4506
4506
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object)),
|
|
4507
4507
|
* and information about the services that are connected to them,
|
|
4508
4508
|
* given the provided filtering, paging, and sorting.
|
|
@@ -4517,7 +4517,7 @@ declare function queryPolicies(query: CursorQuery): Promise<NonNullablePaths<Que
|
|
|
4517
4517
|
*
|
|
4518
4518
|
* ## Filters
|
|
4519
4519
|
*
|
|
4520
|
-
* For a complete list of supported filters, refer to
|
|
4520
|
+
* For a complete list of supported filters, refer to Forms API: Supported Filters
|
|
4521
4521
|
* ([REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object)).
|
|
4522
4522
|
*
|
|
4523
4523
|
* When using date filters, you must use
|
|
@@ -4527,7 +4527,7 @@ declare function queryPolicies(query: CursorQuery): Promise<NonNullablePaths<Que
|
|
|
4527
4527
|
*
|
|
4528
4528
|
* If a booking policy is connected to more than 5 services, only a subset of
|
|
4529
4529
|
* these service IDs and names is returned. The `bookingForms.totalServiceCount`
|
|
4530
|
-
* values indicate the total number of services linked to each form. You can call
|
|
4530
|
+
* values indicate the total number of services linked to each form. You can call Query Services
|
|
4531
4531
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/query-services) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/query-services))
|
|
4532
4532
|
* and specify the relevant form ID in the filter to retrieve all services
|
|
4533
4533
|
* connected to the booking form.
|
|
@@ -4540,7 +4540,7 @@ declare function queryPolicies(query: CursorQuery): Promise<NonNullablePaths<Que
|
|
|
4540
4540
|
*
|
|
4541
4541
|
* ## See also
|
|
4542
4542
|
*
|
|
4543
|
-
* To learn about working with
|
|
4543
|
+
* To learn about working with Query methods, see
|
|
4544
4544
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
4545
4545
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
4546
4546
|
* @param query - Information about filters, paging, and sorting. See the article about
|
|
@@ -4588,7 +4588,7 @@ interface CountServicesOptions {
|
|
|
4588
4588
|
filter?: Record<string, any> | null;
|
|
4589
4589
|
}
|
|
4590
4590
|
/**
|
|
4591
|
-
* Retrieves 3 separate lists of business, custom, and customer
|
|
4591
|
+
* Retrieves 3 separate lists of business, custom, and customer locations
|
|
4592
4592
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)),
|
|
4593
4593
|
* given the provided filtering, and whether each location is connected to at
|
|
4594
4594
|
* least one of the site's services.
|
|
@@ -4609,7 +4609,7 @@ interface CountServicesOptions {
|
|
|
4609
4609
|
*
|
|
4610
4610
|
* ## See also
|
|
4611
4611
|
*
|
|
4612
|
-
* To learn about working with
|
|
4612
|
+
* To learn about working with Query methods, see
|
|
4613
4613
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
4614
4614
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
4615
4615
|
* @public
|
|
@@ -4624,9 +4624,7 @@ interface QueryLocationsOptions {
|
|
|
4624
4624
|
filter?: QueryLocationsFilter;
|
|
4625
4625
|
}
|
|
4626
4626
|
/**
|
|
4627
|
-
* Retrieves a list of service
|
|
4628
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/categories-v2/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/introduction)),
|
|
4629
|
-
* given the provided filtering.
|
|
4627
|
+
* Retrieves a list of service categories ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/categories-v2/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/introduction)), given the provided filtering.
|
|
4630
4628
|
*
|
|
4631
4629
|
*
|
|
4632
4630
|
* ## Defaults
|
|
@@ -4644,7 +4642,7 @@ interface QueryLocationsOptions {
|
|
|
4644
4642
|
*
|
|
4645
4643
|
* ## See also
|
|
4646
4644
|
*
|
|
4647
|
-
* To learn about working with
|
|
4645
|
+
* To learn about working with Query methods, see
|
|
4648
4646
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
4649
4647
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
4650
4648
|
* @public
|
|
@@ -4659,7 +4657,7 @@ interface QueryCategoriesOptions {
|
|
|
4659
4657
|
filter?: QueryCategoriesFilter;
|
|
4660
4658
|
}
|
|
4661
4659
|
/**
|
|
4662
|
-
* Replaces the list of the
|
|
4660
|
+
* Replaces the list of the locations
|
|
4663
4661
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
|
|
4664
4662
|
* where the business offers the service.
|
|
4665
4663
|
*
|
|
@@ -4695,7 +4693,7 @@ interface QueryCategoriesOptions {
|
|
|
4695
4693
|
* Depending on whether the new or updated location is a business or custom location,
|
|
4696
4694
|
* you need to specify different fields.
|
|
4697
4695
|
*
|
|
4698
|
-
* - **Business location**: Specify the relevant
|
|
4696
|
+
* - **Business location**: Specify the relevant location ID
|
|
4699
4697
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
|
|
4700
4698
|
* in `locations.business.id`.
|
|
4701
4699
|
* - **Custom location**: Specify the complete address object as
|
|
@@ -4732,18 +4730,18 @@ interface SetServiceLocationsOptions {
|
|
|
4732
4730
|
participantNotification?: ParticipantNotification;
|
|
4733
4731
|
}
|
|
4734
4732
|
/**
|
|
4735
|
-
* Adds a list of
|
|
4733
|
+
* Adds a list of pricing plan IDs
|
|
4736
4734
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
4737
4735
|
* to a service's `payment.pricingPlanIds` array.
|
|
4738
4736
|
*
|
|
4739
4737
|
*
|
|
4740
4738
|
* The call doesn't validate whether the service's `payment.options.pricingPlan`
|
|
4741
4739
|
* is set to `true`. If it's set to `false`, customers aren't able to pay
|
|
4742
|
-
* for their bookings using pricing plans. You can call
|
|
4740
|
+
* for their bookings using pricing plans. You can call Update Service
|
|
4743
4741
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/update-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/update-service))
|
|
4744
4742
|
* to change a service's supported payment methods.
|
|
4745
4743
|
* @param serviceId - ID of the service to update.
|
|
4746
|
-
* @param pricingPlanIds - IDs of the
|
|
4744
|
+
* @param pricingPlanIds - IDs of the pricing plans
|
|
4747
4745
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
4748
4746
|
* to add to the service's `payment.pricingPlanIds` array.
|
|
4749
4747
|
* @public
|
|
@@ -4757,7 +4755,7 @@ declare function enablePricingPlansForService(serviceId: string, pricingPlanIds:
|
|
|
4757
4755
|
__applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors;
|
|
4758
4756
|
}>;
|
|
4759
4757
|
/**
|
|
4760
|
-
* Removes a list of
|
|
4758
|
+
* Removes a list of pricing plan IDs
|
|
4761
4759
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
4762
4760
|
* from a service's `payment.pricingPlanIds` array.
|
|
4763
4761
|
*
|
|
@@ -4777,7 +4775,7 @@ declare function disablePricingPlansForService(serviceId: string, options?: Disa
|
|
|
4777
4775
|
}>;
|
|
4778
4776
|
interface DisablePricingPlansForServiceOptions {
|
|
4779
4777
|
/**
|
|
4780
|
-
* IDs of the
|
|
4778
|
+
* IDs of the pricing plans
|
|
4781
4779
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
4782
4780
|
* to remove from the service's `payment.pricingPlanIds` array.
|
|
4783
4781
|
* @format GUID
|
|
@@ -4846,23 +4844,23 @@ interface ValidateSlugOptions {
|
|
|
4846
4844
|
*
|
|
4847
4845
|
* ### Schedule
|
|
4848
4846
|
*
|
|
4849
|
-
* Wix Bookings automatically creates a new active
|
|
4847
|
+
* Wix Bookings automatically creates a new active schedule
|
|
4850
4848
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction))
|
|
4851
4849
|
* for the cloned service. If Wix Bookings can't create this schedule, the
|
|
4852
|
-
* Clone Service
|
|
4850
|
+
* Clone Service call fails.
|
|
4853
4851
|
*
|
|
4854
4852
|
* - __For appointment-based services__: Future appointments aren't added to the
|
|
4855
|
-
* cloned service's schedule. Use the
|
|
4853
|
+
* cloned service's schedule. Use the Events API
|
|
4856
4854
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
|
|
4857
4855
|
* to add them as needed.
|
|
4858
4856
|
* - __For classes and courses__: Future one-time events aren't added to the
|
|
4859
4857
|
* cloned service's schedule, while future recurring events are added
|
|
4860
|
-
* asynchronously. The
|
|
4858
|
+
* asynchronously. The Clone Service call always succeeds, whether or not
|
|
4861
4859
|
* recurring events are added.
|
|
4862
4860
|
* If the response includes `RECURRING_EVENTS` in the `errors` array, it means the
|
|
4863
4861
|
* cloned service doesn't have future recurring events, even though the original
|
|
4864
4862
|
* service does. You can either delete the cloned service and try again or use
|
|
4865
|
-
* the
|
|
4863
|
+
* the Events API
|
|
4866
4864
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
|
|
4867
4865
|
* to add missing events to the schedule.
|
|
4868
4866
|
*
|
|
@@ -4870,14 +4868,14 @@ interface ValidateSlugOptions {
|
|
|
4870
4868
|
*
|
|
4871
4869
|
* ### Service options and variants
|
|
4872
4870
|
*
|
|
4873
|
-
* If the original service has
|
|
4871
|
+
* If the original service has variants
|
|
4874
4872
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)),
|
|
4875
|
-
* they're cloned asynchronously. The
|
|
4873
|
+
* they're cloned asynchronously. The Clone Service call always succeeds,
|
|
4876
4874
|
* regardless of whether variants were cloned.
|
|
4877
4875
|
*
|
|
4878
4876
|
* If the response includes `OPTIONS_AND_VARIANTS` in the `errors` array, the cloned
|
|
4879
4877
|
* service doesn't have variants, even though the original service does. You can
|
|
4880
|
-
* delete the cloned service and call
|
|
4878
|
+
* delete the cloned service and call Clone Service again, or use the
|
|
4881
4879
|
* _Service Options And Variants API_
|
|
4882
4880
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction))
|
|
4883
4881
|
* to add variants.
|
|
@@ -4889,13 +4887,13 @@ interface ValidateSlugOptions {
|
|
|
4889
4887
|
*
|
|
4890
4888
|
* ### Pricing plans
|
|
4891
4889
|
*
|
|
4892
|
-
* If the original service's accepts payments via
|
|
4890
|
+
* If the original service's accepts payments via pricing plans
|
|
4893
4891
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/pricing-plans/plans/introduction)),
|
|
4894
4892
|
* the cloned service's `payment.options.pricingPlan` is also set to `true`. To
|
|
4895
|
-
* accept specific pricing plans, call
|
|
4893
|
+
* accept specific pricing plans, call Enable Pricing Plans For Service
|
|
4896
4894
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/enable-pricing-plans-for-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/enable-pricing-plans-for-service)),
|
|
4897
4895
|
* after cloning the service. If the original service accepts only
|
|
4898
|
-
* pricing plan payments and you don't call
|
|
4896
|
+
* pricing plan payments and you don't call Enable Pricing Plans For Service
|
|
4899
4897
|
* after cloning the service, customers will be unable to book the service.
|
|
4900
4898
|
* @param sourceServiceId - ID of the service to clone.
|
|
4901
4899
|
* @public
|