@wix/bookings 1.0.56 → 1.0.58
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/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +23 -17
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js +23 -17
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +5 -3
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +28 -20
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +23 -17
- package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +120 -59
- package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +120 -59
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.http.d.ts +23 -19
- package/build/cjs/src/bookings-v2-booking.http.js +28 -20
- package/build/cjs/src/bookings-v2-booking.http.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +25 -21
- package/build/cjs/src/bookings-v2-booking.universal.js +23 -19
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +23 -17
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js +23 -17
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +5 -3
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +28 -20
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +23 -17
- package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.types.d.ts +120 -59
- package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.universal.d.ts +120 -59
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.http.d.ts +23 -19
- package/build/es/src/bookings-v2-booking.http.js +28 -20
- package/build/es/src/bookings-v2-booking.http.js.map +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +25 -21
- package/build/es/src/bookings-v2-booking.universal.js +23 -19
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -416,7 +416,7 @@ export interface CustomLocationOptions {
|
|
|
416
416
|
* Partial updates are supported on the main entity level, however in order to update a sub-policy the client needs to provide the whole sub-policy object.
|
|
417
417
|
*/
|
|
418
418
|
export interface BookingPolicy {
|
|
419
|
-
/** The ID
|
|
419
|
+
/** The ID to the policy for the booking. */
|
|
420
420
|
_id?: string;
|
|
421
421
|
/**
|
|
422
422
|
* Revision number, which increments by 1 each time the policy is updated. To prevent conflicting changes, the existing revision must be used when updating a policy.
|
|
@@ -424,12 +424,12 @@ export interface BookingPolicy {
|
|
|
424
424
|
*/
|
|
425
425
|
revision?: string | null;
|
|
426
426
|
/**
|
|
427
|
-
* Date and time the policy was created.
|
|
427
|
+
* Date and time the policy was created.
|
|
428
428
|
* @readonly
|
|
429
429
|
*/
|
|
430
430
|
_createdDate?: Date;
|
|
431
431
|
/**
|
|
432
|
-
* Date and time the policy was updated.
|
|
432
|
+
* Date and time the policy was updated.
|
|
433
433
|
* @readonly
|
|
434
434
|
*/
|
|
435
435
|
_updatedDate?: Date;
|
|
@@ -444,7 +444,7 @@ export interface BookingPolicy {
|
|
|
444
444
|
*/
|
|
445
445
|
customPolicyDescription?: PolicyDescription;
|
|
446
446
|
/**
|
|
447
|
-
*
|
|
447
|
+
* Whether the policy is the default for the meta site.
|
|
448
448
|
* @readonly
|
|
449
449
|
*/
|
|
450
450
|
default?: boolean | null;
|
|
@@ -484,105 +484,166 @@ export interface BookingPolicy {
|
|
|
484
484
|
*/
|
|
485
485
|
participantsPolicy?: ParticipantsPolicy;
|
|
486
486
|
}
|
|
487
|
-
/**
|
|
488
|
-
* This object specifies a policy description to be displayed to participants. By default `enabled` is set to `false`
|
|
489
|
-
* and `description` is left empty, implying that this BookingPolicy does not have a description.
|
|
490
|
-
*/
|
|
487
|
+
/** A description of the policy to display to participants. */
|
|
491
488
|
export interface PolicyDescription {
|
|
492
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* Whether the description should be displayed. If `true`, the description is displayed.
|
|
491
|
+
*
|
|
492
|
+
* Default: `false`
|
|
493
|
+
*/
|
|
493
494
|
enabled?: boolean;
|
|
494
|
-
/**
|
|
495
|
+
/**
|
|
496
|
+
* The description to display.
|
|
497
|
+
*
|
|
498
|
+
* Default: Empty
|
|
499
|
+
* Max length: 1000 characters
|
|
500
|
+
*/
|
|
495
501
|
description?: string;
|
|
496
502
|
}
|
|
497
|
-
/**
|
|
498
|
-
* This object specifies the policy for limiting early bookings. By default `enabled` set to `false` and
|
|
499
|
-
* `earliest_booking_in_minutes` set to 10080 minutes (7 days).
|
|
500
|
-
*/
|
|
503
|
+
/** The policy for limiting early bookings. */
|
|
501
504
|
export interface LimitEarlyBookingPolicy {
|
|
502
505
|
/**
|
|
503
|
-
*
|
|
504
|
-
*
|
|
506
|
+
* Whether there is a limit on how early a customer
|
|
507
|
+
* can book. When `false`, there is no limit on the earliest
|
|
508
|
+
* booking time and customers can book in advance, as early as they like.
|
|
509
|
+
*
|
|
510
|
+
* Default: `false`
|
|
505
511
|
*/
|
|
506
512
|
enabled?: boolean;
|
|
507
513
|
/**
|
|
508
|
-
* Maximum number of minutes before the start of the
|
|
509
|
-
* than `latest_booking_in_minutes` in `LimitLateBookingPolicy
|
|
514
|
+
* Maximum number of minutes before the start of the session that a booking can be made. This value must be greater
|
|
515
|
+
* than `latest_booking_in_minutes` in the `LimitLateBookingPolicy` policy.
|
|
516
|
+
*
|
|
517
|
+
* Default: 10080 minutes (7 days)
|
|
518
|
+
* Min: 1 minute
|
|
510
519
|
*/
|
|
511
520
|
earliestBookingInMinutes?: number;
|
|
512
521
|
}
|
|
513
522
|
/**
|
|
514
|
-
*
|
|
515
|
-
*
|
|
516
|
-
*
|
|
517
|
-
* is enabled
|
|
523
|
+
* The policy for limiting late bookings.
|
|
524
|
+
*
|
|
525
|
+
* This policy and the `BookAfterStartPolicy` policy cannot be enabled at the same time. So if this policy
|
|
526
|
+
* is enabled, `BookAfterStartPolicy` must be disabled.
|
|
518
527
|
*/
|
|
519
528
|
export interface LimitLateBookingPolicy {
|
|
520
529
|
/**
|
|
521
|
-
*
|
|
522
|
-
*
|
|
530
|
+
* Whether there is a limit on how late a customer
|
|
531
|
+
* can book. When `false`, there is no limit on the latest
|
|
532
|
+
* booking time and customers can book up to the last minute.
|
|
533
|
+
*
|
|
534
|
+
* Default: `false`
|
|
523
535
|
*/
|
|
524
536
|
enabled?: boolean;
|
|
525
537
|
/**
|
|
526
|
-
* Minimum number of minutes before the start of the
|
|
527
|
-
* For a schedule, this is relative to the start time of the next booked
|
|
528
|
-
* This value must be less than `earliest_booking_in_minutes` in `LimitEarlyBookingPolicy
|
|
538
|
+
* Minimum number of minutes before the start of the session that a booking can be made.
|
|
539
|
+
* For a schedule, this is relative to the start time of the next booked session, excluding past-booked sessions.
|
|
540
|
+
* This value must be less than `earliest_booking_in_minutes` in the `LimitEarlyBookingPolicy` policy.
|
|
541
|
+
*
|
|
542
|
+
* Default: 1440 minutes (1 day)
|
|
543
|
+
* Min: 1 minute
|
|
529
544
|
*/
|
|
530
545
|
latestBookingInMinutes?: number;
|
|
531
546
|
}
|
|
532
547
|
/**
|
|
533
|
-
*
|
|
534
|
-
* `
|
|
535
|
-
*
|
|
536
|
-
* is enabled then `LimitLateBookingPolicy` must be disabled.
|
|
548
|
+
* The policy for whether a session can be booked after the start of the schedule.
|
|
549
|
+
* This policy and `LimitLateBookingPolicy` cannot be enabled at the same time. So if this policy
|
|
550
|
+
* is enabled, the `LimitLateBookingPolicy` policy must be disabled.
|
|
537
551
|
*/
|
|
538
552
|
export interface BookAfterStartPolicy {
|
|
539
|
-
/**
|
|
553
|
+
/**
|
|
554
|
+
* Whether booking is allowed after the start of the schedule. When `true`,
|
|
555
|
+
* customers can book after the start of the schedule.
|
|
556
|
+
*
|
|
557
|
+
* Default: `false`
|
|
558
|
+
*/
|
|
540
559
|
enabled?: boolean;
|
|
541
560
|
}
|
|
542
|
-
/**
|
|
543
|
-
* This object specifies the policy on cancelling a booked entity. By default both `enabled` and
|
|
544
|
-
* `limit_latest_cancellation` are set to `false` and `latest_cancellation_in_minutes` is set to 1440 minutes (1 day).
|
|
545
|
-
*/
|
|
561
|
+
/** The policy for canceling a booked session. */
|
|
546
562
|
export interface CancellationPolicy {
|
|
547
|
-
/**
|
|
563
|
+
/**
|
|
564
|
+
* Whether canceling a booking is allowed. When `true`, customers
|
|
565
|
+
* can cancel the booking.
|
|
566
|
+
*
|
|
567
|
+
* Default: `false`
|
|
568
|
+
*/
|
|
548
569
|
enabled?: boolean;
|
|
549
|
-
/**
|
|
570
|
+
/**
|
|
571
|
+
* Whether there is a limit on the latest cancellation time. When `true`,
|
|
572
|
+
* a time limit is enforced.
|
|
573
|
+
*
|
|
574
|
+
* Default: `false`
|
|
575
|
+
*/
|
|
550
576
|
limitLatestCancellation?: boolean;
|
|
551
|
-
/**
|
|
577
|
+
/**
|
|
578
|
+
* Minimum number of minutes before the start of the booked session that the booking can be canceled.
|
|
579
|
+
*
|
|
580
|
+
* Default: 1440 minutes (1 day)
|
|
581
|
+
* Min: 1 minute
|
|
582
|
+
*/
|
|
552
583
|
latestCancellationInMinutes?: number;
|
|
553
584
|
}
|
|
554
|
-
/**
|
|
555
|
-
* This object specifies the policy on rescheduling a booked entity. By default both `enabled` and
|
|
556
|
-
* `limit_latest_reschedule` are set to `false` and `latest_reschedule_in_minutes` is set to 1440 minutes (1 day).
|
|
557
|
-
*/
|
|
585
|
+
/** The policy for rescheduling a booked session. */
|
|
558
586
|
export interface ReschedulePolicy {
|
|
559
|
-
/**
|
|
587
|
+
/**
|
|
588
|
+
* Whether rescheduling a booking is allowed. When `true`, customers
|
|
589
|
+
* can reschedule the booking.
|
|
590
|
+
*
|
|
591
|
+
* Default: `false`
|
|
592
|
+
*/
|
|
560
593
|
enabled?: boolean;
|
|
561
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* Whether there is a limit on the latest reschedule time. When `true`,
|
|
596
|
+
* a time limit is enforced.
|
|
597
|
+
*
|
|
598
|
+
* Default: `false`
|
|
599
|
+
*/
|
|
562
600
|
limitLatestReschedule?: boolean;
|
|
563
|
-
/**
|
|
601
|
+
/**
|
|
602
|
+
* Minimum number of minutes before the start of the booked session that the booking can be rescheduled.
|
|
603
|
+
*
|
|
604
|
+
* Default: 1440 minutes (1 day)
|
|
605
|
+
* Min: 1 minute
|
|
606
|
+
*/
|
|
564
607
|
latestRescheduleInMinutes?: number;
|
|
565
608
|
}
|
|
566
|
-
/**
|
|
567
|
-
* This object specifies the policy for the waitlist. By default `enabled` is set to false
|
|
568
|
-
* (indicating that waitlisting is disabled), and both `capacity` and `reservation_time_in_minutes` are set to 10.
|
|
569
|
-
*/
|
|
609
|
+
/** The policy for the waitlist. */
|
|
570
610
|
export interface WaitlistPolicy {
|
|
571
|
-
/**
|
|
611
|
+
/**
|
|
612
|
+
* Whether the session has a waitlist. If `true`, there is a waitlist.
|
|
613
|
+
*
|
|
614
|
+
* Default: `false`
|
|
615
|
+
*/
|
|
572
616
|
enabled?: boolean;
|
|
573
|
-
/**
|
|
617
|
+
/**
|
|
618
|
+
* Number of spots available in the waitlist.
|
|
619
|
+
*
|
|
620
|
+
* Default: 10 spots
|
|
621
|
+
* Min: 1 spot
|
|
622
|
+
*/
|
|
574
623
|
capacity?: number;
|
|
575
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* Amount of time a participant is given to book, once notified that a spot is available.
|
|
626
|
+
*
|
|
627
|
+
* Default: 10 minutes
|
|
628
|
+
* Min: 1 spot
|
|
629
|
+
*/
|
|
576
630
|
reservationTimeInMinutes?: number;
|
|
577
631
|
}
|
|
578
|
-
/**
|
|
579
|
-
* This object specifies the policy for the participants per booking (for example, setting the maximum number
|
|
580
|
-
* of participants). By default `enabled` is set to false and `max_participants_per_booking` is set to 1.
|
|
581
|
-
*/
|
|
632
|
+
/** The policy for the maximum number of participants per booking. */
|
|
582
633
|
export interface ParticipantsPolicy {
|
|
583
|
-
/**
|
|
634
|
+
/**
|
|
635
|
+
* Whether the maximum number of participants applies. When `false`, there is
|
|
636
|
+
* no maximum.
|
|
637
|
+
*
|
|
638
|
+
* Default: `false`
|
|
639
|
+
*/
|
|
584
640
|
enabled?: boolean;
|
|
585
|
-
/**
|
|
641
|
+
/**
|
|
642
|
+
* Maximum number of participants allowed.
|
|
643
|
+
*
|
|
644
|
+
* Default: 1 participant
|
|
645
|
+
* Min: 1 participant
|
|
646
|
+
*/
|
|
586
647
|
maxParticipantsPerBooking?: number;
|
|
587
648
|
}
|
|
588
649
|
export interface Schedule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAwF5B,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAkHD,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AA0HD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;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gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -31,11 +31,11 @@ import { CancelBookingRequest, CancelBookingResponse, ConfirmBookingRequest, Con
|
|
|
31
31
|
* When creating a booking you must pass either `participantsChoices` or `totalParticipants`. If you pass `participantsChoices`, all the
|
|
32
32
|
* provided choices must exist for the service, otherwise the call returns an `INVALID_SERVICE_CHOICES` error.
|
|
33
33
|
*
|
|
34
|
-
* When creating a booking, you can pass
|
|
34
|
+
* When creating a booking, you can pass `selectedPaymentOption`.
|
|
35
35
|
* This specifies which payment method the customer plans to use.
|
|
36
36
|
* But it's possible for them to later use another supported payment method.
|
|
37
37
|
*
|
|
38
|
-
* You can skip the checkout and payment flow if you call [Confirm Booking](link) otherwise, after you create the booking, you can use the
|
|
38
|
+
* You can skip the checkout and payment flow if you call [Confirm Or Decline Booking ](link) otherwise, after you create the booking, you can use the
|
|
39
39
|
* Wix eCommerce APIs (coming soon) for the checkout and payment flow or use a different service for checkout.
|
|
40
40
|
*/
|
|
41
41
|
export declare function createBooking(payload: CreateBookingRequest): RequestOptionsFactory<CreateBookingResponse>;
|
|
@@ -161,28 +161,32 @@ export declare function bookingsCancelBooking(payload: CancelBookingRequest): Re
|
|
|
161
161
|
*/
|
|
162
162
|
export declare function bookingsUpdateNumberOfParticipants(payload: UpdateNumberOfParticipantsRequest): RequestOptionsFactory<UpdateNumberOfParticipantsResponse>;
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* Use `Confirm Or Decline Booking` to determine if the booking is valid, payment is received, and the booking can be processed.
|
|
165
|
+
* You can call `Confirm Or Decline Booking` after checkout or after calling `Create Booking` to verify the booking
|
|
165
166
|
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
167
|
+
* For example:
|
|
168
|
+
* If a session is valid and payment is received, the booking is visible on the calendar.
|
|
169
|
+
* If a session is double-booked, Confirm Or Decline Booking can catch this and decline the duplicate booking. The booking is not visible on the calendar.
|
|
169
170
|
*
|
|
170
|
-
*
|
|
171
|
-
* |-------------------------------- |-------------------------------------- |------------------------------------- |------------------------------------- |------------------------------------ |
|
|
172
|
-
* | skipBusinessConfirmation=true | CONFIRMED | CONFIRMED | declined | CONFIRMED |
|
|
173
|
-
* | skipBusinessConfirmation=false | CONFIRMED/PENDING * | CONFIRMED/PENDING * | declined | CONFIRMED/PENDING * |
|
|
171
|
+
* ## How Bookings Are Confirmed or Declined
|
|
174
172
|
*
|
|
175
|
-
*
|
|
173
|
+
* The booking status is determined based on the following criteria:
|
|
174
|
+
* Whether confirmation is required for the booking, You can bypass the confirmation check by setting the skipBusinessConfirmation property to true when [creating a booking](add link).
|
|
175
|
+
* Whether double bookings are allowed. You can allow [double bookings](Add link to below) by setting the doubleBooking property to true.
|
|
176
|
+
* Whether the booking is paid for, either totally or partially. If a payment is received, even a partial payment, the `paymentStatus` property is set to true.
|
|
176
177
|
*
|
|
177
|
-
*
|
|
178
|
+
* If a booking requires business confirmation, the status is set to `PENDING`. This happens when `skipBusinessConfirmation` is false and the booking would not cause a double booking.
|
|
178
179
|
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
180
|
+
* The booking status is also affected by the `payment` parameter. If the payment status is `PAID` or `PARTIALLY_PAID`, the booking is confirmed regardless of the `doubleBooking` parameter.
|
|
181
|
+
*
|
|
182
|
+
* To calculate `doubleBooking`, the following steps are taken:
|
|
183
|
+
*
|
|
184
|
+
* 1. If the booking has `skipAvailabilityValidation` set to `true`, it will never be considered a double booking.
|
|
185
|
+
* `skipAvailabilityValidation` is set at the [creation of the booking](Link to create booking) and is part of the `flowControlSettings`
|
|
181
186
|
* 2. If `skipAvailabilityValidation` is false:
|
|
182
|
-
*
|
|
183
|
-
* capacity
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* overlapping bookings of the same staff member and the same service
|
|
187
|
+
* For class and course bookings, a booking is not considered a double booking if the session or schedule has enough capacity to accommodate the booking's participants.
|
|
188
|
+
* The capacity is calculated by subtracting the number of `CONFIRMED` bookings to the same session or schedule from its total capacity.
|
|
189
|
+
* The booking's participants are determined by the `totalParticipants` or `participantsChoices` fields.
|
|
190
|
+
* For appointment bookings, a booking is not considered a double booking if there are no overlapping bookings for the same staff member and service.
|
|
187
191
|
*/
|
|
188
192
|
export declare function confirmOrDeclineBooking(payload: ConfirmOrDeclineBookingRequest): RequestOptionsFactory<ConfirmOrDeclineBookingResponse>;
|
|
@@ -34,6 +34,10 @@ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
|
34
34
|
srcPath: '/_api/bookings-confirmator/v2/bookings/confirmation',
|
|
35
35
|
destPath: '/v2/bookings/confirmation',
|
|
36
36
|
},
|
|
37
|
+
{
|
|
38
|
+
srcPath: '/bookings/v2/confirmation',
|
|
39
|
+
destPath: '/v2/bookings/confirmation',
|
|
40
|
+
},
|
|
37
41
|
],
|
|
38
42
|
};
|
|
39
43
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -104,11 +108,11 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
104
108
|
* When creating a booking you must pass either `participantsChoices` or `totalParticipants`. If you pass `participantsChoices`, all the
|
|
105
109
|
* provided choices must exist for the service, otherwise the call returns an `INVALID_SERVICE_CHOICES` error.
|
|
106
110
|
*
|
|
107
|
-
* When creating a booking, you can pass
|
|
111
|
+
* When creating a booking, you can pass `selectedPaymentOption`.
|
|
108
112
|
* This specifies which payment method the customer plans to use.
|
|
109
113
|
* But it's possible for them to later use another supported payment method.
|
|
110
114
|
*
|
|
111
|
-
* You can skip the checkout and payment flow if you call [Confirm Booking](link) otherwise, after you create the booking, you can use the
|
|
115
|
+
* You can skip the checkout and payment flow if you call [Confirm Or Decline Booking ](link) otherwise, after you create the booking, you can use the
|
|
112
116
|
* Wix eCommerce APIs (coming soon) for the checkout and payment flow or use a different service for checkout.
|
|
113
117
|
*/
|
|
114
118
|
export function createBooking(payload) {
|
|
@@ -373,29 +377,33 @@ export function bookingsUpdateNumberOfParticipants(payload) {
|
|
|
373
377
|
return __bookingsUpdateNumberOfParticipants;
|
|
374
378
|
}
|
|
375
379
|
/**
|
|
376
|
-
*
|
|
380
|
+
* Use `Confirm Or Decline Booking` to determine if the booking is valid, payment is received, and the booking can be processed.
|
|
381
|
+
* You can call `Confirm Or Decline Booking` after checkout or after calling `Create Booking` to verify the booking
|
|
382
|
+
*
|
|
383
|
+
* For example:
|
|
384
|
+
* If a session is valid and payment is received, the booking is visible on the calendar.
|
|
385
|
+
* If a session is double-booked, Confirm Or Decline Booking can catch this and decline the duplicate booking. The booking is not visible on the calendar.
|
|
386
|
+
*
|
|
387
|
+
* ## How Bookings Are Confirmed or Declined
|
|
377
388
|
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
389
|
+
* The booking status is determined based on the following criteria:
|
|
390
|
+
* Whether confirmation is required for the booking, You can bypass the confirmation check by setting the skipBusinessConfirmation property to true when [creating a booking](add link).
|
|
391
|
+
* Whether double bookings are allowed. You can allow [double bookings](Add link to below) by setting the doubleBooking property to true.
|
|
392
|
+
* Whether the booking is paid for, either totally or partially. If a payment is received, even a partial payment, the `paymentStatus` property is set to true.
|
|
381
393
|
*
|
|
382
|
-
*
|
|
383
|
-
* |-------------------------------- |-------------------------------------- |------------------------------------- |------------------------------------- |------------------------------------ |
|
|
384
|
-
* | skipBusinessConfirmation=true | CONFIRMED | CONFIRMED | declined | CONFIRMED |
|
|
385
|
-
* | skipBusinessConfirmation=false | CONFIRMED/PENDING * | CONFIRMED/PENDING * | declined | CONFIRMED/PENDING * |
|
|
394
|
+
* If a booking requires business confirmation, the status is set to `PENDING`. This happens when `skipBusinessConfirmation` is false and the booking would not cause a double booking.
|
|
386
395
|
*
|
|
387
|
-
*
|
|
396
|
+
* The booking status is also affected by the `payment` parameter. If the payment status is `PAID` or `PARTIALLY_PAID`, the booking is confirmed regardless of the `doubleBooking` parameter.
|
|
388
397
|
*
|
|
389
|
-
*
|
|
398
|
+
* To calculate `doubleBooking`, the following steps are taken:
|
|
390
399
|
*
|
|
391
|
-
* 1. If `skipAvailabilityValidation`
|
|
392
|
-
*
|
|
400
|
+
* 1. If the booking has `skipAvailabilityValidation` set to `true`, it will never be considered a double booking.
|
|
401
|
+
* `skipAvailabilityValidation` is set at the [creation of the booking](Link to create booking) and is part of the `flowControlSettings`
|
|
393
402
|
* 2. If `skipAvailabilityValidation` is false:
|
|
394
|
-
*
|
|
395
|
-
* capacity
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
* overlapping bookings of the same staff member and the same service
|
|
403
|
+
* For class and course bookings, a booking is not considered a double booking if the session or schedule has enough capacity to accommodate the booking's participants.
|
|
404
|
+
* The capacity is calculated by subtracting the number of `CONFIRMED` bookings to the same session or schedule from its total capacity.
|
|
405
|
+
* The booking's participants are determined by the `totalParticipants` or `participantsChoices` fields.
|
|
406
|
+
* For appointment bookings, a booking is not considered a double booking if there are no overlapping bookings for the same staff member and service.
|
|
399
407
|
*/
|
|
400
408
|
export function confirmOrDeclineBooking(payload) {
|
|
401
409
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_confirmOrDeclineBookingRequest, {});
|
|
@@ -410,7 +418,7 @@ export function confirmOrDeclineBooking(payload) {
|
|
|
410
418
|
const metadata = {
|
|
411
419
|
method: 'POST',
|
|
412
420
|
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
413
|
-
protoPath: '/v2/
|
|
421
|
+
protoPath: '/v2/confirmation/{booking_id}:confirmOrDecline',
|
|
414
422
|
data: serializedData,
|
|
415
423
|
host,
|
|
416
424
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-booking.http.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAoBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,QAAQ,GAAG;IACf,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,2BAA2B;IACtC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,iBAAiB;CAClC,CAAC;AACF,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACxD,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAC3C,MAAM,gCAAgC,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACjE,MAAM,eAAe,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,qBAAqB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACtD,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACxD,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,0BAA0B,GAAG,EAAE,OA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IAED,yBAAyB,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5C,OAAO,yBAAyB,CAAC;AACnC,CAAC"}
|
|
@@ -1242,7 +1242,7 @@ export interface ScheduleAvailability {
|
|
|
1242
1242
|
export interface ConfirmOrDeclineBookingRequest {
|
|
1243
1243
|
/** ID of the booking to be confirmed or declined. */
|
|
1244
1244
|
bookingId: string;
|
|
1245
|
-
/**
|
|
1245
|
+
/** Current payment status of the booking */
|
|
1246
1246
|
paymentStatus?: PaymentStatus;
|
|
1247
1247
|
/** Contact's ID. */
|
|
1248
1248
|
contactId?: string | null;
|
|
@@ -1244,7 +1244,7 @@ export interface ScheduleAvailability {
|
|
|
1244
1244
|
export interface ConfirmOrDeclineBookingRequest {
|
|
1245
1245
|
/** ID of the booking to be confirmed or declined. */
|
|
1246
1246
|
bookingId: string;
|
|
1247
|
-
/**
|
|
1247
|
+
/** Current payment status of the booking */
|
|
1248
1248
|
paymentStatus?: PaymentStatus;
|
|
1249
1249
|
/** Contact's ID. */
|
|
1250
1250
|
contactId?: string | null;
|
|
@@ -1638,11 +1638,11 @@ export interface V2UpdateNumberOfParticipantsResponse {
|
|
|
1638
1638
|
* When creating a booking you must pass either `participantsChoices` or `totalParticipants`. If you pass `participantsChoices`, all the
|
|
1639
1639
|
* provided choices must exist for the service, otherwise the call returns an `INVALID_SERVICE_CHOICES` error.
|
|
1640
1640
|
*
|
|
1641
|
-
* When creating a booking, you can pass
|
|
1641
|
+
* When creating a booking, you can pass `selectedPaymentOption`.
|
|
1642
1642
|
* This specifies which payment method the customer plans to use.
|
|
1643
1643
|
* But it's possible for them to later use another supported payment method.
|
|
1644
1644
|
*
|
|
1645
|
-
* You can skip the checkout and payment flow if you call [Confirm Booking](link) otherwise, after you create the booking, you can use the
|
|
1645
|
+
* You can skip the checkout and payment flow if you call [Confirm Or Decline Booking ](link) otherwise, after you create the booking, you can use the
|
|
1646
1646
|
* Wix eCommerce APIs (coming soon) for the checkout and payment flow or use a different service for checkout.
|
|
1647
1647
|
* @param booking - The booking to create.
|
|
1648
1648
|
* @public
|
|
@@ -1926,29 +1926,33 @@ export interface UpdateNumberOfParticipantsOptions {
|
|
|
1926
1926
|
participantsChoices?: ParticipantChoices;
|
|
1927
1927
|
}
|
|
1928
1928
|
/**
|
|
1929
|
-
*
|
|
1929
|
+
* Use `Confirm Or Decline Booking` to determine if the booking is valid, payment is received, and the booking can be processed.
|
|
1930
|
+
* You can call `Confirm Or Decline Booking` after checkout or after calling `Create Booking` to verify the booking
|
|
1930
1931
|
*
|
|
1931
|
-
*
|
|
1932
|
-
*
|
|
1933
|
-
*
|
|
1932
|
+
* For example:
|
|
1933
|
+
* If a session is valid and payment is received, the booking is visible on the calendar.
|
|
1934
|
+
* If a session is double-booked, Confirm Or Decline Booking can catch this and decline the duplicate booking. The booking is not visible on the calendar.
|
|
1934
1935
|
*
|
|
1935
|
-
*
|
|
1936
|
-
* |-------------------------------- |-------------------------------------- |------------------------------------- |------------------------------------- |------------------------------------ |
|
|
1937
|
-
* | skipBusinessConfirmation=true | CONFIRMED | CONFIRMED | declined | CONFIRMED |
|
|
1938
|
-
* | skipBusinessConfirmation=false | CONFIRMED/PENDING * | CONFIRMED/PENDING * | declined | CONFIRMED/PENDING * |
|
|
1936
|
+
* ## How Bookings Are Confirmed or Declined
|
|
1939
1937
|
*
|
|
1940
|
-
*
|
|
1938
|
+
* The booking status is determined based on the following criteria:
|
|
1939
|
+
* Whether confirmation is required for the booking, You can bypass the confirmation check by setting the skipBusinessConfirmation property to true when [creating a booking](add link).
|
|
1940
|
+
* Whether double bookings are allowed. You can allow [double bookings](Add link to below) by setting the doubleBooking property to true.
|
|
1941
|
+
* Whether the booking is paid for, either totally or partially. If a payment is received, even a partial payment, the `paymentStatus` property is set to true.
|
|
1941
1942
|
*
|
|
1942
|
-
*
|
|
1943
|
+
* If a booking requires business confirmation, the status is set to `PENDING`. This happens when `skipBusinessConfirmation` is false and the booking would not cause a double booking.
|
|
1943
1944
|
*
|
|
1944
|
-
*
|
|
1945
|
-
*
|
|
1945
|
+
* The booking status is also affected by the `payment` parameter. If the payment status is `PAID` or `PARTIALLY_PAID`, the booking is confirmed regardless of the `doubleBooking` parameter.
|
|
1946
|
+
*
|
|
1947
|
+
* To calculate `doubleBooking`, the following steps are taken:
|
|
1948
|
+
*
|
|
1949
|
+
* 1. If the booking has `skipAvailabilityValidation` set to `true`, it will never be considered a double booking.
|
|
1950
|
+
* `skipAvailabilityValidation` is set at the [creation of the booking](Link to create booking) and is part of the `flowControlSettings`
|
|
1946
1951
|
* 2. If `skipAvailabilityValidation` is false:
|
|
1947
|
-
*
|
|
1948
|
-
* capacity
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
1951
|
-
* overlapping bookings of the same staff member and the same service
|
|
1952
|
+
* For class and course bookings, a booking is not considered a double booking if the session or schedule has enough capacity to accommodate the booking's participants.
|
|
1953
|
+
* The capacity is calculated by subtracting the number of `CONFIRMED` bookings to the same session or schedule from its total capacity.
|
|
1954
|
+
* The booking's participants are determined by the `totalParticipants` or `participantsChoices` fields.
|
|
1955
|
+
* For appointment bookings, a booking is not considered a double booking if there are no overlapping bookings for the same staff member and service.
|
|
1952
1956
|
* @param bookingId - ID of the booking to be confirmed or declined.
|
|
1953
1957
|
* @public
|
|
1954
1958
|
* @documentationMaturity preview
|
|
@@ -1956,7 +1960,7 @@ export interface UpdateNumberOfParticipantsOptions {
|
|
|
1956
1960
|
*/
|
|
1957
1961
|
export declare function confirmOrDeclineBooking(bookingId: string, options?: ConfirmOrDeclineBookingOptions): Promise<ConfirmOrDeclineBookingResponse>;
|
|
1958
1962
|
export interface ConfirmOrDeclineBookingOptions {
|
|
1959
|
-
/**
|
|
1963
|
+
/** Current payment status of the booking */
|
|
1960
1964
|
paymentStatus?: PaymentStatus;
|
|
1961
1965
|
/** Contact's ID. */
|
|
1962
1966
|
contactId?: string | null;
|