@wix/auto_sdk_bookings_bookings 1.0.35 → 1.0.37
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 +62 -22
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{bookings-v2-booking-bookings.universal-BREkRFfz.d.ts → index.typings.d.ts} +1496 -1
- package/build/cjs/index.typings.js +2021 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +62 -22
- package/build/es/index.mjs.map +1 -1
- package/build/es/{bookings-v2-booking-bookings.universal-BREkRFfz.d.mts → index.typings.d.mts} +1496 -1
- package/build/es/index.typings.mjs +1963 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +62 -22
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{bookings-v2-booking-bookings.universal-BREkRFfz.d.ts → index.typings.d.ts} +1496 -1
- package/build/internal/cjs/index.typings.js +2021 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +62 -22
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{bookings-v2-booking-bookings.universal-BREkRFfz.d.mts → index.typings.d.mts} +1496 -1
- package/build/internal/es/index.typings.mjs +1963 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
/** An entity representing a scheduled appointment, class session, or course. */
|
|
2
4
|
interface Booking extends BookingParticipantsInfoOneOf {
|
|
3
5
|
/**
|
|
@@ -620,6 +622,8 @@ declare enum IdentificationDataIdentityType {
|
|
|
620
622
|
WIX_USER = "WIX_USER",
|
|
621
623
|
APP = "APP"
|
|
622
624
|
}
|
|
625
|
+
/** @enumType */
|
|
626
|
+
type IdentificationDataIdentityTypeWithLiterals = IdentificationDataIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
623
627
|
interface FlowControlSettings {
|
|
624
628
|
/** Whether availability is checked when creating or confirming the booking. */
|
|
625
629
|
skipAvailabilityValidation?: boolean;
|
|
@@ -1839,6 +1843,8 @@ declare enum IdentityType {
|
|
|
1839
1843
|
WIX_USER = "WIX_USER",
|
|
1840
1844
|
APP = "APP"
|
|
1841
1845
|
}
|
|
1846
|
+
/** @enumType */
|
|
1847
|
+
type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1842
1848
|
interface BulkRescheduleBookingRequest {
|
|
1843
1849
|
/**
|
|
1844
1850
|
* Reschedule multiple bookings to multiple slots.
|
|
@@ -2962,6 +2968,546 @@ interface RemoveBookingsFromMultiServiceBookingResponse {
|
|
|
2962
2968
|
/** Single-service bookings that were removed from the multi-service booking. */
|
|
2963
2969
|
bookings?: BookingResult[];
|
|
2964
2970
|
}
|
|
2971
|
+
type ConfirmOrDeclineBookingApplicationErrors = {
|
|
2972
|
+
code?: 'INVALID_BOOKING_STATUS';
|
|
2973
|
+
description?: string;
|
|
2974
|
+
data?: Record<string, any>;
|
|
2975
|
+
} | {
|
|
2976
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
2977
|
+
description?: string;
|
|
2978
|
+
data?: Record<string, any>;
|
|
2979
|
+
};
|
|
2980
|
+
type BulkConfirmOrDeclineBookingApplicationErrors = {
|
|
2981
|
+
code?: 'DUPLICATED_BOOKINGS';
|
|
2982
|
+
description?: string;
|
|
2983
|
+
data?: Record<string, any>;
|
|
2984
|
+
};
|
|
2985
|
+
type CreateBookingApplicationErrors = {
|
|
2986
|
+
code?: 'SESSION_NOT_FOUND';
|
|
2987
|
+
description?: string;
|
|
2988
|
+
data?: Record<string, any>;
|
|
2989
|
+
} | {
|
|
2990
|
+
code?: 'SCHEDULE_NOT_FOUND';
|
|
2991
|
+
description?: string;
|
|
2992
|
+
data?: Record<string, any>;
|
|
2993
|
+
} | {
|
|
2994
|
+
code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
|
|
2995
|
+
description?: string;
|
|
2996
|
+
data?: Record<string, any>;
|
|
2997
|
+
} | {
|
|
2998
|
+
code?: 'INVALID_CHOICES';
|
|
2999
|
+
description?: string;
|
|
3000
|
+
data?: Record<string, any>;
|
|
3001
|
+
} | {
|
|
3002
|
+
code?: 'VALIDATION_FAILURE';
|
|
3003
|
+
description?: string;
|
|
3004
|
+
data?: Record<string, any>;
|
|
3005
|
+
} | {
|
|
3006
|
+
code?: 'SESSION_CAPACITY_EXCEEDED';
|
|
3007
|
+
description?: string;
|
|
3008
|
+
data?: Record<string, any>;
|
|
3009
|
+
} | {
|
|
3010
|
+
code?: 'SCHEDULE_CAPACITY_EXCEEDED';
|
|
3011
|
+
description?: string;
|
|
3012
|
+
data?: Record<string, any>;
|
|
3013
|
+
} | {
|
|
3014
|
+
code?: 'SLOT_NOT_AVAILABLE';
|
|
3015
|
+
description?: string;
|
|
3016
|
+
data?: Record<string, any>;
|
|
3017
|
+
} | {
|
|
3018
|
+
code?: 'FAILED_VALIDATING_AVAILABILITY';
|
|
3019
|
+
description?: string;
|
|
3020
|
+
data?: Record<string, any>;
|
|
3021
|
+
} | {
|
|
3022
|
+
code?: 'BOOKING_POLICY_VIOLATION';
|
|
3023
|
+
description?: string;
|
|
3024
|
+
data?: Record<string, any>;
|
|
3025
|
+
} | {
|
|
3026
|
+
code?: 'UNAUTHORIZED_OPERATION';
|
|
3027
|
+
description?: string;
|
|
3028
|
+
data?: Record<string, any>;
|
|
3029
|
+
} | {
|
|
3030
|
+
code?: 'INVALID_SERVICE_CHOICES';
|
|
3031
|
+
description?: string;
|
|
3032
|
+
data?: Record<string, any>;
|
|
3033
|
+
} | {
|
|
3034
|
+
code?: 'INVALID_FLOW_SELECTED_RESOURCES';
|
|
3035
|
+
description?: string;
|
|
3036
|
+
data?: Record<string, any>;
|
|
3037
|
+
} | {
|
|
3038
|
+
code?: 'CAN_NOT_CREATE_BOOKING_WITH_MULTI_SERVICE_BOOKING_INFO';
|
|
3039
|
+
description?: string;
|
|
3040
|
+
data?: Record<string, any>;
|
|
3041
|
+
} | {
|
|
3042
|
+
code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
|
|
3043
|
+
description?: string;
|
|
3044
|
+
data?: Record<string, any>;
|
|
3045
|
+
} | {
|
|
3046
|
+
code?: 'INVALID_DATE_FORMAT';
|
|
3047
|
+
description?: string;
|
|
3048
|
+
data?: Record<string, any>;
|
|
3049
|
+
} | {
|
|
3050
|
+
code?: 'INVALID_TIME_ZONE';
|
|
3051
|
+
description?: string;
|
|
3052
|
+
data?: Record<string, any>;
|
|
3053
|
+
} | {
|
|
3054
|
+
code?: 'CONTACT_DETAILS_CONFLICT';
|
|
3055
|
+
description?: string;
|
|
3056
|
+
data?: Record<string, any>;
|
|
3057
|
+
};
|
|
3058
|
+
type BulkCreateBookingApplicationErrors = {
|
|
3059
|
+
code?: 'SESSION_NOT_FOUND';
|
|
3060
|
+
description?: string;
|
|
3061
|
+
data?: Record<string, any>;
|
|
3062
|
+
} | {
|
|
3063
|
+
code?: 'SCHEDULE_NOT_FOUND';
|
|
3064
|
+
description?: string;
|
|
3065
|
+
data?: Record<string, any>;
|
|
3066
|
+
} | {
|
|
3067
|
+
code?: 'RESOURCE_NOT_FOUND';
|
|
3068
|
+
description?: string;
|
|
3069
|
+
data?: Record<string, any>;
|
|
3070
|
+
} | {
|
|
3071
|
+
code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
|
|
3072
|
+
description?: string;
|
|
3073
|
+
data?: Record<string, any>;
|
|
3074
|
+
} | {
|
|
3075
|
+
code?: 'INVALID_CHOICES';
|
|
3076
|
+
description?: string;
|
|
3077
|
+
data?: Record<string, any>;
|
|
3078
|
+
} | {
|
|
3079
|
+
code?: 'VALIDATION_FAILURE';
|
|
3080
|
+
description?: string;
|
|
3081
|
+
data?: Record<string, any>;
|
|
3082
|
+
} | {
|
|
3083
|
+
code?: 'SLOT_NOT_AVAILABLE';
|
|
3084
|
+
description?: string;
|
|
3085
|
+
data?: Record<string, any>;
|
|
3086
|
+
} | {
|
|
3087
|
+
code?: 'EMPTY_FORM_INFO';
|
|
3088
|
+
description?: string;
|
|
3089
|
+
data?: Record<string, any>;
|
|
3090
|
+
} | {
|
|
3091
|
+
code?: 'UNAUTHORIZED_OPERATION';
|
|
3092
|
+
description?: string;
|
|
3093
|
+
data?: Record<string, any>;
|
|
3094
|
+
} | {
|
|
3095
|
+
code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
|
|
3096
|
+
description?: string;
|
|
3097
|
+
data?: Record<string, any>;
|
|
3098
|
+
};
|
|
3099
|
+
type RescheduleBookingApplicationErrors = {
|
|
3100
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3101
|
+
description?: string;
|
|
3102
|
+
data?: Record<string, any>;
|
|
3103
|
+
} | {
|
|
3104
|
+
code?: 'BOOKING_POLICY_VIOLATION';
|
|
3105
|
+
description?: string;
|
|
3106
|
+
data?: Record<string, any>;
|
|
3107
|
+
} | {
|
|
3108
|
+
code?: 'UNAUTHORIZED_OPERATION';
|
|
3109
|
+
description?: string;
|
|
3110
|
+
data?: Record<string, any>;
|
|
3111
|
+
} | {
|
|
3112
|
+
code?: 'SESSION_CAPACITY_EXCEEDED';
|
|
3113
|
+
description?: string;
|
|
3114
|
+
data?: Record<string, any>;
|
|
3115
|
+
} | {
|
|
3116
|
+
code?: 'SCHEDULE_CAPACITY_EXCEEDED';
|
|
3117
|
+
description?: string;
|
|
3118
|
+
data?: Record<string, any>;
|
|
3119
|
+
} | {
|
|
3120
|
+
code?: 'SLOT_NOT_AVAILABLE';
|
|
3121
|
+
description?: string;
|
|
3122
|
+
data?: Record<string, any>;
|
|
3123
|
+
} | {
|
|
3124
|
+
code?: 'VALIDATION_FAILURE';
|
|
3125
|
+
description?: string;
|
|
3126
|
+
data?: Record<string, any>;
|
|
3127
|
+
} | {
|
|
3128
|
+
code?: 'EMPTY_FORM_INFO';
|
|
3129
|
+
description?: string;
|
|
3130
|
+
data?: Record<string, any>;
|
|
3131
|
+
} | {
|
|
3132
|
+
code?: 'SESSION_NOT_FOUND';
|
|
3133
|
+
description?: string;
|
|
3134
|
+
data?: Record<string, any>;
|
|
3135
|
+
} | {
|
|
3136
|
+
code?: 'SCHEDULE_NOT_FOUND';
|
|
3137
|
+
description?: string;
|
|
3138
|
+
data?: Record<string, any>;
|
|
3139
|
+
} | {
|
|
3140
|
+
code?: 'RESOURCE_NOT_FOUND';
|
|
3141
|
+
description?: string;
|
|
3142
|
+
data?: Record<string, any>;
|
|
3143
|
+
} | {
|
|
3144
|
+
code?: 'FAILED_VALIDATING_AVAILABILITY';
|
|
3145
|
+
description?: string;
|
|
3146
|
+
data?: Record<string, any>;
|
|
3147
|
+
} | {
|
|
3148
|
+
code?: 'FAILED_RESOLVING_SESSION';
|
|
3149
|
+
description?: string;
|
|
3150
|
+
data?: Record<string, any>;
|
|
3151
|
+
} | {
|
|
3152
|
+
code?: 'FAILED_RESOLVING_SCHEDULE';
|
|
3153
|
+
description?: string;
|
|
3154
|
+
data?: Record<string, any>;
|
|
3155
|
+
} | {
|
|
3156
|
+
code?: 'INVALID_SERVICE_CHOICES';
|
|
3157
|
+
description?: string;
|
|
3158
|
+
data?: Record<string, any>;
|
|
3159
|
+
} | {
|
|
3160
|
+
code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
|
|
3161
|
+
description?: string;
|
|
3162
|
+
data?: Record<string, any>;
|
|
3163
|
+
} | {
|
|
3164
|
+
code?: 'ADD_ON_NOT_FOUND';
|
|
3165
|
+
description?: string;
|
|
3166
|
+
data?: Record<string, any>;
|
|
3167
|
+
} | {
|
|
3168
|
+
code?: 'ADD_ON_CHANGES_NOT_ALLOWED';
|
|
3169
|
+
description?: string;
|
|
3170
|
+
data?: Record<string, any>;
|
|
3171
|
+
} | {
|
|
3172
|
+
code?: 'ADD_ON_GROUP_NOT_FOUND';
|
|
3173
|
+
description?: string;
|
|
3174
|
+
data?: Record<string, any>;
|
|
3175
|
+
} | {
|
|
3176
|
+
code?: 'PRICE_CHANGE_NOT_ALLOWED';
|
|
3177
|
+
description?: string;
|
|
3178
|
+
data?: Record<string, any>;
|
|
3179
|
+
};
|
|
3180
|
+
type ConfirmBookingApplicationErrors = {
|
|
3181
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3182
|
+
description?: string;
|
|
3183
|
+
data?: Record<string, any>;
|
|
3184
|
+
} | {
|
|
3185
|
+
code?: 'FAILED_CONFIRMING_NON_PENDING_BOOKING';
|
|
3186
|
+
description?: string;
|
|
3187
|
+
data?: Record<string, any>;
|
|
3188
|
+
} | {
|
|
3189
|
+
code?: 'INVALID_BOOKING_STATUS';
|
|
3190
|
+
description?: string;
|
|
3191
|
+
data?: Record<string, any>;
|
|
3192
|
+
} | {
|
|
3193
|
+
code?: 'NO_OPEN_SPOTS';
|
|
3194
|
+
description?: string;
|
|
3195
|
+
data?: Record<string, any>;
|
|
3196
|
+
};
|
|
3197
|
+
type SetBookingSubmissionIdApplicationErrors = {
|
|
3198
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3199
|
+
description?: string;
|
|
3200
|
+
data?: Record<string, any>;
|
|
3201
|
+
};
|
|
3202
|
+
type UpdateExtendedFieldsApplicationErrors = {
|
|
3203
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3204
|
+
description?: string;
|
|
3205
|
+
data?: Record<string, any>;
|
|
3206
|
+
};
|
|
3207
|
+
type DeclineBookingApplicationErrors = {
|
|
3208
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3209
|
+
description?: string;
|
|
3210
|
+
data?: Record<string, any>;
|
|
3211
|
+
} | {
|
|
3212
|
+
code?: 'FAILED_DECLINE_NON_PENDING_BOOKING';
|
|
3213
|
+
description?: string;
|
|
3214
|
+
data?: Record<string, any>;
|
|
3215
|
+
} | {
|
|
3216
|
+
code?: 'INVALID_BOOKING_STATUS';
|
|
3217
|
+
description?: string;
|
|
3218
|
+
data?: Record<string, any>;
|
|
3219
|
+
};
|
|
3220
|
+
type CancelBookingApplicationErrors = {
|
|
3221
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3222
|
+
description?: string;
|
|
3223
|
+
data?: Record<string, any>;
|
|
3224
|
+
} | {
|
|
3225
|
+
code?: 'BOOKING_POLICY_VIOLATION';
|
|
3226
|
+
description?: string;
|
|
3227
|
+
data?: Record<string, any>;
|
|
3228
|
+
} | {
|
|
3229
|
+
code?: 'VALIDATION_FAILURE';
|
|
3230
|
+
description?: string;
|
|
3231
|
+
data?: Record<string, any>;
|
|
3232
|
+
} | {
|
|
3233
|
+
code?: 'FEATURE_LIMIT_EXCEEDED';
|
|
3234
|
+
description?: string;
|
|
3235
|
+
data?: Record<string, any>;
|
|
3236
|
+
} | {
|
|
3237
|
+
code?: 'REFUND_NOT_ALLOWED';
|
|
3238
|
+
description?: string;
|
|
3239
|
+
data?: Record<string, any>;
|
|
3240
|
+
} | {
|
|
3241
|
+
code?: 'NOT_ALLOWED_TO_UPDATE_BOOKING_IN_MULTI_SERVICE_BOOKING';
|
|
3242
|
+
description?: string;
|
|
3243
|
+
data?: Record<string, any>;
|
|
3244
|
+
};
|
|
3245
|
+
type UpdateNumberOfParticipantsApplicationErrors = {
|
|
3246
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3247
|
+
description?: string;
|
|
3248
|
+
data?: Record<string, any>;
|
|
3249
|
+
};
|
|
3250
|
+
type CreateMultiServiceBookingApplicationErrors = {
|
|
3251
|
+
code?: 'VALIDATION_FAILURE';
|
|
3252
|
+
description?: string;
|
|
3253
|
+
data?: Record<string, any>;
|
|
3254
|
+
} | {
|
|
3255
|
+
code?: 'SCHEDULE_NOT_FOUND';
|
|
3256
|
+
description?: string;
|
|
3257
|
+
data?: Record<string, any>;
|
|
3258
|
+
} | {
|
|
3259
|
+
code?: 'RESOURCE_NOT_FOUND';
|
|
3260
|
+
description?: string;
|
|
3261
|
+
data?: Record<string, any>;
|
|
3262
|
+
} | {
|
|
3263
|
+
code?: 'EMPTY_FORM_INFO';
|
|
3264
|
+
description?: string;
|
|
3265
|
+
data?: Record<string, any>;
|
|
3266
|
+
} | {
|
|
3267
|
+
code?: 'FAILED_RESOLVING_CUSTOM_CHOICES';
|
|
3268
|
+
description?: string;
|
|
3269
|
+
data?: Record<string, any>;
|
|
3270
|
+
} | {
|
|
3271
|
+
code?: 'INVALID_CHOICES';
|
|
3272
|
+
description?: string;
|
|
3273
|
+
data?: Record<string, any>;
|
|
3274
|
+
} | {
|
|
3275
|
+
code?: 'SLOT_NOT_AVAILABLE';
|
|
3276
|
+
description?: string;
|
|
3277
|
+
data?: Record<string, any>;
|
|
3278
|
+
} | {
|
|
3279
|
+
code?: 'UNAUTHORIZED_OPERATION';
|
|
3280
|
+
description?: string;
|
|
3281
|
+
data?: Record<string, any>;
|
|
3282
|
+
} | {
|
|
3283
|
+
code?: 'CAN_NOT_SKIP_AVAILABILITY_VALIDATION_IF_RESOURCE_NOT_PROVIDED';
|
|
3284
|
+
description?: string;
|
|
3285
|
+
data?: Record<string, any>;
|
|
3286
|
+
};
|
|
3287
|
+
type RescheduleMultiServiceBookingApplicationErrors = {
|
|
3288
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3289
|
+
description?: string;
|
|
3290
|
+
data?: Record<string, any>;
|
|
3291
|
+
} | {
|
|
3292
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3293
|
+
description?: string;
|
|
3294
|
+
data?: Record<string, any>;
|
|
3295
|
+
} | {
|
|
3296
|
+
code?: 'REVISION_MISSING';
|
|
3297
|
+
description?: string;
|
|
3298
|
+
data?: Record<string, any>;
|
|
3299
|
+
} | {
|
|
3300
|
+
code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
|
|
3301
|
+
description?: string;
|
|
3302
|
+
data?: Record<string, any>;
|
|
3303
|
+
} | {
|
|
3304
|
+
code?: 'DUPLICATE_BOOKING_INFO';
|
|
3305
|
+
description?: string;
|
|
3306
|
+
data?: Record<string, any>;
|
|
3307
|
+
} | {
|
|
3308
|
+
code?: 'SOME_BOOKINGS_UPDATES_FAILED';
|
|
3309
|
+
description?: string;
|
|
3310
|
+
data?: Record<string, any>;
|
|
3311
|
+
} | {
|
|
3312
|
+
code?: 'BOOKING_REVISION_MISMATCH';
|
|
3313
|
+
description?: string;
|
|
3314
|
+
data?: Record<string, any>;
|
|
3315
|
+
} | {
|
|
3316
|
+
code?: 'NO_OPEN_SPOTS';
|
|
3317
|
+
description?: string;
|
|
3318
|
+
data?: Record<string, any>;
|
|
3319
|
+
} | {
|
|
3320
|
+
code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
|
|
3321
|
+
description?: string;
|
|
3322
|
+
data?: Record<string, any>;
|
|
3323
|
+
};
|
|
3324
|
+
type GetMultiServiceBookingAvailabilityApplicationErrors = {
|
|
3325
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3326
|
+
description?: string;
|
|
3327
|
+
data?: Record<string, any>;
|
|
3328
|
+
};
|
|
3329
|
+
type CancelMultiServiceBookingApplicationErrors = {
|
|
3330
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3331
|
+
description?: string;
|
|
3332
|
+
data?: Record<string, any>;
|
|
3333
|
+
} | {
|
|
3334
|
+
code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
|
|
3335
|
+
description?: string;
|
|
3336
|
+
data?: Record<string, any>;
|
|
3337
|
+
} | {
|
|
3338
|
+
code?: 'ALL_BOOKINGS_ARE_ALREADY_CANCELED';
|
|
3339
|
+
description?: string;
|
|
3340
|
+
data?: Record<string, any>;
|
|
3341
|
+
} | {
|
|
3342
|
+
code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
|
|
3343
|
+
description?: string;
|
|
3344
|
+
data?: Record<string, any>;
|
|
3345
|
+
};
|
|
3346
|
+
type MarkMultiServiceBookingAsPendingApplicationErrors = {
|
|
3347
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3348
|
+
description?: string;
|
|
3349
|
+
data?: Record<string, any>;
|
|
3350
|
+
} | {
|
|
3351
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3352
|
+
description?: string;
|
|
3353
|
+
data?: Record<string, any>;
|
|
3354
|
+
} | {
|
|
3355
|
+
code?: 'REVISION_MISSING';
|
|
3356
|
+
description?: string;
|
|
3357
|
+
data?: Record<string, any>;
|
|
3358
|
+
} | {
|
|
3359
|
+
code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
|
|
3360
|
+
description?: string;
|
|
3361
|
+
data?: Record<string, any>;
|
|
3362
|
+
} | {
|
|
3363
|
+
code?: 'DUPLICATE_BOOKING_INFO';
|
|
3364
|
+
description?: string;
|
|
3365
|
+
data?: Record<string, any>;
|
|
3366
|
+
} | {
|
|
3367
|
+
code?: 'SOME_BOOKINGS_UPDATES_FAILED';
|
|
3368
|
+
description?: string;
|
|
3369
|
+
data?: Record<string, any>;
|
|
3370
|
+
} | {
|
|
3371
|
+
code?: 'BOOKING_REVISION_MISMATCH';
|
|
3372
|
+
description?: string;
|
|
3373
|
+
data?: Record<string, any>;
|
|
3374
|
+
} | {
|
|
3375
|
+
code?: 'NO_OPEN_SPOTS';
|
|
3376
|
+
description?: string;
|
|
3377
|
+
data?: Record<string, any>;
|
|
3378
|
+
} | {
|
|
3379
|
+
code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
|
|
3380
|
+
description?: string;
|
|
3381
|
+
data?: Record<string, any>;
|
|
3382
|
+
};
|
|
3383
|
+
type ConfirmMultiServiceBookingApplicationErrors = {
|
|
3384
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3385
|
+
description?: string;
|
|
3386
|
+
data?: Record<string, any>;
|
|
3387
|
+
} | {
|
|
3388
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3389
|
+
description?: string;
|
|
3390
|
+
data?: Record<string, any>;
|
|
3391
|
+
} | {
|
|
3392
|
+
code?: 'REVISION_MISSING';
|
|
3393
|
+
description?: string;
|
|
3394
|
+
data?: Record<string, any>;
|
|
3395
|
+
} | {
|
|
3396
|
+
code?: 'INVALID_BOOKING_STATUS';
|
|
3397
|
+
description?: string;
|
|
3398
|
+
data?: Record<string, any>;
|
|
3399
|
+
} | {
|
|
3400
|
+
code?: 'ALL_BOOKINGS_ARE_ALREADY_CONFIRMED';
|
|
3401
|
+
description?: string;
|
|
3402
|
+
data?: Record<string, any>;
|
|
3403
|
+
} | {
|
|
3404
|
+
code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
|
|
3405
|
+
description?: string;
|
|
3406
|
+
data?: Record<string, any>;
|
|
3407
|
+
} | {
|
|
3408
|
+
code?: 'DUPLICATE_BOOKING_INFO';
|
|
3409
|
+
description?: string;
|
|
3410
|
+
data?: Record<string, any>;
|
|
3411
|
+
} | {
|
|
3412
|
+
code?: 'SOME_BOOKINGS_UPDATES_FAILED';
|
|
3413
|
+
description?: string;
|
|
3414
|
+
data?: Record<string, any>;
|
|
3415
|
+
} | {
|
|
3416
|
+
code?: 'BOOKING_REVISION_MISMATCH';
|
|
3417
|
+
description?: string;
|
|
3418
|
+
data?: Record<string, any>;
|
|
3419
|
+
} | {
|
|
3420
|
+
code?: 'NO_OPEN_SPOTS';
|
|
3421
|
+
description?: string;
|
|
3422
|
+
data?: Record<string, any>;
|
|
3423
|
+
} | {
|
|
3424
|
+
code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
|
|
3425
|
+
description?: string;
|
|
3426
|
+
data?: Record<string, any>;
|
|
3427
|
+
} | {
|
|
3428
|
+
code?: 'NOT_ALL_BOOKINGS_HAVE_START_AND_END_DATE';
|
|
3429
|
+
description?: string;
|
|
3430
|
+
data?: Record<string, any>;
|
|
3431
|
+
};
|
|
3432
|
+
type DeclineMultiServiceBookingApplicationErrors = {
|
|
3433
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3434
|
+
description?: string;
|
|
3435
|
+
data?: Record<string, any>;
|
|
3436
|
+
} | {
|
|
3437
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3438
|
+
description?: string;
|
|
3439
|
+
data?: Record<string, any>;
|
|
3440
|
+
} | {
|
|
3441
|
+
code?: 'REVISION_MISSING';
|
|
3442
|
+
description?: string;
|
|
3443
|
+
data?: Record<string, any>;
|
|
3444
|
+
} | {
|
|
3445
|
+
code?: 'INVALID_BOOKING_STATUS';
|
|
3446
|
+
description?: string;
|
|
3447
|
+
data?: Record<string, any>;
|
|
3448
|
+
} | {
|
|
3449
|
+
code?: 'ALL_BOOKINGS_ARE_ALREADY_DECLINED';
|
|
3450
|
+
description?: string;
|
|
3451
|
+
data?: Record<string, any>;
|
|
3452
|
+
} | {
|
|
3453
|
+
code?: 'NOT_ALL_BOOKINGS_WERE_SENT';
|
|
3454
|
+
description?: string;
|
|
3455
|
+
data?: Record<string, any>;
|
|
3456
|
+
} | {
|
|
3457
|
+
code?: 'DUPLICATE_BOOKING_INFO';
|
|
3458
|
+
description?: string;
|
|
3459
|
+
data?: Record<string, any>;
|
|
3460
|
+
} | {
|
|
3461
|
+
code?: 'SOME_BOOKINGS_UPDATES_FAILED';
|
|
3462
|
+
description?: string;
|
|
3463
|
+
data?: Record<string, any>;
|
|
3464
|
+
} | {
|
|
3465
|
+
code?: 'BOOKING_REVISION_MISMATCH';
|
|
3466
|
+
description?: string;
|
|
3467
|
+
data?: Record<string, any>;
|
|
3468
|
+
} | {
|
|
3469
|
+
code?: 'MULTI_SERVICE_BOOKING_INCLUDES_MULTIPLE_STAFF_MEMBERS';
|
|
3470
|
+
description?: string;
|
|
3471
|
+
data?: Record<string, any>;
|
|
3472
|
+
};
|
|
3473
|
+
type AddBookingsToMultiServiceBookingApplicationErrors = {
|
|
3474
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3475
|
+
description?: string;
|
|
3476
|
+
data?: Record<string, any>;
|
|
3477
|
+
} | {
|
|
3478
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3479
|
+
description?: string;
|
|
3480
|
+
data?: Record<string, any>;
|
|
3481
|
+
} | {
|
|
3482
|
+
code?: 'BOOKING_REVISION_MISMATCH';
|
|
3483
|
+
description?: string;
|
|
3484
|
+
data?: Record<string, any>;
|
|
3485
|
+
} | {
|
|
3486
|
+
code?: 'BOOKING_ALREADY_PART_OF_ANOTHER_MULTI_SERVICE_BOOKING';
|
|
3487
|
+
description?: string;
|
|
3488
|
+
data?: Record<string, any>;
|
|
3489
|
+
} | {
|
|
3490
|
+
code?: 'MULTI_SERVICE_BOOKING_ALREADY_INCLUDES_BOOKING';
|
|
3491
|
+
description?: string;
|
|
3492
|
+
data?: Record<string, any>;
|
|
3493
|
+
} | {
|
|
3494
|
+
code?: 'BOOKING_TO_ADD_STATUS_NOT_VALID';
|
|
3495
|
+
description?: string;
|
|
3496
|
+
data?: Record<string, any>;
|
|
3497
|
+
};
|
|
3498
|
+
type RemoveBookingsFromMultiServiceBookingApplicationErrors = {
|
|
3499
|
+
code?: 'MULTI_SERVICE_BOOKING_NOT_FOUND';
|
|
3500
|
+
description?: string;
|
|
3501
|
+
data?: Record<string, any>;
|
|
3502
|
+
} | {
|
|
3503
|
+
code?: 'BOOKING_NOT_FOUND';
|
|
3504
|
+
description?: string;
|
|
3505
|
+
data?: Record<string, any>;
|
|
3506
|
+
} | {
|
|
3507
|
+
code?: 'BOOKING_REVISION_MISMATCH';
|
|
3508
|
+
description?: string;
|
|
3509
|
+
data?: Record<string, any>;
|
|
3510
|
+
};
|
|
2965
3511
|
interface BaseEventMetadata {
|
|
2966
3512
|
/**
|
|
2967
3513
|
* App instance ID.
|
|
@@ -3010,30 +3556,235 @@ interface BookingCanceledEnvelope {
|
|
|
3010
3556
|
data: BookingCanceled;
|
|
3011
3557
|
metadata: EventMetadata;
|
|
3012
3558
|
}
|
|
3559
|
+
/**
|
|
3560
|
+
* Triggered when a booking is canceled.
|
|
3561
|
+
* @permissionScope Manage Bookings
|
|
3562
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3563
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3564
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3565
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3566
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3567
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3568
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3569
|
+
* @permissionScope Read bookings calendar - including participants
|
|
3570
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3571
|
+
* @permissionId BOOKINGS.BOOKING_READ
|
|
3572
|
+
* @webhook
|
|
3573
|
+
* @eventType wix.bookings.v2.booking_canceled
|
|
3574
|
+
* @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
|
|
3575
|
+
* @slug canceled
|
|
3576
|
+
*/
|
|
3577
|
+
declare function onBookingCanceled(handler: (event: BookingCanceledEnvelope) => void | Promise<void>): void;
|
|
3013
3578
|
interface BookingConfirmedEnvelope {
|
|
3014
3579
|
data: BookingConfirmed;
|
|
3015
3580
|
metadata: EventMetadata;
|
|
3016
3581
|
}
|
|
3582
|
+
/**
|
|
3583
|
+
* Triggered when a booking is confirmed.
|
|
3584
|
+
* @permissionScope Manage Bookings
|
|
3585
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3586
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3587
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3588
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3589
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3590
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3591
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3592
|
+
* @permissionScope Read bookings calendar - including participants
|
|
3593
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3594
|
+
* @permissionId BOOKINGS.BOOKING_READ
|
|
3595
|
+
* @webhook
|
|
3596
|
+
* @eventType wix.bookings.v2.booking_confirmed
|
|
3597
|
+
* @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
|
|
3598
|
+
* @slug confirmed
|
|
3599
|
+
*/
|
|
3600
|
+
declare function onBookingConfirmed(handler: (event: BookingConfirmedEnvelope) => void | Promise<void>): void;
|
|
3017
3601
|
interface BookingCreatedEnvelope {
|
|
3018
3602
|
entity: Booking;
|
|
3019
3603
|
metadata: EventMetadata;
|
|
3020
3604
|
}
|
|
3605
|
+
/**
|
|
3606
|
+
* Triggered when a booking is created.
|
|
3607
|
+
* @permissionScope Manage Bookings
|
|
3608
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3609
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3610
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3611
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3612
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3613
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3614
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3615
|
+
* @permissionScope Manage Bookings
|
|
3616
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3617
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3618
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3619
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3620
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3621
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3622
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3623
|
+
* @permissionScope Read bookings calendar - including participants
|
|
3624
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3625
|
+
* @permissionId BOOKINGS.READ_BOOKINGS
|
|
3626
|
+
* @permissionId BOOKINGS.BOOKING_READ
|
|
3627
|
+
* @webhook
|
|
3628
|
+
* @eventType wix.bookings.v2.booking_created
|
|
3629
|
+
* @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
|
|
3630
|
+
* @slug created
|
|
3631
|
+
*/
|
|
3632
|
+
declare function onBookingCreated(handler: (event: BookingCreatedEnvelope) => void | Promise<void>): void;
|
|
3021
3633
|
interface BookingDeclinedEnvelope {
|
|
3022
3634
|
data: BookingDeclined;
|
|
3023
3635
|
metadata: EventMetadata;
|
|
3024
3636
|
}
|
|
3637
|
+
/**
|
|
3638
|
+
* Triggered when a booking is declined.
|
|
3639
|
+
* @permissionScope Manage Bookings
|
|
3640
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3641
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3642
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3643
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3644
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3645
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3646
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3647
|
+
* @permissionScope Read bookings calendar - including participants
|
|
3648
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3649
|
+
* @permissionId BOOKINGS.BOOKING_READ
|
|
3650
|
+
* @webhook
|
|
3651
|
+
* @eventType wix.bookings.v2.booking_declined
|
|
3652
|
+
* @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
|
|
3653
|
+
* @slug declined
|
|
3654
|
+
*/
|
|
3655
|
+
declare function onBookingDeclined(handler: (event: BookingDeclinedEnvelope) => void | Promise<void>): void;
|
|
3025
3656
|
interface BookingNumberOfParticipantsUpdatedEnvelope {
|
|
3026
3657
|
data: NumberOfParticipantsUpdated;
|
|
3027
3658
|
metadata: EventMetadata;
|
|
3028
3659
|
}
|
|
3660
|
+
/**
|
|
3661
|
+
* Triggered when the number of participants is updated.
|
|
3662
|
+
* @permissionScope Manage Bookings
|
|
3663
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3664
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3665
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3666
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3667
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3668
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3669
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3670
|
+
* @permissionScope Read bookings calendar - including participants
|
|
3671
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3672
|
+
* @permissionId BOOKINGS.BOOKING_READ
|
|
3673
|
+
* @webhook
|
|
3674
|
+
* @eventType wix.bookings.v2.booking_number_of_participants_updated
|
|
3675
|
+
* @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
|
|
3676
|
+
* @slug number_of_participants_updated
|
|
3677
|
+
*/
|
|
3678
|
+
declare function onBookingNumberOfParticipantsUpdated(handler: (event: BookingNumberOfParticipantsUpdatedEnvelope) => void | Promise<void>): void;
|
|
3029
3679
|
interface BookingRescheduledEnvelope {
|
|
3030
3680
|
data: BookingRescheduled;
|
|
3031
3681
|
metadata: EventMetadata;
|
|
3032
3682
|
}
|
|
3683
|
+
/**
|
|
3684
|
+
* Triggered when a booking is rescheduled.
|
|
3685
|
+
* @permissionScope Manage Bookings
|
|
3686
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3687
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3688
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3689
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3690
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3691
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3692
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3693
|
+
* @permissionScope Read bookings calendar - including participants
|
|
3694
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3695
|
+
* @permissionId BOOKINGS.BOOKING_READ
|
|
3696
|
+
* @webhook
|
|
3697
|
+
* @eventType wix.bookings.v2.booking_rescheduled
|
|
3698
|
+
* @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
|
|
3699
|
+
* @slug rescheduled
|
|
3700
|
+
*/
|
|
3701
|
+
declare function onBookingRescheduled(handler: (event: BookingRescheduledEnvelope) => void | Promise<void>): void;
|
|
3033
3702
|
interface BookingUpdatedEnvelope {
|
|
3034
3703
|
entity: Booking;
|
|
3035
3704
|
metadata: EventMetadata;
|
|
3036
3705
|
}
|
|
3706
|
+
/**
|
|
3707
|
+
* Triggered when a booked schedule is updated.
|
|
3708
|
+
* @permissionScope Manage Bookings
|
|
3709
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3710
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3711
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3712
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3713
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3714
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3715
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3716
|
+
* @permissionScope Manage Bookings
|
|
3717
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3718
|
+
* @permissionScope Read Bookings - Including Participants
|
|
3719
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
3720
|
+
* @permissionScope Read Bookings - all read permissions
|
|
3721
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3722
|
+
* @permissionScope Manage Bookings - all permissions
|
|
3723
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3724
|
+
* @permissionScope Read bookings calendar - including participants
|
|
3725
|
+
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3726
|
+
* @permissionId BOOKINGS.READ_BOOKINGS
|
|
3727
|
+
* @permissionId BOOKINGS.BOOKING_READ
|
|
3728
|
+
* @webhook
|
|
3729
|
+
* @eventType wix.bookings.v2.booking_updated
|
|
3730
|
+
* @serviceIdentifier com.wixpress.bookings.bookings.v2.Bookings
|
|
3731
|
+
* @slug updated
|
|
3732
|
+
*/
|
|
3733
|
+
declare function onBookingUpdated(handler: (event: BookingUpdatedEnvelope) => void | Promise<void>): void;
|
|
3734
|
+
type BookingNonNullablePaths = `totalParticipants` | `participantsChoices.serviceChoices` | `bookedEntity.slot.serviceId` | `bookedEntity.slot.scheduleId` | `bookedEntity.slot.resource._id` | `bookedEntity.slot.location.locationType` | `bookedEntity.schedule.scheduleId` | `bookedEntity.tags` | `contactDetails.fullAddress.streetAddress.number` | `contactDetails.fullAddress.streetAddress.name` | `contactDetails.fullAddress.streetAddress.apt` | `contactDetails.fullAddress.subdivisions` | `contactDetails.fullAddress.subdivisions.${number}.code` | `contactDetails.fullAddress.subdivisions.${number}.name` | `additionalFields` | `additionalFields.${number}._id` | `additionalFields.${number}.valueType` | `status` | `paymentStatus` | `selectedPaymentOption` | `createdBy.anonymousVisitorId` | `createdBy.memberId` | `createdBy.wixUserId` | `createdBy.appId`;
|
|
3735
|
+
/**
|
|
3736
|
+
* Updates the booking `status` to `CONFIRMED`, `PENDING`, or `DECLINED` based
|
|
3737
|
+
* on the `paymentStatus` you provide, double booking conflicts, and whether
|
|
3738
|
+
* the service requires business approval.
|
|
3739
|
+
*
|
|
3740
|
+
* ## eCommerce checkout restriction
|
|
3741
|
+
*
|
|
3742
|
+
* Call this method only when using a custom checkout page. Don't
|
|
3743
|
+
* call it when using a *Wix eCommerce checkout*
|
|
3744
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
3745
|
+
* In such cases, Wix automatically updates the booking status based on
|
|
3746
|
+
* the `paymentStatus` of the corresponding *Wix eCommerce order*
|
|
3747
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
3748
|
+
*
|
|
3749
|
+
* ## New booking status
|
|
3750
|
+
*
|
|
3751
|
+
* The booking `status` is set to `DECLINED` if both of the following conditions
|
|
3752
|
+
* are met:
|
|
3753
|
+
* + You provide `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT` as payment status.
|
|
3754
|
+
* + There is a double booking conflict.
|
|
3755
|
+
*
|
|
3756
|
+
* If only one or none of these conditions is met, `status` is set to `PENDING`
|
|
3757
|
+
* or `CONFIRMED` depending on whether the service requires business approval.
|
|
3758
|
+
*
|
|
3759
|
+
* ## Double bookings
|
|
3760
|
+
*
|
|
3761
|
+
* If there is a double booking conflict, but the booking has already been at least
|
|
3762
|
+
* partially paid, the method still marks the booking as `PENDING` or `CONFIRMED`.
|
|
3763
|
+
* Then, it also sets `doubleBooked` to `true`.
|
|
3764
|
+
*
|
|
3765
|
+
* ## Admin overwrites
|
|
3766
|
+
*
|
|
3767
|
+
* There are small but important differences in confirmation behavior if the
|
|
3768
|
+
* booking was created with special `flowControlSettings`:
|
|
3769
|
+
* + If the booking's `flowControlSettings.skipAvailabilityValidation` was set to
|
|
3770
|
+
* `true`, the booking is never declined regardless of double booking conflicts.
|
|
3771
|
+
* Instead, it's marked `CONFIRMED` or `PENDING`, depending on whether the
|
|
3772
|
+
* service requires business approval.
|
|
3773
|
+
* + If the booking's `flowControlSettings.skipBusinessConfirmation` was set to
|
|
3774
|
+
* `true`, the booking skips `PENDING` status and is marked `CONFIRMED`
|
|
3775
|
+
* immediately.
|
|
3776
|
+
* @param bookingId - ID of the booking to confirm or decline.
|
|
3777
|
+
* @public
|
|
3778
|
+
* @requiredField bookingId
|
|
3779
|
+
* @permissionId BOOKINGS.BOOKING_CONFIRM_OR_DECLINE
|
|
3780
|
+
* @applicableIdentity APP
|
|
3781
|
+
* @fqn com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking
|
|
3782
|
+
*/
|
|
3783
|
+
declare function confirmOrDeclineBooking(bookingId: string, options?: ConfirmOrDeclineBookingOptions): Promise<NonNullablePaths<ConfirmOrDeclineBookingResponse, {
|
|
3784
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
3785
|
+
}[BookingNonNullablePaths]> & {
|
|
3786
|
+
__applicationErrorsType?: ConfirmOrDeclineBookingApplicationErrors;
|
|
3787
|
+
}>;
|
|
3037
3788
|
interface ConfirmOrDeclineBookingOptions {
|
|
3038
3789
|
/**
|
|
3039
3790
|
* Current payment status of the booking when using a custom checkout page and
|
|
@@ -3045,10 +3796,160 @@ interface ConfirmOrDeclineBookingOptions {
|
|
|
3045
3796
|
*/
|
|
3046
3797
|
paymentStatus?: PaymentStatusWithLiterals;
|
|
3047
3798
|
}
|
|
3799
|
+
/**
|
|
3800
|
+
* Confirms or declines up to 300 bookings.
|
|
3801
|
+
*
|
|
3802
|
+
*
|
|
3803
|
+
* See *Confirm Or Decline Booking*
|
|
3804
|
+
* ([SDK](https://dev.wix.com/docs/velo/api-reference/wix-bookings-v2/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking))
|
|
3805
|
+
* for details about when a booking is confirmed or declined.
|
|
3806
|
+
* @param details - Bookings to confirm or decline.
|
|
3807
|
+
* @public
|
|
3808
|
+
* @requiredField details
|
|
3809
|
+
* @requiredField details.bookingId
|
|
3810
|
+
* @permissionId BOOKINGS.BOOKING_CONFIRM_OR_DECLINE
|
|
3811
|
+
* @applicableIdentity APP
|
|
3812
|
+
* @fqn com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking
|
|
3813
|
+
*/
|
|
3814
|
+
declare function bulkConfirmOrDeclineBooking(details: NonNullablePaths<BulkConfirmOrDeclineBookingRequestBookingDetails, `bookingId`>[], options?: BulkConfirmOrDeclineBookingOptions): Promise<NonNullablePaths<BulkConfirmOrDeclineBookingResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
3815
|
+
[P in BookingNonNullablePaths]: `results.${number}.item.${P}`;
|
|
3816
|
+
}[BookingNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
3817
|
+
__applicationErrorsType?: BulkConfirmOrDeclineBookingApplicationErrors;
|
|
3818
|
+
}>;
|
|
3048
3819
|
interface BulkConfirmOrDeclineBookingOptions {
|
|
3049
3820
|
/** Whether to return the confirmed or declined booking objects. */
|
|
3050
3821
|
returnEntity?: boolean;
|
|
3051
3822
|
}
|
|
3823
|
+
/**
|
|
3824
|
+
* Creates a booking.
|
|
3825
|
+
*
|
|
3826
|
+
*
|
|
3827
|
+
* ## Appointment booking
|
|
3828
|
+
*
|
|
3829
|
+
* For appointment-based services, specify the relevant `slot` in
|
|
3830
|
+
* `bookedEntity.slot`. We recommend specifying the complete
|
|
3831
|
+
* `availabilityEntries.slot` returned in *Query Availability*
|
|
3832
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
3833
|
+
* in your call's request to avoid failed calls due to unavailability.
|
|
3834
|
+
*
|
|
3835
|
+
* ## Class session booking
|
|
3836
|
+
*
|
|
3837
|
+
* For class services, specify the relevant *event ID*
|
|
3838
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
|
|
3839
|
+
* as `bookedEntity.slot.eventId`.
|
|
3840
|
+
* We recommend retrieving the event ID from *Query Availability's*
|
|
3841
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
3842
|
+
* `availabilityEntries.slot.eventId` to avoid failed calls due to unavailability.
|
|
3843
|
+
* Specifying an event ID leads to automatic calculations of `slot.startDate`, `slot.endDate`,
|
|
3844
|
+
* `slot.timezone`, `slot.resource`, and `slot.location`. All manually specified
|
|
3845
|
+
* values are overridden.
|
|
3846
|
+
*
|
|
3847
|
+
* ## Course booking
|
|
3848
|
+
*
|
|
3849
|
+
* For course services, specify the course's schedule ID in `bookedEntity.schedule.scheduleId`.
|
|
3850
|
+
* We recommend following [this sample flow](https://dev.wix.com/docs/rest/business-solutions/bookings/end-to-end-booking-flows#book-a-course)
|
|
3851
|
+
* to minimize failed calls due to unavailability.
|
|
3852
|
+
*
|
|
3853
|
+
* ## Related resources
|
|
3854
|
+
*
|
|
3855
|
+
* Specifying a `resource` triggers an availability check, resulting in a failed
|
|
3856
|
+
* call if the resource is unavailable. Omitting a resource allows Wix Bookings
|
|
3857
|
+
* to assign a resource belonging to the relevant type randomly when the merchant
|
|
3858
|
+
* confirms the booking.
|
|
3859
|
+
*
|
|
3860
|
+
* ## Participant information
|
|
3861
|
+
*
|
|
3862
|
+
* You must specify either `participantsChoices` or `totalParticipants`.
|
|
3863
|
+
* The call fails if the specified `participantsChoices` aren't among the supported
|
|
3864
|
+
* _service options and variants_
|
|
3865
|
+
* ([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)).
|
|
3866
|
+
*
|
|
3867
|
+
* ## Notify customers
|
|
3868
|
+
*
|
|
3869
|
+
* You can specify a `participantNotification.message` for the customer that's send
|
|
3870
|
+
* immediately. Ensure `participantNotification.notifyParticipants` is set to `true`
|
|
3871
|
+
* to send the message.
|
|
3872
|
+
*
|
|
3873
|
+
* If you specify `{"sendSmsReminder": true}`, the customer receives an SMS 24 hours
|
|
3874
|
+
* before the session starts. The phone number is taken from `contactDetails.phone`.
|
|
3875
|
+
*
|
|
3876
|
+
* ## Booking status
|
|
3877
|
+
*
|
|
3878
|
+
* Bookings default to the `CREATED` status, not affecting the business calendar
|
|
3879
|
+
* or resource availability. You can specify a different status when the calling
|
|
3880
|
+
* [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
|
|
3881
|
+
* has `Manage Bookings` permissions.
|
|
3882
|
+
*
|
|
3883
|
+
* ## Payment options
|
|
3884
|
+
*
|
|
3885
|
+
* The specified `selectedPaymentOption` indicates how the customer intends to
|
|
3886
|
+
* pay, allowing for later changes to a different method supported by the service.
|
|
3887
|
+
*
|
|
3888
|
+
* ## Payment status
|
|
3889
|
+
*
|
|
3890
|
+
* A booking is initially created with `{"paymentStatus": "UNDEFINED"}` regardless
|
|
3891
|
+
* of the payment status specified in Create Booking. If a customer uses an
|
|
3892
|
+
* _eCommerce checkout_
|
|
3893
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)),
|
|
3894
|
+
* Wix Bookings automatically syncs the booking's payment status from
|
|
3895
|
+
* the corresponding *eCommerce order*
|
|
3896
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
3897
|
+
*
|
|
3898
|
+
* If a booking doesn't have a corresponding eCommerce order, for example, since
|
|
3899
|
+
* the customer didn't use the eCommerce checkout, you can update the booking's
|
|
3900
|
+
* payment status with *Confirm Or Decline Booking*
|
|
3901
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
|
|
3902
|
+
*
|
|
3903
|
+
* ## Booking form data
|
|
3904
|
+
*
|
|
3905
|
+
* When customers sign up for a service, they must fill out the booking form.
|
|
3906
|
+
* To create a booking with a completed booking form, specify the relevant data in
|
|
3907
|
+
* `formSubmission`. Ensure the values of the corresponding fields in
|
|
3908
|
+
* `booking.contactDetails` and `formSubmission` are identical. If these values
|
|
3909
|
+
* don't match, Create Booking fails. Therefore, we recommend specifying
|
|
3910
|
+
* only `booking.contactDetails.contactId` when providing `formSubmission`.
|
|
3911
|
+
*
|
|
3912
|
+
* ## Admin overwrites
|
|
3913
|
+
*
|
|
3914
|
+
* There are small but important differences when you specify special
|
|
3915
|
+
* `flowControlSettings`:
|
|
3916
|
+
*
|
|
3917
|
+
* - `{"skipAvailabilityValidation": true}`: The call succeeds
|
|
3918
|
+
* regardless of availability. If you don't specify any resource, the call
|
|
3919
|
+
* succeeds even if no resource of the relevant type is available.
|
|
3920
|
+
* - `{"skipBusinessConfirmation": true}`: Automatically confirms `PENDING`
|
|
3921
|
+
* bookings that require manual confirmation.
|
|
3922
|
+
* - `{"skipSelectedPaymentOptionValidation": true}`: Allows customers to pay
|
|
3923
|
+
* with payment methods that aren't supported for the service.
|
|
3924
|
+
*
|
|
3925
|
+
* When using special `flowControlSettings`, ensure you have sufficient
|
|
3926
|
+
* permissions. If you encounter failed calls due to insufficient permissions,
|
|
3927
|
+
* consider the following options:
|
|
3928
|
+
*
|
|
3929
|
+
* - **App developers** can use a higher
|
|
3930
|
+
* [permission](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions),
|
|
3931
|
+
* such as `MANAGE BOOKINGS - ALL PERMISSIONS`.
|
|
3932
|
+
* - **Site developers** can utilize
|
|
3933
|
+
* [elevation](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/authorization/elevation).
|
|
3934
|
+
*
|
|
3935
|
+
* Granting additional permissions and using elevation permits method calls that
|
|
3936
|
+
* would typically fail due to authorization checks. Therefore, you should use
|
|
3937
|
+
* them intentionally and securely.
|
|
3938
|
+
* @param booking - The booking to create.
|
|
3939
|
+
* @public
|
|
3940
|
+
* @requiredField booking
|
|
3941
|
+
* @requiredField booking.additionalFields._id
|
|
3942
|
+
* @requiredField booking.bookedEntity
|
|
3943
|
+
* @permissionId BOOKINGS.BOOKING_CREATE
|
|
3944
|
+
* @applicableIdentity APP
|
|
3945
|
+
* @applicableIdentity VISITOR
|
|
3946
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.CreateBooking
|
|
3947
|
+
*/
|
|
3948
|
+
declare function createBooking(booking: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity`>, options?: CreateBookingOptions): Promise<NonNullablePaths<CreateBookingResponse, {
|
|
3949
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
3950
|
+
}[BookingNonNullablePaths]> & {
|
|
3951
|
+
__applicationErrorsType?: CreateBookingApplicationErrors;
|
|
3952
|
+
}>;
|
|
3052
3953
|
interface CreateBookingOptions {
|
|
3053
3954
|
/**
|
|
3054
3955
|
* Information about whether to notify the customer and
|
|
@@ -3067,10 +3968,118 @@ interface CreateBookingOptions {
|
|
|
3067
3968
|
*/
|
|
3068
3969
|
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
3069
3970
|
}
|
|
3971
|
+
/**
|
|
3972
|
+
* Creates up to 8 bookings.
|
|
3973
|
+
*
|
|
3974
|
+
*
|
|
3975
|
+
* See *Create Booking*
|
|
3976
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/create-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/create-booking))
|
|
3977
|
+
* for more information.
|
|
3978
|
+
*
|
|
3979
|
+
* If any of the specified bookings is missing a required field the entire call
|
|
3980
|
+
* fails.
|
|
3981
|
+
*
|
|
3982
|
+
* If you specify 1 or more unavailable bookings, the call succeeds
|
|
3983
|
+
* while the unavailable bookings aren't created. Instead, they're counted as
|
|
3984
|
+
* failures in the returned `bulkActionMetadata`.
|
|
3985
|
+
* @param createBookingsInfo - Bookings to create.
|
|
3986
|
+
*
|
|
3987
|
+
* Max: 8 bookings
|
|
3988
|
+
* @public
|
|
3989
|
+
* @requiredField createBookingsInfo
|
|
3990
|
+
* @requiredField createBookingsInfo.booking
|
|
3991
|
+
* @requiredField createBookingsInfo.booking.additionalFields._id
|
|
3992
|
+
* @requiredField createBookingsInfo.booking.bookedEntity
|
|
3993
|
+
* @permissionId BOOKINGS.BOOKING_CREATE
|
|
3994
|
+
* @applicableIdentity APP
|
|
3995
|
+
* @applicableIdentity VISITOR
|
|
3996
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.BulkCreateBooking
|
|
3997
|
+
*/
|
|
3998
|
+
declare function bulkCreateBooking(createBookingsInfo: NonNullablePaths<CreateBookingInfo, `booking` | `booking.additionalFields.${number}._id` | `booking.bookedEntity`>[], options?: BulkCreateBookingOptions): Promise<NonNullablePaths<BulkCreateBookingResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
3999
|
+
[P in BookingNonNullablePaths]: `results.${number}.item.${P}`;
|
|
4000
|
+
}[BookingNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
4001
|
+
__applicationErrorsType?: BulkCreateBookingApplicationErrors;
|
|
4002
|
+
}>;
|
|
3070
4003
|
interface BulkCreateBookingOptions {
|
|
3071
4004
|
/** Whether to return the created bookings. */
|
|
3072
4005
|
returnFullEntity?: boolean;
|
|
3073
4006
|
}
|
|
4007
|
+
/**
|
|
4008
|
+
* Reschedules an appointment booking to a different slot or a class booking to
|
|
4009
|
+
* a different session.
|
|
4010
|
+
*
|
|
4011
|
+
*
|
|
4012
|
+
* ## Course booking limitation
|
|
4013
|
+
*
|
|
4014
|
+
* You can't reschedule course bookings.
|
|
4015
|
+
*
|
|
4016
|
+
* ## Appointment sessions
|
|
4017
|
+
*
|
|
4018
|
+
* For appointments, the old session is removed from the business calendar
|
|
4019
|
+
* while a new session is added. We recommend calling *Query Availability*
|
|
4020
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
4021
|
+
* first and specifying the entire retrieved `slot`.
|
|
4022
|
+
*
|
|
4023
|
+
* ## Class sessions
|
|
4024
|
+
*
|
|
4025
|
+
* For classes, the new session must be an existing session belonging to the
|
|
4026
|
+
* same class. We recommend retrieving `availabilityEntries.slot.eventId`
|
|
4027
|
+
* from *Query Availability*
|
|
4028
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability))
|
|
4029
|
+
* to avoid failed Reschedule Booking calls due to unavailability. Specify
|
|
4030
|
+
* only `slot.eventId` instead of the entire `slot` object.
|
|
4031
|
+
*
|
|
4032
|
+
* ## Notify customers
|
|
4033
|
+
*
|
|
4034
|
+
* You can specify a `participantNotification.message` for the customer. To send
|
|
4035
|
+
* the message, you must also specify `participantNotification.notifyParticipants`
|
|
4036
|
+
* as `true`.
|
|
4037
|
+
*
|
|
4038
|
+
* ## Admin overwrites
|
|
4039
|
+
*
|
|
4040
|
+
* There are small but important differences when you specify special
|
|
4041
|
+
* `flowControlSettings`:
|
|
4042
|
+
*
|
|
4043
|
+
* - `{"ignoreReschedulePolicy": true}`: The call succeeds even if the
|
|
4044
|
+
* service's `reschedulePolicy` doesn't allow it.
|
|
4045
|
+
* - `{"skipAvailabilityValidation": true}`: The call succeeds even if
|
|
4046
|
+
* the specified session, slot, or resource isn't available. If you don't
|
|
4047
|
+
* specify any resource, the call succeeds even if no resource of the relevant
|
|
4048
|
+
* type is available.
|
|
4049
|
+
* - `{"skipBusinessConfirmation": true}`: Any `PENDING` booking is
|
|
4050
|
+
* automatically confirmed even if the services requires the merchants's
|
|
4051
|
+
* manual confirmation.
|
|
4052
|
+
*
|
|
4053
|
+
* When using special `flowControlSettings`, ensure you have sufficient
|
|
4054
|
+
* permissions. If you encounter failed calls due to insufficient permissions,
|
|
4055
|
+
* consider the following options:
|
|
4056
|
+
*
|
|
4057
|
+
* - **App developers** can use a higher
|
|
4058
|
+
* [permission](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions),
|
|
4059
|
+
* such as `MANAGE BOOKINGS - ALL PERMISSIONS`.
|
|
4060
|
+
* - **Site developers** can utilize
|
|
4061
|
+
* [elevation](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/authorization/elevation).
|
|
4062
|
+
*
|
|
4063
|
+
* Granting additional permissions and using elevation permits method calls that
|
|
4064
|
+
* would typically fail due to authorization checks. Therefore, you should use
|
|
4065
|
+
* them intentionally and securely.
|
|
4066
|
+
* @param bookingId - ID of the booking to reschedule.
|
|
4067
|
+
* @param slot - New slot of the booking.
|
|
4068
|
+
* @public
|
|
4069
|
+
* @requiredField bookingId
|
|
4070
|
+
* @requiredField options.revision
|
|
4071
|
+
* @requiredField slot
|
|
4072
|
+
* @param options - An object representing the available options for rescheduling a booking.
|
|
4073
|
+
* @permissionId BOOKINGS.BOOKING_RESCHEDULE
|
|
4074
|
+
* @applicableIdentity APP
|
|
4075
|
+
* @applicableIdentity MEMBER
|
|
4076
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.RescheduleBooking
|
|
4077
|
+
*/
|
|
4078
|
+
declare function rescheduleBooking(bookingId: string, slot: V2Slot, options?: NonNullablePaths<RescheduleBookingOptions, `revision`>): Promise<NonNullablePaths<RescheduleBookingResponse, {
|
|
4079
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
4080
|
+
}[BookingNonNullablePaths]> & {
|
|
4081
|
+
__applicationErrorsType?: RescheduleBookingApplicationErrors;
|
|
4082
|
+
}>;
|
|
3074
4083
|
interface RescheduleBookingOptions extends RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
3075
4084
|
/**
|
|
3076
4085
|
* Revision number, which increments by 1 each time the booking is rescheduled.
|
|
@@ -3112,6 +4121,77 @@ interface RescheduleBookingOptionsParticipantsInfoOneOf {
|
|
|
3112
4121
|
*/
|
|
3113
4122
|
participantsChoices?: ParticipantChoices;
|
|
3114
4123
|
}
|
|
4124
|
+
/**
|
|
4125
|
+
* Updates the booking status to `CONFIRMED` and updates the relevant session's
|
|
4126
|
+
* `participants.approvalStatus` to `APPROVED` without checking whether the relevant
|
|
4127
|
+
* slot or schedule is still available.
|
|
4128
|
+
*
|
|
4129
|
+
* ## eCommerce checkout restriction
|
|
4130
|
+
*
|
|
4131
|
+
* Call this method only when using a custom checkout page. Don't
|
|
4132
|
+
* call it when using a *Wix eCommerce checkout*
|
|
4133
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
4134
|
+
* In such cases, Wix automatically updates the booking status based on
|
|
4135
|
+
* the `paymentStatus` of the corresponding *Wix eCommerce order*
|
|
4136
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
4137
|
+
*
|
|
4138
|
+
* ## When to call Confirm Or Decline Booking instead
|
|
4139
|
+
*
|
|
4140
|
+
* Confirm Booking doesn't check whether a slot or schedule is still available. For
|
|
4141
|
+
* these checks you can call *Confirm or Decline Booking*
|
|
4142
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
|
|
4143
|
+
*
|
|
4144
|
+
* ## Original status validation
|
|
4145
|
+
*
|
|
4146
|
+
* You can only confirm bookings with a status of `PENDING`, `CREATED`, or
|
|
4147
|
+
* `WAITING_LIST`.
|
|
4148
|
+
*
|
|
4149
|
+
* ## Double bookings
|
|
4150
|
+
*
|
|
4151
|
+
* Confirm Booking doesn't check whether a slot or schedule is still available.
|
|
4152
|
+
* You can specify
|
|
4153
|
+
*
|
|
4154
|
+
* ```json
|
|
4155
|
+
* {
|
|
4156
|
+
* "flowControlSettings": {
|
|
4157
|
+
* "checkAvailabilityValidation": true
|
|
4158
|
+
* },
|
|
4159
|
+
* "doubleBooked": true
|
|
4160
|
+
* }
|
|
4161
|
+
* ```
|
|
4162
|
+
* to forcefully set the booking's `doubleBooked` flag to `true`, regardless of
|
|
4163
|
+
* a potential double booking conflict. You must call with `Manage Bookings`
|
|
4164
|
+
* permissions to do so. For the default flow control settings
|
|
4165
|
+
* `{"checkAvailabilityValidation": false}`, the specified `doubleBooked` value
|
|
4166
|
+
* is ignored.
|
|
4167
|
+
*
|
|
4168
|
+
* ## Payment status
|
|
4169
|
+
*
|
|
4170
|
+
* Also updates the booking's `paymentStatus`, if you specify a new payment
|
|
4171
|
+
* status.
|
|
4172
|
+
*
|
|
4173
|
+
* ## Notify customers
|
|
4174
|
+
*
|
|
4175
|
+
* You can specify a `participantNotification.message` for the customer. To send
|
|
4176
|
+
* the message, you must also specify `participantNotification.notifyParticipants`
|
|
4177
|
+
* as `true`.
|
|
4178
|
+
* @param bookingId - ID of the booking to confirm.
|
|
4179
|
+
* @param revision - Revision number, which increments by 1 each time the booking is updated.
|
|
4180
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
4181
|
+
* updating the booking.
|
|
4182
|
+
* @public
|
|
4183
|
+
* @requiredField bookingId
|
|
4184
|
+
* @requiredField revision
|
|
4185
|
+
* @param options - An object representing the available options for canceling a booking.
|
|
4186
|
+
* @permissionId BOOKINGS.BOOKING_CONFIRM
|
|
4187
|
+
* @applicableIdentity APP
|
|
4188
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.ConfirmBooking
|
|
4189
|
+
*/
|
|
4190
|
+
declare function confirmBooking(bookingId: string, revision: string, options?: ConfirmBookingOptions): Promise<NonNullablePaths<ConfirmBookingResponse, {
|
|
4191
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
4192
|
+
}[BookingNonNullablePaths]> & {
|
|
4193
|
+
__applicationErrorsType?: ConfirmBookingApplicationErrors;
|
|
4194
|
+
}>;
|
|
3115
4195
|
interface ConfirmBookingOptions {
|
|
3116
4196
|
/**
|
|
3117
4197
|
* Information about whether to notify the customer about the confirmation and
|
|
@@ -3133,10 +4213,104 @@ interface ConfirmBookingOptions {
|
|
|
3133
4213
|
*/
|
|
3134
4214
|
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
3135
4215
|
}
|
|
4216
|
+
/**
|
|
4217
|
+
* Setting `submission_id` for a booking after the form submission is created.
|
|
4218
|
+
* @param bookingId - ID of the booking to set `submissionId` for.
|
|
4219
|
+
* @param submissionId - ID of the form submission to set on the booking.
|
|
4220
|
+
* @public
|
|
4221
|
+
* @documentationMaturity preview
|
|
4222
|
+
* @requiredField bookingId
|
|
4223
|
+
* @requiredField submissionId
|
|
4224
|
+
* @permissionId BOOKINGS.BOOKING_SET_SUBMISSION_ID
|
|
4225
|
+
* @applicableIdentity APP
|
|
4226
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.SetBookingSubmissionId
|
|
4227
|
+
*/
|
|
4228
|
+
declare function setBookingSubmissionId(bookingId: string, submissionId: string): Promise<NonNullablePaths<SetBookingSubmissionIdResponse, {
|
|
4229
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
4230
|
+
}[BookingNonNullablePaths]> & {
|
|
4231
|
+
__applicationErrorsType?: SetBookingSubmissionIdApplicationErrors;
|
|
4232
|
+
}>;
|
|
4233
|
+
/**
|
|
4234
|
+
* Updates the extended fields for a booking.
|
|
4235
|
+
*
|
|
4236
|
+
*
|
|
4237
|
+
* If you specify an extended field `namespace` that doesn't exist yet, it's
|
|
4238
|
+
* created.
|
|
4239
|
+
*
|
|
4240
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/about-backend-extensions#schema-plugin-extensions).
|
|
4241
|
+
* @public
|
|
4242
|
+
* @requiredField _id
|
|
4243
|
+
* @requiredField namespace
|
|
4244
|
+
* @requiredField options
|
|
4245
|
+
* @requiredField options.namespaceData
|
|
4246
|
+
* @param _id - ID of the booking for which to update extended fields.
|
|
4247
|
+
* @param namespace - [Namespace](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-reading-and-writing-schema-plugin-fields#namespaces) of the app for which to update extended fields.
|
|
4248
|
+
* @param options - Options for updating the booking's extended fields.
|
|
4249
|
+
* @permissionId BOOKINGS.BOOKING_UPDATE_EXTENDED_FIELDS
|
|
4250
|
+
* @applicableIdentity APP
|
|
4251
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.UpdateExtendedFields
|
|
4252
|
+
*/
|
|
4253
|
+
declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `namespace`> & {
|
|
4254
|
+
__applicationErrorsType?: UpdateExtendedFieldsApplicationErrors;
|
|
4255
|
+
}>;
|
|
3136
4256
|
interface UpdateExtendedFieldsOptions {
|
|
3137
4257
|
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
3138
4258
|
namespaceData: Record<string, any> | null;
|
|
3139
4259
|
}
|
|
4260
|
+
/**
|
|
4261
|
+
* Updates the booking status to `DECLINED` and updates the relevant session's
|
|
4262
|
+
* `participants.approvalStatus` to `DECLINED` without checking whether the relevant
|
|
4263
|
+
* slot or schedule is still available.
|
|
4264
|
+
*
|
|
4265
|
+
*
|
|
4266
|
+
* ## eCommerce checkout restriction
|
|
4267
|
+
*
|
|
4268
|
+
* Call this method only when using a custom checkout page. Don't
|
|
4269
|
+
* call it when using a *Wix eCommerce checkout*
|
|
4270
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
4271
|
+
* In such cases, Wix automatically updates the booking status based on
|
|
4272
|
+
* the `paymentStatus` of the corresponding *Wix eCommerce order*
|
|
4273
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
4274
|
+
*
|
|
4275
|
+
* ## When to call Confirm Or Decline Booking instead
|
|
4276
|
+
*
|
|
4277
|
+
* The method doesn't check whether a slot or schedule is still available. For
|
|
4278
|
+
* these checks you can call *Confirm or Decline Booking*
|
|
4279
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
|
|
4280
|
+
*
|
|
4281
|
+
* ## Original status validation
|
|
4282
|
+
*
|
|
4283
|
+
* You can only decline bookings with a `status` of `PENDING`, `CREATED`, or
|
|
4284
|
+
* `WAITING_LIST`.
|
|
4285
|
+
*
|
|
4286
|
+
* ## Payment status
|
|
4287
|
+
*
|
|
4288
|
+
* Also updates the booking's `paymentStatus`, if you specify a new payment
|
|
4289
|
+
* status.
|
|
4290
|
+
*
|
|
4291
|
+
* ## Notify customers
|
|
4292
|
+
*
|
|
4293
|
+
* You can specify a `participantNotification.message` for the customer. To send
|
|
4294
|
+
* the message, you must also specify `participantNotification.notifyParticipants`
|
|
4295
|
+
* as `true`.
|
|
4296
|
+
* @param bookingId - ID of the booking to decline.
|
|
4297
|
+
* @param revision - Revision number, which increments by 1 each time the booking is updated.
|
|
4298
|
+
*
|
|
4299
|
+
* To prevent conflicting changes, the current revision must be specified when
|
|
4300
|
+
* declining the booking.
|
|
4301
|
+
* @public
|
|
4302
|
+
* @requiredField bookingId
|
|
4303
|
+
* @requiredField revision
|
|
4304
|
+
* @param options - An object representing the available options for declining a booking.
|
|
4305
|
+
* @permissionId BOOKINGS.BOOKING_DECLINE
|
|
4306
|
+
* @applicableIdentity APP
|
|
4307
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.DeclineBooking
|
|
4308
|
+
*/
|
|
4309
|
+
declare function declineBooking(bookingId: string, revision: string, options?: DeclineBookingOptions): Promise<NonNullablePaths<DeclineBookingResponse, {
|
|
4310
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
4311
|
+
}[BookingNonNullablePaths]> & {
|
|
4312
|
+
__applicationErrorsType?: DeclineBookingApplicationErrors;
|
|
4313
|
+
}>;
|
|
3140
4314
|
interface DeclineBookingOptions {
|
|
3141
4315
|
/**
|
|
3142
4316
|
* Information about whether to notify the customer and
|
|
@@ -3153,6 +4327,67 @@ interface DeclineBookingOptions {
|
|
|
3153
4327
|
*/
|
|
3154
4328
|
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
3155
4329
|
}
|
|
4330
|
+
/**
|
|
4331
|
+
* Updates the booking status to `CANCELED`.
|
|
4332
|
+
*
|
|
4333
|
+
*
|
|
4334
|
+
* ## Appointments
|
|
4335
|
+
*
|
|
4336
|
+
* For appointments, the corresponding event is removed from the Bookings
|
|
4337
|
+
* calendar.
|
|
4338
|
+
*
|
|
4339
|
+
* ## Class and course bookings
|
|
4340
|
+
*
|
|
4341
|
+
* For class or course bookings, the relevant participants are removed
|
|
4342
|
+
* from the class session or the course. However, the class session or course
|
|
4343
|
+
* remain on the business calendar.
|
|
4344
|
+
*
|
|
4345
|
+
* ## Notify customers
|
|
4346
|
+
*
|
|
4347
|
+
* You can specify a `participantNotification.message` for the customer. To send
|
|
4348
|
+
* the message, you must also specify `participantNotification.notifyParticipants`
|
|
4349
|
+
* as `true`.
|
|
4350
|
+
*
|
|
4351
|
+
* ## Admin overwrites
|
|
4352
|
+
*
|
|
4353
|
+
* There are small but important differences when you specify special
|
|
4354
|
+
* `flowControlSettings`:
|
|
4355
|
+
*
|
|
4356
|
+
* - `{"ignoreCancellationPolicy": true}`: The call succeeds even if the
|
|
4357
|
+
* service's `cancellationPolicy` doesn't allow it.
|
|
4358
|
+
* - `{"withRefund": true}`: The customer is refunded even if the service's
|
|
4359
|
+
* `refundPolicy` doesn't allow it.
|
|
4360
|
+
* - `{"waiveCancellationFee": true}`: The customer doesn't have to pay
|
|
4361
|
+
* the cancellation fee, even if the service's `cancellationPolicy` requires it.
|
|
4362
|
+
*
|
|
4363
|
+
* When using special `flowControlSettings`, ensure you have sufficient
|
|
4364
|
+
* permissions. If you encounter failed calls due to insufficient permissions,
|
|
4365
|
+
* consider the following options:
|
|
4366
|
+
*
|
|
4367
|
+
* - **App developers** can use a higher
|
|
4368
|
+
* [permission](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions),
|
|
4369
|
+
* such as `MANAGE BOOKINGS - ALL PERMISSIONS`.
|
|
4370
|
+
* - **Site developers** can utilize
|
|
4371
|
+
* [elevation](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/authorization/elevation).
|
|
4372
|
+
*
|
|
4373
|
+
* Granting additional permissions and using elevation permits method calls that
|
|
4374
|
+
* would typically fail due to authorization checks. Therefore, you should use
|
|
4375
|
+
* them intentionally and securely.
|
|
4376
|
+
* @param bookingId - ID of the booking to cancel.
|
|
4377
|
+
* @public
|
|
4378
|
+
* @requiredField bookingId
|
|
4379
|
+
* @requiredField options.revision
|
|
4380
|
+
* @param options - An object representing the available options for canceling a booking.
|
|
4381
|
+
* @permissionId BOOKINGS.BOOKING_CANCEL
|
|
4382
|
+
* @applicableIdentity APP
|
|
4383
|
+
* @applicableIdentity MEMBER
|
|
4384
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.CancelBooking
|
|
4385
|
+
*/
|
|
4386
|
+
declare function cancelBooking(bookingId: string, options?: NonNullablePaths<CancelBookingOptions, `revision`>): Promise<NonNullablePaths<CancelBookingResponse, {
|
|
4387
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
4388
|
+
}[BookingNonNullablePaths]> & {
|
|
4389
|
+
__applicationErrorsType?: CancelBookingApplicationErrors;
|
|
4390
|
+
}>;
|
|
3156
4391
|
interface CancelBookingOptions {
|
|
3157
4392
|
/**
|
|
3158
4393
|
* Information about whether to notify the customer about the cancellation and
|
|
@@ -3173,6 +4408,34 @@ interface CancelBookingOptions {
|
|
|
3173
4408
|
*/
|
|
3174
4409
|
revision: string | null;
|
|
3175
4410
|
}
|
|
4411
|
+
/**
|
|
4412
|
+
* Updates the number of participants for a class or course booking and changes
|
|
4413
|
+
* the `totalNumberOfParticipants` for the relevant sessions.
|
|
4414
|
+
*
|
|
4415
|
+
*
|
|
4416
|
+
* ## Appointment limitation
|
|
4417
|
+
*
|
|
4418
|
+
* You can't update the number of participants for appointment bookings.
|
|
4419
|
+
*
|
|
4420
|
+
* ## Participant information
|
|
4421
|
+
*
|
|
4422
|
+
* You must specify either `participantsChoices` or `totalParticipants`.
|
|
4423
|
+
* The call fails if the specified `participantsChoices` aren't among the
|
|
4424
|
+
* supported *service options and variants*
|
|
4425
|
+
* ([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)).
|
|
4426
|
+
* @param bookingId - ID of the booking to update the number of participants for.
|
|
4427
|
+
* @public
|
|
4428
|
+
* @requiredField bookingId
|
|
4429
|
+
* @requiredField options.revision
|
|
4430
|
+
* @permissionId BOOKINGS.NUMBER_OF_PARTICIPANTS_UPDATE
|
|
4431
|
+
* @applicableIdentity APP
|
|
4432
|
+
* @fqn com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants
|
|
4433
|
+
*/
|
|
4434
|
+
declare function updateNumberOfParticipants(bookingId: string, options?: NonNullablePaths<UpdateNumberOfParticipantsOptions, `revision`>): Promise<NonNullablePaths<UpdateNumberOfParticipantsResponse, {
|
|
4435
|
+
[P in BookingNonNullablePaths]: `booking.${P}`;
|
|
4436
|
+
}[BookingNonNullablePaths]> & {
|
|
4437
|
+
__applicationErrorsType?: UpdateNumberOfParticipantsApplicationErrors;
|
|
4438
|
+
}>;
|
|
3176
4439
|
interface UpdateNumberOfParticipantsOptions extends UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
3177
4440
|
/**
|
|
3178
4441
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
@@ -3205,6 +4468,33 @@ interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
|
|
|
3205
4468
|
*/
|
|
3206
4469
|
participantsChoices?: ParticipantChoices;
|
|
3207
4470
|
}
|
|
4471
|
+
/**
|
|
4472
|
+
* Creates a multi-service booking.
|
|
4473
|
+
*
|
|
4474
|
+
*
|
|
4475
|
+
* See Create Booking for more information.
|
|
4476
|
+
* @param bookings - Single-service bookings to combine in a multi-service booking.
|
|
4477
|
+
* @public
|
|
4478
|
+
* @documentationMaturity preview
|
|
4479
|
+
* @requiredField bookings
|
|
4480
|
+
* @requiredField bookings.additionalFields._id
|
|
4481
|
+
* @requiredField bookings.bookedEntity
|
|
4482
|
+
* @requiredField bookings.bookedEntity.item
|
|
4483
|
+
* @requiredField bookings.bookedEntity.item.slot
|
|
4484
|
+
* @requiredField bookings.bookedEntity.item.slot.endDate
|
|
4485
|
+
* @requiredField bookings.bookedEntity.item.slot.location.locationType
|
|
4486
|
+
* @requiredField bookings.bookedEntity.item.slot.scheduleId
|
|
4487
|
+
* @requiredField bookings.bookedEntity.item.slot.startDate
|
|
4488
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_CREATE
|
|
4489
|
+
* @applicableIdentity APP
|
|
4490
|
+
* @applicableIdentity VISITOR
|
|
4491
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking
|
|
4492
|
+
*/
|
|
4493
|
+
declare function createMultiServiceBooking(bookings: NonNullablePaths<Booking, `additionalFields.${number}._id` | `bookedEntity` | `bookedEntity.slot` | `bookedEntity.slot.endDate` | `bookedEntity.slot.location.locationType` | `bookedEntity.slot.scheduleId` | `bookedEntity.slot.startDate`>[], options?: CreateMultiServiceBookingOptions): Promise<NonNullablePaths<CreateMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
4494
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
4495
|
+
}[BookingNonNullablePaths]> & {
|
|
4496
|
+
__applicationErrorsType?: CreateMultiServiceBookingApplicationErrors;
|
|
4497
|
+
}>;
|
|
3208
4498
|
interface CreateMultiServiceBookingOptions {
|
|
3209
4499
|
/**
|
|
3210
4500
|
* Information about whether to notify the customer and
|
|
@@ -3228,6 +4518,34 @@ interface CreateMultiServiceBookingOptions {
|
|
|
3228
4518
|
/** Multi service booking type. */
|
|
3229
4519
|
multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
|
|
3230
4520
|
}
|
|
4521
|
+
/**
|
|
4522
|
+
* Reschedules a multi-service booking.
|
|
4523
|
+
*
|
|
4524
|
+
*
|
|
4525
|
+
* The call fails if at least 1 individual booking can't be rescheduled due
|
|
4526
|
+
* the service being unavailable or a rescheduling policy violation.
|
|
4527
|
+
*
|
|
4528
|
+
*
|
|
4529
|
+
* See Reschedule Booking for more information.
|
|
4530
|
+
* @param multiServiceBookingId - ID of the multi service booking to reschedule.
|
|
4531
|
+
* @param rescheduleBookingsInfo - Information about the single-service bookings to reschedule.
|
|
4532
|
+
* @public
|
|
4533
|
+
* @documentationMaturity preview
|
|
4534
|
+
* @requiredField multiServiceBookingId
|
|
4535
|
+
* @requiredField rescheduleBookingsInfo
|
|
4536
|
+
* @requiredField rescheduleBookingsInfo.bookingId
|
|
4537
|
+
* @requiredField rescheduleBookingsInfo.revision
|
|
4538
|
+
* @requiredField rescheduleBookingsInfo.slot
|
|
4539
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_RESCHEDULE
|
|
4540
|
+
* @applicableIdentity APP
|
|
4541
|
+
* @applicableIdentity MEMBER
|
|
4542
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.RescheduleMultiServiceBooking
|
|
4543
|
+
*/
|
|
4544
|
+
declare function rescheduleMultiServiceBooking(multiServiceBookingId: string, rescheduleBookingsInfo: NonNullablePaths<RescheduleBookingInfo, `bookingId` | `revision` | `slot`>[], options?: RescheduleMultiServiceBookingOptions): Promise<NonNullablePaths<RescheduleMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
4545
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
4546
|
+
}[BookingNonNullablePaths]> & {
|
|
4547
|
+
__applicationErrorsType?: RescheduleMultiServiceBookingApplicationErrors;
|
|
4548
|
+
}>;
|
|
3231
4549
|
interface RescheduleMultiServiceBookingOptions {
|
|
3232
4550
|
/**
|
|
3233
4551
|
* Information about whether to notify the customer and
|
|
@@ -3244,6 +4562,40 @@ interface RescheduleMultiServiceBookingOptions {
|
|
|
3244
4562
|
/** Whether to return the rescheduled bookings entities. */
|
|
3245
4563
|
returnFullEntity?: boolean;
|
|
3246
4564
|
}
|
|
4565
|
+
/**
|
|
4566
|
+
* Retrieves a multi-service booking's availability.
|
|
4567
|
+
*
|
|
4568
|
+
*
|
|
4569
|
+
* Use List Multi Service Availability Time Slots to check availability for a
|
|
4570
|
+
* `SEQUENTIAL_BOOKINGS` multi-service booking.
|
|
4571
|
+
* @param multiServiceBookingId - ID of the multi-service booking to retrieve.
|
|
4572
|
+
* @public
|
|
4573
|
+
* @documentationMaturity preview
|
|
4574
|
+
* @requiredField multiServiceBookingId
|
|
4575
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_GET_AVAILABILITY
|
|
4576
|
+
* @applicableIdentity APP
|
|
4577
|
+
* @applicableIdentity VISITOR
|
|
4578
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability
|
|
4579
|
+
*/
|
|
4580
|
+
declare function getMultiServiceBookingAvailability(multiServiceBookingId: string): Promise<NonNullablePaths<GetMultiServiceBookingAvailabilityResponse, `bookable` | `multiServiceBookingInfo`> & {
|
|
4581
|
+
__applicationErrorsType?: GetMultiServiceBookingAvailabilityApplicationErrors;
|
|
4582
|
+
}>;
|
|
4583
|
+
/**
|
|
4584
|
+
* Cancels a multi-service booking and thus all its individual bookings.
|
|
4585
|
+
* @param multiServiceBookingId - ID of the multi-service booking to cancel.
|
|
4586
|
+
* @public
|
|
4587
|
+
* @documentationMaturity preview
|
|
4588
|
+
* @requiredField multiServiceBookingId
|
|
4589
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_CANCEL
|
|
4590
|
+
* @applicableIdentity APP
|
|
4591
|
+
* @applicableIdentity MEMBER
|
|
4592
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.CancelMultiServiceBooking
|
|
4593
|
+
*/
|
|
4594
|
+
declare function cancelMultiServiceBooking(multiServiceBookingId: string, options?: CancelMultiServiceBookingOptions): Promise<NonNullablePaths<CancelMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
4595
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
4596
|
+
}[BookingNonNullablePaths]> & {
|
|
4597
|
+
__applicationErrorsType?: CancelMultiServiceBookingApplicationErrors;
|
|
4598
|
+
}>;
|
|
3247
4599
|
interface CancelMultiServiceBookingOptions {
|
|
3248
4600
|
/**
|
|
3249
4601
|
* Information about whether to notify the customer and
|
|
@@ -3260,6 +4612,28 @@ interface CancelMultiServiceBookingOptions {
|
|
|
3260
4612
|
/** Whether to return the canceled single-service bookings. */
|
|
3261
4613
|
returnFullEntity?: boolean;
|
|
3262
4614
|
}
|
|
4615
|
+
/**
|
|
4616
|
+
* Updates the status of a multi-service booking to `PENDING`.
|
|
4617
|
+
*
|
|
4618
|
+
*
|
|
4619
|
+
* Also updates the status of each of individual bookings within the multi-service booking to `PENDING`.
|
|
4620
|
+
*
|
|
4621
|
+
* The call fails if the status for at least a single individual booking can't be updated.
|
|
4622
|
+
*
|
|
4623
|
+
* See Mark Booking as Pending for more information.
|
|
4624
|
+
* @param multiServiceBookingId - ID of the multi-service booking to mark as `PENDING`.
|
|
4625
|
+
* @public
|
|
4626
|
+
* @documentationMaturity preview
|
|
4627
|
+
* @requiredField multiServiceBookingId
|
|
4628
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_MARK_AS_PENDING
|
|
4629
|
+
* @applicableIdentity APP
|
|
4630
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.MarkMultiServiceBookingAsPending
|
|
4631
|
+
*/
|
|
4632
|
+
declare function markMultiServiceBookingAsPending(multiServiceBookingId: string, options?: MarkMultiServiceBookingAsPendingOptions): Promise<NonNullablePaths<MarkMultiServiceBookingAsPendingResponse, `multiServiceBooking.bookings` | {
|
|
4633
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
4634
|
+
}[BookingNonNullablePaths]> & {
|
|
4635
|
+
__applicationErrorsType?: MarkMultiServiceBookingAsPendingApplicationErrors;
|
|
4636
|
+
}>;
|
|
3263
4637
|
interface MarkMultiServiceBookingAsPendingOptions {
|
|
3264
4638
|
/** Information about the single-service bookings to mark as `PENDING`. */
|
|
3265
4639
|
markAsPendingBookingsInfo?: BookingInfo[];
|
|
@@ -3286,6 +4660,28 @@ interface MarkMultiServiceBookingAsPendingOptions {
|
|
|
3286
4660
|
*/
|
|
3287
4661
|
flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
|
|
3288
4662
|
}
|
|
4663
|
+
/**
|
|
4664
|
+
* Updates the status of a multi-service booking to `CONFIRMED`.
|
|
4665
|
+
*
|
|
4666
|
+
*
|
|
4667
|
+
* Also updates the status of each of individual bookings within the multi-service booking to `CONFIRMED`.
|
|
4668
|
+
*
|
|
4669
|
+
* The call fails if the status for at least a single individual booking can't be updated.
|
|
4670
|
+
*
|
|
4671
|
+
* See Confirm Booking for more information.
|
|
4672
|
+
* @param multiServiceBookingId - ID of the multi-service booking to confirm its related bookings.
|
|
4673
|
+
* @public
|
|
4674
|
+
* @documentationMaturity preview
|
|
4675
|
+
* @requiredField multiServiceBookingId
|
|
4676
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_CONFIRM
|
|
4677
|
+
* @applicableIdentity APP
|
|
4678
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.ConfirmMultiServiceBooking
|
|
4679
|
+
*/
|
|
4680
|
+
declare function confirmMultiServiceBooking(multiServiceBookingId: string, options?: ConfirmMultiServiceBookingOptions): Promise<NonNullablePaths<ConfirmMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
4681
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
4682
|
+
}[BookingNonNullablePaths]> & {
|
|
4683
|
+
__applicationErrorsType?: ConfirmMultiServiceBookingApplicationErrors;
|
|
4684
|
+
}>;
|
|
3289
4685
|
interface ConfirmMultiServiceBookingOptions {
|
|
3290
4686
|
/** Information about the single-service bookings to confirm. */
|
|
3291
4687
|
confirmBookingsInfo?: BookingInfo[];
|
|
@@ -3312,6 +4708,28 @@ interface ConfirmMultiServiceBookingOptions {
|
|
|
3312
4708
|
*/
|
|
3313
4709
|
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
3314
4710
|
}
|
|
4711
|
+
/**
|
|
4712
|
+
* Updates the status of a multi-service booking to `DECLINED`.
|
|
4713
|
+
*
|
|
4714
|
+
*
|
|
4715
|
+
* Also updates the status of each of individual bookings within the multi-service booking to `DECLINED`.
|
|
4716
|
+
*
|
|
4717
|
+
* The call fails if the status for at least a single individual booking can't be updated.
|
|
4718
|
+
*
|
|
4719
|
+
* See Decline Booking for more information.
|
|
4720
|
+
* @param multiServiceBookingId - ID of the multi service booking to decline.
|
|
4721
|
+
* @public
|
|
4722
|
+
* @documentationMaturity preview
|
|
4723
|
+
* @requiredField multiServiceBookingId
|
|
4724
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_DECLINE
|
|
4725
|
+
* @applicableIdentity APP
|
|
4726
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.DeclineMultiServiceBooking
|
|
4727
|
+
*/
|
|
4728
|
+
declare function declineMultiServiceBooking(multiServiceBookingId: string, options?: DeclineMultiServiceBookingOptions): Promise<NonNullablePaths<DeclineMultiServiceBookingResponse, `multiServiceBooking.bookings` | {
|
|
4729
|
+
[P in BookingNonNullablePaths]: `multiServiceBooking.bookings.${number}.booking.${P}`;
|
|
4730
|
+
}[BookingNonNullablePaths]> & {
|
|
4731
|
+
__applicationErrorsType?: DeclineMultiServiceBookingApplicationErrors;
|
|
4732
|
+
}>;
|
|
3315
4733
|
interface DeclineMultiServiceBookingOptions {
|
|
3316
4734
|
/** Information about the single-service bookings to decline. */
|
|
3317
4735
|
declineBookingsInfo?: BookingInfo[];
|
|
@@ -3330,6 +4748,59 @@ interface DeclineMultiServiceBookingOptions {
|
|
|
3330
4748
|
*/
|
|
3331
4749
|
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
3332
4750
|
}
|
|
4751
|
+
/**
|
|
4752
|
+
* Retrieves the allowed actions for a list of multi-service bookings.
|
|
4753
|
+
* @param multiServiceBookingIds - IDs of the multi-service bookings to retrieve allowed actions for.
|
|
4754
|
+
* @public
|
|
4755
|
+
* @documentationMaturity preview
|
|
4756
|
+
* @requiredField multiServiceBookingIds
|
|
4757
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_GET_ALLOWED_ACTIONS
|
|
4758
|
+
* @applicableIdentity APP
|
|
4759
|
+
* @applicableIdentity VISITOR
|
|
4760
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.BulkGetMultiServiceBookingAllowedActions
|
|
4761
|
+
*/
|
|
4762
|
+
declare function bulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds: string[]): Promise<NonNullablePaths<BulkGetMultiServiceBookingAllowedActionsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.cancel` | `results.${number}.item.reschedule` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
4763
|
+
/**
|
|
4764
|
+
* Retrieves all single-service bookings belonging to a multi-service booking.
|
|
4765
|
+
*
|
|
4766
|
+
*
|
|
4767
|
+
* If you call as an [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
|
|
4768
|
+
* who has permissions to read only part of the bookings,
|
|
4769
|
+
* only the permitted bookings are retrieved. The returned total number of
|
|
4770
|
+
* bookings includes also the bookings for which you don't have permissions.
|
|
4771
|
+
* @param multiServiceBookingId - ID of the multi-service booking.
|
|
4772
|
+
* @public
|
|
4773
|
+
* @documentationMaturity preview
|
|
4774
|
+
* @requiredField multiServiceBookingId
|
|
4775
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_READ
|
|
4776
|
+
* @applicableIdentity APP
|
|
4777
|
+
* @returns Retrieved multi-service booking.
|
|
4778
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBooking
|
|
4779
|
+
*/
|
|
4780
|
+
declare function getMultiServiceBooking(multiServiceBookingId: string): Promise<NonNullablePaths<MultiServiceBooking, `bookings` | {
|
|
4781
|
+
[P in BookingNonNullablePaths]: `bookings.${number}.booking.${P}`;
|
|
4782
|
+
}[BookingNonNullablePaths]>>;
|
|
4783
|
+
/**
|
|
4784
|
+
* Adds a list of single-service bookings to a multi-service booking.
|
|
4785
|
+
*
|
|
4786
|
+
*
|
|
4787
|
+
* The call fails, if at least 1 of the specified booking is already part of a
|
|
4788
|
+
* multi-service booking.
|
|
4789
|
+
* @param multiServiceBookingId - ID of the multi-service booking.
|
|
4790
|
+
* @public
|
|
4791
|
+
* @documentationMaturity preview
|
|
4792
|
+
* @requiredField multiServiceBookingId
|
|
4793
|
+
* @requiredField options.bookings
|
|
4794
|
+
* @requiredField options.bookings.bookingId
|
|
4795
|
+
* @requiredField options.bookings.revision
|
|
4796
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_ADD_BOOKINGS
|
|
4797
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.AddBookingsToMultiServiceBooking
|
|
4798
|
+
*/
|
|
4799
|
+
declare function addBookingsToMultiServiceBooking(multiServiceBookingId: string, options?: NonNullablePaths<AddBookingsToMultiServiceBookingOptions, `bookings` | `bookings.${number}.bookingId` | `bookings.${number}.revision`>): Promise<NonNullablePaths<AddBookingsToMultiServiceBookingResponse, `bookings` | {
|
|
4800
|
+
[P in BookingNonNullablePaths]: `bookings.${number}.booking.${P}`;
|
|
4801
|
+
}[BookingNonNullablePaths]> & {
|
|
4802
|
+
__applicationErrorsType?: AddBookingsToMultiServiceBookingApplicationErrors;
|
|
4803
|
+
}>;
|
|
3333
4804
|
interface AddBookingsToMultiServiceBookingOptions {
|
|
3334
4805
|
/**
|
|
3335
4806
|
* List of single-service booking IDs and their revision.
|
|
@@ -3339,6 +4810,30 @@ interface AddBookingsToMultiServiceBookingOptions {
|
|
|
3339
4810
|
/** Whether to return the single-service bookings that were added to the multi-service booking. */
|
|
3340
4811
|
returnFullEntity?: boolean;
|
|
3341
4812
|
}
|
|
4813
|
+
/**
|
|
4814
|
+
* Removes single-service bookings from a multi-service booking and returns the
|
|
4815
|
+
* removed bookings.
|
|
4816
|
+
*
|
|
4817
|
+
*
|
|
4818
|
+
* If you specify an empty `bookings` array, all single-service bookings for which
|
|
4819
|
+
* the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
|
|
4820
|
+
* has read permissions are removed from the multi-service booking.
|
|
4821
|
+
*
|
|
4822
|
+
* If the call would create a multi-service booking including only 1 single-service
|
|
4823
|
+
* booking, the multi-service booking is also deleted.
|
|
4824
|
+
* @param multiServiceBookingId - ID of the multi-service booking.
|
|
4825
|
+
* @public
|
|
4826
|
+
* @documentationMaturity preview
|
|
4827
|
+
* @requiredField multiServiceBookingId
|
|
4828
|
+
* @permissionId MULTI_SERVICE_BOOKINGS.MULTI_SERVICE_BOOKING_REMOVE_BOOKINGS
|
|
4829
|
+
* @applicableIdentity APP
|
|
4830
|
+
* @fqn com.wixpress.bookings.bookings.v2.MultiServiceBookings.RemoveBookingsFromMultiServiceBooking
|
|
4831
|
+
*/
|
|
4832
|
+
declare function removeBookingsFromMultiServiceBooking(multiServiceBookingId: string, options?: RemoveBookingsFromMultiServiceBookingOptions): Promise<NonNullablePaths<RemoveBookingsFromMultiServiceBookingResponse, `bookings` | {
|
|
4833
|
+
[P in BookingNonNullablePaths]: `bookings.${number}.booking.${P}`;
|
|
4834
|
+
}[BookingNonNullablePaths]> & {
|
|
4835
|
+
__applicationErrorsType?: RemoveBookingsFromMultiServiceBookingApplicationErrors;
|
|
4836
|
+
}>;
|
|
3342
4837
|
interface RemoveBookingsFromMultiServiceBookingOptions {
|
|
3343
4838
|
/**
|
|
3344
4839
|
* List of single-service booking IDs and their revision.
|
|
@@ -3349,4 +4844,4 @@ interface RemoveBookingsFromMultiServiceBookingOptions {
|
|
|
3349
4844
|
returnFullEntity?: boolean;
|
|
3350
4845
|
}
|
|
3351
4846
|
|
|
3352
|
-
export {
|
|
4847
|
+
export { type ActionEvent, Actor, type ActorWithLiterals, type AddBookingsToMultiServiceBookingApplicationErrors, type AddBookingsToMultiServiceBookingOptions, type AddBookingsToMultiServiceBookingRequest, type AddBookingsToMultiServiceBookingResponse, type Address, type AddressLocation, type AddressStreetOneOf, type AllowedActions, type ApplicationError, type AvailableResources, type BaseEventMetadata, type BookedAddOn, type BookedEntity, type BookedEntityItemOneOf, type BookedResource, type BookedSchedule, type BookedSlot, type Booking, type BookingCanceled, type BookingCanceledEnvelope, type BookingChanged, type BookingConfirmed, type BookingConfirmedEnvelope, type BookingCreatedEnvelope, type BookingDeclined, type BookingDeclinedEnvelope, type BookingDetails, type BookingFormFilled, type BookingIdAndRevision, type BookingInfo, type BookingMarkedAsPending, type BookingNumberOfParticipantsUpdatedEnvelope, type BookingParticipantsInfoOneOf, type BookingPolicySettings, type BookingPolicyViolations, type BookingRescheduled, type BookingRescheduledEnvelope, type BookingRescheduledPreviousParticipantsInfoOneOf, type BookingResult, type BookingSource, BookingStatus, type BookingStatusWithLiterals, type BookingUpdatedEnvelope, type BulkActionMetadata, type BulkBookingResult, type BulkCalculateAllowedActionsRequest, type BulkCalculateAllowedActionsResponse, type BulkCalculateAllowedActionsResult, type BulkConfirmOrDeclineBookingApplicationErrors, type BulkConfirmOrDeclineBookingOptions, type BulkConfirmOrDeclineBookingRequest, type BulkConfirmOrDeclineBookingRequestBookingDetails, type BulkConfirmOrDeclineBookingResponse, type BulkCreateBookingApplicationErrors, type BulkCreateBookingOptions, type BulkCreateBookingRequest, type BulkCreateBookingResponse, type BulkGetMultiServiceBookingAllowedActionsRequest, type BulkGetMultiServiceBookingAllowedActionsResponse, type BulkRescheduleBookingRequest, type BulkRescheduleBookingRequestBooking, type BulkRescheduleBookingResponse, type BulkUpdateBookedScheduleRequest, type BulkUpdateBookedScheduleResponse, type BulkUpdateBookingRequest, type BulkUpdateBookingResponse, type CancelBookingApplicationErrors, type CancelBookingFlowControlSettings, type CancelBookingOptions, type CancelBookingRequest, type CancelBookingRequestFlowControlSettings, type CancelBookingResponse, type CancelMultiServiceBookingApplicationErrors, type CancelMultiServiceBookingOptions, type CancelMultiServiceBookingRequest, type CancelMultiServiceBookingResponse, type Clash, type CommonIdentificationData, type CommonIdentificationDataIdOneOf, type ConfirmBookingApplicationErrors, type ConfirmBookingFlowControlSettings, type ConfirmBookingOptions, type ConfirmBookingRequest, type ConfirmBookingResponse, type ConfirmMultiServiceBookingApplicationErrors, type ConfirmMultiServiceBookingOptions, type ConfirmMultiServiceBookingRequest, type ConfirmMultiServiceBookingResponse, type ConfirmOrDeclineBookingApplicationErrors, type ConfirmOrDeclineBookingOptions, type ConfirmOrDeclineBookingRequest, type ConfirmOrDeclineBookingResponse, type ConfirmRequest, type ConfirmResponse, type ConsistentQueryBookingsRequest, type ConsistentQueryBookingsResponse, type ContactDetails, type CountBookingsRequest, type CountBookingsResponse, type CreateBookingApplicationErrors, type CreateBookingFlowControlSettings, type CreateBookingInfo, type CreateBookingOptions, type CreateBookingRequest, type CreateBookingRequestFlowControlSettings, type CreateBookingResponse, type CreateMultiServiceBookingApplicationErrors, type CreateMultiServiceBookingOptions, type CreateMultiServiceBookingRequest, type CreateMultiServiceBookingResponse, type CursorPaging, type Cursors, type CustomFormField, type DeclineBookingApplicationErrors, type DeclineBookingFlowControlSettings, type DeclineBookingOptions, type DeclineBookingRequest, type DeclineBookingResponse, type DeclineMultiServiceBookingApplicationErrors, type DeclineMultiServiceBookingOptions, type DeclineMultiServiceBookingRequest, type DeclineMultiServiceBookingResponse, type DomainEvent, type DomainEventBodyOneOf, type Duration, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FlowControlSettings, type GetMultiServiceBookingAvailabilityApplicationErrors, type GetMultiServiceBookingAvailabilityRequest, type GetMultiServiceBookingAvailabilityResponse, type GetMultiServiceBookingAvailabilityResponseBookingInfo, type GetMultiServiceBookingRequest, type GetMultiServiceBookingResponse, type GetScheduleAvailabilityRequest, type GetScheduleAvailabilityResponse, type GetSlotAvailabilityRequest, type GetSlotAvailabilityResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentificationDataIdentityType, type IdentificationDataIdentityTypeWithLiterals, IdentityType, type IdentityTypeWithLiterals, type ItemMetadata, type LegacyCreateBookingRequest, type LegacyCreateBookingResponse, type Location, LocationLocationType, type LocationLocationTypeWithLiterals, LocationType, type LocationTypeWithLiterals, type MarkBookingAsPendingFlowControlSettings, type MarkBookingAsPendingRequest, type MarkBookingAsPendingResponse, type MarkMultiServiceBookingAsPendingApplicationErrors, type MarkMultiServiceBookingAsPendingOptions, type MarkMultiServiceBookingAsPendingRequest, type MarkMultiServiceBookingAsPendingResponse, type MaskedBooking, type MessageEnvelope, type MigrationCheckIfClashesWithBlockedTimeRequest, type MigrationCheckIfClashesWithBlockedTimeResponse, type MsidAndBookingId, type MultiServiceBooking, type MultiServiceBookingInfo, type MultiServiceBookingMetadata, MultiServiceBookingType, type MultiServiceBookingTypeWithLiterals, type NumberOfParticipantsUpdated, type NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, type Paging, type PagingMetadataV2, type ParticipantChoices, type ParticipantNotification, PaymentStatus, type PaymentStatusWithLiterals, Platform, type PlatformWithLiterals, type QueryBookingsRequest, type QueryBookingsResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RemoveBookingsFromMultiServiceBookingApplicationErrors, type RemoveBookingsFromMultiServiceBookingOptions, type RemoveBookingsFromMultiServiceBookingRequest, type RemoveBookingsFromMultiServiceBookingResponse, type RescheduleBookingApplicationErrors, type RescheduleBookingFlowControlSettings, type RescheduleBookingInfo, type RescheduleBookingInfoParticipantsInfoOneOf, type RescheduleBookingOptions, type RescheduleBookingOptionsParticipantsInfoOneOf, type RescheduleBookingRequest, type RescheduleBookingRequestFlowControlSettings, type RescheduleBookingRequestParticipantsInfoOneOf, type RescheduleBookingResponse, type RescheduleMultiServiceBookingApplicationErrors, type RescheduleMultiServiceBookingOptions, type RescheduleMultiServiceBookingRequest, type RescheduleMultiServiceBookingResponse, type RestoreInfo, type ScheduleAvailability, SelectedPaymentOption, type SelectedPaymentOptionWithLiterals, type ServiceChoice, type ServiceChoiceChoiceOneOf, type ServiceChoices, type SetBookingFormAndSubmissionIdRequest, type SetBookingFormAndSubmissionIdRequestCreatedByOneOf, type SetBookingFormAndSubmissionIdResponse, type SetBookingSessionIdRequest, type SetBookingSessionIdResponse, type SetBookingSubmissionIdApplicationErrors, type SetBookingSubmissionIdRequest, type SetBookingSubmissionIdResponse, type Slot, type SlotAvailability, type SlotBookings, type SlotLocation, type SlotResource, type SlotSlotResource, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type Subdivision, type UpdateBookingRequest, type UpdateBookingResponse, type UpdateExtendedFieldsApplicationErrors, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateNumberOfParticipantsApplicationErrors, type UpdateNumberOfParticipantsOptions, type UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf, type UpdateNumberOfParticipantsRequest, type UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, type UpdateNumberOfParticipantsResponse, type V2CancelBookingRequest, type V2CancelBookingResponse, type V2ConfirmBookingRequest, type V2ConfirmBookingResponse, type V2CreateBookingRequest, type V2CreateBookingRequestBookableItemOneOf, type V2CreateBookingRequestParticipantsInfoOneOf, type V2CreateBookingResponse, type V2DeclineBookingRequest, type V2DeclineBookingResponse, type V2RescheduleBookingRequest, type V2RescheduleBookingRequestParticipantsInfoOneOf, type V2RescheduleBookingResponse, type V2Slot, type V2UpdateNumberOfParticipantsRequest, type V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, type V2UpdateNumberOfParticipantsResponse, ValueType, type ValueTypeWithLiterals, type WaitingList, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WebhooksIdentificationData, type WebhooksIdentificationDataIdOneOf, addBookingsToMultiServiceBooking, bulkConfirmOrDeclineBooking, bulkCreateBooking, bulkGetMultiServiceBookingAllowedActions, cancelBooking, cancelMultiServiceBooking, confirmBooking, confirmMultiServiceBooking, confirmOrDeclineBooking, createBooking, createMultiServiceBooking, declineBooking, declineMultiServiceBooking, getMultiServiceBooking, getMultiServiceBookingAvailability, markMultiServiceBookingAsPending, onBookingCanceled, onBookingConfirmed, onBookingCreated, onBookingDeclined, onBookingNumberOfParticipantsUpdated, onBookingRescheduled, onBookingUpdated, removeBookingsFromMultiServiceBooking, rescheduleBooking, rescheduleMultiServiceBooking, setBookingSubmissionId, updateExtendedFields, updateNumberOfParticipants };
|