@wix/auto_sdk_bookings_pricing 1.0.12 → 1.0.13
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 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.context.d.ts +6 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.context.js +18 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.context.js.map +1 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.http.d.ts +59 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.http.js +184 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.http.js.map +1 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.meta.d.ts +14 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.meta.js +66 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.meta.js.map +1 -0
- package/build/{internal/index.d.ts → cjs/src/bookings-v2-price-info-pricing.public.d.ts} +8 -11
- package/build/cjs/src/bookings-v2-price-info-pricing.public.js +28 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.public.js.map +1 -0
- package/build/{bookings-v2-price-info-pricing.universal-Ci_8AyL2.d.mts → cjs/src/bookings-v2-price-info-pricing.types.d.ts} +54 -56
- package/build/cjs/src/bookings-v2-price-info-pricing.types.js +133 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.types.js.map +1 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +1007 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.universal.js +299 -0
- package/build/cjs/src/bookings-v2-price-info-pricing.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/bookings-v2-price-info-pricing.context.d.ts +6 -0
- package/build/es/src/bookings-v2-price-info-pricing.context.js +6 -0
- package/build/es/src/bookings-v2-price-info-pricing.context.js.map +1 -0
- package/build/es/src/bookings-v2-price-info-pricing.http.d.ts +59 -0
- package/build/es/src/bookings-v2-price-info-pricing.http.js +179 -0
- package/build/es/src/bookings-v2-price-info-pricing.http.js.map +1 -0
- package/build/es/src/bookings-v2-price-info-pricing.meta.d.ts +14 -0
- package/build/es/src/bookings-v2-price-info-pricing.meta.js +38 -0
- package/build/es/src/bookings-v2-price-info-pricing.meta.js.map +1 -0
- package/build/{index.d.ts → es/src/bookings-v2-price-info-pricing.public.d.ts} +8 -11
- package/build/es/src/bookings-v2-price-info-pricing.public.js +14 -0
- package/build/es/src/bookings-v2-price-info-pricing.public.js.map +1 -0
- package/build/{bookings-v2-price-info-pricing.universal-Ci_8AyL2.d.ts → es/src/bookings-v2-price-info-pricing.types.d.ts} +54 -56
- package/build/es/src/bookings-v2-price-info-pricing.types.js +130 -0
- package/build/es/src/bookings-v2-price-info-pricing.types.js.map +1 -0
- package/build/es/src/bookings-v2-price-info-pricing.universal.d.ts +1007 -0
- package/build/es/src/bookings-v2-price-info-pricing.universal.js +271 -0
- package/build/es/src/bookings-v2-price-info-pricing.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.context.d.ts +6 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.context.js +18 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.context.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.d.ts +59 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.js +184 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.http.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.meta.d.ts +14 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.meta.js +66 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.meta.js.map +1 -0
- package/build/internal/{index.d.mts → cjs/src/bookings-v2-price-info-pricing.public.d.ts} +8 -11
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.public.js +28 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.public.js.map +1 -0
- package/build/internal/{bookings-v2-price-info-pricing.universal-Ci_8AyL2.d.ts → cjs/src/bookings-v2-price-info-pricing.types.d.ts} +54 -56
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.js +133 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.types.js.map +1 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.d.ts +1007 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js +299 -0
- package/build/internal/cjs/src/bookings-v2-price-info-pricing.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.context.d.ts +6 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.context.js +6 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.context.js.map +1 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.http.d.ts +59 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.http.js +179 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.http.js.map +1 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.meta.d.ts +14 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.meta.js +38 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/src/bookings-v2-price-info-pricing.public.d.ts} +8 -11
- package/build/internal/es/src/bookings-v2-price-info-pricing.public.js +14 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.public.js.map +1 -0
- package/build/internal/{bookings-v2-price-info-pricing.universal-Ci_8AyL2.d.mts → es/src/bookings-v2-price-info-pricing.types.d.ts} +54 -56
- package/build/internal/es/src/bookings-v2-price-info-pricing.types.js +130 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.types.js.map +1 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.universal.d.ts +1007 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js +271 -0
- package/build/internal/es/src/bookings-v2-price-info-pricing.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -314
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -280
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -314
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -280
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -793
- package/build/internal/meta.d.ts +0 -793
- package/build/internal/meta.js +0 -194
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -166
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -793
- package/build/meta.d.ts +0 -793
- package/build/meta.js +0 -194
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -166
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ambassadorWixBookingsV2PriceInfoTypes from './bookings-v2-price-info-pricing.types.js';
|
|
2
|
+
import * as ambassadorWixBookingsV2PriceInfoUniversalTypes from './bookings-v2-price-info-pricing.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function previewPrice(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsV2PriceInfoUniversalTypes.PreviewPriceRequest, ambassadorWixBookingsV2PriceInfoTypes.PreviewPriceRequest, ambassadorWixBookingsV2PriceInfoUniversalTypes.PreviewPriceResponse, ambassadorWixBookingsV2PriceInfoTypes.PreviewPriceResponse>;
|
|
14
|
+
export declare function calculatePrice(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsV2PriceInfoUniversalTypes.CalculatePriceRequest, ambassadorWixBookingsV2PriceInfoTypes.CalculatePriceRequest, ambassadorWixBookingsV2PriceInfoUniversalTypes.CalculatePriceResponse, ambassadorWixBookingsV2PriceInfoTypes.CalculatePriceResponse>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.calculatePrice = exports.previewPrice = void 0;
|
|
27
|
+
const ambassadorWixBookingsV2PriceInfo = __importStar(require("./bookings-v2-price-info-pricing.http.js"));
|
|
28
|
+
function previewPrice() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixBookingsV2PriceInfo.previewPrice(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/v2/pricing/preview',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.previewPrice = previewPrice;
|
|
47
|
+
function calculatePrice() {
|
|
48
|
+
const payload = {};
|
|
49
|
+
const getRequestOptions = ambassadorWixBookingsV2PriceInfo.calculatePrice(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'POST',
|
|
57
|
+
path: '/v2/pricing/calculate',
|
|
58
|
+
pathParams: {},
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.calculatePrice = calculatePrice;
|
|
66
|
+
//# sourceMappingURL=bookings-v2-price-info-pricing.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v2-price-info-pricing.meta.js","sourceRoot":"","sources":["../../../../src/bookings-v2-price-info-pricing.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2GAA6F;AAsB7F,SAAgB,YAAY;IAQ1B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,oCA4BC;AAED,SAAgB,cAAc;IAQ5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAE3D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,wCA4BC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { HttpClient
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { Booking, BookingLineItem, CalculatePriceResponse, PreviewPriceResponse } from './bookings-v2-price-info-pricing.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function previewPrice(httpClient: HttpClient): PreviewPriceSignature;
|
|
6
7
|
interface PreviewPriceSignature {
|
|
7
8
|
/**
|
|
8
9
|
* Previews the base price for a set of line items belonging to the same
|
|
@@ -33,7 +34,7 @@ interface PreviewPriceSignature {
|
|
|
33
34
|
*/
|
|
34
35
|
(bookingLineItems: BookingLineItem[]): Promise<PreviewPriceResponse>;
|
|
35
36
|
}
|
|
36
|
-
declare function calculatePrice
|
|
37
|
+
export declare function calculatePrice(httpClient: HttpClient): CalculatePriceSignature;
|
|
37
38
|
interface CalculatePriceSignature {
|
|
38
39
|
/**
|
|
39
40
|
* Calculates the base price of a booking.
|
|
@@ -70,8 +71,4 @@ interface CalculatePriceSignature {
|
|
|
70
71
|
*/
|
|
71
72
|
(booking: Booking): Promise<CalculatePriceResponse>;
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
-
declare const previewPrice: MaybeContext<BuildRESTFunction<typeof previewPrice$1> & typeof previewPrice$1>;
|
|
75
|
-
declare const calculatePrice: MaybeContext<BuildRESTFunction<typeof calculatePrice$1> & typeof calculatePrice$1>;
|
|
76
|
-
|
|
77
|
-
export { Booking, BookingLineItem, CalculatePriceResponse, PreviewPriceResponse, calculatePrice, previewPrice };
|
|
74
|
+
export { Actor, Address, AddressLocation, AddressStreetOneOf, BookedAddOn, BookedAddOnAddOnInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedResource, BookedSchedule, BookedSlot, Booking, BookingLineItem, BookingParticipantsInfoOneOf, BookingSource, BookingStatus, CalculatePriceRequest, CalculatePriceResponse, ContactDetails, CustomFormField, Duration, ExtendedFields, FlowControlSettings, IdentificationData, IdentificationDataIdOneOf, IdentityType, Location, LocationType, MultiServiceBookingInfo, MultiServiceBookingType, ParticipantChoices, ParticipantNotification, PaymentStatus, Platform, PreviewPriceRequest, PreviewPriceResponse, PriceDescriptionInfo, PriceInfo, PriceInfoTotalPriceOneOf, SelectedPaymentOption, ServiceChoice, ServiceChoiceChoiceOneOf, ServiceChoices, StreetAddress, Subdivision, ValueType, } from './bookings-v2-price-info-pricing.universal.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValueType = exports.SelectedPaymentOption = exports.Platform = exports.PaymentStatus = exports.MultiServiceBookingType = exports.LocationType = exports.IdentityType = exports.BookingStatus = exports.Actor = exports.calculatePrice = exports.previewPrice = exports.__metadata = void 0;
|
|
4
|
+
const bookings_v2_price_info_pricing_universal_js_1 = require("./bookings-v2-price-info-pricing.universal.js");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/bookings' };
|
|
6
|
+
function previewPrice(httpClient) {
|
|
7
|
+
return (bookingLineItems) => (0, bookings_v2_price_info_pricing_universal_js_1.previewPrice)(bookingLineItems,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.previewPrice = previewPrice;
|
|
12
|
+
function calculatePrice(httpClient) {
|
|
13
|
+
return (booking) => (0, bookings_v2_price_info_pricing_universal_js_1.calculatePrice)(booking,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.calculatePrice = calculatePrice;
|
|
18
|
+
var bookings_v2_price_info_pricing_universal_js_2 = require("./bookings-v2-price-info-pricing.universal.js");
|
|
19
|
+
Object.defineProperty(exports, "Actor", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.Actor; } });
|
|
20
|
+
Object.defineProperty(exports, "BookingStatus", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.BookingStatus; } });
|
|
21
|
+
Object.defineProperty(exports, "IdentityType", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.IdentityType; } });
|
|
22
|
+
Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.LocationType; } });
|
|
23
|
+
Object.defineProperty(exports, "MultiServiceBookingType", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.MultiServiceBookingType; } });
|
|
24
|
+
Object.defineProperty(exports, "PaymentStatus", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.PaymentStatus; } });
|
|
25
|
+
Object.defineProperty(exports, "Platform", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.Platform; } });
|
|
26
|
+
Object.defineProperty(exports, "SelectedPaymentOption", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.SelectedPaymentOption; } });
|
|
27
|
+
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function () { return bookings_v2_price_info_pricing_universal_js_2.ValueType; } });
|
|
28
|
+
//# sourceMappingURL=bookings-v2-price-info-pricing.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-v2-price-info-pricing.public.js","sourceRoot":"","sources":["../../../../src/bookings-v2-price-info-pricing.public.ts"],"names":[],"mappings":";;;AACA,+GAOuD;AAE1C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,gBAAmC,EAAE,EAAE,CAC7C,IAAA,0DAAqB,EACnB,gBAAgB;IAChB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAiCD,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,OAAgB,EAAE,EAAE,CAC1B,IAAA,4DAAuB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AAuCD,6GA+CuD;AA9CrD,oIAAA,KAAK,OAAA;AAeL,4IAAA,aAAa,OAAA;AAUb,2IAAA,YAAY,OAAA;AAEZ,2IAAA,YAAY,OAAA;AAEZ,sJAAA,uBAAuB,OAAA;AAGvB,4IAAA,aAAa,OAAA;AACb,uIAAA,QAAQ,OAAA;AAMR,oJAAA,qBAAqB,OAAA;AAMrB,wIAAA,SAAS,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface PriceInfo extends PriceInfoTotalPriceOneOf {
|
|
1
|
+
export interface PriceInfo extends PriceInfoTotalPriceOneOf {
|
|
2
2
|
/**
|
|
3
3
|
* Calculated total price. Available if the _service's_
|
|
4
4
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction))
|
|
@@ -36,7 +36,7 @@ interface PriceInfo extends PriceInfoTotalPriceOneOf {
|
|
|
36
36
|
deposit?: number | null;
|
|
37
37
|
}
|
|
38
38
|
/** @oneof */
|
|
39
|
-
interface PriceInfoTotalPriceOneOf {
|
|
39
|
+
export interface PriceInfoTotalPriceOneOf {
|
|
40
40
|
/**
|
|
41
41
|
* Calculated total price. Available if the _service's_
|
|
42
42
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction))
|
|
@@ -61,7 +61,7 @@ interface PriceInfoTotalPriceOneOf {
|
|
|
61
61
|
*/
|
|
62
62
|
priceDescriptionInfo?: PriceDescriptionInfo;
|
|
63
63
|
}
|
|
64
|
-
interface BookingLineItem {
|
|
64
|
+
export interface BookingLineItem {
|
|
65
65
|
/**
|
|
66
66
|
* _Service ID_
|
|
67
67
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction)).
|
|
@@ -109,7 +109,7 @@ interface BookingLineItem {
|
|
|
109
109
|
*/
|
|
110
110
|
pricePerParticipant?: number | null;
|
|
111
111
|
}
|
|
112
|
-
interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
112
|
+
export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
113
113
|
/**
|
|
114
114
|
* Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
|
|
115
115
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -127,7 +127,7 @@ interface ServiceChoice extends ServiceChoiceChoiceOneOf {
|
|
|
127
127
|
optionId?: string;
|
|
128
128
|
}
|
|
129
129
|
/** @oneof */
|
|
130
|
-
interface ServiceChoiceChoiceOneOf {
|
|
130
|
+
export interface ServiceChoiceChoiceOneOf {
|
|
131
131
|
/**
|
|
132
132
|
* Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.
|
|
133
133
|
* Choices are specific values for an option the customer can choose to book. For example,
|
|
@@ -137,7 +137,7 @@ interface ServiceChoiceChoiceOneOf {
|
|
|
137
137
|
custom?: string;
|
|
138
138
|
duration?: Duration;
|
|
139
139
|
}
|
|
140
|
-
interface Duration {
|
|
140
|
+
export interface Duration {
|
|
141
141
|
/**
|
|
142
142
|
* Duration of the service in minutes.
|
|
143
143
|
* Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes
|
|
@@ -152,7 +152,7 @@ interface Duration {
|
|
|
152
152
|
*/
|
|
153
153
|
name?: string | null;
|
|
154
154
|
}
|
|
155
|
-
interface PriceDescriptionInfo {
|
|
155
|
+
export interface PriceDescriptionInfo {
|
|
156
156
|
/**
|
|
157
157
|
* Price description in the site's main language. Refer to the *Site Properties API*
|
|
158
158
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/site-properties/properties/introduction))
|
|
@@ -167,7 +167,7 @@ interface PriceDescriptionInfo {
|
|
|
167
167
|
*/
|
|
168
168
|
translated?: string | null;
|
|
169
169
|
}
|
|
170
|
-
interface PreviewPriceRequest {
|
|
170
|
+
export interface PreviewPriceRequest {
|
|
171
171
|
/**
|
|
172
172
|
* List of line items to preview the price for.
|
|
173
173
|
* @minSize 1
|
|
@@ -175,11 +175,11 @@ interface PreviewPriceRequest {
|
|
|
175
175
|
*/
|
|
176
176
|
bookingLineItems: BookingLineItem[];
|
|
177
177
|
}
|
|
178
|
-
interface PreviewPriceResponse {
|
|
178
|
+
export interface PreviewPriceResponse {
|
|
179
179
|
/** Information about each line item's price and the estimated total price based on the line items. */
|
|
180
180
|
priceInfo?: PriceInfo;
|
|
181
181
|
}
|
|
182
|
-
interface CalculatePriceRequest {
|
|
182
|
+
export interface CalculatePriceRequest {
|
|
183
183
|
/**
|
|
184
184
|
* _Booking_
|
|
185
185
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/introduction))
|
|
@@ -188,7 +188,7 @@ interface CalculatePriceRequest {
|
|
|
188
188
|
booking: Booking;
|
|
189
189
|
}
|
|
190
190
|
/** An entity representing a scheduled appointment, class session, or course. */
|
|
191
|
-
interface Booking extends BookingParticipantsInfoOneOf {
|
|
191
|
+
export interface Booking extends BookingParticipantsInfoOneOf {
|
|
192
192
|
/**
|
|
193
193
|
* Total number of participants. Available only when the relevant service
|
|
194
194
|
* doesn't have _variants and options_
|
|
@@ -207,7 +207,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
207
207
|
* @format GUID
|
|
208
208
|
* @readonly
|
|
209
209
|
*/
|
|
210
|
-
|
|
210
|
+
id?: string | null;
|
|
211
211
|
/**
|
|
212
212
|
* An object describing the *slot*
|
|
213
213
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability))
|
|
@@ -252,7 +252,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
252
252
|
* Date and time the booking was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
253
253
|
* @readonly
|
|
254
254
|
*/
|
|
255
|
-
|
|
255
|
+
createdDate?: Date | null;
|
|
256
256
|
/** External user ID that you can provide. */
|
|
257
257
|
externalUserId?: string | null;
|
|
258
258
|
/**
|
|
@@ -284,7 +284,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
284
284
|
* Date and time the booking was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
285
285
|
* @readonly
|
|
286
286
|
*/
|
|
287
|
-
|
|
287
|
+
updatedDate?: Date | null;
|
|
288
288
|
/**
|
|
289
289
|
* Custom field data for this object.
|
|
290
290
|
* Extended fields must be configured in the app dashboard before they can be accessed with API calls.
|
|
@@ -298,7 +298,7 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
298
298
|
doubleBooked?: boolean | null;
|
|
299
299
|
}
|
|
300
300
|
/** @oneof */
|
|
301
|
-
interface BookingParticipantsInfoOneOf {
|
|
301
|
+
export interface BookingParticipantsInfoOneOf {
|
|
302
302
|
/**
|
|
303
303
|
* Total number of participants. Available only when the relevant service
|
|
304
304
|
* doesn't have _variants and options_
|
|
@@ -319,12 +319,12 @@ interface BookingParticipantsInfoOneOf {
|
|
|
319
319
|
* Multi-service booking is available if each of its bookings is available separately.
|
|
320
320
|
* For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
|
|
321
321
|
*/
|
|
322
|
-
declare enum MultiServiceBookingType {
|
|
322
|
+
export declare enum MultiServiceBookingType {
|
|
323
323
|
SEQUENTIAL_BOOKINGS = "SEQUENTIAL_BOOKINGS",
|
|
324
324
|
SEPARATE_BOOKINGS = "SEPARATE_BOOKINGS",
|
|
325
325
|
PARALLEL_BOOKINGS = "PARALLEL_BOOKINGS"
|
|
326
326
|
}
|
|
327
|
-
interface BookedEntity extends BookedEntityItemOneOf {
|
|
327
|
+
export interface BookedEntity extends BookedEntityItemOneOf {
|
|
328
328
|
/**
|
|
329
329
|
* Booked *slot*
|
|
330
330
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
|
|
@@ -356,7 +356,7 @@ interface BookedEntity extends BookedEntityItemOneOf {
|
|
|
356
356
|
tags?: string[] | null;
|
|
357
357
|
}
|
|
358
358
|
/** @oneof */
|
|
359
|
-
interface BookedEntityItemOneOf {
|
|
359
|
+
export interface BookedEntityItemOneOf {
|
|
360
360
|
/**
|
|
361
361
|
* Booked *slot*
|
|
362
362
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability)).
|
|
@@ -372,7 +372,7 @@ interface BookedEntityItemOneOf {
|
|
|
372
372
|
*/
|
|
373
373
|
schedule?: BookedSchedule;
|
|
374
374
|
}
|
|
375
|
-
interface BookedSlot {
|
|
375
|
+
export interface BookedSlot {
|
|
376
376
|
/** Session ID. */
|
|
377
377
|
sessionId?: string | null;
|
|
378
378
|
/** Service ID. */
|
|
@@ -414,12 +414,12 @@ interface BookedSlot {
|
|
|
414
414
|
/** Location where the session takes place. */
|
|
415
415
|
location?: Location;
|
|
416
416
|
}
|
|
417
|
-
interface BookedResource {
|
|
417
|
+
export interface BookedResource {
|
|
418
418
|
/**
|
|
419
419
|
* ID of the booking's primary resource.
|
|
420
420
|
* @format GUID
|
|
421
421
|
*/
|
|
422
|
-
|
|
422
|
+
id?: string;
|
|
423
423
|
/**
|
|
424
424
|
* Resource's name at the time of booking.
|
|
425
425
|
* @maxLength 40
|
|
@@ -436,13 +436,13 @@ interface BookedResource {
|
|
|
436
436
|
*/
|
|
437
437
|
scheduleId?: string | null;
|
|
438
438
|
}
|
|
439
|
-
interface Location {
|
|
439
|
+
export interface Location {
|
|
440
440
|
/**
|
|
441
441
|
* Business location ID. Available only for locations that are business locations,
|
|
442
442
|
* meaning the `location_type` is `"OWNER_BUSINESS"`.
|
|
443
443
|
* @format GUID
|
|
444
444
|
*/
|
|
445
|
-
|
|
445
|
+
id?: string | null;
|
|
446
446
|
/** Location name. */
|
|
447
447
|
name?: string | null;
|
|
448
448
|
/** The full address of this location. */
|
|
@@ -461,13 +461,13 @@ interface Location {
|
|
|
461
461
|
*/
|
|
462
462
|
locationType?: LocationType;
|
|
463
463
|
}
|
|
464
|
-
declare enum LocationType {
|
|
464
|
+
export declare enum LocationType {
|
|
465
465
|
UNDEFINED = "UNDEFINED",
|
|
466
466
|
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
467
467
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
468
468
|
CUSTOM = "CUSTOM"
|
|
469
469
|
}
|
|
470
|
-
interface BookedSchedule {
|
|
470
|
+
export interface BookedSchedule {
|
|
471
471
|
/**
|
|
472
472
|
* _Schedule ID_
|
|
473
473
|
* ([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)).
|
|
@@ -503,7 +503,7 @@ interface BookedSchedule {
|
|
|
503
503
|
*/
|
|
504
504
|
lastSessionEnd?: string | null;
|
|
505
505
|
}
|
|
506
|
-
interface ContactDetails {
|
|
506
|
+
export interface ContactDetails {
|
|
507
507
|
/**
|
|
508
508
|
* Contact ID.
|
|
509
509
|
* @format GUID
|
|
@@ -542,7 +542,7 @@ interface ContactDetails {
|
|
|
542
542
|
countryCode?: string | null;
|
|
543
543
|
}
|
|
544
544
|
/** Physical address */
|
|
545
|
-
interface Address extends AddressStreetOneOf {
|
|
545
|
+
export interface Address extends AddressStreetOneOf {
|
|
546
546
|
/** Street name, number and apartment number. */
|
|
547
547
|
streetAddress?: StreetAddress;
|
|
548
548
|
/** Main address line, usually street and number, as free text. */
|
|
@@ -572,13 +572,13 @@ interface Address extends AddressStreetOneOf {
|
|
|
572
572
|
subdivisions?: Subdivision[];
|
|
573
573
|
}
|
|
574
574
|
/** @oneof */
|
|
575
|
-
interface AddressStreetOneOf {
|
|
575
|
+
export interface AddressStreetOneOf {
|
|
576
576
|
/** Street name, number and apartment number. */
|
|
577
577
|
streetAddress?: StreetAddress;
|
|
578
578
|
/** Main address line, usually street and number, as free text. */
|
|
579
579
|
addressLine?: string | null;
|
|
580
580
|
}
|
|
581
|
-
interface StreetAddress {
|
|
581
|
+
export interface StreetAddress {
|
|
582
582
|
/** Street number. */
|
|
583
583
|
number?: string;
|
|
584
584
|
/** Street name. */
|
|
@@ -586,24 +586,24 @@ interface StreetAddress {
|
|
|
586
586
|
/** Apartment number. */
|
|
587
587
|
apt?: string;
|
|
588
588
|
}
|
|
589
|
-
interface AddressLocation {
|
|
589
|
+
export interface AddressLocation {
|
|
590
590
|
/** Address latitude. */
|
|
591
591
|
latitude?: number | null;
|
|
592
592
|
/** Address longitude. */
|
|
593
593
|
longitude?: number | null;
|
|
594
594
|
}
|
|
595
|
-
interface Subdivision {
|
|
595
|
+
export interface Subdivision {
|
|
596
596
|
/** Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
597
597
|
code?: string;
|
|
598
598
|
/** Subdivision full name. */
|
|
599
599
|
name?: string;
|
|
600
600
|
}
|
|
601
|
-
interface CustomFormField {
|
|
601
|
+
export interface CustomFormField {
|
|
602
602
|
/**
|
|
603
603
|
* ID of the form field as defined in the form.
|
|
604
604
|
* @format GUID
|
|
605
605
|
*/
|
|
606
|
-
|
|
606
|
+
id?: string;
|
|
607
607
|
/** Value that was submitted for this field. */
|
|
608
608
|
value?: string | null;
|
|
609
609
|
/**
|
|
@@ -613,7 +613,7 @@ interface CustomFormField {
|
|
|
613
613
|
label?: string | null;
|
|
614
614
|
valueType?: ValueType;
|
|
615
615
|
}
|
|
616
|
-
declare enum ValueType {
|
|
616
|
+
export declare enum ValueType {
|
|
617
617
|
/** Short text. This is the default value type. */
|
|
618
618
|
SHORT_TEXT = "SHORT_TEXT",
|
|
619
619
|
/** Long text. */
|
|
@@ -622,7 +622,7 @@ declare enum ValueType {
|
|
|
622
622
|
CHECK_BOX = "CHECK_BOX"
|
|
623
623
|
}
|
|
624
624
|
/** Booking status. */
|
|
625
|
-
declare enum BookingStatus {
|
|
625
|
+
export declare enum BookingStatus {
|
|
626
626
|
/**
|
|
627
627
|
* The booking was created, but the customer hasn't completed the related
|
|
628
628
|
* eCommerce order yet.
|
|
@@ -663,7 +663,7 @@ declare enum BookingStatus {
|
|
|
663
663
|
* Payment status.
|
|
664
664
|
* Automatically updated when using eCommerce checkout APIs.
|
|
665
665
|
*/
|
|
666
|
-
declare enum PaymentStatus {
|
|
666
|
+
export declare enum PaymentStatus {
|
|
667
667
|
/** Undefined payment status. */
|
|
668
668
|
UNDEFINED = "UNDEFINED",
|
|
669
669
|
/** The booking isn't paid. */
|
|
@@ -684,7 +684,7 @@ declare enum PaymentStatus {
|
|
|
684
684
|
* This field is set when the user selects an option during booking.
|
|
685
685
|
* If left undefined, the payment option is resolved by the service configuration on checkout.
|
|
686
686
|
*/
|
|
687
|
-
declare enum SelectedPaymentOption {
|
|
687
|
+
export declare enum SelectedPaymentOption {
|
|
688
688
|
/** Undefined payment option. */
|
|
689
689
|
UNDEFINED = "UNDEFINED",
|
|
690
690
|
/** Offline payment. */
|
|
@@ -699,7 +699,7 @@ declare enum SelectedPaymentOption {
|
|
|
699
699
|
*/
|
|
700
700
|
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
|
|
701
701
|
}
|
|
702
|
-
interface BookingSource {
|
|
702
|
+
export interface BookingSource {
|
|
703
703
|
/** Platform from which a booking was created. */
|
|
704
704
|
platform?: Platform;
|
|
705
705
|
/** Actor that created this booking. */
|
|
@@ -716,17 +716,17 @@ interface BookingSource {
|
|
|
716
716
|
*/
|
|
717
717
|
appName?: string | null;
|
|
718
718
|
}
|
|
719
|
-
declare enum Platform {
|
|
719
|
+
export declare enum Platform {
|
|
720
720
|
UNDEFINED_PLATFORM = "UNDEFINED_PLATFORM",
|
|
721
721
|
WEB = "WEB",
|
|
722
722
|
MOBILE_APP = "MOBILE_APP"
|
|
723
723
|
}
|
|
724
|
-
declare enum Actor {
|
|
724
|
+
export declare enum Actor {
|
|
725
725
|
UNDEFINED_ACTOR = "UNDEFINED_ACTOR",
|
|
726
726
|
BUSINESS = "BUSINESS",
|
|
727
727
|
CUSTOMER = "CUSTOMER"
|
|
728
728
|
}
|
|
729
|
-
interface ParticipantNotification {
|
|
729
|
+
export interface ParticipantNotification {
|
|
730
730
|
/**
|
|
731
731
|
* Whether to send the message about the changes to the customer.
|
|
732
732
|
*
|
|
@@ -736,7 +736,7 @@ interface ParticipantNotification {
|
|
|
736
736
|
/** Custom message to send to the participants about the changes to the booking. */
|
|
737
737
|
message?: string | null;
|
|
738
738
|
}
|
|
739
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
739
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
740
740
|
/**
|
|
741
741
|
* ID of a site visitor that has not logged in to the site.
|
|
742
742
|
* @format GUID
|
|
@@ -764,7 +764,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
764
764
|
contactId?: string | null;
|
|
765
765
|
}
|
|
766
766
|
/** @oneof */
|
|
767
|
-
interface IdentificationDataIdOneOf {
|
|
767
|
+
export interface IdentificationDataIdOneOf {
|
|
768
768
|
/**
|
|
769
769
|
* ID of a site visitor that has not logged in to the site.
|
|
770
770
|
* @format GUID
|
|
@@ -786,14 +786,14 @@ interface IdentificationDataIdOneOf {
|
|
|
786
786
|
*/
|
|
787
787
|
appId?: string;
|
|
788
788
|
}
|
|
789
|
-
declare enum IdentityType {
|
|
789
|
+
export declare enum IdentityType {
|
|
790
790
|
UNKNOWN = "UNKNOWN",
|
|
791
791
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
792
792
|
MEMBER = "MEMBER",
|
|
793
793
|
WIX_USER = "WIX_USER",
|
|
794
794
|
APP = "APP"
|
|
795
795
|
}
|
|
796
|
-
interface FlowControlSettings {
|
|
796
|
+
export interface FlowControlSettings {
|
|
797
797
|
/** Whether availability is checked when creating or confirming the booking. */
|
|
798
798
|
skipAvailabilityValidation?: boolean;
|
|
799
799
|
/**
|
|
@@ -815,7 +815,7 @@ interface FlowControlSettings {
|
|
|
815
815
|
*/
|
|
816
816
|
withRefund?: boolean | null;
|
|
817
817
|
}
|
|
818
|
-
interface ExtendedFields {
|
|
818
|
+
export interface ExtendedFields {
|
|
819
819
|
/**
|
|
820
820
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
821
821
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -826,7 +826,7 @@ interface ExtendedFields {
|
|
|
826
826
|
*/
|
|
827
827
|
namespaces?: Record<string, Record<string, any>>;
|
|
828
828
|
}
|
|
829
|
-
interface ParticipantChoices {
|
|
829
|
+
export interface ParticipantChoices {
|
|
830
830
|
/**
|
|
831
831
|
* Information about the booked service choices. Includes the number of participants.
|
|
832
832
|
* @minSize 1
|
|
@@ -834,7 +834,7 @@ interface ParticipantChoices {
|
|
|
834
834
|
*/
|
|
835
835
|
serviceChoices?: ServiceChoices[];
|
|
836
836
|
}
|
|
837
|
-
interface ServiceChoices {
|
|
837
|
+
export interface ServiceChoices {
|
|
838
838
|
/**
|
|
839
839
|
* Number of participants for this _variant_
|
|
840
840
|
* ([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)).
|
|
@@ -847,17 +847,17 @@ interface ServiceChoices {
|
|
|
847
847
|
*/
|
|
848
848
|
choices?: ServiceChoice[];
|
|
849
849
|
}
|
|
850
|
-
interface MultiServiceBookingInfo {
|
|
850
|
+
export interface MultiServiceBookingInfo {
|
|
851
851
|
/**
|
|
852
852
|
* Multi-service booking ID.
|
|
853
853
|
* @format GUID
|
|
854
854
|
* @readonly
|
|
855
855
|
*/
|
|
856
|
-
|
|
856
|
+
id?: string | null;
|
|
857
857
|
/** Type of the multi-service booking. */
|
|
858
858
|
type?: MultiServiceBookingType;
|
|
859
859
|
}
|
|
860
|
-
interface BookedAddOn extends BookedAddOnAddOnInfoOneOf {
|
|
860
|
+
export interface BookedAddOn extends BookedAddOnAddOnInfoOneOf {
|
|
861
861
|
/**
|
|
862
862
|
* The Add-On duration in minutes at the time of Booking.
|
|
863
863
|
* @min 1
|
|
@@ -875,7 +875,7 @@ interface BookedAddOn extends BookedAddOnAddOnInfoOneOf {
|
|
|
875
875
|
* The ID of the Add-On.
|
|
876
876
|
* @format GUID
|
|
877
877
|
*/
|
|
878
|
-
|
|
878
|
+
id?: string;
|
|
879
879
|
/**
|
|
880
880
|
* The ID of the Add-Ons group.
|
|
881
881
|
* @format GUID
|
|
@@ -883,7 +883,7 @@ interface BookedAddOn extends BookedAddOnAddOnInfoOneOf {
|
|
|
883
883
|
groupId?: string;
|
|
884
884
|
}
|
|
885
885
|
/** @oneof */
|
|
886
|
-
interface BookedAddOnAddOnInfoOneOf {
|
|
886
|
+
export interface BookedAddOnAddOnInfoOneOf {
|
|
887
887
|
/**
|
|
888
888
|
* The Add-On duration in minutes at the time of Booking.
|
|
889
889
|
* @min 1
|
|
@@ -898,9 +898,7 @@ interface BookedAddOnAddOnInfoOneOf {
|
|
|
898
898
|
*/
|
|
899
899
|
quantity?: number;
|
|
900
900
|
}
|
|
901
|
-
interface CalculatePriceResponse {
|
|
901
|
+
export interface CalculatePriceResponse {
|
|
902
902
|
/** Information about each line item's base price and the total base price. */
|
|
903
903
|
priceInfo?: PriceInfo;
|
|
904
904
|
}
|
|
905
|
-
|
|
906
|
-
export { Actor as A, type BookingLineItem as B, type CalculatePriceResponse as C, type Duration as D, type ParticipantNotification as E, type IdentificationData as F, type IdentificationDataIdOneOf as G, type FlowControlSettings as H, IdentityType as I, type ExtendedFields as J, type ParticipantChoices as K, LocationType as L, MultiServiceBookingType as M, type ServiceChoices as N, type MultiServiceBookingInfo as O, type PreviewPriceResponse as P, type BookedAddOn as Q, type BookedAddOnAddOnInfoOneOf as R, SelectedPaymentOption as S, ValueType as V, type Booking as a, BookingStatus as b, PaymentStatus as c, Platform as d, type PriceInfo as e, type PriceInfoTotalPriceOneOf as f, type ServiceChoice as g, type ServiceChoiceChoiceOneOf as h, type PriceDescriptionInfo as i, type PreviewPriceRequest as j, type CalculatePriceRequest as k, type BookingParticipantsInfoOneOf as l, type BookedEntity as m, type BookedEntityItemOneOf as n, type BookedSlot as o, type BookedResource as p, type Location as q, type BookedSchedule as r, type ContactDetails as s, type Address as t, type AddressStreetOneOf as u, type StreetAddress as v, type AddressLocation as w, type Subdivision as x, type CustomFormField as y, type BookingSource as z };
|