@wix/bookings 1.0.509 → 1.0.511
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/package.json +9 -9
- package/type-bundles/context.bundle.d.ts +1674 -1656
- package/type-bundles/index.bundle.d.ts +1674 -1656
- package/type-bundles/meta.bundle.d.ts +1094 -1094
|
@@ -16572,9 +16572,55 @@ interface ServiceChoiceChoiceOneOf$3 {
|
|
|
16572
16572
|
*/
|
|
16573
16573
|
custom?: string;
|
|
16574
16574
|
}
|
|
16575
|
-
interface
|
|
16576
|
-
/**
|
|
16577
|
-
|
|
16575
|
+
interface ConfirmOrDeclineBookingRequest$1 {
|
|
16576
|
+
/** ID of the booking to confirm or decline. */
|
|
16577
|
+
bookingId: string;
|
|
16578
|
+
/**
|
|
16579
|
+
* Current payment status of the booking when using a custom checkout page and
|
|
16580
|
+
* not the [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
16581
|
+
*
|
|
16582
|
+
* The booking is declined if there is a double booking conflict and you provide
|
|
16583
|
+
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
16584
|
+
*/
|
|
16585
|
+
paymentStatus?: PaymentStatus$3;
|
|
16586
|
+
}
|
|
16587
|
+
interface ConfirmOrDeclineBookingResponse$1 {
|
|
16588
|
+
/** Updated booking. */
|
|
16589
|
+
booking?: Booking$3;
|
|
16590
|
+
}
|
|
16591
|
+
interface BulkBookingResult$1 {
|
|
16592
|
+
itemMetadata?: ItemMetadata$1;
|
|
16593
|
+
item?: Booking$3;
|
|
16594
|
+
}
|
|
16595
|
+
interface ItemMetadata$1 {
|
|
16596
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
16597
|
+
id?: string | null;
|
|
16598
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
16599
|
+
originalIndex?: number;
|
|
16600
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
16601
|
+
success?: boolean;
|
|
16602
|
+
/** Details about the error in case of failure. */
|
|
16603
|
+
error?: ApplicationError$1;
|
|
16604
|
+
}
|
|
16605
|
+
interface ApplicationError$1 {
|
|
16606
|
+
/** Error code. */
|
|
16607
|
+
code?: string;
|
|
16608
|
+
/** Description of the error. */
|
|
16609
|
+
description?: string;
|
|
16610
|
+
/** Data related to the error. */
|
|
16611
|
+
data?: Record<string, any> | null;
|
|
16612
|
+
}
|
|
16613
|
+
interface BulkActionMetadata$1 {
|
|
16614
|
+
/** Number of items that were successfully processed. */
|
|
16615
|
+
totalSuccesses?: number;
|
|
16616
|
+
/** Number of items that couldn't be processed. */
|
|
16617
|
+
totalFailures?: number;
|
|
16618
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
16619
|
+
undetailedFailures?: number;
|
|
16620
|
+
}
|
|
16621
|
+
interface CreateBookingRequest$1 {
|
|
16622
|
+
/** The booking to create. */
|
|
16623
|
+
booking: Booking$3;
|
|
16578
16624
|
/** Information about a message to send to the customer. */
|
|
16579
16625
|
participantNotification?: ParticipantNotification$1;
|
|
16580
16626
|
/**
|
|
@@ -16590,16 +16636,6 @@ interface CreateMultiServiceBookingRequest$1 {
|
|
|
16590
16636
|
* accepted.
|
|
16591
16637
|
*/
|
|
16592
16638
|
flowControlSettings?: CreateBookingFlowControlSettings$1;
|
|
16593
|
-
/** Whether to return the created bookings entities. */
|
|
16594
|
-
returnFullEntity?: boolean;
|
|
16595
|
-
/**
|
|
16596
|
-
* Multi service booking type.
|
|
16597
|
-
* One of:
|
|
16598
|
-
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
16599
|
-
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
16600
|
-
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
16601
|
-
*/
|
|
16602
|
-
multiServiceBookingType?: MultiServiceBookingType$1;
|
|
16603
16639
|
}
|
|
16604
16640
|
interface CreateBookingFlowControlSettings$1 {
|
|
16605
16641
|
/**
|
|
@@ -16626,31 +16662,74 @@ interface CreateBookingFlowControlSettings$1 {
|
|
|
16626
16662
|
*/
|
|
16627
16663
|
skipSelectedPaymentOptionValidation?: boolean;
|
|
16628
16664
|
}
|
|
16629
|
-
interface
|
|
16665
|
+
interface CreateBookingResponse$1 {
|
|
16666
|
+
/** Created booking. */
|
|
16667
|
+
booking?: Booking$3;
|
|
16668
|
+
}
|
|
16669
|
+
interface BulkCreateBookingRequest$1 {
|
|
16630
16670
|
/**
|
|
16631
|
-
*
|
|
16632
|
-
*
|
|
16671
|
+
* Bookings to create.
|
|
16672
|
+
* Max: 8 bookings.
|
|
16633
16673
|
*/
|
|
16634
|
-
|
|
16635
|
-
|
|
16636
|
-
|
|
16637
|
-
/** Multi service booking ID. */
|
|
16638
|
-
id?: string | null;
|
|
16639
|
-
/** The created bookings which are part of the multi service booking */
|
|
16640
|
-
bookings?: BookingResult$1[];
|
|
16674
|
+
createBookingsInfo: CreateBookingInfo$1[];
|
|
16675
|
+
/** Whether to return the created bookings entities. */
|
|
16676
|
+
returnFullEntity?: boolean;
|
|
16641
16677
|
}
|
|
16642
|
-
interface
|
|
16643
|
-
/**
|
|
16644
|
-
bookingId?: string | null;
|
|
16645
|
-
/** Booking entity. */
|
|
16678
|
+
interface CreateBookingInfo$1 {
|
|
16679
|
+
/** The booking to create */
|
|
16646
16680
|
booking?: Booking$3;
|
|
16681
|
+
/** Information about a message to send to the customer. */
|
|
16682
|
+
participantNotification?: ParticipantNotification$1;
|
|
16683
|
+
/**
|
|
16684
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
16685
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
16686
|
+
* Default: `true`.
|
|
16687
|
+
*/
|
|
16688
|
+
sendSmsReminder?: boolean | null;
|
|
16689
|
+
/**
|
|
16690
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
16691
|
+
* creation flow are changed. For example, whether the availability is
|
|
16692
|
+
* checked before creating the booking or if additional payment options are
|
|
16693
|
+
* accepted.
|
|
16694
|
+
*/
|
|
16695
|
+
flowControlSettings?: CreateBookingFlowControlSettings$1;
|
|
16647
16696
|
}
|
|
16648
|
-
interface
|
|
16649
|
-
/**
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16697
|
+
interface BulkCreateBookingResponse$1 {
|
|
16698
|
+
/**
|
|
16699
|
+
* Bulk create booking results.
|
|
16700
|
+
* Whether it successfully created each booking, providing the corresponding error message if a failure occurred, and includes the created booking entity if the `returnFullEntity` is `true`.
|
|
16701
|
+
*/
|
|
16702
|
+
results?: BulkBookingResult$1[];
|
|
16703
|
+
/** Total successes and failures of the bulk create booking action. */
|
|
16704
|
+
bulkActionMetadata?: BulkActionMetadata$1;
|
|
16705
|
+
}
|
|
16706
|
+
interface RescheduleBookingRequest$1 extends RescheduleBookingRequestParticipantsInfoOneOf$1 {
|
|
16707
|
+
/**
|
|
16708
|
+
* Total number of participants. Available only for services with
|
|
16709
|
+
* variants.
|
|
16710
|
+
* Pass when all participants book the same variant.
|
|
16711
|
+
*/
|
|
16712
|
+
totalParticipants?: number;
|
|
16713
|
+
/**
|
|
16714
|
+
* Information about the service choices to book. Available only for services with
|
|
16715
|
+
* variants.
|
|
16716
|
+
* Pass when not all participants book the same variant.
|
|
16717
|
+
*/
|
|
16718
|
+
participantsChoices?: ParticipantChoices$3;
|
|
16719
|
+
/** ID of the booking to reschedule. */
|
|
16720
|
+
bookingId: string;
|
|
16721
|
+
/** Information about the new slot. */
|
|
16722
|
+
slot: V2Slot$1;
|
|
16723
|
+
/**
|
|
16724
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
16725
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
16726
|
+
* managing the booking.
|
|
16727
|
+
*/
|
|
16728
|
+
revision: string | null;
|
|
16729
|
+
/**
|
|
16730
|
+
* Information about whether to notify the customer about the rescheduling and
|
|
16731
|
+
* the message to send.
|
|
16732
|
+
*/
|
|
16654
16733
|
participantNotification?: ParticipantNotification$1;
|
|
16655
16734
|
/**
|
|
16656
16735
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
@@ -16659,8 +16738,21 @@ interface RescheduleMultiServiceBookingRequest$1 {
|
|
|
16659
16738
|
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
16660
16739
|
*/
|
|
16661
16740
|
flowControlSettings?: RescheduleBookingFlowControlSettings$1;
|
|
16662
|
-
|
|
16663
|
-
|
|
16741
|
+
}
|
|
16742
|
+
/** @oneof */
|
|
16743
|
+
interface RescheduleBookingRequestParticipantsInfoOneOf$1 {
|
|
16744
|
+
/**
|
|
16745
|
+
* Total number of participants. Available only for services with
|
|
16746
|
+
* variants.
|
|
16747
|
+
* Pass when all participants book the same variant.
|
|
16748
|
+
*/
|
|
16749
|
+
totalParticipants?: number;
|
|
16750
|
+
/**
|
|
16751
|
+
* Information about the service choices to book. Available only for services with
|
|
16752
|
+
* variants.
|
|
16753
|
+
* Pass when not all participants book the same variant.
|
|
16754
|
+
*/
|
|
16755
|
+
participantsChoices?: ParticipantChoices$3;
|
|
16664
16756
|
}
|
|
16665
16757
|
interface V2Slot$1 {
|
|
16666
16758
|
/** Identifier for underlying session when session is a single session or generated from a recurring session. */
|
|
@@ -16714,45 +16806,6 @@ interface SlotLocation$1 {
|
|
|
16714
16806
|
/** Location type. */
|
|
16715
16807
|
locationType?: LocationLocationType$1;
|
|
16716
16808
|
}
|
|
16717
|
-
interface RescheduleBookingInfo$1 extends RescheduleBookingInfoParticipantsInfoOneOf$1 {
|
|
16718
|
-
/**
|
|
16719
|
-
* Total number of participants. Available only for services with
|
|
16720
|
-
* variants.
|
|
16721
|
-
* Pass when all participants book the same variant.
|
|
16722
|
-
*/
|
|
16723
|
-
totalParticipants?: number;
|
|
16724
|
-
/**
|
|
16725
|
-
* Information about the service choices to book. Available only for services with
|
|
16726
|
-
* variants.
|
|
16727
|
-
* Pass when not all participants book the same variant.
|
|
16728
|
-
*/
|
|
16729
|
-
participantsChoices?: ParticipantChoices$3;
|
|
16730
|
-
/** ID of the booking to reschedule. */
|
|
16731
|
-
bookingId?: string | null;
|
|
16732
|
-
/** Information about the new slot. */
|
|
16733
|
-
slot?: V2Slot$1;
|
|
16734
|
-
/**
|
|
16735
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
16736
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
16737
|
-
* managing the booking.
|
|
16738
|
-
*/
|
|
16739
|
-
revision?: string | null;
|
|
16740
|
-
}
|
|
16741
|
-
/** @oneof */
|
|
16742
|
-
interface RescheduleBookingInfoParticipantsInfoOneOf$1 {
|
|
16743
|
-
/**
|
|
16744
|
-
* Total number of participants. Available only for services with
|
|
16745
|
-
* variants.
|
|
16746
|
-
* Pass when all participants book the same variant.
|
|
16747
|
-
*/
|
|
16748
|
-
totalParticipants?: number;
|
|
16749
|
-
/**
|
|
16750
|
-
* Information about the service choices to book. Available only for services with
|
|
16751
|
-
* variants.
|
|
16752
|
-
* Pass when not all participants book the same variant.
|
|
16753
|
-
*/
|
|
16754
|
-
participantsChoices?: ParticipantChoices$3;
|
|
16755
|
-
}
|
|
16756
16809
|
interface RescheduleBookingFlowControlSettings$1 {
|
|
16757
16810
|
/**
|
|
16758
16811
|
* Whether the rescheduling policy applies when rescheduling the booking.
|
|
@@ -16776,113 +16829,29 @@ interface RescheduleBookingFlowControlSettings$1 {
|
|
|
16776
16829
|
*/
|
|
16777
16830
|
skipBusinessConfirmation?: boolean;
|
|
16778
16831
|
}
|
|
16779
|
-
interface
|
|
16780
|
-
/** Rescheduled
|
|
16781
|
-
|
|
16782
|
-
}
|
|
16783
|
-
interface GetMultiServiceBookingAvailabilityRequest$1 {
|
|
16784
|
-
multiServiceBookingId: string | null;
|
|
16785
|
-
}
|
|
16786
|
-
interface GetMultiServiceBookingAvailabilityResponse$1 {
|
|
16787
|
-
/** Whether these bookings are bookable. */
|
|
16788
|
-
bookable?: boolean;
|
|
16789
|
-
/** Total number of spots for this availability. */
|
|
16790
|
-
totalCapacity?: number | null;
|
|
16791
|
-
/** Number of open spots for this availability. */
|
|
16792
|
-
remainingCapacity?: number | null;
|
|
16793
|
-
/** Indicators for policy violations of the multi service booking. */
|
|
16794
|
-
policyViolations?: BookingPolicyViolations$1;
|
|
16795
|
-
/** Multi service booking policy settings */
|
|
16796
|
-
policySettings?: BookingPolicySettings$1;
|
|
16797
|
-
/** Info of the bookings this availability was calculated for. */
|
|
16798
|
-
multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo$1[];
|
|
16799
|
-
}
|
|
16800
|
-
interface BookingPolicyViolations$1 {
|
|
16801
|
-
/** Bookings policy violation. Too early to book this slot. */
|
|
16802
|
-
tooEarlyToBook?: boolean | null;
|
|
16803
|
-
/** Bookings policy violation. Too late to book this slot. */
|
|
16804
|
-
tooLateToBook?: boolean | null;
|
|
16805
|
-
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
16806
|
-
bookOnlineDisabled?: boolean | null;
|
|
16807
|
-
}
|
|
16808
|
-
interface BookingPolicySettings$1 {
|
|
16809
|
-
/** Booking policy settings for a given Slot/Schedule */
|
|
16810
|
-
maxParticipantsPerBooking?: number | null;
|
|
16811
|
-
}
|
|
16812
|
-
interface GetMultiServiceBookingAvailabilityResponseBookingInfo$1 {
|
|
16813
|
-
/** Booking id */
|
|
16814
|
-
bookingId?: string | null;
|
|
16832
|
+
interface RescheduleBookingResponse$1 {
|
|
16833
|
+
/** Rescheduled booking. */
|
|
16834
|
+
booking?: Booking$3;
|
|
16815
16835
|
}
|
|
16816
|
-
interface
|
|
16817
|
-
/** ID of the
|
|
16818
|
-
|
|
16819
|
-
/** Information about whether to notify the customer about the cancelation and the message to send. */
|
|
16820
|
-
participantNotification?: ParticipantNotification$1;
|
|
16836
|
+
interface ConfirmBookingRequest$1 {
|
|
16837
|
+
/** ID of the booking to confirm. */
|
|
16838
|
+
bookingId: string;
|
|
16821
16839
|
/**
|
|
16822
|
-
*
|
|
16823
|
-
*
|
|
16824
|
-
*
|
|
16825
|
-
* to issue a refund.
|
|
16840
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
16841
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
16842
|
+
* managing the booking.
|
|
16826
16843
|
*/
|
|
16827
|
-
|
|
16828
|
-
/** Whether to return the canceled bookings entities. */
|
|
16829
|
-
returnFullEntity?: boolean;
|
|
16830
|
-
}
|
|
16831
|
-
interface CancelBookingFlowControlSettings$1 {
|
|
16832
|
-
/**
|
|
16833
|
-
* Whether the cancelation policy applies when canceling the booking. When
|
|
16834
|
-
* passing `false` you can only cancel a booking if the cancelation policy
|
|
16835
|
-
* allows it.
|
|
16836
|
-
* Default: `false`.
|
|
16837
|
-
*/
|
|
16838
|
-
ignoreCancellationPolicy?: boolean | null;
|
|
16844
|
+
revision: string | null;
|
|
16839
16845
|
/**
|
|
16840
|
-
*
|
|
16841
|
-
*
|
|
16842
|
-
* Currently, booking is considered refundable when it was paid by membership.
|
|
16843
|
-
* If passing `true`, the booking flow control settings will be set with refund,
|
|
16844
|
-
* otherwise, either if `false` is passed or the field remains empty,
|
|
16845
|
-
* the booking flow control settings will be set with no refund.
|
|
16846
|
-
* Default: `false`.
|
|
16846
|
+
* Information about whether to notify the customer about the confirmation and
|
|
16847
|
+
* the message to send.
|
|
16847
16848
|
*/
|
|
16848
|
-
withRefund?: boolean | null;
|
|
16849
|
-
}
|
|
16850
|
-
interface CancelMultiServiceBookingResponse$1 {
|
|
16851
|
-
/** Canceled multi service booking. */
|
|
16852
|
-
multiServiceBooking?: MultiServiceBooking$1;
|
|
16853
|
-
}
|
|
16854
|
-
interface MarkMultiServiceBookingAsPendingRequest$1 {
|
|
16855
|
-
/** ID of the multi service booking to mark as pending it's related bookings. */
|
|
16856
|
-
multiServiceBookingId: string | null;
|
|
16857
|
-
/** Bookings to mark as pending. */
|
|
16858
|
-
markAsPendingBookingsInfo?: BookingInfo$1[];
|
|
16859
|
-
/** Information about whether to notify the customer upon manual confirmation and the message to send. */
|
|
16860
16849
|
participantNotification?: ParticipantNotification$1;
|
|
16861
16850
|
/**
|
|
16862
16851
|
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
16863
16852
|
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
16864
16853
|
*/
|
|
16865
16854
|
sendSmsReminder?: boolean | null;
|
|
16866
|
-
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
16867
|
-
doubleBooked?: boolean | null;
|
|
16868
|
-
/** Whether to return the pending bookings entities. */
|
|
16869
|
-
returnFullEntity?: boolean;
|
|
16870
|
-
/**
|
|
16871
|
-
* Information about whether specific procedures of the standard Wix Bookings
|
|
16872
|
-
* creation flow are changed. For example, whether the availability is
|
|
16873
|
-
* checked before updating the booking.
|
|
16874
|
-
*/
|
|
16875
|
-
flowControlSettings?: MarkBookingAsPendingFlowControlSettings$1;
|
|
16876
|
-
}
|
|
16877
|
-
interface BookingInfo$1 {
|
|
16878
|
-
/** ID of the booking. */
|
|
16879
|
-
bookingId?: string | null;
|
|
16880
|
-
/**
|
|
16881
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
16882
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
16883
|
-
* managing the booking.
|
|
16884
|
-
*/
|
|
16885
|
-
revision?: string | null;
|
|
16886
16855
|
/**
|
|
16887
16856
|
* Payment status to set for the booking.
|
|
16888
16857
|
* One of:
|
|
@@ -16893,44 +16862,11 @@ interface BookingInfo$1 {
|
|
|
16893
16862
|
* - `"EXEMPT"` The booking is free of charge.
|
|
16894
16863
|
*/
|
|
16895
16864
|
paymentStatus?: PaymentStatus$3;
|
|
16896
|
-
}
|
|
16897
|
-
interface MarkBookingAsPendingFlowControlSettings$1 {
|
|
16898
|
-
/**
|
|
16899
|
-
* Whether should check for double bookings before updating the booking as pending.
|
|
16900
|
-
* When passing `false` a booking is only being updated with status PENDING
|
|
16901
|
-
* Default: `false`.
|
|
16902
|
-
*/
|
|
16903
|
-
checkAvailabilityValidation?: boolean;
|
|
16904
|
-
/**
|
|
16905
|
-
* Whether should validate that the given booking to be marked as pending, has a booking.slot.serviceId
|
|
16906
|
-
* of a pending approval service.
|
|
16907
|
-
* Default: `false`.
|
|
16908
|
-
*/
|
|
16909
|
-
skipPendingApprovalServiceValidation?: boolean;
|
|
16910
|
-
}
|
|
16911
|
-
interface MarkMultiServiceBookingAsPendingResponse$1 {
|
|
16912
|
-
/** Pending multi service booking. */
|
|
16913
|
-
multiServiceBooking?: MultiServiceBooking$1;
|
|
16914
|
-
}
|
|
16915
|
-
interface ConfirmMultiServiceBookingRequest$1 {
|
|
16916
|
-
/** ID of the multi service booking to confirm it's related bookings. */
|
|
16917
|
-
multiServiceBookingId: string | null;
|
|
16918
|
-
/** Bookings to confirm. */
|
|
16919
|
-
confirmBookingsInfo?: BookingInfo$1[];
|
|
16920
|
-
/** Information about whether to notify the customer about the confirmation and the message to send. */
|
|
16921
|
-
participantNotification?: ParticipantNotification$1;
|
|
16922
|
-
/**
|
|
16923
|
-
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
16924
|
-
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
16925
|
-
*/
|
|
16926
|
-
sendSmsReminder?: boolean | null;
|
|
16927
16865
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
16928
16866
|
doubleBooked?: boolean | null;
|
|
16929
|
-
/** Whether to return the confirmed bookings entities. */
|
|
16930
|
-
returnFullEntity?: boolean;
|
|
16931
16867
|
/**
|
|
16932
16868
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
16933
|
-
*
|
|
16869
|
+
* creation flow are changed. For example, whether the availability is
|
|
16934
16870
|
* checked before confirming the booking.
|
|
16935
16871
|
*/
|
|
16936
16872
|
flowControlSettings?: ConfirmBookingFlowControlSettings$1;
|
|
@@ -16943,21 +16879,49 @@ interface ConfirmBookingFlowControlSettings$1 {
|
|
|
16943
16879
|
*/
|
|
16944
16880
|
checkAvailabilityValidation?: boolean;
|
|
16945
16881
|
}
|
|
16946
|
-
interface
|
|
16947
|
-
|
|
16948
|
-
multiServiceBooking?: MultiServiceBooking$1;
|
|
16882
|
+
interface ConfirmBookingResponse$1 {
|
|
16883
|
+
booking?: Booking$3;
|
|
16949
16884
|
}
|
|
16950
|
-
interface
|
|
16951
|
-
/** ID of the
|
|
16952
|
-
|
|
16953
|
-
/**
|
|
16954
|
-
|
|
16955
|
-
/**
|
|
16885
|
+
interface UpdateExtendedFieldsRequest$1 {
|
|
16886
|
+
/** ID of the entity to update. */
|
|
16887
|
+
id: string;
|
|
16888
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
16889
|
+
namespace: string;
|
|
16890
|
+
/** 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. */
|
|
16891
|
+
namespaceData: Record<string, any> | null;
|
|
16892
|
+
}
|
|
16893
|
+
interface UpdateExtendedFieldsResponse$1 {
|
|
16894
|
+
/** Identifier for the app whose extended field data was updated. */
|
|
16895
|
+
namespace?: string;
|
|
16896
|
+
/** Updated data. */
|
|
16897
|
+
namespaceData?: Record<string, any> | null;
|
|
16898
|
+
}
|
|
16899
|
+
interface DeclineBookingRequest$1 {
|
|
16900
|
+
/** ID of the booking to decline. */
|
|
16901
|
+
bookingId: string;
|
|
16902
|
+
/**
|
|
16903
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
16904
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
16905
|
+
* managing the booking.
|
|
16906
|
+
*/
|
|
16907
|
+
revision: string | null;
|
|
16908
|
+
/**
|
|
16909
|
+
* Information about whether to notify the customer about the decline and
|
|
16910
|
+
* the message to send.
|
|
16911
|
+
*/
|
|
16956
16912
|
participantNotification?: ParticipantNotification$1;
|
|
16913
|
+
/**
|
|
16914
|
+
* Payment status to set on the booking.
|
|
16915
|
+
* One of:
|
|
16916
|
+
* - `"NOT_PAID"` The booking is not paid for.
|
|
16917
|
+
* - `"PAID"` The booking is fully paid.
|
|
16918
|
+
* - `"PARTIALLY_PAID"` The booking is partially paid.
|
|
16919
|
+
* - `"REFUNDED"` The booking is refunded.
|
|
16920
|
+
* - `"EXEMPT"` The booking is free of charge.
|
|
16921
|
+
*/
|
|
16922
|
+
paymentStatus?: PaymentStatus$3;
|
|
16957
16923
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
16958
16924
|
doubleBooked?: boolean | null;
|
|
16959
|
-
/** Whether to return the declined bookings entities. */
|
|
16960
|
-
returnFullEntity?: boolean;
|
|
16961
16925
|
/**
|
|
16962
16926
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
16963
16927
|
* declining flow are changed. For example, whether to issue a refund.
|
|
@@ -16976,40 +16940,95 @@ interface DeclineBookingFlowControlSettings$1 {
|
|
|
16976
16940
|
*/
|
|
16977
16941
|
withRefund?: boolean | null;
|
|
16978
16942
|
}
|
|
16979
|
-
interface
|
|
16980
|
-
/**
|
|
16981
|
-
|
|
16943
|
+
interface DeclineBookingResponse$1 {
|
|
16944
|
+
/** eclined booking */
|
|
16945
|
+
booking?: Booking$3;
|
|
16982
16946
|
}
|
|
16983
|
-
interface
|
|
16984
|
-
/**
|
|
16985
|
-
|
|
16947
|
+
interface CancelBookingRequest$1 {
|
|
16948
|
+
/** ID of the booking to cancel. */
|
|
16949
|
+
bookingId: string;
|
|
16950
|
+
/**
|
|
16951
|
+
* Information about whether to notify the customer about the cancelation and
|
|
16952
|
+
* the message to send.
|
|
16953
|
+
*/
|
|
16954
|
+
participantNotification?: ParticipantNotification$1;
|
|
16955
|
+
/**
|
|
16956
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
16957
|
+
* cancelation flow are changed. For example, whether the you can cancel
|
|
16958
|
+
* a booking even though the cancelation policy doesn't allow it or whether
|
|
16959
|
+
* to issue a refund.
|
|
16960
|
+
*/
|
|
16961
|
+
flowControlSettings?: CancelBookingFlowControlSettings$1;
|
|
16962
|
+
/**
|
|
16963
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
16964
|
+
* To prevent conflicting changes,
|
|
16965
|
+
* the current revision must be passed when managing the booking.
|
|
16966
|
+
*/
|
|
16967
|
+
revision: string | null;
|
|
16986
16968
|
}
|
|
16987
|
-
interface
|
|
16988
|
-
|
|
16989
|
-
|
|
16969
|
+
interface CancelBookingFlowControlSettings$1 {
|
|
16970
|
+
/**
|
|
16971
|
+
* Whether the cancelation policy applies when canceling the booking. When
|
|
16972
|
+
* passing `false` you can only cancel a booking if the cancelation policy
|
|
16973
|
+
* allows it.
|
|
16974
|
+
* Default: `false`.
|
|
16975
|
+
*/
|
|
16976
|
+
ignoreCancellationPolicy?: boolean | null;
|
|
16977
|
+
/**
|
|
16978
|
+
* Whether to issue a refund when canceling the booking.
|
|
16979
|
+
* The refund will be issued only if the booking is refundable.
|
|
16980
|
+
* Currently, booking is considered refundable when it was paid by membership.
|
|
16981
|
+
* If passing `true`, the booking flow control settings will be set with refund,
|
|
16982
|
+
* otherwise, either if `false` is passed or the field remains empty,
|
|
16983
|
+
* the booking flow control settings will be set with no refund.
|
|
16984
|
+
* Default: `false`.
|
|
16985
|
+
*/
|
|
16986
|
+
withRefund?: boolean | null;
|
|
16990
16987
|
}
|
|
16991
|
-
interface
|
|
16992
|
-
/**
|
|
16993
|
-
|
|
16994
|
-
item?: AllowedActions$1;
|
|
16988
|
+
interface CancelBookingResponse$1 {
|
|
16989
|
+
/** Canceled booking. */
|
|
16990
|
+
booking?: Booking$3;
|
|
16995
16991
|
}
|
|
16996
|
-
interface
|
|
16997
|
-
/**
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
/**
|
|
17004
|
-
|
|
16992
|
+
interface UpdateNumberOfParticipantsRequest$1 extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf$1 {
|
|
16993
|
+
/**
|
|
16994
|
+
* Total number of participants. Available only for services with
|
|
16995
|
+
* variants.
|
|
16996
|
+
* Pass when all participants book the same variant.
|
|
16997
|
+
*/
|
|
16998
|
+
totalParticipants?: number;
|
|
16999
|
+
/**
|
|
17000
|
+
* Information about the service choices to book. Available only for services with
|
|
17001
|
+
* variants.
|
|
17002
|
+
* Pass when not all participants book the same variant.
|
|
17003
|
+
*/
|
|
17004
|
+
participantsChoices?: ParticipantChoices$3;
|
|
17005
|
+
/** ID of the booking to update the number of participants for. */
|
|
17006
|
+
bookingId: string;
|
|
17007
|
+
/**
|
|
17008
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
17009
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
17010
|
+
* managing the booking.
|
|
17011
|
+
*/
|
|
17012
|
+
revision: string | null;
|
|
17005
17013
|
}
|
|
17006
|
-
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17014
|
+
/** @oneof */
|
|
17015
|
+
interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf$1 {
|
|
17016
|
+
/**
|
|
17017
|
+
* Total number of participants. Available only for services with
|
|
17018
|
+
* variants.
|
|
17019
|
+
* Pass when all participants book the same variant.
|
|
17020
|
+
*/
|
|
17021
|
+
totalParticipants?: number;
|
|
17022
|
+
/**
|
|
17023
|
+
* Information about the service choices to book. Available only for services with
|
|
17024
|
+
* variants.
|
|
17025
|
+
* Pass when not all participants book the same variant.
|
|
17026
|
+
*/
|
|
17027
|
+
participantsChoices?: ParticipantChoices$3;
|
|
17028
|
+
}
|
|
17029
|
+
interface UpdateNumberOfParticipantsResponse$1 {
|
|
17030
|
+
/** Booking with updated number of participants. */
|
|
17031
|
+
booking?: Booking$3;
|
|
17013
17032
|
}
|
|
17014
17033
|
/** Possible allowed actions for a Booking */
|
|
17015
17034
|
interface AllowedActions$1 {
|
|
@@ -17018,83 +17037,40 @@ interface AllowedActions$1 {
|
|
|
17018
17037
|
/** Is reschedule booking allowed */
|
|
17019
17038
|
reschedule?: boolean;
|
|
17020
17039
|
}
|
|
17021
|
-
interface
|
|
17022
|
-
/**
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
totalFailures?: number;
|
|
17026
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
17027
|
-
undetailedFailures?: number;
|
|
17028
|
-
}
|
|
17029
|
-
interface MarkAsMultiServiceBookingRequest$1 {
|
|
17030
|
-
/** IDs of the bookings to mark as multi service booking. */
|
|
17031
|
-
bookingIds: string[] | null;
|
|
17032
|
-
/**
|
|
17033
|
-
* Multi service booking type.
|
|
17034
|
-
* One of:
|
|
17035
|
-
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
17036
|
-
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
17037
|
-
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
17038
|
-
*/
|
|
17039
|
-
multiServiceBookingType?: MultiServiceBookingType$1;
|
|
17040
|
-
}
|
|
17041
|
-
interface MarkAsMultiServiceBookingResponse$1 {
|
|
17042
|
-
/** Multi service booking ID. */
|
|
17043
|
-
multiServiceBookingId?: string | null;
|
|
17040
|
+
interface BulkCalculateAllowedActionsResult$1 {
|
|
17041
|
+
/** (id, indexInGivenSeq, isSuccessful, error) */
|
|
17042
|
+
itemMetadata?: ItemMetadata$1;
|
|
17043
|
+
item?: AllowedActions$1;
|
|
17044
17044
|
}
|
|
17045
|
-
interface
|
|
17046
|
-
/**
|
|
17047
|
-
|
|
17045
|
+
interface BookingPolicyViolations$1 {
|
|
17046
|
+
/** Bookings policy violation. Too early to book this slot. */
|
|
17047
|
+
tooEarlyToBook?: boolean | null;
|
|
17048
|
+
/** Bookings policy violation. Too late to book this slot. */
|
|
17049
|
+
tooLateToBook?: boolean | null;
|
|
17050
|
+
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
17051
|
+
bookOnlineDisabled?: boolean | null;
|
|
17048
17052
|
}
|
|
17049
|
-
interface
|
|
17050
|
-
/**
|
|
17051
|
-
|
|
17052
|
-
metadata?: MultiServiceBookingMetadata$1;
|
|
17053
|
+
interface BookingPolicySettings$1 {
|
|
17054
|
+
/** Booking policy settings for a given Slot/Schedule */
|
|
17055
|
+
maxParticipantsPerBooking?: number | null;
|
|
17053
17056
|
}
|
|
17054
|
-
interface
|
|
17057
|
+
interface MarkBookingAsPendingFlowControlSettings$1 {
|
|
17055
17058
|
/**
|
|
17056
|
-
*
|
|
17057
|
-
*
|
|
17059
|
+
* Whether should check for double bookings before updating the booking as pending.
|
|
17060
|
+
* When passing `false` a booking is only being updated with status PENDING
|
|
17061
|
+
* Default: `false`.
|
|
17058
17062
|
*/
|
|
17059
|
-
|
|
17060
|
-
}
|
|
17061
|
-
interface AddBookingsToMultiServiceBookingRequest$1 {
|
|
17062
|
-
/** ID of the multi service booking. */
|
|
17063
|
-
multiServiceBookingId: string | null;
|
|
17064
|
-
/** List of bookings ids and their revisions to add to the multi service booking. */
|
|
17065
|
-
bookings: BookingIdAndRevision$1[];
|
|
17066
|
-
/** Whether to return the bookings entities. */
|
|
17067
|
-
returnFullEntity?: boolean;
|
|
17068
|
-
}
|
|
17069
|
-
interface BookingIdAndRevision$1 {
|
|
17070
|
-
/** ID of the booking. */
|
|
17071
|
-
bookingId?: string | null;
|
|
17063
|
+
checkAvailabilityValidation?: boolean;
|
|
17072
17064
|
/**
|
|
17073
|
-
*
|
|
17074
|
-
*
|
|
17075
|
-
*
|
|
17065
|
+
* Whether should validate that the given booking to be marked as pending, has a booking.slot.serviceId
|
|
17066
|
+
* of a pending approval service.
|
|
17067
|
+
* Default: `false`.
|
|
17076
17068
|
*/
|
|
17077
|
-
|
|
17078
|
-
}
|
|
17079
|
-
interface AddBookingsToMultiServiceBookingResponse$1 {
|
|
17080
|
-
/** The bookings that were added to the multi service booking. */
|
|
17081
|
-
bookings?: BookingResult$1[];
|
|
17082
|
-
}
|
|
17083
|
-
interface RemoveBookingsFromMultiServiceBookingRequest$1 {
|
|
17084
|
-
/** ID of the multi service booking. */
|
|
17085
|
-
multiServiceBookingId: string | null;
|
|
17086
|
-
/** List of bookings ids and their revisions to remove from the multi service booking. */
|
|
17087
|
-
bookings?: BookingIdAndRevision$1[];
|
|
17088
|
-
/** Whether to return the bookings entities. */
|
|
17089
|
-
returnFullEntity?: boolean;
|
|
17090
|
-
}
|
|
17091
|
-
interface RemoveBookingsFromMultiServiceBookingResponse$1 {
|
|
17092
|
-
/** The bookings that were removed from the multi service booking. */
|
|
17093
|
-
bookings?: BookingResult$1[];
|
|
17069
|
+
skipPendingApprovalServiceValidation?: boolean;
|
|
17094
17070
|
}
|
|
17095
|
-
interface
|
|
17096
|
-
/** The
|
|
17097
|
-
|
|
17071
|
+
interface CreateMultiServiceBookingRequest$1 {
|
|
17072
|
+
/** The bookings to create as multi service booking. */
|
|
17073
|
+
bookings: Booking$3[];
|
|
17098
17074
|
/** Information about a message to send to the customer. */
|
|
17099
17075
|
participantNotification?: ParticipantNotification$1;
|
|
17100
17076
|
/**
|
|
@@ -17110,53 +17086,54 @@ interface CreateBookingRequest$1 {
|
|
|
17110
17086
|
* accepted.
|
|
17111
17087
|
*/
|
|
17112
17088
|
flowControlSettings?: CreateBookingFlowControlSettings$1;
|
|
17113
|
-
}
|
|
17114
|
-
interface CreateBookingResponse$1 {
|
|
17115
|
-
/** Created booking. */
|
|
17116
|
-
booking?: Booking$3;
|
|
17117
|
-
}
|
|
17118
|
-
interface BulkCreateBookingRequest$1 {
|
|
17119
|
-
/**
|
|
17120
|
-
* Bookings to create.
|
|
17121
|
-
* Max: 8 bookings.
|
|
17122
|
-
*/
|
|
17123
|
-
createBookingsInfo: CreateBookingInfo$1[];
|
|
17124
17089
|
/** Whether to return the created bookings entities. */
|
|
17125
17090
|
returnFullEntity?: boolean;
|
|
17126
|
-
}
|
|
17127
|
-
interface CreateBookingInfo$1 {
|
|
17128
|
-
/** The booking to create */
|
|
17129
|
-
booking?: Booking$3;
|
|
17130
|
-
/** Information about a message to send to the customer. */
|
|
17131
|
-
participantNotification?: ParticipantNotification$1;
|
|
17132
17091
|
/**
|
|
17133
|
-
*
|
|
17134
|
-
*
|
|
17135
|
-
*
|
|
17092
|
+
* Multi service booking type.
|
|
17093
|
+
* One of:
|
|
17094
|
+
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
17095
|
+
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
17096
|
+
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
17136
17097
|
*/
|
|
17137
|
-
|
|
17098
|
+
multiServiceBookingType?: MultiServiceBookingType$1;
|
|
17099
|
+
}
|
|
17100
|
+
interface CreateMultiServiceBookingResponse$1 {
|
|
17138
17101
|
/**
|
|
17139
|
-
*
|
|
17140
|
-
*
|
|
17141
|
-
* checked before creating the booking or if additional payment options are
|
|
17142
|
-
* accepted.
|
|
17102
|
+
* Created multi service booking.
|
|
17103
|
+
* Contains the booking results on the same order as passed on the request.
|
|
17143
17104
|
*/
|
|
17144
|
-
|
|
17105
|
+
multiServiceBooking?: MultiServiceBooking$1;
|
|
17145
17106
|
}
|
|
17146
|
-
interface
|
|
17107
|
+
interface MultiServiceBooking$1 {
|
|
17108
|
+
/** Multi service booking ID. */
|
|
17109
|
+
id?: string | null;
|
|
17110
|
+
/** The created bookings which are part of the multi service booking */
|
|
17111
|
+
bookings?: BookingResult$1[];
|
|
17112
|
+
}
|
|
17113
|
+
interface BookingResult$1 {
|
|
17114
|
+
/** Booking ID. */
|
|
17115
|
+
bookingId?: string | null;
|
|
17116
|
+
/** Booking entity. */
|
|
17117
|
+
booking?: Booking$3;
|
|
17118
|
+
}
|
|
17119
|
+
interface RescheduleMultiServiceBookingRequest$1 {
|
|
17120
|
+
/** ID of the multi service booking to reschedule it's related bookings. */
|
|
17121
|
+
multiServiceBookingId: string | null;
|
|
17122
|
+
/** Bookings to reschedule. */
|
|
17123
|
+
rescheduleBookingsInfo: RescheduleBookingInfo$1[];
|
|
17124
|
+
/** Information about whether to notify the customer about the rescheduling and the message to send. */
|
|
17125
|
+
participantNotification?: ParticipantNotification$1;
|
|
17147
17126
|
/**
|
|
17148
|
-
*
|
|
17149
|
-
*
|
|
17127
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
17128
|
+
* rescheduling flow are changed. For example, whether the availability of
|
|
17129
|
+
* the new slot is checked before rescheduling the booking or if you can
|
|
17130
|
+
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
17150
17131
|
*/
|
|
17151
|
-
|
|
17152
|
-
/**
|
|
17153
|
-
|
|
17154
|
-
}
|
|
17155
|
-
interface BulkBookingResult$1 {
|
|
17156
|
-
itemMetadata?: ItemMetadata$1;
|
|
17157
|
-
item?: Booking$3;
|
|
17132
|
+
flowControlSettings?: RescheduleBookingFlowControlSettings$1;
|
|
17133
|
+
/** Whether to return the rescheduled bookings entities. */
|
|
17134
|
+
returnFullEntity?: boolean;
|
|
17158
17135
|
}
|
|
17159
|
-
interface
|
|
17136
|
+
interface RescheduleBookingInfo$1 extends RescheduleBookingInfoParticipantsInfoOneOf$1 {
|
|
17160
17137
|
/**
|
|
17161
17138
|
* Total number of participants. Available only for services with
|
|
17162
17139
|
* variants.
|
|
@@ -17170,30 +17147,18 @@ interface RescheduleBookingRequest$1 extends RescheduleBookingRequestParticipant
|
|
|
17170
17147
|
*/
|
|
17171
17148
|
participantsChoices?: ParticipantChoices$3;
|
|
17172
17149
|
/** ID of the booking to reschedule. */
|
|
17173
|
-
bookingId
|
|
17150
|
+
bookingId?: string | null;
|
|
17174
17151
|
/** Information about the new slot. */
|
|
17175
|
-
slot
|
|
17152
|
+
slot?: V2Slot$1;
|
|
17176
17153
|
/**
|
|
17177
17154
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
17178
17155
|
* To prevent conflicting changes, the current revision must be passed when
|
|
17179
17156
|
* managing the booking.
|
|
17180
17157
|
*/
|
|
17181
|
-
revision
|
|
17182
|
-
/**
|
|
17183
|
-
* Information about whether to notify the customer about the rescheduling and
|
|
17184
|
-
* the message to send.
|
|
17185
|
-
*/
|
|
17186
|
-
participantNotification?: ParticipantNotification$1;
|
|
17187
|
-
/**
|
|
17188
|
-
* Information about whether specific procedures of the standard Wix Bookings
|
|
17189
|
-
* rescheduling flow are changed. For example, whether the availability of
|
|
17190
|
-
* the new slot is checked before rescheduling the booking or if you can
|
|
17191
|
-
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
17192
|
-
*/
|
|
17193
|
-
flowControlSettings?: RescheduleBookingFlowControlSettings$1;
|
|
17158
|
+
revision?: string | null;
|
|
17194
17159
|
}
|
|
17195
17160
|
/** @oneof */
|
|
17196
|
-
interface
|
|
17161
|
+
interface RescheduleBookingInfoParticipantsInfoOneOf$1 {
|
|
17197
17162
|
/**
|
|
17198
17163
|
* Total number of participants. Available only for services with
|
|
17199
17164
|
* variants.
|
|
@@ -17207,81 +17172,84 @@ interface RescheduleBookingRequestParticipantsInfoOneOf$1 {
|
|
|
17207
17172
|
*/
|
|
17208
17173
|
participantsChoices?: ParticipantChoices$3;
|
|
17209
17174
|
}
|
|
17210
|
-
interface
|
|
17211
|
-
/** Rescheduled booking. */
|
|
17212
|
-
|
|
17175
|
+
interface RescheduleMultiServiceBookingResponse$1 {
|
|
17176
|
+
/** Rescheduled multi service booking. */
|
|
17177
|
+
multiServiceBooking?: MultiServiceBooking$1;
|
|
17213
17178
|
}
|
|
17214
|
-
interface
|
|
17215
|
-
|
|
17216
|
-
|
|
17217
|
-
|
|
17218
|
-
|
|
17219
|
-
|
|
17220
|
-
|
|
17221
|
-
|
|
17222
|
-
|
|
17179
|
+
interface GetMultiServiceBookingAvailabilityRequest$1 {
|
|
17180
|
+
multiServiceBookingId: string | null;
|
|
17181
|
+
}
|
|
17182
|
+
interface GetMultiServiceBookingAvailabilityResponse$1 {
|
|
17183
|
+
/** Whether these bookings are bookable. */
|
|
17184
|
+
bookable?: boolean;
|
|
17185
|
+
/** Total number of spots for this availability. */
|
|
17186
|
+
totalCapacity?: number | null;
|
|
17187
|
+
/** Number of open spots for this availability. */
|
|
17188
|
+
remainingCapacity?: number | null;
|
|
17189
|
+
/** Indicators for policy violations of the multi service booking. */
|
|
17190
|
+
policyViolations?: BookingPolicyViolations$1;
|
|
17191
|
+
/** Multi service booking policy settings */
|
|
17192
|
+
policySettings?: BookingPolicySettings$1;
|
|
17193
|
+
/** Info of the bookings this availability was calculated for. */
|
|
17194
|
+
multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo$1[];
|
|
17195
|
+
}
|
|
17196
|
+
interface GetMultiServiceBookingAvailabilityResponseBookingInfo$1 {
|
|
17197
|
+
/** Booking id */
|
|
17198
|
+
bookingId?: string | null;
|
|
17199
|
+
}
|
|
17200
|
+
interface CancelMultiServiceBookingRequest$1 {
|
|
17201
|
+
/** ID of the multi service booking to cancel it's related bookings. */
|
|
17202
|
+
multiServiceBookingId: string | null;
|
|
17203
|
+
/** Information about whether to notify the customer about the cancelation and the message to send. */
|
|
17204
|
+
participantNotification?: ParticipantNotification$1;
|
|
17223
17205
|
/**
|
|
17224
|
-
* Information about whether
|
|
17225
|
-
* the
|
|
17206
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
17207
|
+
* cancelation flow are changed. For example, whether the you can cancel
|
|
17208
|
+
* a booking even though the cancelation policy doesn't allow it or whether
|
|
17209
|
+
* to issue a refund.
|
|
17226
17210
|
*/
|
|
17211
|
+
flowControlSettings?: CancelBookingFlowControlSettings$1;
|
|
17212
|
+
/** Whether to return the canceled bookings entities. */
|
|
17213
|
+
returnFullEntity?: boolean;
|
|
17214
|
+
}
|
|
17215
|
+
interface CancelMultiServiceBookingResponse$1 {
|
|
17216
|
+
/** Canceled multi service booking. */
|
|
17217
|
+
multiServiceBooking?: MultiServiceBooking$1;
|
|
17218
|
+
}
|
|
17219
|
+
interface MarkMultiServiceBookingAsPendingRequest$1 {
|
|
17220
|
+
/** ID of the multi service booking to mark as pending it's related bookings. */
|
|
17221
|
+
multiServiceBookingId: string | null;
|
|
17222
|
+
/** Bookings to mark as pending. */
|
|
17223
|
+
markAsPendingBookingsInfo?: BookingInfo$1[];
|
|
17224
|
+
/** Information about whether to notify the customer upon manual confirmation and the message to send. */
|
|
17227
17225
|
participantNotification?: ParticipantNotification$1;
|
|
17228
17226
|
/**
|
|
17229
17227
|
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
17230
17228
|
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
17231
17229
|
*/
|
|
17232
17230
|
sendSmsReminder?: boolean | null;
|
|
17233
|
-
/**
|
|
17234
|
-
* Payment status to set for the booking.
|
|
17235
|
-
* One of:
|
|
17236
|
-
* - `"NOT_PAID"` The booking is not paid for.
|
|
17237
|
-
* - `"PAID"` The booking is fully paid.
|
|
17238
|
-
* - `"PARTIALLY_PAID"` The booking is partially paid.
|
|
17239
|
-
* - `"REFUNDED"` The booking is refunded.
|
|
17240
|
-
* - `"EXEMPT"` The booking is free of charge.
|
|
17241
|
-
*/
|
|
17242
|
-
paymentStatus?: PaymentStatus$3;
|
|
17243
17231
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
17244
17232
|
doubleBooked?: boolean | null;
|
|
17233
|
+
/** Whether to return the pending bookings entities. */
|
|
17234
|
+
returnFullEntity?: boolean;
|
|
17245
17235
|
/**
|
|
17246
17236
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
17247
17237
|
* creation flow are changed. For example, whether the availability is
|
|
17248
|
-
* checked before
|
|
17238
|
+
* checked before updating the booking.
|
|
17249
17239
|
*/
|
|
17250
|
-
flowControlSettings?:
|
|
17251
|
-
}
|
|
17252
|
-
interface ConfirmBookingResponse$1 {
|
|
17253
|
-
booking?: Booking$3;
|
|
17254
|
-
}
|
|
17255
|
-
interface UpdateExtendedFieldsRequest$1 {
|
|
17256
|
-
/** ID of the entity to update. */
|
|
17257
|
-
id: string;
|
|
17258
|
-
/** Identifier for the app whose extended fields are being updated. */
|
|
17259
|
-
namespace: string;
|
|
17260
|
-
/** 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. */
|
|
17261
|
-
namespaceData: Record<string, any> | null;
|
|
17262
|
-
}
|
|
17263
|
-
interface UpdateExtendedFieldsResponse$1 {
|
|
17264
|
-
/** Identifier for the app whose extended field data was updated. */
|
|
17265
|
-
namespace?: string;
|
|
17266
|
-
/** Updated data. */
|
|
17267
|
-
namespaceData?: Record<string, any> | null;
|
|
17240
|
+
flowControlSettings?: MarkBookingAsPendingFlowControlSettings$1;
|
|
17268
17241
|
}
|
|
17269
|
-
interface
|
|
17270
|
-
/** ID of the booking
|
|
17271
|
-
bookingId
|
|
17242
|
+
interface BookingInfo$1 {
|
|
17243
|
+
/** ID of the booking. */
|
|
17244
|
+
bookingId?: string | null;
|
|
17272
17245
|
/**
|
|
17273
17246
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
17274
17247
|
* To prevent conflicting changes, the current revision must be passed when
|
|
17275
17248
|
* managing the booking.
|
|
17276
17249
|
*/
|
|
17277
|
-
revision
|
|
17278
|
-
/**
|
|
17279
|
-
* Information about whether to notify the customer about the decline and
|
|
17280
|
-
* the message to send.
|
|
17281
|
-
*/
|
|
17282
|
-
participantNotification?: ParticipantNotification$1;
|
|
17250
|
+
revision?: string | null;
|
|
17283
17251
|
/**
|
|
17284
|
-
* Payment status to set
|
|
17252
|
+
* Payment status to set for the booking.
|
|
17285
17253
|
* One of:
|
|
17286
17254
|
* - `"NOT_PAID"` The booking is not paid for.
|
|
17287
17255
|
* - `"PAID"` The booking is fully paid.
|
|
@@ -17290,100 +17258,132 @@ interface DeclineBookingRequest$1 {
|
|
|
17290
17258
|
* - `"EXEMPT"` The booking is free of charge.
|
|
17291
17259
|
*/
|
|
17292
17260
|
paymentStatus?: PaymentStatus$3;
|
|
17261
|
+
}
|
|
17262
|
+
interface MarkMultiServiceBookingAsPendingResponse$1 {
|
|
17263
|
+
/** Pending multi service booking. */
|
|
17264
|
+
multiServiceBooking?: MultiServiceBooking$1;
|
|
17265
|
+
}
|
|
17266
|
+
interface ConfirmMultiServiceBookingRequest$1 {
|
|
17267
|
+
/** ID of the multi service booking to confirm it's related bookings. */
|
|
17268
|
+
multiServiceBookingId: string | null;
|
|
17269
|
+
/** Bookings to confirm. */
|
|
17270
|
+
confirmBookingsInfo?: BookingInfo$1[];
|
|
17271
|
+
/** Information about whether to notify the customer about the confirmation and the message to send. */
|
|
17272
|
+
participantNotification?: ParticipantNotification$1;
|
|
17273
|
+
/**
|
|
17274
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
17275
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
17276
|
+
*/
|
|
17277
|
+
sendSmsReminder?: boolean | null;
|
|
17293
17278
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
17294
17279
|
doubleBooked?: boolean | null;
|
|
17280
|
+
/** Whether to return the confirmed bookings entities. */
|
|
17281
|
+
returnFullEntity?: boolean;
|
|
17295
17282
|
/**
|
|
17296
17283
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
17297
|
-
*
|
|
17284
|
+
* confirmation flow are changed. For example, whether the availability is
|
|
17285
|
+
* checked before confirming the booking.
|
|
17298
17286
|
*/
|
|
17299
|
-
flowControlSettings?:
|
|
17287
|
+
flowControlSettings?: ConfirmBookingFlowControlSettings$1;
|
|
17300
17288
|
}
|
|
17301
|
-
interface
|
|
17302
|
-
/**
|
|
17303
|
-
|
|
17289
|
+
interface ConfirmMultiServiceBookingResponse$1 {
|
|
17290
|
+
/** Confirmed multi service booking. */
|
|
17291
|
+
multiServiceBooking?: MultiServiceBooking$1;
|
|
17304
17292
|
}
|
|
17305
|
-
interface
|
|
17306
|
-
/** ID of the booking to
|
|
17307
|
-
|
|
17308
|
-
/**
|
|
17309
|
-
|
|
17310
|
-
|
|
17311
|
-
*/
|
|
17293
|
+
interface DeclineMultiServiceBookingRequest$1 {
|
|
17294
|
+
/** ID of the multi service booking to decline it's related bookings. */
|
|
17295
|
+
multiServiceBookingId: string | null;
|
|
17296
|
+
/** Bookings to decline. */
|
|
17297
|
+
declineBookingsInfo?: BookingInfo$1[];
|
|
17298
|
+
/** Information about whether to notify the customer about the decline and the message to send. */
|
|
17312
17299
|
participantNotification?: ParticipantNotification$1;
|
|
17300
|
+
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
17301
|
+
doubleBooked?: boolean | null;
|
|
17302
|
+
/** Whether to return the declined bookings entities. */
|
|
17303
|
+
returnFullEntity?: boolean;
|
|
17313
17304
|
/**
|
|
17314
17305
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
17315
|
-
*
|
|
17316
|
-
* a booking even though the cancelation policy doesn't allow it or whether
|
|
17317
|
-
* to issue a refund.
|
|
17318
|
-
*/
|
|
17319
|
-
flowControlSettings?: CancelBookingFlowControlSettings$1;
|
|
17320
|
-
/**
|
|
17321
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
17322
|
-
* To prevent conflicting changes,
|
|
17323
|
-
* the current revision must be passed when managing the booking.
|
|
17306
|
+
* declining flow are changed. For example, whether to issue a refund.
|
|
17324
17307
|
*/
|
|
17325
|
-
|
|
17308
|
+
flowControlSettings?: DeclineBookingFlowControlSettings$1;
|
|
17326
17309
|
}
|
|
17327
|
-
interface
|
|
17328
|
-
/**
|
|
17329
|
-
|
|
17310
|
+
interface DeclineMultiServiceBookingResponse$1 {
|
|
17311
|
+
/** Declined multi service booking. */
|
|
17312
|
+
multiServiceBooking?: MultiServiceBooking$1;
|
|
17330
17313
|
}
|
|
17331
|
-
interface
|
|
17314
|
+
interface BulkGetMultiServiceBookingAllowedActionsRequest$1 {
|
|
17315
|
+
/** The multi service booking ids to get the allowedActions for. */
|
|
17316
|
+
multiServiceBookingIds: string[] | null;
|
|
17317
|
+
}
|
|
17318
|
+
interface BulkGetMultiServiceBookingAllowedActionsResponse$1 {
|
|
17319
|
+
results?: BulkCalculateAllowedActionsResult$1[];
|
|
17320
|
+
bulkActionMetadata?: BulkActionMetadata$1;
|
|
17321
|
+
}
|
|
17322
|
+
interface MarkAsMultiServiceBookingRequest$1 {
|
|
17323
|
+
/** IDs of the bookings to mark as multi service booking. */
|
|
17324
|
+
bookingIds: string[] | null;
|
|
17332
17325
|
/**
|
|
17333
|
-
*
|
|
17334
|
-
*
|
|
17335
|
-
*
|
|
17326
|
+
* Multi service booking type.
|
|
17327
|
+
* One of:
|
|
17328
|
+
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
17329
|
+
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
17330
|
+
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
17336
17331
|
*/
|
|
17337
|
-
|
|
17332
|
+
multiServiceBookingType?: MultiServiceBookingType$1;
|
|
17333
|
+
}
|
|
17334
|
+
interface MarkAsMultiServiceBookingResponse$1 {
|
|
17335
|
+
/** Multi service booking ID. */
|
|
17336
|
+
multiServiceBookingId?: string | null;
|
|
17337
|
+
}
|
|
17338
|
+
interface GetMultiServiceBookingRequest$1 {
|
|
17339
|
+
/** Multi service booking ID. */
|
|
17340
|
+
multiServiceBookingId: string | null;
|
|
17341
|
+
}
|
|
17342
|
+
interface GetMultiServiceBookingResponse$1 {
|
|
17343
|
+
/** Multi service booking. */
|
|
17344
|
+
multiServiceBooking?: MultiServiceBooking$1;
|
|
17345
|
+
metadata?: MultiServiceBookingMetadata$1;
|
|
17346
|
+
}
|
|
17347
|
+
interface MultiServiceBookingMetadata$1 {
|
|
17338
17348
|
/**
|
|
17339
|
-
*
|
|
17340
|
-
*
|
|
17341
|
-
* Pass when not all participants book the same variant.
|
|
17349
|
+
* Total number of the scheduled bookings within the multi service booking, including bookings which were not retrieved due to lack of read permissions.
|
|
17350
|
+
* Scheduled bookings are bookings with status CONFIRMED or PENDING.
|
|
17342
17351
|
*/
|
|
17343
|
-
|
|
17344
|
-
|
|
17345
|
-
|
|
17352
|
+
totalNumberOfScheduledBookings?: number | null;
|
|
17353
|
+
}
|
|
17354
|
+
interface AddBookingsToMultiServiceBookingRequest$1 {
|
|
17355
|
+
/** ID of the multi service booking. */
|
|
17356
|
+
multiServiceBookingId: string | null;
|
|
17357
|
+
/** List of bookings ids and their revisions to add to the multi service booking. */
|
|
17358
|
+
bookings: BookingIdAndRevision$1[];
|
|
17359
|
+
/** Whether to return the bookings entities. */
|
|
17360
|
+
returnFullEntity?: boolean;
|
|
17361
|
+
}
|
|
17362
|
+
interface BookingIdAndRevision$1 {
|
|
17363
|
+
/** ID of the booking. */
|
|
17364
|
+
bookingId?: string | null;
|
|
17346
17365
|
/**
|
|
17347
17366
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
17348
17367
|
* To prevent conflicting changes, the current revision must be passed when
|
|
17349
17368
|
* managing the booking.
|
|
17350
17369
|
*/
|
|
17351
|
-
revision
|
|
17352
|
-
}
|
|
17353
|
-
/** @oneof */
|
|
17354
|
-
interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf$1 {
|
|
17355
|
-
/**
|
|
17356
|
-
* Total number of participants. Available only for services with
|
|
17357
|
-
* variants.
|
|
17358
|
-
* Pass when all participants book the same variant.
|
|
17359
|
-
*/
|
|
17360
|
-
totalParticipants?: number;
|
|
17361
|
-
/**
|
|
17362
|
-
* Information about the service choices to book. Available only for services with
|
|
17363
|
-
* variants.
|
|
17364
|
-
* Pass when not all participants book the same variant.
|
|
17365
|
-
*/
|
|
17366
|
-
participantsChoices?: ParticipantChoices$3;
|
|
17370
|
+
revision?: string | null;
|
|
17367
17371
|
}
|
|
17368
|
-
interface
|
|
17369
|
-
/**
|
|
17370
|
-
|
|
17372
|
+
interface AddBookingsToMultiServiceBookingResponse$1 {
|
|
17373
|
+
/** The bookings that were added to the multi service booking. */
|
|
17374
|
+
bookings?: BookingResult$1[];
|
|
17371
17375
|
}
|
|
17372
|
-
interface
|
|
17373
|
-
/** ID of the
|
|
17374
|
-
|
|
17375
|
-
/**
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
|
|
17379
|
-
* The booking is declined if there is a double booking conflict and you provide
|
|
17380
|
-
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
17381
|
-
*/
|
|
17382
|
-
paymentStatus?: PaymentStatus$3;
|
|
17376
|
+
interface RemoveBookingsFromMultiServiceBookingRequest$1 {
|
|
17377
|
+
/** ID of the multi service booking. */
|
|
17378
|
+
multiServiceBookingId: string | null;
|
|
17379
|
+
/** List of bookings ids and their revisions to remove from the multi service booking. */
|
|
17380
|
+
bookings?: BookingIdAndRevision$1[];
|
|
17381
|
+
/** Whether to return the bookings entities. */
|
|
17382
|
+
returnFullEntity?: boolean;
|
|
17383
17383
|
}
|
|
17384
|
-
interface
|
|
17385
|
-
/**
|
|
17386
|
-
|
|
17384
|
+
interface RemoveBookingsFromMultiServiceBookingResponse$1 {
|
|
17385
|
+
/** The bookings that were removed from the multi service booking. */
|
|
17386
|
+
bookings?: BookingResult$1[];
|
|
17387
17387
|
}
|
|
17388
17388
|
interface DurationNonNullableFields$3 {
|
|
17389
17389
|
minutes: number;
|
|
@@ -17478,6 +17478,52 @@ interface BookingNonNullableFields$1 {
|
|
|
17478
17478
|
flowControlSettings?: FlowControlSettingsNonNullableFields$1;
|
|
17479
17479
|
multiServiceBookingInfo?: MultiServiceBookingInfoNonNullableFields$1;
|
|
17480
17480
|
}
|
|
17481
|
+
interface ConfirmOrDeclineBookingResponseNonNullableFields$1 {
|
|
17482
|
+
booking?: BookingNonNullableFields$1;
|
|
17483
|
+
}
|
|
17484
|
+
interface CreateBookingResponseNonNullableFields$1 {
|
|
17485
|
+
booking?: BookingNonNullableFields$1;
|
|
17486
|
+
}
|
|
17487
|
+
interface ApplicationErrorNonNullableFields$1 {
|
|
17488
|
+
code: string;
|
|
17489
|
+
description: string;
|
|
17490
|
+
}
|
|
17491
|
+
interface ItemMetadataNonNullableFields$1 {
|
|
17492
|
+
originalIndex: number;
|
|
17493
|
+
success: boolean;
|
|
17494
|
+
error?: ApplicationErrorNonNullableFields$1;
|
|
17495
|
+
}
|
|
17496
|
+
interface BulkBookingResultNonNullableFields$1 {
|
|
17497
|
+
itemMetadata?: ItemMetadataNonNullableFields$1;
|
|
17498
|
+
item?: BookingNonNullableFields$1;
|
|
17499
|
+
}
|
|
17500
|
+
interface BulkActionMetadataNonNullableFields$1 {
|
|
17501
|
+
totalSuccesses: number;
|
|
17502
|
+
totalFailures: number;
|
|
17503
|
+
undetailedFailures: number;
|
|
17504
|
+
}
|
|
17505
|
+
interface BulkCreateBookingResponseNonNullableFields$1 {
|
|
17506
|
+
results: BulkBookingResultNonNullableFields$1[];
|
|
17507
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
|
|
17508
|
+
}
|
|
17509
|
+
interface RescheduleBookingResponseNonNullableFields$1 {
|
|
17510
|
+
booking?: BookingNonNullableFields$1;
|
|
17511
|
+
}
|
|
17512
|
+
interface ConfirmBookingResponseNonNullableFields$1 {
|
|
17513
|
+
booking?: BookingNonNullableFields$1;
|
|
17514
|
+
}
|
|
17515
|
+
interface UpdateExtendedFieldsResponseNonNullableFields$1 {
|
|
17516
|
+
namespace: string;
|
|
17517
|
+
}
|
|
17518
|
+
interface DeclineBookingResponseNonNullableFields$1 {
|
|
17519
|
+
booking?: BookingNonNullableFields$1;
|
|
17520
|
+
}
|
|
17521
|
+
interface CancelBookingResponseNonNullableFields$1 {
|
|
17522
|
+
booking?: BookingNonNullableFields$1;
|
|
17523
|
+
}
|
|
17524
|
+
interface UpdateNumberOfParticipantsResponseNonNullableFields$1 {
|
|
17525
|
+
booking?: BookingNonNullableFields$1;
|
|
17526
|
+
}
|
|
17481
17527
|
interface BookingResultNonNullableFields$1 {
|
|
17482
17528
|
booking?: BookingNonNullableFields$1;
|
|
17483
17529
|
}
|
|
@@ -17505,15 +17551,6 @@ interface ConfirmMultiServiceBookingResponseNonNullableFields$1 {
|
|
|
17505
17551
|
interface DeclineMultiServiceBookingResponseNonNullableFields$1 {
|
|
17506
17552
|
multiServiceBooking?: MultiServiceBookingNonNullableFields$1;
|
|
17507
17553
|
}
|
|
17508
|
-
interface ApplicationErrorNonNullableFields$1 {
|
|
17509
|
-
code: string;
|
|
17510
|
-
description: string;
|
|
17511
|
-
}
|
|
17512
|
-
interface ItemMetadataNonNullableFields$1 {
|
|
17513
|
-
originalIndex: number;
|
|
17514
|
-
success: boolean;
|
|
17515
|
-
error?: ApplicationErrorNonNullableFields$1;
|
|
17516
|
-
}
|
|
17517
17554
|
interface AllowedActionsNonNullableFields$1 {
|
|
17518
17555
|
cancel: boolean;
|
|
17519
17556
|
reschedule: boolean;
|
|
@@ -17523,11 +17560,6 @@ interface BulkCalculateAllowedActionsResultNonNullableFields$1 {
|
|
|
17523
17560
|
itemMetadata?: ItemMetadataNonNullableFields$1;
|
|
17524
17561
|
item?: AllowedActionsNonNullableFields$1;
|
|
17525
17562
|
}
|
|
17526
|
-
interface BulkActionMetadataNonNullableFields$1 {
|
|
17527
|
-
totalSuccesses: number;
|
|
17528
|
-
totalFailures: number;
|
|
17529
|
-
undetailedFailures: number;
|
|
17530
|
-
}
|
|
17531
17563
|
interface BulkGetMultiServiceBookingAllowedActionsResponseNonNullableFields$1 {
|
|
17532
17564
|
results: BulkCalculateAllowedActionsResultNonNullableFields$1[];
|
|
17533
17565
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
|
|
@@ -17541,38 +17573,6 @@ interface AddBookingsToMultiServiceBookingResponseNonNullableFields$1 {
|
|
|
17541
17573
|
interface RemoveBookingsFromMultiServiceBookingResponseNonNullableFields$1 {
|
|
17542
17574
|
bookings: BookingResultNonNullableFields$1[];
|
|
17543
17575
|
}
|
|
17544
|
-
interface CreateBookingResponseNonNullableFields$1 {
|
|
17545
|
-
booking?: BookingNonNullableFields$1;
|
|
17546
|
-
}
|
|
17547
|
-
interface BulkBookingResultNonNullableFields$1 {
|
|
17548
|
-
itemMetadata?: ItemMetadataNonNullableFields$1;
|
|
17549
|
-
item?: BookingNonNullableFields$1;
|
|
17550
|
-
}
|
|
17551
|
-
interface BulkCreateBookingResponseNonNullableFields$1 {
|
|
17552
|
-
results: BulkBookingResultNonNullableFields$1[];
|
|
17553
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
|
|
17554
|
-
}
|
|
17555
|
-
interface RescheduleBookingResponseNonNullableFields$1 {
|
|
17556
|
-
booking?: BookingNonNullableFields$1;
|
|
17557
|
-
}
|
|
17558
|
-
interface ConfirmBookingResponseNonNullableFields$1 {
|
|
17559
|
-
booking?: BookingNonNullableFields$1;
|
|
17560
|
-
}
|
|
17561
|
-
interface UpdateExtendedFieldsResponseNonNullableFields$1 {
|
|
17562
|
-
namespace: string;
|
|
17563
|
-
}
|
|
17564
|
-
interface DeclineBookingResponseNonNullableFields$1 {
|
|
17565
|
-
booking?: BookingNonNullableFields$1;
|
|
17566
|
-
}
|
|
17567
|
-
interface CancelBookingResponseNonNullableFields$1 {
|
|
17568
|
-
booking?: BookingNonNullableFields$1;
|
|
17569
|
-
}
|
|
17570
|
-
interface UpdateNumberOfParticipantsResponseNonNullableFields$1 {
|
|
17571
|
-
booking?: BookingNonNullableFields$1;
|
|
17572
|
-
}
|
|
17573
|
-
interface ConfirmOrDeclineBookingResponseNonNullableFields$1 {
|
|
17574
|
-
booking?: BookingNonNullableFields$1;
|
|
17575
|
-
}
|
|
17576
17576
|
|
|
17577
17577
|
/** The booking object, version 2. */
|
|
17578
17578
|
interface Booking$2 extends BookingParticipantsInfoOneOf$2 {
|
|
@@ -18047,9 +18047,55 @@ interface ServiceChoiceChoiceOneOf$2 {
|
|
|
18047
18047
|
*/
|
|
18048
18048
|
custom?: string;
|
|
18049
18049
|
}
|
|
18050
|
-
interface
|
|
18051
|
-
/**
|
|
18052
|
-
|
|
18050
|
+
interface ConfirmOrDeclineBookingRequest {
|
|
18051
|
+
/** ID of the booking to confirm or decline. */
|
|
18052
|
+
bookingId: string;
|
|
18053
|
+
/**
|
|
18054
|
+
* Current payment status of the booking when using a custom checkout page and
|
|
18055
|
+
* not the [Wix eCommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction).
|
|
18056
|
+
*
|
|
18057
|
+
* The booking is declined if there is a double booking conflict and you provide
|
|
18058
|
+
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
18059
|
+
*/
|
|
18060
|
+
paymentStatus?: PaymentStatus$2;
|
|
18061
|
+
}
|
|
18062
|
+
interface ConfirmOrDeclineBookingResponse {
|
|
18063
|
+
/** Updated booking. */
|
|
18064
|
+
booking?: Booking$2;
|
|
18065
|
+
}
|
|
18066
|
+
interface BulkBookingResult {
|
|
18067
|
+
itemMetadata?: ItemMetadata;
|
|
18068
|
+
item?: Booking$2;
|
|
18069
|
+
}
|
|
18070
|
+
interface ItemMetadata {
|
|
18071
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
18072
|
+
_id?: string | null;
|
|
18073
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
18074
|
+
originalIndex?: number;
|
|
18075
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
18076
|
+
success?: boolean;
|
|
18077
|
+
/** Details about the error in case of failure. */
|
|
18078
|
+
error?: ApplicationError;
|
|
18079
|
+
}
|
|
18080
|
+
interface ApplicationError {
|
|
18081
|
+
/** Error code. */
|
|
18082
|
+
code?: string;
|
|
18083
|
+
/** Description of the error. */
|
|
18084
|
+
description?: string;
|
|
18085
|
+
/** Data related to the error. */
|
|
18086
|
+
data?: Record<string, any> | null;
|
|
18087
|
+
}
|
|
18088
|
+
interface BulkActionMetadata {
|
|
18089
|
+
/** Number of items that were successfully processed. */
|
|
18090
|
+
totalSuccesses?: number;
|
|
18091
|
+
/** Number of items that couldn't be processed. */
|
|
18092
|
+
totalFailures?: number;
|
|
18093
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
18094
|
+
undetailedFailures?: number;
|
|
18095
|
+
}
|
|
18096
|
+
interface CreateBookingRequest {
|
|
18097
|
+
/** The booking to create. */
|
|
18098
|
+
booking: Booking$2;
|
|
18053
18099
|
/** Information about a message to send to the customer. */
|
|
18054
18100
|
participantNotification?: ParticipantNotification;
|
|
18055
18101
|
/**
|
|
@@ -18065,16 +18111,6 @@ interface CreateMultiServiceBookingRequest {
|
|
|
18065
18111
|
* accepted.
|
|
18066
18112
|
*/
|
|
18067
18113
|
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
18068
|
-
/** Whether to return the created bookings entities. */
|
|
18069
|
-
returnFullEntity?: boolean;
|
|
18070
|
-
/**
|
|
18071
|
-
* Multi service booking type.
|
|
18072
|
-
* One of:
|
|
18073
|
-
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
18074
|
-
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
18075
|
-
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
18076
|
-
*/
|
|
18077
|
-
multiServiceBookingType?: MultiServiceBookingType;
|
|
18078
18114
|
}
|
|
18079
18115
|
interface CreateBookingFlowControlSettings {
|
|
18080
18116
|
/**
|
|
@@ -18101,31 +18137,74 @@ interface CreateBookingFlowControlSettings {
|
|
|
18101
18137
|
*/
|
|
18102
18138
|
skipSelectedPaymentOptionValidation?: boolean;
|
|
18103
18139
|
}
|
|
18104
|
-
interface
|
|
18140
|
+
interface CreateBookingResponse {
|
|
18141
|
+
/** Created booking. */
|
|
18142
|
+
booking?: Booking$2;
|
|
18143
|
+
}
|
|
18144
|
+
interface BulkCreateBookingRequest {
|
|
18105
18145
|
/**
|
|
18106
|
-
*
|
|
18107
|
-
*
|
|
18146
|
+
* Bookings to create.
|
|
18147
|
+
* Max: 8 bookings.
|
|
18108
18148
|
*/
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
/** Multi service booking ID. */
|
|
18113
|
-
_id?: string | null;
|
|
18114
|
-
/** The created bookings which are part of the multi service booking */
|
|
18115
|
-
bookings?: BookingResult[];
|
|
18149
|
+
createBookingsInfo: CreateBookingInfo[];
|
|
18150
|
+
/** Whether to return the created bookings entities. */
|
|
18151
|
+
returnFullEntity?: boolean;
|
|
18116
18152
|
}
|
|
18117
|
-
interface
|
|
18118
|
-
/**
|
|
18119
|
-
bookingId?: string | null;
|
|
18120
|
-
/** Booking entity. */
|
|
18153
|
+
interface CreateBookingInfo {
|
|
18154
|
+
/** The booking to create */
|
|
18121
18155
|
booking?: Booking$2;
|
|
18156
|
+
/** Information about a message to send to the customer. */
|
|
18157
|
+
participantNotification?: ParticipantNotification;
|
|
18158
|
+
/**
|
|
18159
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
18160
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
18161
|
+
* Default: `true`.
|
|
18162
|
+
*/
|
|
18163
|
+
sendSmsReminder?: boolean | null;
|
|
18164
|
+
/**
|
|
18165
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
18166
|
+
* creation flow are changed. For example, whether the availability is
|
|
18167
|
+
* checked before creating the booking or if additional payment options are
|
|
18168
|
+
* accepted.
|
|
18169
|
+
*/
|
|
18170
|
+
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
18122
18171
|
}
|
|
18123
|
-
interface
|
|
18124
|
-
/**
|
|
18125
|
-
|
|
18126
|
-
|
|
18127
|
-
|
|
18128
|
-
|
|
18172
|
+
interface BulkCreateBookingResponse {
|
|
18173
|
+
/**
|
|
18174
|
+
* Bulk create booking results.
|
|
18175
|
+
* Whether it successfully created each booking, providing the corresponding error message if a failure occurred, and includes the created booking entity if the `returnFullEntity` is `true`.
|
|
18176
|
+
*/
|
|
18177
|
+
results?: BulkBookingResult[];
|
|
18178
|
+
/** Total successes and failures of the bulk create booking action. */
|
|
18179
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
18180
|
+
}
|
|
18181
|
+
interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsInfoOneOf {
|
|
18182
|
+
/**
|
|
18183
|
+
* Total number of participants. Available only for services with
|
|
18184
|
+
* variants.
|
|
18185
|
+
* Pass when all participants book the same variant.
|
|
18186
|
+
*/
|
|
18187
|
+
totalParticipants?: number;
|
|
18188
|
+
/**
|
|
18189
|
+
* Information about the service choices to book. Available only for services with
|
|
18190
|
+
* variants.
|
|
18191
|
+
* Pass when not all participants book the same variant.
|
|
18192
|
+
*/
|
|
18193
|
+
participantsChoices?: ParticipantChoices$2;
|
|
18194
|
+
/** ID of the booking to reschedule. */
|
|
18195
|
+
bookingId: string;
|
|
18196
|
+
/** Information about the new slot. */
|
|
18197
|
+
slot: V2Slot;
|
|
18198
|
+
/**
|
|
18199
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
18200
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
18201
|
+
* managing the booking.
|
|
18202
|
+
*/
|
|
18203
|
+
revision: string | null;
|
|
18204
|
+
/**
|
|
18205
|
+
* Information about whether to notify the customer about the rescheduling and
|
|
18206
|
+
* the message to send.
|
|
18207
|
+
*/
|
|
18129
18208
|
participantNotification?: ParticipantNotification;
|
|
18130
18209
|
/**
|
|
18131
18210
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
@@ -18134,8 +18213,21 @@ interface RescheduleMultiServiceBookingRequest {
|
|
|
18134
18213
|
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
18135
18214
|
*/
|
|
18136
18215
|
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
18137
|
-
|
|
18138
|
-
|
|
18216
|
+
}
|
|
18217
|
+
/** @oneof */
|
|
18218
|
+
interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
18219
|
+
/**
|
|
18220
|
+
* Total number of participants. Available only for services with
|
|
18221
|
+
* variants.
|
|
18222
|
+
* Pass when all participants book the same variant.
|
|
18223
|
+
*/
|
|
18224
|
+
totalParticipants?: number;
|
|
18225
|
+
/**
|
|
18226
|
+
* Information about the service choices to book. Available only for services with
|
|
18227
|
+
* variants.
|
|
18228
|
+
* Pass when not all participants book the same variant.
|
|
18229
|
+
*/
|
|
18230
|
+
participantsChoices?: ParticipantChoices$2;
|
|
18139
18231
|
}
|
|
18140
18232
|
interface V2Slot {
|
|
18141
18233
|
/** Identifier for underlying session when session is a single session or generated from a recurring session. */
|
|
@@ -18189,45 +18281,6 @@ interface SlotLocation {
|
|
|
18189
18281
|
/** Location type. */
|
|
18190
18282
|
locationType?: LocationLocationType;
|
|
18191
18283
|
}
|
|
18192
|
-
interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
|
|
18193
|
-
/**
|
|
18194
|
-
* Total number of participants. Available only for services with
|
|
18195
|
-
* variants.
|
|
18196
|
-
* Pass when all participants book the same variant.
|
|
18197
|
-
*/
|
|
18198
|
-
totalParticipants?: number;
|
|
18199
|
-
/**
|
|
18200
|
-
* Information about the service choices to book. Available only for services with
|
|
18201
|
-
* variants.
|
|
18202
|
-
* Pass when not all participants book the same variant.
|
|
18203
|
-
*/
|
|
18204
|
-
participantsChoices?: ParticipantChoices$2;
|
|
18205
|
-
/** ID of the booking to reschedule. */
|
|
18206
|
-
bookingId?: string | null;
|
|
18207
|
-
/** Information about the new slot. */
|
|
18208
|
-
slot?: V2Slot;
|
|
18209
|
-
/**
|
|
18210
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
18211
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
18212
|
-
* managing the booking.
|
|
18213
|
-
*/
|
|
18214
|
-
revision?: string | null;
|
|
18215
|
-
}
|
|
18216
|
-
/** @oneof */
|
|
18217
|
-
interface RescheduleBookingInfoParticipantsInfoOneOf {
|
|
18218
|
-
/**
|
|
18219
|
-
* Total number of participants. Available only for services with
|
|
18220
|
-
* variants.
|
|
18221
|
-
* Pass when all participants book the same variant.
|
|
18222
|
-
*/
|
|
18223
|
-
totalParticipants?: number;
|
|
18224
|
-
/**
|
|
18225
|
-
* Information about the service choices to book. Available only for services with
|
|
18226
|
-
* variants.
|
|
18227
|
-
* Pass when not all participants book the same variant.
|
|
18228
|
-
*/
|
|
18229
|
-
participantsChoices?: ParticipantChoices$2;
|
|
18230
|
-
}
|
|
18231
18284
|
interface RescheduleBookingFlowControlSettings {
|
|
18232
18285
|
/**
|
|
18233
18286
|
* Whether the rescheduling policy applies when rescheduling the booking.
|
|
@@ -18251,113 +18304,29 @@ interface RescheduleBookingFlowControlSettings {
|
|
|
18251
18304
|
*/
|
|
18252
18305
|
skipBusinessConfirmation?: boolean;
|
|
18253
18306
|
}
|
|
18254
|
-
interface
|
|
18255
|
-
/** Rescheduled
|
|
18256
|
-
|
|
18257
|
-
}
|
|
18258
|
-
interface GetMultiServiceBookingAvailabilityRequest {
|
|
18259
|
-
multiServiceBookingId: string | null;
|
|
18307
|
+
interface RescheduleBookingResponse {
|
|
18308
|
+
/** Rescheduled booking. */
|
|
18309
|
+
booking?: Booking$2;
|
|
18260
18310
|
}
|
|
18261
|
-
interface
|
|
18262
|
-
/**
|
|
18263
|
-
|
|
18264
|
-
/** Total number of spots for this availability. */
|
|
18265
|
-
totalCapacity?: number | null;
|
|
18266
|
-
/** Number of open spots for this availability. */
|
|
18267
|
-
remainingCapacity?: number | null;
|
|
18268
|
-
/** Indicators for policy violations of the multi service booking. */
|
|
18269
|
-
policyViolations?: BookingPolicyViolations;
|
|
18270
|
-
/** Multi service booking policy settings */
|
|
18271
|
-
policySettings?: BookingPolicySettings;
|
|
18272
|
-
/** Info of the bookings this availability was calculated for. */
|
|
18273
|
-
multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo[];
|
|
18274
|
-
}
|
|
18275
|
-
interface BookingPolicyViolations {
|
|
18276
|
-
/** Bookings policy violation. Too early to book this slot. */
|
|
18277
|
-
tooEarlyToBook?: boolean | null;
|
|
18278
|
-
/** Bookings policy violation. Too late to book this slot. */
|
|
18279
|
-
tooLateToBook?: boolean | null;
|
|
18280
|
-
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
18281
|
-
bookOnlineDisabled?: boolean | null;
|
|
18282
|
-
}
|
|
18283
|
-
interface BookingPolicySettings {
|
|
18284
|
-
/** Booking policy settings for a given Slot/Schedule */
|
|
18285
|
-
maxParticipantsPerBooking?: number | null;
|
|
18286
|
-
}
|
|
18287
|
-
interface GetMultiServiceBookingAvailabilityResponseBookingInfo {
|
|
18288
|
-
/** Booking id */
|
|
18289
|
-
bookingId?: string | null;
|
|
18290
|
-
}
|
|
18291
|
-
interface CancelMultiServiceBookingRequest {
|
|
18292
|
-
/** ID of the multi service booking to cancel it's related bookings. */
|
|
18293
|
-
multiServiceBookingId: string | null;
|
|
18294
|
-
/** Information about whether to notify the customer about the cancelation and the message to send. */
|
|
18295
|
-
participantNotification?: ParticipantNotification;
|
|
18296
|
-
/**
|
|
18297
|
-
* Information about whether specific procedures of the standard Wix Bookings
|
|
18298
|
-
* cancelation flow are changed. For example, whether the you can cancel
|
|
18299
|
-
* a booking even though the cancelation policy doesn't allow it or whether
|
|
18300
|
-
* to issue a refund.
|
|
18301
|
-
*/
|
|
18302
|
-
flowControlSettings?: CancelBookingFlowControlSettings;
|
|
18303
|
-
/** Whether to return the canceled bookings entities. */
|
|
18304
|
-
returnFullEntity?: boolean;
|
|
18305
|
-
}
|
|
18306
|
-
interface CancelBookingFlowControlSettings {
|
|
18311
|
+
interface ConfirmBookingRequest {
|
|
18312
|
+
/** ID of the booking to confirm. */
|
|
18313
|
+
bookingId: string;
|
|
18307
18314
|
/**
|
|
18308
|
-
*
|
|
18309
|
-
*
|
|
18310
|
-
*
|
|
18311
|
-
* Default: `false`.
|
|
18315
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
18316
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
18317
|
+
* managing the booking.
|
|
18312
18318
|
*/
|
|
18313
|
-
|
|
18319
|
+
revision: string | null;
|
|
18314
18320
|
/**
|
|
18315
|
-
*
|
|
18316
|
-
*
|
|
18317
|
-
* Currently, booking is considered refundable when it was paid by membership.
|
|
18318
|
-
* If passing `true`, the booking flow control settings will be set with refund,
|
|
18319
|
-
* otherwise, either if `false` is passed or the field remains empty,
|
|
18320
|
-
* the booking flow control settings will be set with no refund.
|
|
18321
|
-
* Default: `false`.
|
|
18321
|
+
* Information about whether to notify the customer about the confirmation and
|
|
18322
|
+
* the message to send.
|
|
18322
18323
|
*/
|
|
18323
|
-
withRefund?: boolean | null;
|
|
18324
|
-
}
|
|
18325
|
-
interface CancelMultiServiceBookingResponse {
|
|
18326
|
-
/** Canceled multi service booking. */
|
|
18327
|
-
multiServiceBooking?: MultiServiceBooking;
|
|
18328
|
-
}
|
|
18329
|
-
interface MarkMultiServiceBookingAsPendingRequest {
|
|
18330
|
-
/** ID of the multi service booking to mark as pending it's related bookings. */
|
|
18331
|
-
multiServiceBookingId: string | null;
|
|
18332
|
-
/** Bookings to mark as pending. */
|
|
18333
|
-
markAsPendingBookingsInfo?: BookingInfo[];
|
|
18334
|
-
/** Information about whether to notify the customer upon manual confirmation and the message to send. */
|
|
18335
18324
|
participantNotification?: ParticipantNotification;
|
|
18336
18325
|
/**
|
|
18337
18326
|
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
18338
18327
|
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
18339
18328
|
*/
|
|
18340
18329
|
sendSmsReminder?: boolean | null;
|
|
18341
|
-
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
18342
|
-
doubleBooked?: boolean | null;
|
|
18343
|
-
/** Whether to return the pending bookings entities. */
|
|
18344
|
-
returnFullEntity?: boolean;
|
|
18345
|
-
/**
|
|
18346
|
-
* Information about whether specific procedures of the standard Wix Bookings
|
|
18347
|
-
* creation flow are changed. For example, whether the availability is
|
|
18348
|
-
* checked before updating the booking.
|
|
18349
|
-
*/
|
|
18350
|
-
flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
|
|
18351
|
-
}
|
|
18352
|
-
interface BookingInfo {
|
|
18353
|
-
/** ID of the booking. */
|
|
18354
|
-
bookingId?: string | null;
|
|
18355
|
-
/**
|
|
18356
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
18357
|
-
* To prevent conflicting changes, the current revision must be passed when
|
|
18358
|
-
* managing the booking.
|
|
18359
|
-
*/
|
|
18360
|
-
revision?: string | null;
|
|
18361
18330
|
/**
|
|
18362
18331
|
* Payment status to set for the booking.
|
|
18363
18332
|
* One of:
|
|
@@ -18368,44 +18337,11 @@ interface BookingInfo {
|
|
|
18368
18337
|
* - `"EXEMPT"` The booking is free of charge.
|
|
18369
18338
|
*/
|
|
18370
18339
|
paymentStatus?: PaymentStatus$2;
|
|
18371
|
-
}
|
|
18372
|
-
interface MarkBookingAsPendingFlowControlSettings {
|
|
18373
|
-
/**
|
|
18374
|
-
* Whether should check for double bookings before updating the booking as pending.
|
|
18375
|
-
* When passing `false` a booking is only being updated with status PENDING
|
|
18376
|
-
* Default: `false`.
|
|
18377
|
-
*/
|
|
18378
|
-
checkAvailabilityValidation?: boolean;
|
|
18379
|
-
/**
|
|
18380
|
-
* Whether should validate that the given booking to be marked as pending, has a booking.slot.serviceId
|
|
18381
|
-
* of a pending approval service.
|
|
18382
|
-
* Default: `false`.
|
|
18383
|
-
*/
|
|
18384
|
-
skipPendingApprovalServiceValidation?: boolean;
|
|
18385
|
-
}
|
|
18386
|
-
interface MarkMultiServiceBookingAsPendingResponse {
|
|
18387
|
-
/** Pending multi service booking. */
|
|
18388
|
-
multiServiceBooking?: MultiServiceBooking;
|
|
18389
|
-
}
|
|
18390
|
-
interface ConfirmMultiServiceBookingRequest {
|
|
18391
|
-
/** ID of the multi service booking to confirm it's related bookings. */
|
|
18392
|
-
multiServiceBookingId: string | null;
|
|
18393
|
-
/** Bookings to confirm. */
|
|
18394
|
-
confirmBookingsInfo?: BookingInfo[];
|
|
18395
|
-
/** Information about whether to notify the customer about the confirmation and the message to send. */
|
|
18396
|
-
participantNotification?: ParticipantNotification;
|
|
18397
|
-
/**
|
|
18398
|
-
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
18399
|
-
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
18400
|
-
*/
|
|
18401
|
-
sendSmsReminder?: boolean | null;
|
|
18402
18340
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
18403
18341
|
doubleBooked?: boolean | null;
|
|
18404
|
-
/** Whether to return the confirmed bookings entities. */
|
|
18405
|
-
returnFullEntity?: boolean;
|
|
18406
18342
|
/**
|
|
18407
18343
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
18408
|
-
*
|
|
18344
|
+
* creation flow are changed. For example, whether the availability is
|
|
18409
18345
|
* checked before confirming the booking.
|
|
18410
18346
|
*/
|
|
18411
18347
|
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
@@ -18418,21 +18354,49 @@ interface ConfirmBookingFlowControlSettings {
|
|
|
18418
18354
|
*/
|
|
18419
18355
|
checkAvailabilityValidation?: boolean;
|
|
18420
18356
|
}
|
|
18421
|
-
interface
|
|
18422
|
-
|
|
18423
|
-
multiServiceBooking?: MultiServiceBooking;
|
|
18357
|
+
interface ConfirmBookingResponse {
|
|
18358
|
+
booking?: Booking$2;
|
|
18424
18359
|
}
|
|
18425
|
-
interface
|
|
18426
|
-
/** ID of the
|
|
18427
|
-
|
|
18428
|
-
/**
|
|
18429
|
-
|
|
18430
|
-
/**
|
|
18360
|
+
interface UpdateExtendedFieldsRequest {
|
|
18361
|
+
/** ID of the booking for which to update extended fields. */
|
|
18362
|
+
_id: string;
|
|
18363
|
+
/** [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. */
|
|
18364
|
+
namespace: string;
|
|
18365
|
+
/** Data of the extended field to update. Must be structured according to the [schema](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions#json-schema-for-extended-fields) defined during the configuration of the extended fields. */
|
|
18366
|
+
namespaceData: Record<string, any> | null;
|
|
18367
|
+
}
|
|
18368
|
+
interface UpdateExtendedFieldsResponse {
|
|
18369
|
+
/** [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 the extended fields were updated. */
|
|
18370
|
+
namespace?: string;
|
|
18371
|
+
/** Updated data of the extended fields. */
|
|
18372
|
+
namespaceData?: Record<string, any> | null;
|
|
18373
|
+
}
|
|
18374
|
+
interface DeclineBookingRequest {
|
|
18375
|
+
/** ID of the booking to decline. */
|
|
18376
|
+
bookingId: string;
|
|
18377
|
+
/**
|
|
18378
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
18379
|
+
* To prevent conflicting changes, the current revision must be passed when
|
|
18380
|
+
* managing the booking.
|
|
18381
|
+
*/
|
|
18382
|
+
revision: string | null;
|
|
18383
|
+
/**
|
|
18384
|
+
* Information about whether to notify the customer about the decline and
|
|
18385
|
+
* the message to send.
|
|
18386
|
+
*/
|
|
18431
18387
|
participantNotification?: ParticipantNotification;
|
|
18388
|
+
/**
|
|
18389
|
+
* Payment status to set on the booking.
|
|
18390
|
+
* One of:
|
|
18391
|
+
* - `"NOT_PAID"` The booking is not paid for.
|
|
18392
|
+
* - `"PAID"` The booking is fully paid.
|
|
18393
|
+
* - `"PARTIALLY_PAID"` The booking is partially paid.
|
|
18394
|
+
* - `"REFUNDED"` The booking is refunded.
|
|
18395
|
+
* - `"EXEMPT"` The booking is free of charge.
|
|
18396
|
+
*/
|
|
18397
|
+
paymentStatus?: PaymentStatus$2;
|
|
18432
18398
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
18433
18399
|
doubleBooked?: boolean | null;
|
|
18434
|
-
/** Whether to return the declined bookings entities. */
|
|
18435
|
-
returnFullEntity?: boolean;
|
|
18436
18400
|
/**
|
|
18437
18401
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
18438
18402
|
* declining flow are changed. For example, whether to issue a refund.
|
|
@@ -18451,157 +18415,137 @@ interface DeclineBookingFlowControlSettings {
|
|
|
18451
18415
|
*/
|
|
18452
18416
|
withRefund?: boolean | null;
|
|
18453
18417
|
}
|
|
18454
|
-
interface
|
|
18455
|
-
/**
|
|
18456
|
-
|
|
18457
|
-
}
|
|
18458
|
-
interface BulkGetMultiServiceBookingAllowedActionsRequest {
|
|
18459
|
-
/** The multi service booking ids to get the allowedActions for. */
|
|
18460
|
-
multiServiceBookingIds: string[] | null;
|
|
18461
|
-
}
|
|
18462
|
-
interface BulkGetMultiServiceBookingAllowedActionsResponse {
|
|
18463
|
-
results?: BulkCalculateAllowedActionsResult[];
|
|
18464
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
18465
|
-
}
|
|
18466
|
-
interface BulkCalculateAllowedActionsResult {
|
|
18467
|
-
/** (id, indexInGivenSeq, isSuccessful, error) */
|
|
18468
|
-
itemMetadata?: ItemMetadata;
|
|
18469
|
-
item?: AllowedActions;
|
|
18470
|
-
}
|
|
18471
|
-
interface ItemMetadata {
|
|
18472
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
18473
|
-
_id?: string | null;
|
|
18474
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
18475
|
-
originalIndex?: number;
|
|
18476
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
18477
|
-
success?: boolean;
|
|
18478
|
-
/** Details about the error in case of failure. */
|
|
18479
|
-
error?: ApplicationError;
|
|
18480
|
-
}
|
|
18481
|
-
interface ApplicationError {
|
|
18482
|
-
/** Error code. */
|
|
18483
|
-
code?: string;
|
|
18484
|
-
/** Description of the error. */
|
|
18485
|
-
description?: string;
|
|
18486
|
-
/** Data related to the error. */
|
|
18487
|
-
data?: Record<string, any> | null;
|
|
18488
|
-
}
|
|
18489
|
-
/** Possible allowed actions for a Booking */
|
|
18490
|
-
interface AllowedActions {
|
|
18491
|
-
/** Is cancel booking allowed */
|
|
18492
|
-
cancel?: boolean;
|
|
18493
|
-
/** Is reschedule booking allowed */
|
|
18494
|
-
reschedule?: boolean;
|
|
18495
|
-
}
|
|
18496
|
-
interface BulkActionMetadata {
|
|
18497
|
-
/** Number of items that were successfully processed. */
|
|
18498
|
-
totalSuccesses?: number;
|
|
18499
|
-
/** Number of items that couldn't be processed. */
|
|
18500
|
-
totalFailures?: number;
|
|
18501
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
18502
|
-
undetailedFailures?: number;
|
|
18418
|
+
interface DeclineBookingResponse {
|
|
18419
|
+
/** eclined booking */
|
|
18420
|
+
booking?: Booking$2;
|
|
18503
18421
|
}
|
|
18504
|
-
interface
|
|
18505
|
-
/**
|
|
18506
|
-
|
|
18422
|
+
interface CancelBookingRequest {
|
|
18423
|
+
/** ID of the booking to cancel. */
|
|
18424
|
+
bookingId: string;
|
|
18507
18425
|
/**
|
|
18508
|
-
*
|
|
18509
|
-
*
|
|
18510
|
-
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
18511
|
-
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
18512
|
-
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
18426
|
+
* Information about whether to notify the customer about the cancelation and
|
|
18427
|
+
* the message to send.
|
|
18513
18428
|
*/
|
|
18514
|
-
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18523
|
-
|
|
18524
|
-
|
|
18525
|
-
|
|
18526
|
-
|
|
18527
|
-
|
|
18429
|
+
participantNotification?: ParticipantNotification;
|
|
18430
|
+
/**
|
|
18431
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
18432
|
+
* cancelation flow are changed. For example, whether the you can cancel
|
|
18433
|
+
* a booking even though the cancelation policy doesn't allow it or whether
|
|
18434
|
+
* to issue a refund.
|
|
18435
|
+
*/
|
|
18436
|
+
flowControlSettings?: CancelBookingFlowControlSettings;
|
|
18437
|
+
/**
|
|
18438
|
+
* Revision number, which increments by 1 each time the booking is updated.
|
|
18439
|
+
* To prevent conflicting changes,
|
|
18440
|
+
* the current revision must be passed when managing the booking.
|
|
18441
|
+
*/
|
|
18442
|
+
revision: string | null;
|
|
18528
18443
|
}
|
|
18529
|
-
interface
|
|
18444
|
+
interface CancelBookingFlowControlSettings {
|
|
18530
18445
|
/**
|
|
18531
|
-
*
|
|
18532
|
-
*
|
|
18446
|
+
* Whether the cancelation policy applies when canceling the booking. When
|
|
18447
|
+
* passing `false` you can only cancel a booking if the cancelation policy
|
|
18448
|
+
* allows it.
|
|
18449
|
+
* Default: `false`.
|
|
18533
18450
|
*/
|
|
18534
|
-
|
|
18451
|
+
ignoreCancellationPolicy?: boolean | null;
|
|
18452
|
+
/**
|
|
18453
|
+
* Whether to issue a refund when canceling the booking.
|
|
18454
|
+
* The refund will be issued only if the booking is refundable.
|
|
18455
|
+
* Currently, booking is considered refundable when it was paid by membership.
|
|
18456
|
+
* If passing `true`, the booking flow control settings will be set with refund,
|
|
18457
|
+
* otherwise, either if `false` is passed or the field remains empty,
|
|
18458
|
+
* the booking flow control settings will be set with no refund.
|
|
18459
|
+
* Default: `false`.
|
|
18460
|
+
*/
|
|
18461
|
+
withRefund?: boolean | null;
|
|
18535
18462
|
}
|
|
18536
|
-
interface
|
|
18537
|
-
/**
|
|
18538
|
-
|
|
18539
|
-
/** List of bookings ids and their revisions to add to the multi service booking. */
|
|
18540
|
-
bookings: BookingIdAndRevision[];
|
|
18541
|
-
/** Whether to return the bookings entities. */
|
|
18542
|
-
returnFullEntity?: boolean;
|
|
18463
|
+
interface CancelBookingResponse {
|
|
18464
|
+
/** Canceled booking. */
|
|
18465
|
+
booking?: Booking$2;
|
|
18543
18466
|
}
|
|
18544
|
-
interface
|
|
18545
|
-
/**
|
|
18546
|
-
|
|
18467
|
+
interface UpdateNumberOfParticipantsRequest extends UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
18468
|
+
/**
|
|
18469
|
+
* Total number of participants. Available only for services with
|
|
18470
|
+
* variants.
|
|
18471
|
+
* Pass when all participants book the same variant.
|
|
18472
|
+
*/
|
|
18473
|
+
totalParticipants?: number;
|
|
18474
|
+
/**
|
|
18475
|
+
* Information about the service choices to book. Available only for services with
|
|
18476
|
+
* variants.
|
|
18477
|
+
* Pass when not all participants book the same variant.
|
|
18478
|
+
*/
|
|
18479
|
+
participantsChoices?: ParticipantChoices$2;
|
|
18480
|
+
/** ID of the booking to update the number of participants for. */
|
|
18481
|
+
bookingId: string;
|
|
18547
18482
|
/**
|
|
18548
18483
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
18549
18484
|
* To prevent conflicting changes, the current revision must be passed when
|
|
18550
18485
|
* managing the booking.
|
|
18551
18486
|
*/
|
|
18552
|
-
revision
|
|
18553
|
-
}
|
|
18554
|
-
interface AddBookingsToMultiServiceBookingResponse {
|
|
18555
|
-
/** The bookings that were added to the multi service booking. */
|
|
18556
|
-
bookings?: BookingResult[];
|
|
18557
|
-
}
|
|
18558
|
-
interface RemoveBookingsFromMultiServiceBookingRequest {
|
|
18559
|
-
/** ID of the multi service booking. */
|
|
18560
|
-
multiServiceBookingId: string | null;
|
|
18561
|
-
/** List of bookings ids and their revisions to remove from the multi service booking. */
|
|
18562
|
-
bookings?: BookingIdAndRevision[];
|
|
18563
|
-
/** Whether to return the bookings entities. */
|
|
18564
|
-
returnFullEntity?: boolean;
|
|
18565
|
-
}
|
|
18566
|
-
interface RemoveBookingsFromMultiServiceBookingResponse {
|
|
18567
|
-
/** The bookings that were removed from the multi service booking. */
|
|
18568
|
-
bookings?: BookingResult[];
|
|
18487
|
+
revision: string | null;
|
|
18569
18488
|
}
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
booking: Booking$2;
|
|
18573
|
-
/** Information about a message to send to the customer. */
|
|
18574
|
-
participantNotification?: ParticipantNotification;
|
|
18489
|
+
/** @oneof */
|
|
18490
|
+
interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
18575
18491
|
/**
|
|
18576
|
-
*
|
|
18577
|
-
*
|
|
18578
|
-
*
|
|
18492
|
+
* Total number of participants. Available only for services with
|
|
18493
|
+
* variants.
|
|
18494
|
+
* Pass when all participants book the same variant.
|
|
18579
18495
|
*/
|
|
18580
|
-
|
|
18496
|
+
totalParticipants?: number;
|
|
18581
18497
|
/**
|
|
18582
|
-
* Information about
|
|
18583
|
-
*
|
|
18584
|
-
*
|
|
18585
|
-
* accepted.
|
|
18498
|
+
* Information about the service choices to book. Available only for services with
|
|
18499
|
+
* variants.
|
|
18500
|
+
* Pass when not all participants book the same variant.
|
|
18586
18501
|
*/
|
|
18587
|
-
|
|
18502
|
+
participantsChoices?: ParticipantChoices$2;
|
|
18588
18503
|
}
|
|
18589
|
-
interface
|
|
18590
|
-
/**
|
|
18504
|
+
interface UpdateNumberOfParticipantsResponse {
|
|
18505
|
+
/** Booking with updated number of participants. */
|
|
18591
18506
|
booking?: Booking$2;
|
|
18592
18507
|
}
|
|
18593
|
-
|
|
18508
|
+
/** Possible allowed actions for a Booking */
|
|
18509
|
+
interface AllowedActions {
|
|
18510
|
+
/** Is cancel booking allowed */
|
|
18511
|
+
cancel?: boolean;
|
|
18512
|
+
/** Is reschedule booking allowed */
|
|
18513
|
+
reschedule?: boolean;
|
|
18514
|
+
}
|
|
18515
|
+
interface BulkCalculateAllowedActionsResult {
|
|
18516
|
+
/** (id, indexInGivenSeq, isSuccessful, error) */
|
|
18517
|
+
itemMetadata?: ItemMetadata;
|
|
18518
|
+
item?: AllowedActions;
|
|
18519
|
+
}
|
|
18520
|
+
interface BookingPolicyViolations {
|
|
18521
|
+
/** Bookings policy violation. Too early to book this slot. */
|
|
18522
|
+
tooEarlyToBook?: boolean | null;
|
|
18523
|
+
/** Bookings policy violation. Too late to book this slot. */
|
|
18524
|
+
tooLateToBook?: boolean | null;
|
|
18525
|
+
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
18526
|
+
bookOnlineDisabled?: boolean | null;
|
|
18527
|
+
}
|
|
18528
|
+
interface BookingPolicySettings {
|
|
18529
|
+
/** Booking policy settings for a given Slot/Schedule */
|
|
18530
|
+
maxParticipantsPerBooking?: number | null;
|
|
18531
|
+
}
|
|
18532
|
+
interface MarkBookingAsPendingFlowControlSettings {
|
|
18533
|
+
/**
|
|
18534
|
+
* Whether should check for double bookings before updating the booking as pending.
|
|
18535
|
+
* When passing `false` a booking is only being updated with status PENDING
|
|
18536
|
+
* Default: `false`.
|
|
18537
|
+
*/
|
|
18538
|
+
checkAvailabilityValidation?: boolean;
|
|
18594
18539
|
/**
|
|
18595
|
-
*
|
|
18596
|
-
*
|
|
18540
|
+
* Whether should validate that the given booking to be marked as pending, has a booking.slot.serviceId
|
|
18541
|
+
* of a pending approval service.
|
|
18542
|
+
* Default: `false`.
|
|
18597
18543
|
*/
|
|
18598
|
-
|
|
18599
|
-
/** Whether to return the created bookings entities. */
|
|
18600
|
-
returnFullEntity?: boolean;
|
|
18544
|
+
skipPendingApprovalServiceValidation?: boolean;
|
|
18601
18545
|
}
|
|
18602
|
-
interface
|
|
18603
|
-
/** The
|
|
18604
|
-
|
|
18546
|
+
interface CreateMultiServiceBookingRequest {
|
|
18547
|
+
/** The bookings to create as multi service booking. */
|
|
18548
|
+
bookings: Booking$2[];
|
|
18605
18549
|
/** Information about a message to send to the customer. */
|
|
18606
18550
|
participantNotification?: ParticipantNotification;
|
|
18607
18551
|
/**
|
|
@@ -18617,21 +18561,54 @@ interface CreateBookingInfo {
|
|
|
18617
18561
|
* accepted.
|
|
18618
18562
|
*/
|
|
18619
18563
|
flowControlSettings?: CreateBookingFlowControlSettings;
|
|
18564
|
+
/** Whether to return the created bookings entities. */
|
|
18565
|
+
returnFullEntity?: boolean;
|
|
18566
|
+
/**
|
|
18567
|
+
* Multi service booking type.
|
|
18568
|
+
* One of:
|
|
18569
|
+
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
18570
|
+
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
18571
|
+
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
18572
|
+
*/
|
|
18573
|
+
multiServiceBookingType?: MultiServiceBookingType;
|
|
18620
18574
|
}
|
|
18621
|
-
interface
|
|
18575
|
+
interface CreateMultiServiceBookingResponse {
|
|
18622
18576
|
/**
|
|
18623
|
-
*
|
|
18624
|
-
*
|
|
18577
|
+
* Created multi service booking.
|
|
18578
|
+
* Contains the booking results on the same order as passed on the request.
|
|
18625
18579
|
*/
|
|
18626
|
-
|
|
18627
|
-
/** Total successes and failures of the bulk create booking action. */
|
|
18628
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
18580
|
+
multiServiceBooking?: MultiServiceBooking;
|
|
18629
18581
|
}
|
|
18630
|
-
interface
|
|
18631
|
-
|
|
18632
|
-
|
|
18582
|
+
interface MultiServiceBooking {
|
|
18583
|
+
/** Multi service booking ID. */
|
|
18584
|
+
_id?: string | null;
|
|
18585
|
+
/** The created bookings which are part of the multi service booking */
|
|
18586
|
+
bookings?: BookingResult[];
|
|
18633
18587
|
}
|
|
18634
|
-
interface
|
|
18588
|
+
interface BookingResult {
|
|
18589
|
+
/** Booking ID. */
|
|
18590
|
+
bookingId?: string | null;
|
|
18591
|
+
/** Booking entity. */
|
|
18592
|
+
booking?: Booking$2;
|
|
18593
|
+
}
|
|
18594
|
+
interface RescheduleMultiServiceBookingRequest {
|
|
18595
|
+
/** ID of the multi service booking to reschedule it's related bookings. */
|
|
18596
|
+
multiServiceBookingId: string | null;
|
|
18597
|
+
/** Bookings to reschedule. */
|
|
18598
|
+
rescheduleBookingsInfo: RescheduleBookingInfo[];
|
|
18599
|
+
/** Information about whether to notify the customer about the rescheduling and the message to send. */
|
|
18600
|
+
participantNotification?: ParticipantNotification;
|
|
18601
|
+
/**
|
|
18602
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
18603
|
+
* rescheduling flow are changed. For example, whether the availability of
|
|
18604
|
+
* the new slot is checked before rescheduling the booking or if you can
|
|
18605
|
+
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
18606
|
+
*/
|
|
18607
|
+
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
18608
|
+
/** Whether to return the rescheduled bookings entities. */
|
|
18609
|
+
returnFullEntity?: boolean;
|
|
18610
|
+
}
|
|
18611
|
+
interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOneOf {
|
|
18635
18612
|
/**
|
|
18636
18613
|
* Total number of participants. Available only for services with
|
|
18637
18614
|
* variants.
|
|
@@ -18645,30 +18622,18 @@ interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsI
|
|
|
18645
18622
|
*/
|
|
18646
18623
|
participantsChoices?: ParticipantChoices$2;
|
|
18647
18624
|
/** ID of the booking to reschedule. */
|
|
18648
|
-
bookingId
|
|
18625
|
+
bookingId?: string | null;
|
|
18649
18626
|
/** Information about the new slot. */
|
|
18650
|
-
slot
|
|
18627
|
+
slot?: V2Slot;
|
|
18651
18628
|
/**
|
|
18652
18629
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
18653
18630
|
* To prevent conflicting changes, the current revision must be passed when
|
|
18654
18631
|
* managing the booking.
|
|
18655
18632
|
*/
|
|
18656
|
-
revision
|
|
18657
|
-
/**
|
|
18658
|
-
* Information about whether to notify the customer about the rescheduling and
|
|
18659
|
-
* the message to send.
|
|
18660
|
-
*/
|
|
18661
|
-
participantNotification?: ParticipantNotification;
|
|
18662
|
-
/**
|
|
18663
|
-
* Information about whether specific procedures of the standard Wix Bookings
|
|
18664
|
-
* rescheduling flow are changed. For example, whether the availability of
|
|
18665
|
-
* the new slot is checked before rescheduling the booking or if you can
|
|
18666
|
-
* reschedule the booking even though the rescheduling policy doesn't allow it.
|
|
18667
|
-
*/
|
|
18668
|
-
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
18633
|
+
revision?: string | null;
|
|
18669
18634
|
}
|
|
18670
18635
|
/** @oneof */
|
|
18671
|
-
interface
|
|
18636
|
+
interface RescheduleBookingInfoParticipantsInfoOneOf {
|
|
18672
18637
|
/**
|
|
18673
18638
|
* Total number of participants. Available only for services with
|
|
18674
18639
|
* variants.
|
|
@@ -18682,81 +18647,84 @@ interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
|
18682
18647
|
*/
|
|
18683
18648
|
participantsChoices?: ParticipantChoices$2;
|
|
18684
18649
|
}
|
|
18685
|
-
interface
|
|
18686
|
-
/** Rescheduled booking. */
|
|
18687
|
-
|
|
18650
|
+
interface RescheduleMultiServiceBookingResponse {
|
|
18651
|
+
/** Rescheduled multi service booking. */
|
|
18652
|
+
multiServiceBooking?: MultiServiceBooking;
|
|
18688
18653
|
}
|
|
18689
|
-
interface
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18654
|
+
interface GetMultiServiceBookingAvailabilityRequest {
|
|
18655
|
+
multiServiceBookingId: string | null;
|
|
18656
|
+
}
|
|
18657
|
+
interface GetMultiServiceBookingAvailabilityResponse {
|
|
18658
|
+
/** Whether these bookings are bookable. */
|
|
18659
|
+
bookable?: boolean;
|
|
18660
|
+
/** Total number of spots for this availability. */
|
|
18661
|
+
totalCapacity?: number | null;
|
|
18662
|
+
/** Number of open spots for this availability. */
|
|
18663
|
+
remainingCapacity?: number | null;
|
|
18664
|
+
/** Indicators for policy violations of the multi service booking. */
|
|
18665
|
+
policyViolations?: BookingPolicyViolations;
|
|
18666
|
+
/** Multi service booking policy settings */
|
|
18667
|
+
policySettings?: BookingPolicySettings;
|
|
18668
|
+
/** Info of the bookings this availability was calculated for. */
|
|
18669
|
+
multiServiceBookingInfo?: GetMultiServiceBookingAvailabilityResponseBookingInfo[];
|
|
18670
|
+
}
|
|
18671
|
+
interface GetMultiServiceBookingAvailabilityResponseBookingInfo {
|
|
18672
|
+
/** Booking id */
|
|
18673
|
+
bookingId?: string | null;
|
|
18674
|
+
}
|
|
18675
|
+
interface CancelMultiServiceBookingRequest {
|
|
18676
|
+
/** ID of the multi service booking to cancel it's related bookings. */
|
|
18677
|
+
multiServiceBookingId: string | null;
|
|
18678
|
+
/** Information about whether to notify the customer about the cancelation and the message to send. */
|
|
18679
|
+
participantNotification?: ParticipantNotification;
|
|
18698
18680
|
/**
|
|
18699
|
-
* Information about whether
|
|
18700
|
-
* the
|
|
18681
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
18682
|
+
* cancelation flow are changed. For example, whether the you can cancel
|
|
18683
|
+
* a booking even though the cancelation policy doesn't allow it or whether
|
|
18684
|
+
* to issue a refund.
|
|
18701
18685
|
*/
|
|
18686
|
+
flowControlSettings?: CancelBookingFlowControlSettings;
|
|
18687
|
+
/** Whether to return the canceled bookings entities. */
|
|
18688
|
+
returnFullEntity?: boolean;
|
|
18689
|
+
}
|
|
18690
|
+
interface CancelMultiServiceBookingResponse {
|
|
18691
|
+
/** Canceled multi service booking. */
|
|
18692
|
+
multiServiceBooking?: MultiServiceBooking;
|
|
18693
|
+
}
|
|
18694
|
+
interface MarkMultiServiceBookingAsPendingRequest {
|
|
18695
|
+
/** ID of the multi service booking to mark as pending it's related bookings. */
|
|
18696
|
+
multiServiceBookingId: string | null;
|
|
18697
|
+
/** Bookings to mark as pending. */
|
|
18698
|
+
markAsPendingBookingsInfo?: BookingInfo[];
|
|
18699
|
+
/** Information about whether to notify the customer upon manual confirmation and the message to send. */
|
|
18702
18700
|
participantNotification?: ParticipantNotification;
|
|
18703
18701
|
/**
|
|
18704
18702
|
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
18705
18703
|
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
18706
18704
|
*/
|
|
18707
18705
|
sendSmsReminder?: boolean | null;
|
|
18708
|
-
/**
|
|
18709
|
-
* Payment status to set for the booking.
|
|
18710
|
-
* One of:
|
|
18711
|
-
* - `"NOT_PAID"` The booking is not paid for.
|
|
18712
|
-
* - `"PAID"` The booking is fully paid.
|
|
18713
|
-
* - `"PARTIALLY_PAID"` The booking is partially paid.
|
|
18714
|
-
* - `"REFUNDED"` The booking is refunded.
|
|
18715
|
-
* - `"EXEMPT"` The booking is free of charge.
|
|
18716
|
-
*/
|
|
18717
|
-
paymentStatus?: PaymentStatus$2;
|
|
18718
18706
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
18719
18707
|
doubleBooked?: boolean | null;
|
|
18708
|
+
/** Whether to return the pending bookings entities. */
|
|
18709
|
+
returnFullEntity?: boolean;
|
|
18720
18710
|
/**
|
|
18721
18711
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
18722
18712
|
* creation flow are changed. For example, whether the availability is
|
|
18723
|
-
* checked before
|
|
18713
|
+
* checked before updating the booking.
|
|
18724
18714
|
*/
|
|
18725
|
-
flowControlSettings?:
|
|
18726
|
-
}
|
|
18727
|
-
interface ConfirmBookingResponse {
|
|
18728
|
-
booking?: Booking$2;
|
|
18729
|
-
}
|
|
18730
|
-
interface UpdateExtendedFieldsRequest {
|
|
18731
|
-
/** ID of the booking for which to update extended fields. */
|
|
18732
|
-
_id: string;
|
|
18733
|
-
/** [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. */
|
|
18734
|
-
namespace: string;
|
|
18735
|
-
/** Data of the extended field to update. Must be structured according to the [schema](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions#json-schema-for-extended-fields) defined during the configuration of the extended fields. */
|
|
18736
|
-
namespaceData: Record<string, any> | null;
|
|
18737
|
-
}
|
|
18738
|
-
interface UpdateExtendedFieldsResponse {
|
|
18739
|
-
/** [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 the extended fields were updated. */
|
|
18740
|
-
namespace?: string;
|
|
18741
|
-
/** Updated data of the extended fields. */
|
|
18742
|
-
namespaceData?: Record<string, any> | null;
|
|
18715
|
+
flowControlSettings?: MarkBookingAsPendingFlowControlSettings;
|
|
18743
18716
|
}
|
|
18744
|
-
interface
|
|
18745
|
-
/** ID of the booking
|
|
18746
|
-
bookingId
|
|
18717
|
+
interface BookingInfo {
|
|
18718
|
+
/** ID of the booking. */
|
|
18719
|
+
bookingId?: string | null;
|
|
18747
18720
|
/**
|
|
18748
18721
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
18749
18722
|
* To prevent conflicting changes, the current revision must be passed when
|
|
18750
18723
|
* managing the booking.
|
|
18751
18724
|
*/
|
|
18752
|
-
revision
|
|
18753
|
-
/**
|
|
18754
|
-
* Information about whether to notify the customer about the decline and
|
|
18755
|
-
* the message to send.
|
|
18756
|
-
*/
|
|
18757
|
-
participantNotification?: ParticipantNotification;
|
|
18725
|
+
revision?: string | null;
|
|
18758
18726
|
/**
|
|
18759
|
-
* Payment status to set
|
|
18727
|
+
* Payment status to set for the booking.
|
|
18760
18728
|
* One of:
|
|
18761
18729
|
* - `"NOT_PAID"` The booking is not paid for.
|
|
18762
18730
|
* - `"PAID"` The booking is fully paid.
|
|
@@ -18765,100 +18733,132 @@ interface DeclineBookingRequest {
|
|
|
18765
18733
|
* - `"EXEMPT"` The booking is free of charge.
|
|
18766
18734
|
*/
|
|
18767
18735
|
paymentStatus?: PaymentStatus$2;
|
|
18736
|
+
}
|
|
18737
|
+
interface MarkMultiServiceBookingAsPendingResponse {
|
|
18738
|
+
/** Pending multi service booking. */
|
|
18739
|
+
multiServiceBooking?: MultiServiceBooking;
|
|
18740
|
+
}
|
|
18741
|
+
interface ConfirmMultiServiceBookingRequest {
|
|
18742
|
+
/** ID of the multi service booking to confirm it's related bookings. */
|
|
18743
|
+
multiServiceBookingId: string | null;
|
|
18744
|
+
/** Bookings to confirm. */
|
|
18745
|
+
confirmBookingsInfo?: BookingInfo[];
|
|
18746
|
+
/** Information about whether to notify the customer about the confirmation and the message to send. */
|
|
18747
|
+
participantNotification?: ParticipantNotification;
|
|
18748
|
+
/**
|
|
18749
|
+
* Whether to send an SMS reminder to the customer 24 hours before the
|
|
18750
|
+
* session starts. The phone number is taken from `contactDetails.phone`.
|
|
18751
|
+
*/
|
|
18752
|
+
sendSmsReminder?: boolean | null;
|
|
18768
18753
|
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
18769
18754
|
doubleBooked?: boolean | null;
|
|
18755
|
+
/** Whether to return the confirmed bookings entities. */
|
|
18756
|
+
returnFullEntity?: boolean;
|
|
18770
18757
|
/**
|
|
18771
18758
|
* Information about whether specific procedures of the standard Wix Bookings
|
|
18772
|
-
*
|
|
18759
|
+
* confirmation flow are changed. For example, whether the availability is
|
|
18760
|
+
* checked before confirming the booking.
|
|
18773
18761
|
*/
|
|
18774
|
-
flowControlSettings?:
|
|
18762
|
+
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
18775
18763
|
}
|
|
18776
|
-
interface
|
|
18777
|
-
/**
|
|
18778
|
-
|
|
18764
|
+
interface ConfirmMultiServiceBookingResponse {
|
|
18765
|
+
/** Confirmed multi service booking. */
|
|
18766
|
+
multiServiceBooking?: MultiServiceBooking;
|
|
18779
18767
|
}
|
|
18780
|
-
interface
|
|
18781
|
-
/** ID of the booking to
|
|
18782
|
-
|
|
18783
|
-
/**
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
*/
|
|
18768
|
+
interface DeclineMultiServiceBookingRequest {
|
|
18769
|
+
/** ID of the multi service booking to decline it's related bookings. */
|
|
18770
|
+
multiServiceBookingId: string | null;
|
|
18771
|
+
/** Bookings to decline. */
|
|
18772
|
+
declineBookingsInfo?: BookingInfo[];
|
|
18773
|
+
/** Information about whether to notify the customer about the decline and the message to send. */
|
|
18787
18774
|
participantNotification?: ParticipantNotification;
|
|
18775
|
+
/** Whether this booking overlaps with another existing confirmed booking. */
|
|
18776
|
+
doubleBooked?: boolean | null;
|
|
18777
|
+
/** Whether to return the declined bookings entities. */
|
|
18778
|
+
returnFullEntity?: boolean;
|
|
18788
18779
|
/**
|
|
18789
|
-
* Information about whether specific procedures of the standard Wix Bookings
|
|
18790
|
-
*
|
|
18791
|
-
* a booking even though the cancelation policy doesn't allow it or whether
|
|
18792
|
-
* to issue a refund.
|
|
18793
|
-
*/
|
|
18794
|
-
flowControlSettings?: CancelBookingFlowControlSettings;
|
|
18795
|
-
/**
|
|
18796
|
-
* Revision number, which increments by 1 each time the booking is updated.
|
|
18797
|
-
* To prevent conflicting changes,
|
|
18798
|
-
* the current revision must be passed when managing the booking.
|
|
18780
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
18781
|
+
* declining flow are changed. For example, whether to issue a refund.
|
|
18799
18782
|
*/
|
|
18800
|
-
|
|
18783
|
+
flowControlSettings?: DeclineBookingFlowControlSettings;
|
|
18801
18784
|
}
|
|
18802
|
-
interface
|
|
18803
|
-
/**
|
|
18804
|
-
|
|
18785
|
+
interface DeclineMultiServiceBookingResponse {
|
|
18786
|
+
/** Declined multi service booking. */
|
|
18787
|
+
multiServiceBooking?: MultiServiceBooking;
|
|
18805
18788
|
}
|
|
18806
|
-
interface
|
|
18789
|
+
interface BulkGetMultiServiceBookingAllowedActionsRequest {
|
|
18790
|
+
/** The multi service booking ids to get the allowedActions for. */
|
|
18791
|
+
multiServiceBookingIds: string[] | null;
|
|
18792
|
+
}
|
|
18793
|
+
interface BulkGetMultiServiceBookingAllowedActionsResponse {
|
|
18794
|
+
results?: BulkCalculateAllowedActionsResult[];
|
|
18795
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
18796
|
+
}
|
|
18797
|
+
interface MarkAsMultiServiceBookingRequest {
|
|
18798
|
+
/** IDs of the bookings to mark as multi service booking. */
|
|
18799
|
+
bookingIds: string[] | null;
|
|
18807
18800
|
/**
|
|
18808
|
-
*
|
|
18809
|
-
*
|
|
18810
|
-
*
|
|
18801
|
+
* Multi service booking type.
|
|
18802
|
+
* One of:
|
|
18803
|
+
* - `"SEQUENTIAL_BOOKINGS"` Multi service booking will be considered available if its bookings are available as returned from ListMultiServiceAvailabilityTimeSlots API.
|
|
18804
|
+
* - `"SEPARATE_BOOKINGS"` Not supported yet.
|
|
18805
|
+
* - `"PARALLEL_BOOKINGS"` Not supported yet.
|
|
18811
18806
|
*/
|
|
18812
|
-
|
|
18807
|
+
multiServiceBookingType?: MultiServiceBookingType;
|
|
18808
|
+
}
|
|
18809
|
+
interface MarkAsMultiServiceBookingResponse {
|
|
18810
|
+
/** Multi service booking ID. */
|
|
18811
|
+
multiServiceBookingId?: string | null;
|
|
18812
|
+
}
|
|
18813
|
+
interface GetMultiServiceBookingRequest {
|
|
18814
|
+
/** Multi service booking ID. */
|
|
18815
|
+
multiServiceBookingId: string | null;
|
|
18816
|
+
}
|
|
18817
|
+
interface GetMultiServiceBookingResponse {
|
|
18818
|
+
/** Multi service booking. */
|
|
18819
|
+
multiServiceBooking?: MultiServiceBooking;
|
|
18820
|
+
metadata?: MultiServiceBookingMetadata;
|
|
18821
|
+
}
|
|
18822
|
+
interface MultiServiceBookingMetadata {
|
|
18813
18823
|
/**
|
|
18814
|
-
*
|
|
18815
|
-
*
|
|
18816
|
-
* Pass when not all participants book the same variant.
|
|
18824
|
+
* Total number of the scheduled bookings within the multi service booking, including bookings which were not retrieved due to lack of read permissions.
|
|
18825
|
+
* Scheduled bookings are bookings with status CONFIRMED or PENDING.
|
|
18817
18826
|
*/
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
|
|
18827
|
+
totalNumberOfScheduledBookings?: number | null;
|
|
18828
|
+
}
|
|
18829
|
+
interface AddBookingsToMultiServiceBookingRequest {
|
|
18830
|
+
/** ID of the multi service booking. */
|
|
18831
|
+
multiServiceBookingId: string | null;
|
|
18832
|
+
/** List of bookings ids and their revisions to add to the multi service booking. */
|
|
18833
|
+
bookings: BookingIdAndRevision[];
|
|
18834
|
+
/** Whether to return the bookings entities. */
|
|
18835
|
+
returnFullEntity?: boolean;
|
|
18836
|
+
}
|
|
18837
|
+
interface BookingIdAndRevision {
|
|
18838
|
+
/** ID of the booking. */
|
|
18839
|
+
bookingId?: string | null;
|
|
18821
18840
|
/**
|
|
18822
18841
|
* Revision number, which increments by 1 each time the booking is updated.
|
|
18823
18842
|
* To prevent conflicting changes, the current revision must be passed when
|
|
18824
18843
|
* managing the booking.
|
|
18825
18844
|
*/
|
|
18826
|
-
revision
|
|
18827
|
-
}
|
|
18828
|
-
/** @oneof */
|
|
18829
|
-
interface UpdateNumberOfParticipantsRequestParticipantsInfoOneOf {
|
|
18830
|
-
/**
|
|
18831
|
-
* Total number of participants. Available only for services with
|
|
18832
|
-
* variants.
|
|
18833
|
-
* Pass when all participants book the same variant.
|
|
18834
|
-
*/
|
|
18835
|
-
totalParticipants?: number;
|
|
18836
|
-
/**
|
|
18837
|
-
* Information about the service choices to book. Available only for services with
|
|
18838
|
-
* variants.
|
|
18839
|
-
* Pass when not all participants book the same variant.
|
|
18840
|
-
*/
|
|
18841
|
-
participantsChoices?: ParticipantChoices$2;
|
|
18845
|
+
revision?: string | null;
|
|
18842
18846
|
}
|
|
18843
|
-
interface
|
|
18844
|
-
/**
|
|
18845
|
-
|
|
18847
|
+
interface AddBookingsToMultiServiceBookingResponse {
|
|
18848
|
+
/** The bookings that were added to the multi service booking. */
|
|
18849
|
+
bookings?: BookingResult[];
|
|
18846
18850
|
}
|
|
18847
|
-
interface
|
|
18848
|
-
/** ID of the
|
|
18849
|
-
|
|
18850
|
-
/**
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18854
|
-
* The booking is declined if there is a double booking conflict and you provide
|
|
18855
|
-
* one of these payment statuses: `UNDEFINED`, `NOT_PAID`, `REFUNDED`, or `EXEMPT`.
|
|
18856
|
-
*/
|
|
18857
|
-
paymentStatus?: PaymentStatus$2;
|
|
18851
|
+
interface RemoveBookingsFromMultiServiceBookingRequest {
|
|
18852
|
+
/** ID of the multi service booking. */
|
|
18853
|
+
multiServiceBookingId: string | null;
|
|
18854
|
+
/** List of bookings ids and their revisions to remove from the multi service booking. */
|
|
18855
|
+
bookings?: BookingIdAndRevision[];
|
|
18856
|
+
/** Whether to return the bookings entities. */
|
|
18857
|
+
returnFullEntity?: boolean;
|
|
18858
18858
|
}
|
|
18859
|
-
interface
|
|
18860
|
-
/**
|
|
18861
|
-
|
|
18859
|
+
interface RemoveBookingsFromMultiServiceBookingResponse {
|
|
18860
|
+
/** The bookings that were removed from the multi service booking. */
|
|
18861
|
+
bookings?: BookingResult[];
|
|
18862
18862
|
}
|
|
18863
18863
|
interface DurationNonNullableFields$2 {
|
|
18864
18864
|
minutes: number;
|
|
@@ -18953,6 +18953,52 @@ interface BookingNonNullableFields {
|
|
|
18953
18953
|
flowControlSettings?: FlowControlSettingsNonNullableFields;
|
|
18954
18954
|
multiServiceBookingInfo?: MultiServiceBookingInfoNonNullableFields;
|
|
18955
18955
|
}
|
|
18956
|
+
interface ConfirmOrDeclineBookingResponseNonNullableFields {
|
|
18957
|
+
booking?: BookingNonNullableFields;
|
|
18958
|
+
}
|
|
18959
|
+
interface CreateBookingResponseNonNullableFields {
|
|
18960
|
+
booking?: BookingNonNullableFields;
|
|
18961
|
+
}
|
|
18962
|
+
interface ApplicationErrorNonNullableFields {
|
|
18963
|
+
code: string;
|
|
18964
|
+
description: string;
|
|
18965
|
+
}
|
|
18966
|
+
interface ItemMetadataNonNullableFields {
|
|
18967
|
+
originalIndex: number;
|
|
18968
|
+
success: boolean;
|
|
18969
|
+
error?: ApplicationErrorNonNullableFields;
|
|
18970
|
+
}
|
|
18971
|
+
interface BulkBookingResultNonNullableFields {
|
|
18972
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
18973
|
+
item?: BookingNonNullableFields;
|
|
18974
|
+
}
|
|
18975
|
+
interface BulkActionMetadataNonNullableFields {
|
|
18976
|
+
totalSuccesses: number;
|
|
18977
|
+
totalFailures: number;
|
|
18978
|
+
undetailedFailures: number;
|
|
18979
|
+
}
|
|
18980
|
+
interface BulkCreateBookingResponseNonNullableFields {
|
|
18981
|
+
results: BulkBookingResultNonNullableFields[];
|
|
18982
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
18983
|
+
}
|
|
18984
|
+
interface RescheduleBookingResponseNonNullableFields {
|
|
18985
|
+
booking?: BookingNonNullableFields;
|
|
18986
|
+
}
|
|
18987
|
+
interface ConfirmBookingResponseNonNullableFields {
|
|
18988
|
+
booking?: BookingNonNullableFields;
|
|
18989
|
+
}
|
|
18990
|
+
interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
18991
|
+
namespace: string;
|
|
18992
|
+
}
|
|
18993
|
+
interface DeclineBookingResponseNonNullableFields {
|
|
18994
|
+
booking?: BookingNonNullableFields;
|
|
18995
|
+
}
|
|
18996
|
+
interface CancelBookingResponseNonNullableFields {
|
|
18997
|
+
booking?: BookingNonNullableFields;
|
|
18998
|
+
}
|
|
18999
|
+
interface UpdateNumberOfParticipantsResponseNonNullableFields {
|
|
19000
|
+
booking?: BookingNonNullableFields;
|
|
19001
|
+
}
|
|
18956
19002
|
interface BookingResultNonNullableFields {
|
|
18957
19003
|
booking?: BookingNonNullableFields;
|
|
18958
19004
|
}
|
|
@@ -18980,15 +19026,6 @@ interface ConfirmMultiServiceBookingResponseNonNullableFields {
|
|
|
18980
19026
|
interface DeclineMultiServiceBookingResponseNonNullableFields {
|
|
18981
19027
|
multiServiceBooking?: MultiServiceBookingNonNullableFields;
|
|
18982
19028
|
}
|
|
18983
|
-
interface ApplicationErrorNonNullableFields {
|
|
18984
|
-
code: string;
|
|
18985
|
-
description: string;
|
|
18986
|
-
}
|
|
18987
|
-
interface ItemMetadataNonNullableFields {
|
|
18988
|
-
originalIndex: number;
|
|
18989
|
-
success: boolean;
|
|
18990
|
-
error?: ApplicationErrorNonNullableFields;
|
|
18991
|
-
}
|
|
18992
19029
|
interface AllowedActionsNonNullableFields {
|
|
18993
19030
|
cancel: boolean;
|
|
18994
19031
|
reschedule: boolean;
|
|
@@ -18998,11 +19035,6 @@ interface BulkCalculateAllowedActionsResultNonNullableFields {
|
|
|
18998
19035
|
itemMetadata?: ItemMetadataNonNullableFields;
|
|
18999
19036
|
item?: AllowedActionsNonNullableFields;
|
|
19000
19037
|
}
|
|
19001
|
-
interface BulkActionMetadataNonNullableFields {
|
|
19002
|
-
totalSuccesses: number;
|
|
19003
|
-
totalFailures: number;
|
|
19004
|
-
undetailedFailures: number;
|
|
19005
|
-
}
|
|
19006
19038
|
interface BulkGetMultiServiceBookingAllowedActionsResponseNonNullableFields {
|
|
19007
19039
|
results: BulkCalculateAllowedActionsResultNonNullableFields[];
|
|
19008
19040
|
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
@@ -19016,38 +19048,6 @@ interface AddBookingsToMultiServiceBookingResponseNonNullableFields {
|
|
|
19016
19048
|
interface RemoveBookingsFromMultiServiceBookingResponseNonNullableFields {
|
|
19017
19049
|
bookings: BookingResultNonNullableFields[];
|
|
19018
19050
|
}
|
|
19019
|
-
interface CreateBookingResponseNonNullableFields {
|
|
19020
|
-
booking?: BookingNonNullableFields;
|
|
19021
|
-
}
|
|
19022
|
-
interface BulkBookingResultNonNullableFields {
|
|
19023
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
19024
|
-
item?: BookingNonNullableFields;
|
|
19025
|
-
}
|
|
19026
|
-
interface BulkCreateBookingResponseNonNullableFields {
|
|
19027
|
-
results: BulkBookingResultNonNullableFields[];
|
|
19028
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
19029
|
-
}
|
|
19030
|
-
interface RescheduleBookingResponseNonNullableFields {
|
|
19031
|
-
booking?: BookingNonNullableFields;
|
|
19032
|
-
}
|
|
19033
|
-
interface ConfirmBookingResponseNonNullableFields {
|
|
19034
|
-
booking?: BookingNonNullableFields;
|
|
19035
|
-
}
|
|
19036
|
-
interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
19037
|
-
namespace: string;
|
|
19038
|
-
}
|
|
19039
|
-
interface DeclineBookingResponseNonNullableFields {
|
|
19040
|
-
booking?: BookingNonNullableFields;
|
|
19041
|
-
}
|
|
19042
|
-
interface CancelBookingResponseNonNullableFields {
|
|
19043
|
-
booking?: BookingNonNullableFields;
|
|
19044
|
-
}
|
|
19045
|
-
interface UpdateNumberOfParticipantsResponseNonNullableFields {
|
|
19046
|
-
booking?: BookingNonNullableFields;
|
|
19047
|
-
}
|
|
19048
|
-
interface ConfirmOrDeclineBookingResponseNonNullableFields {
|
|
19049
|
-
booking?: BookingNonNullableFields;
|
|
19050
|
-
}
|
|
19051
19051
|
|
|
19052
19052
|
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
19053
19053
|
getUrl: (context: any) => string;
|
|
@@ -19059,6 +19059,29 @@ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
19059
19059
|
__responseType: Q;
|
|
19060
19060
|
__originalResponseType: R;
|
|
19061
19061
|
};
|
|
19062
|
+
declare function confirmOrDeclineBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19063
|
+
bookingId: string;
|
|
19064
|
+
}, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingResponse & ConfirmOrDeclineBookingResponseNonNullableFields, ConfirmOrDeclineBookingResponse$1 & ConfirmOrDeclineBookingResponseNonNullableFields$1>;
|
|
19065
|
+
declare function createBooking(): __PublicMethodMetaInfo$1<'POST', {}, CreateBookingRequest, CreateBookingRequest$1, CreateBookingResponse & CreateBookingResponseNonNullableFields, CreateBookingResponse$1 & CreateBookingResponseNonNullableFields$1>;
|
|
19066
|
+
declare function bulkCreateBooking(): __PublicMethodMetaInfo$1<'POST', {}, BulkCreateBookingRequest, BulkCreateBookingRequest$1, BulkCreateBookingResponse & BulkCreateBookingResponseNonNullableFields, BulkCreateBookingResponse$1 & BulkCreateBookingResponseNonNullableFields$1>;
|
|
19067
|
+
declare function rescheduleBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19068
|
+
bookingId: string;
|
|
19069
|
+
}, RescheduleBookingRequest, RescheduleBookingRequest$1, RescheduleBookingResponse & RescheduleBookingResponseNonNullableFields, RescheduleBookingResponse$1 & RescheduleBookingResponseNonNullableFields$1>;
|
|
19070
|
+
declare function confirmBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19071
|
+
bookingId: string;
|
|
19072
|
+
}, ConfirmBookingRequest, ConfirmBookingRequest$1, ConfirmBookingResponse & ConfirmBookingResponseNonNullableFields, ConfirmBookingResponse$1 & ConfirmBookingResponseNonNullableFields$1>;
|
|
19073
|
+
declare function updateExtendedFields(): __PublicMethodMetaInfo$1<'POST', {
|
|
19074
|
+
id: string;
|
|
19075
|
+
}, UpdateExtendedFieldsRequest, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields, UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
19076
|
+
declare function declineBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19077
|
+
bookingId: string;
|
|
19078
|
+
}, DeclineBookingRequest, DeclineBookingRequest$1, DeclineBookingResponse & DeclineBookingResponseNonNullableFields, DeclineBookingResponse$1 & DeclineBookingResponseNonNullableFields$1>;
|
|
19079
|
+
declare function cancelBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19080
|
+
bookingId: string;
|
|
19081
|
+
}, CancelBookingRequest, CancelBookingRequest$1, CancelBookingResponse & CancelBookingResponseNonNullableFields, CancelBookingResponse$1 & CancelBookingResponseNonNullableFields$1>;
|
|
19082
|
+
declare function updateNumberOfParticipants(): __PublicMethodMetaInfo$1<'POST', {
|
|
19083
|
+
bookingId: string;
|
|
19084
|
+
}, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequest$1, UpdateNumberOfParticipantsResponse & UpdateNumberOfParticipantsResponseNonNullableFields, UpdateNumberOfParticipantsResponse$1 & UpdateNumberOfParticipantsResponseNonNullableFields$1>;
|
|
19062
19085
|
declare function createMultiServiceBooking(): __PublicMethodMetaInfo$1<'POST', {}, CreateMultiServiceBookingRequest, CreateMultiServiceBookingRequest$1, CreateMultiServiceBookingResponse & CreateMultiServiceBookingResponseNonNullableFields, CreateMultiServiceBookingResponse$1 & CreateMultiServiceBookingResponseNonNullableFields$1>;
|
|
19063
19086
|
declare function rescheduleMultiServiceBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19064
19087
|
multiServiceBookingId: string;
|
|
@@ -19085,29 +19108,6 @@ declare function getMultiServiceBooking(): __PublicMethodMetaInfo$1<'GET', {
|
|
|
19085
19108
|
}, GetMultiServiceBookingRequest, GetMultiServiceBookingRequest$1, GetMultiServiceBookingResponse & GetMultiServiceBookingResponseNonNullableFields, GetMultiServiceBookingResponse$1 & GetMultiServiceBookingResponseNonNullableFields$1>;
|
|
19086
19109
|
declare function addBookingsToMultiServiceBooking(): __PublicMethodMetaInfo$1<'POST', {}, AddBookingsToMultiServiceBookingRequest, AddBookingsToMultiServiceBookingRequest$1, AddBookingsToMultiServiceBookingResponse & AddBookingsToMultiServiceBookingResponseNonNullableFields, AddBookingsToMultiServiceBookingResponse$1 & AddBookingsToMultiServiceBookingResponseNonNullableFields$1>;
|
|
19087
19110
|
declare function removeBookingsFromMultiServiceBooking(): __PublicMethodMetaInfo$1<'POST', {}, RemoveBookingsFromMultiServiceBookingRequest, RemoveBookingsFromMultiServiceBookingRequest$1, RemoveBookingsFromMultiServiceBookingResponse & RemoveBookingsFromMultiServiceBookingResponseNonNullableFields, RemoveBookingsFromMultiServiceBookingResponse$1 & RemoveBookingsFromMultiServiceBookingResponseNonNullableFields$1>;
|
|
19088
|
-
declare function createBooking(): __PublicMethodMetaInfo$1<'POST', {}, CreateBookingRequest, CreateBookingRequest$1, CreateBookingResponse & CreateBookingResponseNonNullableFields, CreateBookingResponse$1 & CreateBookingResponseNonNullableFields$1>;
|
|
19089
|
-
declare function bulkCreateBooking(): __PublicMethodMetaInfo$1<'POST', {}, BulkCreateBookingRequest, BulkCreateBookingRequest$1, BulkCreateBookingResponse & BulkCreateBookingResponseNonNullableFields, BulkCreateBookingResponse$1 & BulkCreateBookingResponseNonNullableFields$1>;
|
|
19090
|
-
declare function rescheduleBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19091
|
-
bookingId: string;
|
|
19092
|
-
}, RescheduleBookingRequest, RescheduleBookingRequest$1, RescheduleBookingResponse & RescheduleBookingResponseNonNullableFields, RescheduleBookingResponse$1 & RescheduleBookingResponseNonNullableFields$1>;
|
|
19093
|
-
declare function confirmBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19094
|
-
bookingId: string;
|
|
19095
|
-
}, ConfirmBookingRequest, ConfirmBookingRequest$1, ConfirmBookingResponse & ConfirmBookingResponseNonNullableFields, ConfirmBookingResponse$1 & ConfirmBookingResponseNonNullableFields$1>;
|
|
19096
|
-
declare function updateExtendedFields(): __PublicMethodMetaInfo$1<'POST', {
|
|
19097
|
-
id: string;
|
|
19098
|
-
}, UpdateExtendedFieldsRequest, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields, UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
19099
|
-
declare function declineBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19100
|
-
bookingId: string;
|
|
19101
|
-
}, DeclineBookingRequest, DeclineBookingRequest$1, DeclineBookingResponse & DeclineBookingResponseNonNullableFields, DeclineBookingResponse$1 & DeclineBookingResponseNonNullableFields$1>;
|
|
19102
|
-
declare function cancelBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19103
|
-
bookingId: string;
|
|
19104
|
-
}, CancelBookingRequest, CancelBookingRequest$1, CancelBookingResponse & CancelBookingResponseNonNullableFields, CancelBookingResponse$1 & CancelBookingResponseNonNullableFields$1>;
|
|
19105
|
-
declare function updateNumberOfParticipants(): __PublicMethodMetaInfo$1<'POST', {
|
|
19106
|
-
bookingId: string;
|
|
19107
|
-
}, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequest$1, UpdateNumberOfParticipantsResponse & UpdateNumberOfParticipantsResponseNonNullableFields, UpdateNumberOfParticipantsResponse$1 & UpdateNumberOfParticipantsResponseNonNullableFields$1>;
|
|
19108
|
-
declare function confirmOrDeclineBooking(): __PublicMethodMetaInfo$1<'POST', {
|
|
19109
|
-
bookingId: string;
|
|
19110
|
-
}, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingRequest$1, ConfirmOrDeclineBookingResponse & ConfirmOrDeclineBookingResponseNonNullableFields, ConfirmOrDeclineBookingResponse$1 & ConfirmOrDeclineBookingResponseNonNullableFields$1>;
|
|
19111
19111
|
|
|
19112
19112
|
declare const meta$1_addBookingsToMultiServiceBooking: typeof addBookingsToMultiServiceBooking;
|
|
19113
19113
|
declare const meta$1_bulkCreateBooking: typeof bulkCreateBooking;
|