@wix/bookings 1.0.106 → 1.0.108
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 +1 -1
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.public.d.ts +1 -1
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +13 -0
- package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +13 -0
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.http.d.ts +11 -11
- package/build/cjs/src/bookings-v2-price-info.http.js +11 -11
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +1 -1
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +16 -16
- package/build/cjs/src/bookings-v2-price-info.universal.js +11 -11
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +1 -1
- package/build/es/src/bookings-services-v2-service.types.d.ts +13 -0
- package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.universal.d.ts +13 -0
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.http.d.ts +11 -11
- package/build/es/src/bookings-v2-price-info.http.js +11 -11
- package/build/es/src/bookings-v2-price-info.types.d.ts +1 -1
- package/build/es/src/bookings-v2-price-info.universal.d.ts +16 -16
- package/build/es/src/bookings-v2-price-info.universal.js +11 -11
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as sessionsFeed from './src/bookings-calendar-v2-session-feed-event.public';
|
|
2
2
|
export * as resources from './src/bookings-catalog-v1-resource.public';
|
|
3
|
+
export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
3
4
|
export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.public';
|
|
4
5
|
export * as sessions from './src/bookings-calendar-v1-session.public';
|
|
5
6
|
export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.public';
|
|
6
|
-
export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
7
7
|
export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-options-and-variants.public';
|
|
8
8
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.public';
|
|
9
9
|
export * as services from './src/bookings-services-v2-service.public';
|
package/build/cjs/index.js
CHANGED
|
@@ -19,13 +19,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.pricing = exports.bookings = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.
|
|
22
|
+
exports.pricing = exports.bookings = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = exports.sessionsView = exports.resources = exports.sessionsFeed = void 0;
|
|
23
23
|
exports.sessionsFeed = __importStar(require("./src/bookings-calendar-v2-session-feed-event.public"));
|
|
24
24
|
exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.public"));
|
|
25
|
+
exports.sessionsView = __importStar(require("./src/bookings-calendar-v2-session-view.public"));
|
|
25
26
|
exports.availabilityCalendar = __importStar(require("./src/bookings-availability-v1-slot-availability.public"));
|
|
26
27
|
exports.sessions = __importStar(require("./src/bookings-calendar-v1-session.public"));
|
|
27
28
|
exports.externalCalendars = __importStar(require("./src/bookings-calendar-v2-external-calendar.public"));
|
|
28
|
-
exports.sessionsView = __importStar(require("./src/bookings-calendar-v2-session-view.public"));
|
|
29
29
|
exports.serviceOptionsAndVariants = __importStar(require("./src/bookings-catalog-v1-service-options-and-variants.public"));
|
|
30
30
|
exports.extendedBookings = __importStar(require("./src/bookings-reader-v2-extended-booking.public"));
|
|
31
31
|
exports.services = __importStar(require("./src/bookings-services-v2-service.public"));
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,uFAAuE;AACvE,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,uFAAuE;AACvE,+FAA+E;AAC/E,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF,2HAA2G;AAC3G,qGAAqF;AACrF,sFAAsE;AACtE,6EAA6D;AAC7D,+EAA+D"}
|
|
@@ -3,4 +3,4 @@ import { QueryV2 } from './bookings-services-v2-service.universal';
|
|
|
3
3
|
export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-services-v2-service.universal").Service>;
|
|
4
4
|
export declare function queryServices(httpClient: HttpClient): (query: QueryV2) => Promise<import("./bookings-services-v2-service.universal").QueryServicesResponse>;
|
|
5
5
|
export { ServiceType, RateType, LocationType, SortOrder, Status, Event, Day, Transparency, RecurringIntervalType, LocationLocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, CalendarType, SessionStatus, SessionType, ResourceStatus, ResourceNotificationEvent, BenefitType, BenefitNotificationEvent, Action, InvalidSlugError, } from './bookings-services-v2-service.universal';
|
|
6
|
-
export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, } from './bookings-services-v2-service.universal';
|
|
6
|
+
export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, BulkDeleteServicesRequest, BulkDeleteServicesResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, } from './bookings-services-v2-service.universal';
|
|
@@ -892,6 +892,19 @@ export interface ParticipantNotification {
|
|
|
892
892
|
}
|
|
893
893
|
export interface DeleteServiceResponse {
|
|
894
894
|
}
|
|
895
|
+
export interface BulkDeleteServicesRequest {
|
|
896
|
+
ids?: string[];
|
|
897
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
898
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
899
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
900
|
+
participantNotification?: ParticipantNotification;
|
|
901
|
+
}
|
|
902
|
+
export interface BulkDeleteServicesResponse {
|
|
903
|
+
/** The result of each service removal. */
|
|
904
|
+
results?: BulkServiceResult[];
|
|
905
|
+
/** Update statistics. */
|
|
906
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
907
|
+
}
|
|
895
908
|
export interface QueryServicesRequest {
|
|
896
909
|
/** WQL expression. */
|
|
897
910
|
query: QueryV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":";;;AA2FA,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AAgJD,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AA0HD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":";;;AA2FA,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AGG;IACH,2BAAiB,CAAA;AACnB,CAAC,EAjBW,MAAM,GAAN,cAAM,KAAN,cAAM,QAiBjB;AAoED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,6DAAyC,CAAA;IACzC,0DAA0D;IAC1D,yFAAqE,CAAA;IACrE,iEAAiE;IACjE,+DAA2C,CAAA;AAC7C,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B"}
|
|
@@ -866,6 +866,19 @@ export interface ParticipantNotification {
|
|
|
866
866
|
}
|
|
867
867
|
export interface DeleteServiceResponse {
|
|
868
868
|
}
|
|
869
|
+
export interface BulkDeleteServicesRequest {
|
|
870
|
+
ids?: string[];
|
|
871
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
872
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
873
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
874
|
+
participantNotification?: ParticipantNotification;
|
|
875
|
+
}
|
|
876
|
+
export interface BulkDeleteServicesResponse {
|
|
877
|
+
/** The result of each service removal. */
|
|
878
|
+
results?: BulkServiceResult[];
|
|
879
|
+
/** Update statistics. */
|
|
880
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
881
|
+
}
|
|
869
882
|
export interface QueryServicesRequest {
|
|
870
883
|
/** WQL expression. */
|
|
871
884
|
query: QueryV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAC9F,aAAa;AAEb,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6F5B,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AAuHD,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AA0HD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAC9F,aAAa;AAEb,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAA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
|
|
|
14
14
|
* of each line item before
|
|
15
15
|
* the booking is actually created.
|
|
16
16
|
*
|
|
17
|
-
* Use [`Calculate Price`](https://
|
|
17
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
18
18
|
* after the booking is created.
|
|
19
19
|
*
|
|
20
20
|
* Passing line items that belong to different services results in an error.
|
|
@@ -23,10 +23,10 @@ import { CalculatePriceRequest, CalculatePriceResponse, PreviewPriceRequest, Pre
|
|
|
23
23
|
*
|
|
24
24
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
25
25
|
* pass the `serviceId` in the `slot`
|
|
26
|
-
* or `schedule` object to [`
|
|
26
|
+
* or `schedule` object to [`previewPrice()`].
|
|
27
27
|
*
|
|
28
|
-
* You cannot call `
|
|
29
|
-
* [Bookings Pricing
|
|
28
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
29
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
30
30
|
* logic has been implemented for the site results in an error.
|
|
31
31
|
*/
|
|
32
32
|
export declare function previewPrice(payload: PreviewPriceRequest): RequestOptionsFactory<PreviewPriceResponse>;
|
|
@@ -35,10 +35,10 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
|
|
|
35
35
|
*
|
|
36
36
|
*
|
|
37
37
|
*
|
|
38
|
-
* You can call [`
|
|
38
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
39
39
|
* item's price and the booking's total price.
|
|
40
40
|
*
|
|
41
|
-
* You can use [`
|
|
41
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
42
42
|
* before a booking is created.
|
|
43
43
|
*
|
|
44
44
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -49,13 +49,13 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
|
|
|
49
49
|
*
|
|
50
50
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
51
51
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
52
|
-
* or `schedule` object to [`
|
|
52
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
53
53
|
*
|
|
54
54
|
* Alternatively you can customize the pricing logic using the
|
|
55
|
-
* [Bookings Pricing
|
|
55
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
56
56
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
57
|
-
* the default logic. This means that, if the
|
|
58
|
-
* when calling the API's `
|
|
59
|
-
* the
|
|
57
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
58
|
+
* when calling the API's `calculatePrice()` function,
|
|
59
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
60
60
|
*/
|
|
61
61
|
export declare function calculatePrice(payload: CalculatePriceRequest): RequestOptionsFactory<CalculatePriceResponse>;
|
|
@@ -75,7 +75,7 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|
|
|
75
75
|
* of each line item before
|
|
76
76
|
* the booking is actually created.
|
|
77
77
|
*
|
|
78
|
-
* Use [`Calculate Price`](https://
|
|
78
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
79
79
|
* after the booking is created.
|
|
80
80
|
*
|
|
81
81
|
* Passing line items that belong to different services results in an error.
|
|
@@ -84,10 +84,10 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|
|
|
84
84
|
*
|
|
85
85
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
86
86
|
* pass the `serviceId` in the `slot`
|
|
87
|
-
* or `schedule` object to [`
|
|
87
|
+
* or `schedule` object to [`previewPrice()`].
|
|
88
88
|
*
|
|
89
|
-
* You cannot call `
|
|
90
|
-
* [Bookings Pricing
|
|
89
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
90
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
91
91
|
* logic has been implemented for the site results in an error.
|
|
92
92
|
*/
|
|
93
93
|
function previewPrice(payload) {
|
|
@@ -119,10 +119,10 @@ exports.previewPrice = previewPrice;
|
|
|
119
119
|
*
|
|
120
120
|
*
|
|
121
121
|
*
|
|
122
|
-
* You can call [`
|
|
122
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
123
123
|
* item's price and the booking's total price.
|
|
124
124
|
*
|
|
125
|
-
* You can use [`
|
|
125
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
126
126
|
* before a booking is created.
|
|
127
127
|
*
|
|
128
128
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -133,14 +133,14 @@ exports.previewPrice = previewPrice;
|
|
|
133
133
|
*
|
|
134
134
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
135
135
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
136
|
-
* or `schedule` object to [`
|
|
136
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
137
137
|
*
|
|
138
138
|
* Alternatively you can customize the pricing logic using the
|
|
139
|
-
* [Bookings Pricing
|
|
139
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
140
140
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
141
|
-
* the default logic. This means that, if the
|
|
142
|
-
* when calling the API's `
|
|
143
|
-
* the
|
|
141
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
142
|
+
* when calling the API's `calculatePrice()` function,
|
|
143
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
144
144
|
*/
|
|
145
145
|
function calculatePrice(payload) {
|
|
146
146
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_calculatePriceRequest, { _address, _addressLocation, _booking, _contactDetails });
|
|
@@ -46,7 +46,7 @@ export interface BookingLineItem {
|
|
|
46
46
|
* Required when not using Wix Booking's default pricing logic.
|
|
47
47
|
*
|
|
48
48
|
* Optional when using custom pricing logic defined with the
|
|
49
|
-
* [Bookings Pricing
|
|
49
|
+
* [Bookings Pricing Integration SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
50
50
|
*/
|
|
51
51
|
serviceId?: string | null;
|
|
52
52
|
/** Resource ID. Required for services of type appointment or class. */
|
|
@@ -70,7 +70,7 @@ export interface BookingLineItem {
|
|
|
70
70
|
}
|
|
71
71
|
export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
72
72
|
/**
|
|
73
|
-
* Value for one of the choices in the
|
|
73
|
+
* Value for one of the choices in the `CustomServiceOption.choices` list.
|
|
74
74
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
75
75
|
* the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.
|
|
76
76
|
* Each choice may have a different price.
|
|
@@ -130,18 +130,18 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
130
130
|
* One of:
|
|
131
131
|
* - `"CREATED"` - The booking was created.
|
|
132
132
|
* - `"UPDATED"` - The booking was updated.
|
|
133
|
-
* - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar. A booking can be manually confirmed using the [`
|
|
133
|
+
* - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar. A booking can be manually confirmed using the [`confirmOrDecline()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/confirmordeclinebooking) API. A booking can be automatically confirmed when the following requirements are met:
|
|
134
134
|
* + The service is configured as automatically confirmed.
|
|
135
135
|
* + The system invoked the eCommerce checkout API and created an order.
|
|
136
136
|
* - `"CANCELED"` - The booking has been canceled and synced to the bookings calendar.
|
|
137
|
-
* The booking can be canceled using [`
|
|
137
|
+
* The booking can be canceled using [`cancelBooking()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/cancelbooking) API.
|
|
138
138
|
* - `"PENDING"` - The booking is waiting to be confirmed or declined by the owner and the booking is synced to the bookings calendar.
|
|
139
|
-
* Bookings can be manually set as `PENDING` using the
|
|
139
|
+
* Bookings can be manually set as `PENDING` using the `setAsPending()` API, by those with Manage Booking Status permissions scopes.
|
|
140
140
|
* Bookings can be automatically set as `PENDING` when the following requirements are met:
|
|
141
141
|
* + The service is configured as manually confirmed.
|
|
142
142
|
* + Invoking the eCommerce checkout API and an order has been created.
|
|
143
143
|
* - `"WAITING_LIST"` - The booking is on a waiting list.
|
|
144
|
-
* - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar. Bookings can be manually declined using the [`
|
|
144
|
+
* - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar. Bookings can be manually declined using the [`declineBooking()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/declinebooking) API by those with Manage Booking Status permission scopes. Bookings can be automatically declined when one of the following requirements are met:
|
|
145
145
|
* + Invoking the `eCommerce checkout` API and the order declined event has been sent.
|
|
146
146
|
* + Invoking the `eCommerce checkout` API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
147
147
|
*/
|
|
@@ -600,7 +600,7 @@ export interface CalculatePriceResponse {
|
|
|
600
600
|
* of each line item before
|
|
601
601
|
* the booking is actually created.
|
|
602
602
|
*
|
|
603
|
-
* Use [`Calculate Price`](https://
|
|
603
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
604
604
|
* after the booking is created.
|
|
605
605
|
*
|
|
606
606
|
* Passing line items that belong to different services results in an error.
|
|
@@ -609,10 +609,10 @@ export interface CalculatePriceResponse {
|
|
|
609
609
|
*
|
|
610
610
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
611
611
|
* pass the `serviceId` in the `slot`
|
|
612
|
-
* or `schedule` object to [`
|
|
612
|
+
* or `schedule` object to [`previewPrice()`].
|
|
613
613
|
*
|
|
614
|
-
* You cannot call `
|
|
615
|
-
* [Bookings Pricing
|
|
614
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
615
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
616
616
|
* logic has been implemented for the site results in an error.
|
|
617
617
|
* @param bookingLineItems - List of line items to preview the price for.
|
|
618
618
|
* @public
|
|
@@ -625,10 +625,10 @@ export declare function previewPrice(bookingLineItems: BookingLineItem[]): Promi
|
|
|
625
625
|
*
|
|
626
626
|
*
|
|
627
627
|
*
|
|
628
|
-
* You can call [`
|
|
628
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
629
629
|
* item's price and the booking's total price.
|
|
630
630
|
*
|
|
631
|
-
* You can use [`
|
|
631
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
632
632
|
* before a booking is created.
|
|
633
633
|
*
|
|
634
634
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -639,14 +639,14 @@ export declare function previewPrice(bookingLineItems: BookingLineItem[]): Promi
|
|
|
639
639
|
*
|
|
640
640
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
641
641
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
642
|
-
* or `schedule` object to [`
|
|
642
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
643
643
|
*
|
|
644
644
|
* Alternatively you can customize the pricing logic using the
|
|
645
|
-
* [Bookings Pricing
|
|
645
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
646
646
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
647
|
-
* the default logic. This means that, if the
|
|
648
|
-
* when calling the API's `
|
|
649
|
-
* the
|
|
647
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
648
|
+
* when calling the API's `calculatePrice()` function,
|
|
649
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
650
650
|
* @param booking - Booking to calculate the price for.
|
|
651
651
|
* @public
|
|
652
652
|
* @documentationMaturity preview
|
|
@@ -140,7 +140,7 @@ const _previewPriceResponse = {};
|
|
|
140
140
|
* of each line item before
|
|
141
141
|
* the booking is actually created.
|
|
142
142
|
*
|
|
143
|
-
* Use [`Calculate Price`](https://
|
|
143
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
144
144
|
* after the booking is created.
|
|
145
145
|
*
|
|
146
146
|
* Passing line items that belong to different services results in an error.
|
|
@@ -149,10 +149,10 @@ const _previewPriceResponse = {};
|
|
|
149
149
|
*
|
|
150
150
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
151
151
|
* pass the `serviceId` in the `slot`
|
|
152
|
-
* or `schedule` object to [`
|
|
152
|
+
* or `schedule` object to [`previewPrice()`].
|
|
153
153
|
*
|
|
154
|
-
* You cannot call `
|
|
155
|
-
* [Bookings Pricing
|
|
154
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
155
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
156
156
|
* logic has been implemented for the site results in an error.
|
|
157
157
|
* @param bookingLineItems - List of line items to preview the price for.
|
|
158
158
|
* @public
|
|
@@ -208,10 +208,10 @@ exports.previewPrice = previewPrice;
|
|
|
208
208
|
*
|
|
209
209
|
*
|
|
210
210
|
*
|
|
211
|
-
* You can call [`
|
|
211
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
212
212
|
* item's price and the booking's total price.
|
|
213
213
|
*
|
|
214
|
-
* You can use [`
|
|
214
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
215
215
|
* before a booking is created.
|
|
216
216
|
*
|
|
217
217
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -222,14 +222,14 @@ exports.previewPrice = previewPrice;
|
|
|
222
222
|
*
|
|
223
223
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
224
224
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
225
|
-
* or `schedule` object to [`
|
|
225
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
226
226
|
*
|
|
227
227
|
* Alternatively you can customize the pricing logic using the
|
|
228
|
-
* [Bookings Pricing
|
|
228
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
229
229
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
230
|
-
* the default logic. This means that, if the
|
|
231
|
-
* when calling the API's `
|
|
232
|
-
* the
|
|
230
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
231
|
+
* when calling the API's `calculatePrice()` function,
|
|
232
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
233
233
|
* @param booking - Booking to calculate the price for.
|
|
234
234
|
* @public
|
|
235
235
|
* @documentationMaturity preview
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as sessionsFeed from './src/bookings-calendar-v2-session-feed-event.public';
|
|
2
2
|
export * as resources from './src/bookings-catalog-v1-resource.public';
|
|
3
|
+
export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
3
4
|
export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.public';
|
|
4
5
|
export * as sessions from './src/bookings-calendar-v1-session.public';
|
|
5
6
|
export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.public';
|
|
6
|
-
export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
7
7
|
export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-options-and-variants.public';
|
|
8
8
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.public';
|
|
9
9
|
export * as services from './src/bookings-services-v2-service.public';
|
package/build/es/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as sessionsFeed from './src/bookings-calendar-v2-session-feed-event.public';
|
|
2
2
|
export * as resources from './src/bookings-catalog-v1-resource.public';
|
|
3
|
+
export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
3
4
|
export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.public';
|
|
4
5
|
export * as sessions from './src/bookings-calendar-v1-session.public';
|
|
5
6
|
export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.public';
|
|
6
|
-
export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
|
|
7
7
|
export * as serviceOptionsAndVariants from './src/bookings-catalog-v1-service-options-and-variants.public';
|
|
8
8
|
export * as extendedBookings from './src/bookings-reader-v2-extended-booking.public';
|
|
9
9
|
export * as services from './src/bookings-services-v2-service.public';
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,sDAAsD,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,sDAAsD,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,YAAY,MAAM,gDAAgD,CAAC;AAC/E,OAAO,KAAK,oBAAoB,MAAM,yDAAyD,CAAC;AAChG,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,iBAAiB,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,yBAAyB,MAAM,+DAA+D,CAAC;AAC3G,OAAO,KAAK,gBAAgB,MAAM,kDAAkD,CAAC;AACrF,OAAO,KAAK,QAAQ,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,QAAQ,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,OAAO,MAAM,qCAAqC,CAAC"}
|
|
@@ -3,4 +3,4 @@ import { QueryV2 } from './bookings-services-v2-service.universal';
|
|
|
3
3
|
export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-services-v2-service.universal").Service>;
|
|
4
4
|
export declare function queryServices(httpClient: HttpClient): (query: QueryV2) => Promise<import("./bookings-services-v2-service.universal").QueryServicesResponse>;
|
|
5
5
|
export { ServiceType, RateType, LocationType, SortOrder, Status, Event, Day, Transparency, RecurringIntervalType, LocationLocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, CalendarType, SessionStatus, SessionType, ResourceStatus, ResourceNotificationEvent, BenefitType, BenefitNotificationEvent, Action, InvalidSlugError, } from './bookings-services-v2-service.universal';
|
|
6
|
-
export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, } from './bookings-services-v2-service.universal';
|
|
6
|
+
export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, BulkDeleteServicesRequest, BulkDeleteServicesResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, } from './bookings-services-v2-service.universal';
|
|
@@ -892,6 +892,19 @@ export interface ParticipantNotification {
|
|
|
892
892
|
}
|
|
893
893
|
export interface DeleteServiceResponse {
|
|
894
894
|
}
|
|
895
|
+
export interface BulkDeleteServicesRequest {
|
|
896
|
+
ids?: string[];
|
|
897
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
898
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
899
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
900
|
+
participantNotification?: ParticipantNotification;
|
|
901
|
+
}
|
|
902
|
+
export interface BulkDeleteServicesResponse {
|
|
903
|
+
/** The result of each service removal. */
|
|
904
|
+
results?: BulkServiceResult[];
|
|
905
|
+
/** Update statistics. */
|
|
906
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
907
|
+
}
|
|
895
908
|
export interface QueryServicesRequest {
|
|
896
909
|
/** WQL expression. */
|
|
897
910
|
query: QueryV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":"AA2FA,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAgJD,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AA0HD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/b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;IACH,2BAAiB,CAAA;AACnB,CAAC,EAjBW,MAAM,KAAN,MAAM,QAiBjB;AAoED,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,6DAAyC,CAAA;IACzC,0DAA0D;IAC1D,yFAAqE,CAAA;IACrE,iEAAiE;IACjE,+DAA2C,CAAA;AAC7C,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B"}
|
|
@@ -866,6 +866,19 @@ export interface ParticipantNotification {
|
|
|
866
866
|
}
|
|
867
867
|
export interface DeleteServiceResponse {
|
|
868
868
|
}
|
|
869
|
+
export interface BulkDeleteServicesRequest {
|
|
870
|
+
ids?: string[];
|
|
871
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
872
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
873
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
874
|
+
participantNotification?: ParticipantNotification;
|
|
875
|
+
}
|
|
876
|
+
export interface BulkDeleteServicesResponse {
|
|
877
|
+
/** The result of each service removal. */
|
|
878
|
+
results?: BulkServiceResult[];
|
|
879
|
+
/** Update statistics. */
|
|
880
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
881
|
+
}
|
|
869
882
|
export interface QueryServicesRequest {
|
|
870
883
|
/** WQL expression. */
|
|
871
884
|
query: QueryV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AAEb,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6F5B,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAuHD,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AA0HD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK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item before
|
|
15
15
|
* the booking is actually created.
|
|
16
16
|
*
|
|
17
|
-
* Use [`Calculate Price`](https://
|
|
17
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
18
18
|
* after the booking is created.
|
|
19
19
|
*
|
|
20
20
|
* Passing line items that belong to different services results in an error.
|
|
@@ -23,10 +23,10 @@ import { CalculatePriceRequest, CalculatePriceResponse, PreviewPriceRequest, Pre
|
|
|
23
23
|
*
|
|
24
24
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
25
25
|
* pass the `serviceId` in the `slot`
|
|
26
|
-
* or `schedule` object to [`
|
|
26
|
+
* or `schedule` object to [`previewPrice()`].
|
|
27
27
|
*
|
|
28
|
-
* You cannot call `
|
|
29
|
-
* [Bookings Pricing
|
|
28
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
29
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
30
30
|
* logic has been implemented for the site results in an error.
|
|
31
31
|
*/
|
|
32
32
|
export declare function previewPrice(payload: PreviewPriceRequest): RequestOptionsFactory<PreviewPriceResponse>;
|
|
@@ -35,10 +35,10 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
|
|
|
35
35
|
*
|
|
36
36
|
*
|
|
37
37
|
*
|
|
38
|
-
* You can call [`
|
|
38
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
39
39
|
* item's price and the booking's total price.
|
|
40
40
|
*
|
|
41
|
-
* You can use [`
|
|
41
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
42
42
|
* before a booking is created.
|
|
43
43
|
*
|
|
44
44
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -49,13 +49,13 @@ export declare function previewPrice(payload: PreviewPriceRequest): RequestOptio
|
|
|
49
49
|
*
|
|
50
50
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
51
51
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
52
|
-
* or `schedule` object to [`
|
|
52
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
53
53
|
*
|
|
54
54
|
* Alternatively you can customize the pricing logic using the
|
|
55
|
-
* [Bookings Pricing
|
|
55
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
56
56
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
57
|
-
* the default logic. This means that, if the
|
|
58
|
-
* when calling the API's `
|
|
59
|
-
* the
|
|
57
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
58
|
+
* when calling the API's `calculatePrice()` function,
|
|
59
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
60
60
|
*/
|
|
61
61
|
export declare function calculatePrice(payload: CalculatePriceRequest): RequestOptionsFactory<CalculatePriceResponse>;
|
|
@@ -72,7 +72,7 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|
|
|
72
72
|
* of each line item before
|
|
73
73
|
* the booking is actually created.
|
|
74
74
|
*
|
|
75
|
-
* Use [`Calculate Price`](https://
|
|
75
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
76
76
|
* after the booking is created.
|
|
77
77
|
*
|
|
78
78
|
* Passing line items that belong to different services results in an error.
|
|
@@ -81,10 +81,10 @@ function resolveComWixpressBookingsPricingBookingsPricingServiceUrl(opts) {
|
|
|
81
81
|
*
|
|
82
82
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
83
83
|
* pass the `serviceId` in the `slot`
|
|
84
|
-
* or `schedule` object to [`
|
|
84
|
+
* or `schedule` object to [`previewPrice()`].
|
|
85
85
|
*
|
|
86
|
-
* You cannot call `
|
|
87
|
-
* [Bookings Pricing
|
|
86
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
87
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
88
88
|
* logic has been implemented for the site results in an error.
|
|
89
89
|
*/
|
|
90
90
|
export function previewPrice(payload) {
|
|
@@ -115,10 +115,10 @@ export function previewPrice(payload) {
|
|
|
115
115
|
*
|
|
116
116
|
*
|
|
117
117
|
*
|
|
118
|
-
* You can call [`
|
|
118
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
119
119
|
* item's price and the booking's total price.
|
|
120
120
|
*
|
|
121
|
-
* You can use [`
|
|
121
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
122
122
|
* before a booking is created.
|
|
123
123
|
*
|
|
124
124
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -129,14 +129,14 @@ export function previewPrice(payload) {
|
|
|
129
129
|
*
|
|
130
130
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
131
131
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
132
|
-
* or `schedule` object to [`
|
|
132
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
133
133
|
*
|
|
134
134
|
* Alternatively you can customize the pricing logic using the
|
|
135
|
-
* [Bookings Pricing
|
|
135
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
136
136
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
137
|
-
* the default logic. This means that, if the
|
|
138
|
-
* when calling the API's `
|
|
139
|
-
* the
|
|
137
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
138
|
+
* when calling the API's `calculatePrice()` function,
|
|
139
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
140
140
|
*/
|
|
141
141
|
export function calculatePrice(payload) {
|
|
142
142
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_calculatePriceRequest, { _address, _addressLocation, _booking, _contactDetails });
|
|
@@ -46,7 +46,7 @@ export interface BookingLineItem {
|
|
|
46
46
|
* Required when not using Wix Booking's default pricing logic.
|
|
47
47
|
*
|
|
48
48
|
* Optional when using custom pricing logic defined with the
|
|
49
|
-
* [Bookings Pricing
|
|
49
|
+
* [Bookings Pricing Integration SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
50
50
|
*/
|
|
51
51
|
serviceId?: string | null;
|
|
52
52
|
/** Resource ID. Required for services of type appointment or class. */
|
|
@@ -70,7 +70,7 @@ export interface BookingLineItem {
|
|
|
70
70
|
}
|
|
71
71
|
export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
72
72
|
/**
|
|
73
|
-
* Value for one of the choices in the
|
|
73
|
+
* Value for one of the choices in the `CustomServiceOption.choices` list.
|
|
74
74
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
75
75
|
* the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.
|
|
76
76
|
* Each choice may have a different price.
|
|
@@ -130,18 +130,18 @@ export interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
130
130
|
* One of:
|
|
131
131
|
* - `"CREATED"` - The booking was created.
|
|
132
132
|
* - `"UPDATED"` - The booking was updated.
|
|
133
|
-
* - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar. A booking can be manually confirmed using the [`
|
|
133
|
+
* - `"CONFIRMED"` - The booking was confirmed and appears on the bookings calendar. A booking can be manually confirmed using the [`confirmOrDecline()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/confirmordeclinebooking) API. A booking can be automatically confirmed when the following requirements are met:
|
|
134
134
|
* + The service is configured as automatically confirmed.
|
|
135
135
|
* + The system invoked the eCommerce checkout API and created an order.
|
|
136
136
|
* - `"CANCELED"` - The booking has been canceled and synced to the bookings calendar.
|
|
137
|
-
* The booking can be canceled using [`
|
|
137
|
+
* The booking can be canceled using [`cancelBooking()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/cancelbooking) API.
|
|
138
138
|
* - `"PENDING"` - The booking is waiting to be confirmed or declined by the owner and the booking is synced to the bookings calendar.
|
|
139
|
-
* Bookings can be manually set as `PENDING` using the
|
|
139
|
+
* Bookings can be manually set as `PENDING` using the `setAsPending()` API, by those with Manage Booking Status permissions scopes.
|
|
140
140
|
* Bookings can be automatically set as `PENDING` when the following requirements are met:
|
|
141
141
|
* + The service is configured as manually confirmed.
|
|
142
142
|
* + Invoking the eCommerce checkout API and an order has been created.
|
|
143
143
|
* - `"WAITING_LIST"` - The booking is on a waiting list.
|
|
144
|
-
* - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar. Bookings can be manually declined using the [`
|
|
144
|
+
* - `"DECLINED"` - The booking was declined by the owner and synced to the Bookings calendar. Bookings can be manually declined using the [`declineBooking()`](https://www.wix.com/velo/reference/wix-bookings-v2/bookings/declinebooking) API by those with Manage Booking Status permission scopes. Bookings can be automatically declined when one of the following requirements are met:
|
|
145
145
|
* + Invoking the `eCommerce checkout` API and the order declined event has been sent.
|
|
146
146
|
* + Invoking the `eCommerce checkout` API and order approved event has been sent, but the booking is offline and the booking causes a double booking.
|
|
147
147
|
*/
|
|
@@ -600,7 +600,7 @@ export interface CalculatePriceResponse {
|
|
|
600
600
|
* of each line item before
|
|
601
601
|
* the booking is actually created.
|
|
602
602
|
*
|
|
603
|
-
* Use [`Calculate Price`](https://
|
|
603
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
604
604
|
* after the booking is created.
|
|
605
605
|
*
|
|
606
606
|
* Passing line items that belong to different services results in an error.
|
|
@@ -609,10 +609,10 @@ export interface CalculatePriceResponse {
|
|
|
609
609
|
*
|
|
610
610
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
611
611
|
* pass the `serviceId` in the `slot`
|
|
612
|
-
* or `schedule` object to [`
|
|
612
|
+
* or `schedule` object to [`previewPrice()`].
|
|
613
613
|
*
|
|
614
|
-
* You cannot call `
|
|
615
|
-
* [Bookings Pricing
|
|
614
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
615
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
616
616
|
* logic has been implemented for the site results in an error.
|
|
617
617
|
* @param bookingLineItems - List of line items to preview the price for.
|
|
618
618
|
* @public
|
|
@@ -625,10 +625,10 @@ export declare function previewPrice(bookingLineItems: BookingLineItem[]): Promi
|
|
|
625
625
|
*
|
|
626
626
|
*
|
|
627
627
|
*
|
|
628
|
-
* You can call [`
|
|
628
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
629
629
|
* item's price and the booking's total price.
|
|
630
630
|
*
|
|
631
|
-
* You can use [`
|
|
631
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
632
632
|
* before a booking is created.
|
|
633
633
|
*
|
|
634
634
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -639,14 +639,14 @@ export declare function previewPrice(bookingLineItems: BookingLineItem[]): Promi
|
|
|
639
639
|
*
|
|
640
640
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
641
641
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
642
|
-
* or `schedule` object to [`
|
|
642
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
643
643
|
*
|
|
644
644
|
* Alternatively you can customize the pricing logic using the
|
|
645
|
-
* [Bookings Pricing
|
|
645
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
646
646
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
647
|
-
* the default logic. This means that, if the
|
|
648
|
-
* when calling the API's `
|
|
649
|
-
* the
|
|
647
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
648
|
+
* when calling the API's `calculatePrice()` function,
|
|
649
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
650
650
|
* @param booking - Booking to calculate the price for.
|
|
651
651
|
* @public
|
|
652
652
|
* @documentationMaturity preview
|
|
@@ -118,7 +118,7 @@ const _previewPriceResponse = {};
|
|
|
118
118
|
* of each line item before
|
|
119
119
|
* the booking is actually created.
|
|
120
120
|
*
|
|
121
|
-
* Use [`Calculate Price`](https://
|
|
121
|
+
* Use [`Calculate Price`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) to get the base price
|
|
122
122
|
* after the booking is created.
|
|
123
123
|
*
|
|
124
124
|
* Passing line items that belong to different services results in an error.
|
|
@@ -127,10 +127,10 @@ const _previewPriceResponse = {};
|
|
|
127
127
|
*
|
|
128
128
|
* Wix Bookings has its own default pricing logic for previewing the price. You must
|
|
129
129
|
* pass the `serviceId` in the `slot`
|
|
130
|
-
* or `schedule` object to [`
|
|
130
|
+
* or `schedule` object to [`previewPrice()`].
|
|
131
131
|
*
|
|
132
|
-
* You cannot call `
|
|
133
|
-
* [Bookings Pricing
|
|
132
|
+
* You cannot call `previewPrice()` if you have customized Bookings pricing logic using the
|
|
133
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider). Calling `previewPrice` if custom pricing
|
|
134
134
|
* logic has been implemented for the site results in an error.
|
|
135
135
|
* @param bookingLineItems - List of line items to preview the price for.
|
|
136
136
|
* @public
|
|
@@ -185,10 +185,10 @@ export function previewPrice(bookingLineItems) {
|
|
|
185
185
|
*
|
|
186
186
|
*
|
|
187
187
|
*
|
|
188
|
-
* You can call [`
|
|
188
|
+
* You can call [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice) after a booking is created. The returned calculated price includes information about each line
|
|
189
189
|
* item's price and the booking's total price.
|
|
190
190
|
*
|
|
191
|
-
* You can use [`
|
|
191
|
+
* You can use [`previewPrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/previewprice) to get the base price
|
|
192
192
|
* before a booking is created.
|
|
193
193
|
*
|
|
194
194
|
* The calculated price is the base price that will be used as a basis for charging the customer.
|
|
@@ -199,14 +199,14 @@ export function previewPrice(bookingLineItems) {
|
|
|
199
199
|
*
|
|
200
200
|
* Wix Bookings has its own default pricing logic for calculating the price. When
|
|
201
201
|
* using Wix Bookings' default pricing logic, you must pass the `serviceId` in the `slot`
|
|
202
|
-
* or `schedule` object to [`
|
|
202
|
+
* or `schedule` object to [`calculatePrice()`](https://www.wix.com/velo/reference/wix-bookings-v2/pricing/calculateprice).
|
|
203
203
|
*
|
|
204
204
|
* Alternatively you can customize the pricing logic using the
|
|
205
|
-
* [Bookings Pricing
|
|
205
|
+
* [Bookings Pricing Integration REST SPI](https://dev.wix.com/api/rest/wix-bookings/pricing-provider).
|
|
206
206
|
* If you integrate with a pricing provider, the customized pricing logic becomes
|
|
207
|
-
* the default logic. This means that, if the
|
|
208
|
-
* when calling the API's `
|
|
209
|
-
* the
|
|
207
|
+
* the default logic. This means that, if the Pricing Integration SPI is implemented,
|
|
208
|
+
* when calling the API's `calculatePrice()` function,
|
|
209
|
+
* the REST SPI's `Calculate Price` endpoint is used instead.
|
|
210
210
|
* @param booking - Booking to calculate the price for.
|
|
211
211
|
* @public
|
|
212
212
|
* @documentationMaturity preview
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "aba73fe3cb07c4689b9a7c424ec0dde4b0253d6f38d5be92950988ad"
|
|
37
37
|
}
|