@wix/auto_sdk_bookings_bookings 1.0.89 → 1.0.90

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +490 -490
  2. package/build/cjs/index.js +931 -931
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2376 -2460
  5. package/build/cjs/index.typings.js +803 -803
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1346 -1410
  8. package/build/cjs/meta.js +646 -646
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +490 -490
  11. package/build/es/index.mjs +931 -931
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +2376 -2460
  14. package/build/es/index.typings.mjs +803 -803
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1346 -1410
  17. package/build/es/meta.mjs +646 -646
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +490 -490
  20. package/build/internal/cjs/index.js +931 -931
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +2381 -2465
  23. package/build/internal/cjs/index.typings.js +803 -803
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +1346 -1410
  26. package/build/internal/cjs/meta.js +646 -646
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +490 -490
  29. package/build/internal/es/index.mjs +931 -931
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +2381 -2465
  32. package/build/internal/es/index.typings.mjs +803 -803
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +1346 -1410
  35. package/build/internal/es/meta.mjs +646 -646
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
package/build/es/meta.mjs CHANGED
@@ -6,7 +6,7 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
6
6
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
7
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
8
8
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
9
- function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
9
+ function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
10
10
  const domainToMappings = {
11
11
  _: [
12
12
  {
@@ -312,58 +312,7 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
312
312
  };
313
313
  return resolveUrl(Object.assign(opts, { domainToMappings }));
314
314
  }
315
- function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
316
- const domainToMappings = {
317
- "www.wixapis.com": [
318
- {
319
- srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
320
- destPath: "/v2/bookings/confirmation"
321
- },
322
- {
323
- srcPath: "/bookings/v2/confirmation",
324
- destPath: "/v2/confirmation"
325
- },
326
- {
327
- srcPath: "/bookings/v2/bulk/confirmation",
328
- destPath: "/v2/bulk/confirmation"
329
- },
330
- {
331
- srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
332
- destPath: "/v2/bulk/bookings/confirmOrDecline"
333
- },
334
- {
335
- srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
336
- destPath: "/v2/bulk/confirmation"
337
- },
338
- {
339
- srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
340
- destPath: "/v2/bulk/bookings/confirmOrDecline"
341
- }
342
- ],
343
- "*.dev.wix-code.com": [
344
- {
345
- srcPath: "/bookings/v2/confirmation",
346
- destPath: "/v2/confirmation"
347
- },
348
- {
349
- srcPath: "/bookings/v2/bulk/bookings",
350
- destPath: "/v2/bulk/bookings"
351
- }
352
- ],
353
- _: [
354
- {
355
- srcPath: "/bookings/v2/confirmation",
356
- destPath: "/v2/confirmation"
357
- },
358
- {
359
- srcPath: "/bookings/v2/bulk/bookings",
360
- destPath: "/v2/bulk/bookings"
361
- }
362
- ]
363
- };
364
- return resolveUrl(Object.assign(opts, { domainToMappings }));
365
- }
366
- function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
315
+ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
367
316
  const domainToMappings = {
368
317
  _: [
369
318
  {
@@ -516,40 +465,70 @@ function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
516
465
  };
517
466
  return resolveUrl(Object.assign(opts, { domainToMappings }));
518
467
  }
519
- var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
520
- function getAnonymousActionDetails(payload) {
521
- function __getAnonymousActionDetails({ host }) {
522
- const metadata = {
523
- entityFqdn: "wix.bookings.v2.booking",
524
- method: "GET",
525
- methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
526
- packageName: PACKAGE_NAME,
527
- migrationOptions: {
528
- optInTransformResponse: true
468
+ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
469
+ const domainToMappings = {
470
+ "www.wixapis.com": [
471
+ {
472
+ srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
473
+ destPath: "/v2/bookings/confirmation"
529
474
  },
530
- url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
531
- protoPath: "/v2/bookings/anonymous-actions-details",
532
- data: payload,
533
- host
534
- }),
535
- params: toURLSearchParams(payload)
536
- };
537
- return metadata;
538
- }
539
- return __getAnonymousActionDetails;
475
+ {
476
+ srcPath: "/bookings/v2/confirmation",
477
+ destPath: "/v2/confirmation"
478
+ },
479
+ {
480
+ srcPath: "/bookings/v2/bulk/confirmation",
481
+ destPath: "/v2/bulk/confirmation"
482
+ },
483
+ {
484
+ srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
485
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
486
+ },
487
+ {
488
+ srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
489
+ destPath: "/v2/bulk/confirmation"
490
+ },
491
+ {
492
+ srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
493
+ destPath: "/v2/bulk/bookings/confirmOrDecline"
494
+ }
495
+ ],
496
+ "*.dev.wix-code.com": [
497
+ {
498
+ srcPath: "/bookings/v2/confirmation",
499
+ destPath: "/v2/confirmation"
500
+ },
501
+ {
502
+ srcPath: "/bookings/v2/bulk/bookings",
503
+ destPath: "/v2/bulk/bookings"
504
+ }
505
+ ],
506
+ _: [
507
+ {
508
+ srcPath: "/bookings/v2/confirmation",
509
+ destPath: "/v2/confirmation"
510
+ },
511
+ {
512
+ srcPath: "/bookings/v2/bulk/bookings",
513
+ destPath: "/v2/bulk/bookings"
514
+ }
515
+ ]
516
+ };
517
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
540
518
  }
541
- function cancelBookingAnonymously(payload) {
542
- function __cancelBookingAnonymously({ host }) {
519
+ var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
520
+ function confirmOrDeclineBooking(payload) {
521
+ function __confirmOrDeclineBooking({ host }) {
543
522
  const metadata = {
544
523
  entityFqdn: "wix.bookings.v2.booking",
545
524
  method: "POST",
546
- methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
525
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
547
526
  packageName: PACKAGE_NAME,
548
527
  migrationOptions: {
549
528
  optInTransformResponse: true
550
529
  },
551
- url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
552
- protoPath: "/v2/bookings/{token}/anonymous-cancel",
530
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
531
+ protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
553
532
  data: payload,
554
533
  host
555
534
  }),
@@ -576,20 +555,20 @@ function cancelBookingAnonymously(payload) {
576
555
  };
577
556
  return metadata;
578
557
  }
579
- return __cancelBookingAnonymously;
558
+ return __confirmOrDeclineBooking;
580
559
  }
581
- function rescheduleBookingAnonymously(payload) {
582
- function __rescheduleBookingAnonymously({ host }) {
560
+ function bulkConfirmOrDeclineBooking(payload) {
561
+ function __bulkConfirmOrDeclineBooking({ host }) {
583
562
  const metadata = {
584
563
  entityFqdn: "wix.bookings.v2.booking",
585
564
  method: "POST",
586
- methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
565
+ methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
587
566
  packageName: PACKAGE_NAME,
588
567
  migrationOptions: {
589
568
  optInTransformResponse: true
590
569
  },
591
- url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
592
- protoPath: "/v2/bookings/{token}/anonymous-reschedule",
570
+ url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
571
+ protoPath: "/v2/bulk/bookings/confirmOrDecline",
593
572
  data: payload,
594
573
  host
595
574
  }),
@@ -598,78 +577,105 @@ function rescheduleBookingAnonymously(payload) {
598
577
  {
599
578
  transformFn: transformRESTTimestampToSDKTimestamp,
600
579
  paths: [
601
- { path: "booking.createdDate" },
602
- { path: "booking.startDate" },
603
- { path: "booking.endDate" },
604
- { path: "booking.updatedDate" },
605
- { path: "booking.canceledDate" }
580
+ { path: "results.item.createdDate" },
581
+ { path: "results.item.startDate" },
582
+ { path: "results.item.endDate" },
583
+ { path: "results.item.updatedDate" },
584
+ { path: "results.item.canceledDate" }
606
585
  ]
607
586
  },
608
587
  {
609
588
  transformFn: transformRESTFloatToSDKFloat,
610
589
  paths: [
611
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
612
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
590
+ {
591
+ path: "results.item.contactDetails.fullAddress.geocode.latitude"
592
+ },
593
+ {
594
+ path: "results.item.contactDetails.fullAddress.geocode.longitude"
595
+ }
613
596
  ]
614
597
  }
615
598
  ])
616
599
  };
617
600
  return metadata;
618
601
  }
619
- return __rescheduleBookingAnonymously;
602
+ return __bulkConfirmOrDeclineBooking;
620
603
  }
621
- function getBookingAnonymously(payload) {
622
- function __getBookingAnonymously({ host }) {
604
+ function createMultiServiceBooking(payload) {
605
+ function __createMultiServiceBooking({ host }) {
606
+ const serializedData = transformPaths(payload, [
607
+ {
608
+ transformFn: transformSDKTimestampToRESTTimestamp,
609
+ paths: [
610
+ { path: "bookings.createdDate" },
611
+ { path: "bookings.startDate" },
612
+ { path: "bookings.endDate" },
613
+ { path: "bookings.updatedDate" },
614
+ { path: "bookings.canceledDate" }
615
+ ]
616
+ },
617
+ {
618
+ transformFn: transformSDKFloatToRESTFloat,
619
+ paths: [
620
+ { path: "bookings.contactDetails.fullAddress.geocode.latitude" },
621
+ { path: "bookings.contactDetails.fullAddress.geocode.longitude" }
622
+ ]
623
+ }
624
+ ]);
623
625
  const metadata = {
624
626
  entityFqdn: "wix.bookings.v2.booking",
625
- method: "GET",
626
- methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
627
+ method: "POST",
628
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking",
627
629
  packageName: PACKAGE_NAME,
628
630
  migrationOptions: {
629
631
  optInTransformResponse: true
630
632
  },
631
- url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
632
- protoPath: "/v2/bookings/{token}/anonymous-get",
633
- data: payload,
633
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
634
+ protoPath: "/v2/multi_service_bookings",
635
+ data: serializedData,
634
636
  host
635
637
  }),
636
- params: toURLSearchParams(payload),
638
+ data: serializedData,
637
639
  transformResponse: (payload2) => transformPaths(payload2, [
638
640
  {
639
641
  transformFn: transformRESTTimestampToSDKTimestamp,
640
642
  paths: [
641
- { path: "booking.createdDate" },
642
- { path: "booking.startDate" },
643
- { path: "booking.endDate" },
644
- { path: "booking.updatedDate" },
645
- { path: "booking.canceledDate" }
643
+ { path: "multiServiceBooking.bookings.booking.createdDate" },
644
+ { path: "multiServiceBooking.bookings.booking.startDate" },
645
+ { path: "multiServiceBooking.bookings.booking.endDate" },
646
+ { path: "multiServiceBooking.bookings.booking.updatedDate" },
647
+ { path: "multiServiceBooking.bookings.booking.canceledDate" }
646
648
  ]
647
649
  },
648
650
  {
649
651
  transformFn: transformRESTFloatToSDKFloat,
650
652
  paths: [
651
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
652
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
653
+ {
654
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
655
+ },
656
+ {
657
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
658
+ }
653
659
  ]
654
660
  }
655
661
  ])
656
662
  };
657
663
  return metadata;
658
664
  }
659
- return __getBookingAnonymously;
665
+ return __createMultiServiceBooking;
660
666
  }
661
- function confirmOrDeclineBooking(payload) {
662
- function __confirmOrDeclineBooking({ host }) {
667
+ function rescheduleMultiServiceBooking(payload) {
668
+ function __rescheduleMultiServiceBooking({ host }) {
663
669
  const metadata = {
664
670
  entityFqdn: "wix.bookings.v2.booking",
665
671
  method: "POST",
666
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
672
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RescheduleMultiServiceBooking",
667
673
  packageName: PACKAGE_NAME,
668
674
  migrationOptions: {
669
675
  optInTransformResponse: true
670
676
  },
671
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
672
- protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
677
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
678
+ protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
673
679
  data: payload,
674
680
  host
675
681
  }),
@@ -678,38 +684,63 @@ function confirmOrDeclineBooking(payload) {
678
684
  {
679
685
  transformFn: transformRESTTimestampToSDKTimestamp,
680
686
  paths: [
681
- { path: "booking.createdDate" },
682
- { path: "booking.startDate" },
683
- { path: "booking.endDate" },
684
- { path: "booking.updatedDate" },
685
- { path: "booking.canceledDate" }
687
+ { path: "multiServiceBooking.bookings.booking.createdDate" },
688
+ { path: "multiServiceBooking.bookings.booking.startDate" },
689
+ { path: "multiServiceBooking.bookings.booking.endDate" },
690
+ { path: "multiServiceBooking.bookings.booking.updatedDate" },
691
+ { path: "multiServiceBooking.bookings.booking.canceledDate" }
686
692
  ]
687
693
  },
688
694
  {
689
695
  transformFn: transformRESTFloatToSDKFloat,
690
696
  paths: [
691
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
692
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
697
+ {
698
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
699
+ },
700
+ {
701
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
702
+ }
693
703
  ]
694
704
  }
695
705
  ])
696
706
  };
697
707
  return metadata;
698
708
  }
699
- return __confirmOrDeclineBooking;
709
+ return __rescheduleMultiServiceBooking;
700
710
  }
701
- function bulkConfirmOrDeclineBooking(payload) {
702
- function __bulkConfirmOrDeclineBooking({ host }) {
711
+ function getMultiServiceBookingAvailability(payload) {
712
+ function __getMultiServiceBookingAvailability({ host }) {
703
713
  const metadata = {
704
714
  entityFqdn: "wix.bookings.v2.booking",
705
715
  method: "POST",
706
- methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
716
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability",
707
717
  packageName: PACKAGE_NAME,
708
718
  migrationOptions: {
709
719
  optInTransformResponse: true
710
720
  },
711
- url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
712
- protoPath: "/v2/bulk/bookings/confirmOrDecline",
721
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
722
+ protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
723
+ data: payload,
724
+ host
725
+ }),
726
+ data: payload
727
+ };
728
+ return metadata;
729
+ }
730
+ return __getMultiServiceBookingAvailability;
731
+ }
732
+ function cancelMultiServiceBooking(payload) {
733
+ function __cancelMultiServiceBooking({ host }) {
734
+ const metadata = {
735
+ entityFqdn: "wix.bookings.v2.booking",
736
+ method: "POST",
737
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CancelMultiServiceBooking",
738
+ packageName: PACKAGE_NAME,
739
+ migrationOptions: {
740
+ optInTransformResponse: true
741
+ },
742
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
743
+ protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
713
744
  data: payload,
714
745
  host
715
746
  }),
@@ -718,21 +749,21 @@ function bulkConfirmOrDeclineBooking(payload) {
718
749
  {
719
750
  transformFn: transformRESTTimestampToSDKTimestamp,
720
751
  paths: [
721
- { path: "results.item.createdDate" },
722
- { path: "results.item.startDate" },
723
- { path: "results.item.endDate" },
724
- { path: "results.item.updatedDate" },
725
- { path: "results.item.canceledDate" }
752
+ { path: "multiServiceBooking.bookings.booking.createdDate" },
753
+ { path: "multiServiceBooking.bookings.booking.startDate" },
754
+ { path: "multiServiceBooking.bookings.booking.endDate" },
755
+ { path: "multiServiceBooking.bookings.booking.updatedDate" },
756
+ { path: "multiServiceBooking.bookings.booking.canceledDate" }
726
757
  ]
727
758
  },
728
759
  {
729
760
  transformFn: transformRESTFloatToSDKFloat,
730
761
  paths: [
731
762
  {
732
- path: "results.item.contactDetails.fullAddress.geocode.latitude"
763
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
733
764
  },
734
765
  {
735
- path: "results.item.contactDetails.fullAddress.geocode.longitude"
766
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
736
767
  }
737
768
  ]
738
769
  }
@@ -740,125 +771,87 @@ function bulkConfirmOrDeclineBooking(payload) {
740
771
  };
741
772
  return metadata;
742
773
  }
743
- return __bulkConfirmOrDeclineBooking;
774
+ return __cancelMultiServiceBooking;
744
775
  }
745
- function createBooking(payload) {
746
- function __createBooking({ host }) {
747
- const serializedData = transformPaths(payload, [
748
- {
749
- transformFn: transformSDKTimestampToRESTTimestamp,
750
- paths: [
751
- { path: "booking.createdDate" },
752
- { path: "booking.startDate" },
753
- { path: "booking.endDate" },
754
- { path: "booking.updatedDate" },
755
- { path: "booking.canceledDate" }
756
- ]
757
- },
758
- {
759
- transformFn: transformSDKFloatToRESTFloat,
760
- paths: [
761
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
762
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
763
- ]
764
- }
765
- ]);
776
+ function markMultiServiceBookingAsPending(payload) {
777
+ function __markMultiServiceBookingAsPending({ host }) {
766
778
  const metadata = {
767
779
  entityFqdn: "wix.bookings.v2.booking",
768
780
  method: "POST",
769
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CreateBooking",
781
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.MarkMultiServiceBookingAsPending",
770
782
  packageName: PACKAGE_NAME,
771
783
  migrationOptions: {
772
784
  optInTransformResponse: true
773
785
  },
774
- url: resolveComWixpressBookingsBookingsV2BookingsUrl({
775
- protoPath: "/v2/bookings",
776
- data: serializedData,
786
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
787
+ protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
788
+ data: payload,
777
789
  host
778
790
  }),
779
- data: serializedData,
791
+ data: payload,
780
792
  transformResponse: (payload2) => transformPaths(payload2, [
781
793
  {
782
794
  transformFn: transformRESTTimestampToSDKTimestamp,
783
795
  paths: [
784
- { path: "booking.createdDate" },
785
- { path: "booking.startDate" },
786
- { path: "booking.endDate" },
787
- { path: "booking.updatedDate" },
788
- { path: "booking.canceledDate" }
796
+ { path: "multiServiceBooking.bookings.booking.createdDate" },
797
+ { path: "multiServiceBooking.bookings.booking.startDate" },
798
+ { path: "multiServiceBooking.bookings.booking.endDate" },
799
+ { path: "multiServiceBooking.bookings.booking.updatedDate" },
800
+ { path: "multiServiceBooking.bookings.booking.canceledDate" }
789
801
  ]
790
802
  },
791
803
  {
792
804
  transformFn: transformRESTFloatToSDKFloat,
793
805
  paths: [
794
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
795
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
806
+ {
807
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
808
+ },
809
+ {
810
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
811
+ }
796
812
  ]
797
813
  }
798
814
  ])
799
815
  };
800
816
  return metadata;
801
817
  }
802
- return __createBooking;
818
+ return __markMultiServiceBookingAsPending;
803
819
  }
804
- function bulkCreateBooking(payload) {
805
- function __bulkCreateBooking({ host }) {
806
- const serializedData = transformPaths(payload, [
807
- {
808
- transformFn: transformSDKTimestampToRESTTimestamp,
809
- paths: [
810
- { path: "createBookingsInfo.booking.createdDate" },
811
- { path: "createBookingsInfo.booking.startDate" },
812
- { path: "createBookingsInfo.booking.endDate" },
813
- { path: "createBookingsInfo.booking.updatedDate" },
814
- { path: "createBookingsInfo.booking.canceledDate" }
815
- ]
816
- },
817
- {
818
- transformFn: transformSDKFloatToRESTFloat,
819
- paths: [
820
- {
821
- path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.latitude"
822
- },
823
- {
824
- path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.longitude"
825
- }
826
- ]
827
- }
828
- ]);
820
+ function confirmMultiServiceBooking(payload) {
821
+ function __confirmMultiServiceBooking({ host }) {
829
822
  const metadata = {
830
823
  entityFqdn: "wix.bookings.v2.booking",
831
824
  method: "POST",
832
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCreateBooking",
825
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.ConfirmMultiServiceBooking",
833
826
  packageName: PACKAGE_NAME,
834
827
  migrationOptions: {
835
828
  optInTransformResponse: true
836
829
  },
837
- url: resolveComWixpressBookingsBookingsV2BookingsUrl({
838
- protoPath: "/v2/bulk/bookings/create",
839
- data: serializedData,
830
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
831
+ protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
832
+ data: payload,
840
833
  host
841
834
  }),
842
- data: serializedData,
835
+ data: payload,
843
836
  transformResponse: (payload2) => transformPaths(payload2, [
844
837
  {
845
838
  transformFn: transformRESTTimestampToSDKTimestamp,
846
839
  paths: [
847
- { path: "results.item.createdDate" },
848
- { path: "results.item.startDate" },
849
- { path: "results.item.endDate" },
850
- { path: "results.item.updatedDate" },
851
- { path: "results.item.canceledDate" }
840
+ { path: "multiServiceBooking.bookings.booking.createdDate" },
841
+ { path: "multiServiceBooking.bookings.booking.startDate" },
842
+ { path: "multiServiceBooking.bookings.booking.endDate" },
843
+ { path: "multiServiceBooking.bookings.booking.updatedDate" },
844
+ { path: "multiServiceBooking.bookings.booking.canceledDate" }
852
845
  ]
853
846
  },
854
847
  {
855
848
  transformFn: transformRESTFloatToSDKFloat,
856
849
  paths: [
857
850
  {
858
- path: "results.item.contactDetails.fullAddress.geocode.latitude"
851
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
859
852
  },
860
853
  {
861
- path: "results.item.contactDetails.fullAddress.geocode.longitude"
854
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
862
855
  }
863
856
  ]
864
857
  }
@@ -866,20 +859,20 @@ function bulkCreateBooking(payload) {
866
859
  };
867
860
  return metadata;
868
861
  }
869
- return __bulkCreateBooking;
862
+ return __confirmMultiServiceBooking;
870
863
  }
871
- function rescheduleBooking(payload) {
872
- function __rescheduleBooking({ host }) {
864
+ function declineMultiServiceBooking(payload) {
865
+ function __declineMultiServiceBooking({ host }) {
873
866
  const metadata = {
874
867
  entityFqdn: "wix.bookings.v2.booking",
875
868
  method: "POST",
876
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.RescheduleBooking",
869
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.DeclineMultiServiceBooking",
877
870
  packageName: PACKAGE_NAME,
878
871
  migrationOptions: {
879
872
  optInTransformResponse: true
880
873
  },
881
- url: resolveComWixpressBookingsBookingsV2BookingsUrl({
882
- protoPath: "/v2/bookings/{bookingId}/reschedule",
874
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
875
+ protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
883
876
  data: payload,
884
877
  host
885
878
  }),
@@ -888,139 +881,151 @@ function rescheduleBooking(payload) {
888
881
  {
889
882
  transformFn: transformRESTTimestampToSDKTimestamp,
890
883
  paths: [
891
- { path: "booking.createdDate" },
892
- { path: "booking.startDate" },
893
- { path: "booking.endDate" },
894
- { path: "booking.updatedDate" },
895
- { path: "booking.canceledDate" }
884
+ { path: "multiServiceBooking.bookings.booking.createdDate" },
885
+ { path: "multiServiceBooking.bookings.booking.startDate" },
886
+ { path: "multiServiceBooking.bookings.booking.endDate" },
887
+ { path: "multiServiceBooking.bookings.booking.updatedDate" },
888
+ { path: "multiServiceBooking.bookings.booking.canceledDate" }
896
889
  ]
897
890
  },
898
891
  {
899
892
  transformFn: transformRESTFloatToSDKFloat,
900
893
  paths: [
901
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
902
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
894
+ {
895
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
896
+ },
897
+ {
898
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
899
+ }
903
900
  ]
904
901
  }
905
902
  ])
906
903
  };
907
904
  return metadata;
908
905
  }
909
- return __rescheduleBooking;
906
+ return __declineMultiServiceBooking;
910
907
  }
911
- function bookingsConfirmBooking(payload) {
912
- function __bookingsConfirmBooking({ host }) {
908
+ function bulkGetMultiServiceBookingAllowedActions(payload) {
909
+ function __bulkGetMultiServiceBookingAllowedActions({ host }) {
913
910
  const metadata = {
914
911
  entityFqdn: "wix.bookings.v2.booking",
915
912
  method: "POST",
916
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.ConfirmBooking",
913
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.BulkGetMultiServiceBookingAllowedActions",
917
914
  packageName: PACKAGE_NAME,
918
915
  migrationOptions: {
919
916
  optInTransformResponse: true
920
917
  },
921
- url: resolveComWixpressBookingsBookingsV2BookingsUrl({
922
- protoPath: "/v2/bookings/{bookingId}/confirm",
918
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
919
+ protoPath: "/v2/bulk/multi_service_bookings/get_allowed_actions",
923
920
  data: payload,
924
921
  host
925
922
  }),
926
- data: payload,
927
- transformResponse: (payload2) => transformPaths(payload2, [
928
- {
929
- transformFn: transformRESTTimestampToSDKTimestamp,
930
- paths: [
931
- { path: "booking.createdDate" },
932
- { path: "booking.startDate" },
933
- { path: "booking.endDate" },
934
- { path: "booking.updatedDate" },
935
- { path: "booking.canceledDate" }
936
- ]
937
- },
938
- {
939
- transformFn: transformRESTFloatToSDKFloat,
940
- paths: [
941
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
942
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
943
- ]
944
- }
945
- ])
923
+ data: payload
946
924
  };
947
925
  return metadata;
948
926
  }
949
- return __bookingsConfirmBooking;
927
+ return __bulkGetMultiServiceBookingAllowedActions;
950
928
  }
951
- function setBookingSubmissionId(payload) {
952
- function __setBookingSubmissionId({ host }) {
929
+ function getMultiServiceBooking(payload) {
930
+ function __getMultiServiceBooking({ host }) {
953
931
  const metadata = {
954
932
  entityFqdn: "wix.bookings.v2.booking",
955
- method: "POST",
956
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.SetBookingSubmissionId",
933
+ method: "GET",
934
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBooking",
957
935
  packageName: PACKAGE_NAME,
958
936
  migrationOptions: {
959
937
  optInTransformResponse: true
960
938
  },
961
- url: resolveComWixpressBookingsBookingsV2BookingsUrl({
962
- protoPath: "/v2/bookings/{bookingId}/set-booking-submission-id",
939
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
940
+ protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}",
963
941
  data: payload,
964
942
  host
965
943
  }),
966
- data: payload,
944
+ params: toURLSearchParams(payload),
967
945
  transformResponse: (payload2) => transformPaths(payload2, [
968
946
  {
969
947
  transformFn: transformRESTTimestampToSDKTimestamp,
970
948
  paths: [
971
- { path: "booking.createdDate" },
972
- { path: "booking.startDate" },
973
- { path: "booking.endDate" },
974
- { path: "booking.updatedDate" },
975
- { path: "booking.canceledDate" }
949
+ { path: "multiServiceBooking.bookings.booking.createdDate" },
950
+ { path: "multiServiceBooking.bookings.booking.startDate" },
951
+ { path: "multiServiceBooking.bookings.booking.endDate" },
952
+ { path: "multiServiceBooking.bookings.booking.updatedDate" },
953
+ { path: "multiServiceBooking.bookings.booking.canceledDate" }
976
954
  ]
977
955
  },
978
956
  {
979
957
  transformFn: transformRESTFloatToSDKFloat,
980
958
  paths: [
981
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
982
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
959
+ {
960
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
961
+ },
962
+ {
963
+ path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
964
+ }
983
965
  ]
984
966
  }
985
967
  ])
986
968
  };
987
969
  return metadata;
988
970
  }
989
- return __setBookingSubmissionId;
971
+ return __getMultiServiceBooking;
990
972
  }
991
- function updateExtendedFields(payload) {
992
- function __updateExtendedFields({ host }) {
973
+ function addBookingsToMultiServiceBooking(payload) {
974
+ function __addBookingsToMultiServiceBooking({ host }) {
993
975
  const metadata = {
994
976
  entityFqdn: "wix.bookings.v2.booking",
995
977
  method: "POST",
996
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateExtendedFields",
978
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.AddBookingsToMultiServiceBooking",
997
979
  packageName: PACKAGE_NAME,
998
980
  migrationOptions: {
999
981
  optInTransformResponse: true
1000
982
  },
1001
- url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1002
- protoPath: "/v2/bookings/{id}/update_extended_fields",
983
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
984
+ protoPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
1003
985
  data: payload,
1004
986
  host
1005
987
  }),
1006
- data: payload
988
+ data: payload,
989
+ transformResponse: (payload2) => transformPaths(payload2, [
990
+ {
991
+ transformFn: transformRESTTimestampToSDKTimestamp,
992
+ paths: [
993
+ { path: "bookings.booking.createdDate" },
994
+ { path: "bookings.booking.startDate" },
995
+ { path: "bookings.booking.endDate" },
996
+ { path: "bookings.booking.updatedDate" },
997
+ { path: "bookings.booking.canceledDate" }
998
+ ]
999
+ },
1000
+ {
1001
+ transformFn: transformRESTFloatToSDKFloat,
1002
+ paths: [
1003
+ {
1004
+ path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
1005
+ },
1006
+ {
1007
+ path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
1008
+ }
1009
+ ]
1010
+ }
1011
+ ])
1007
1012
  };
1008
1013
  return metadata;
1009
1014
  }
1010
- return __updateExtendedFields;
1015
+ return __addBookingsToMultiServiceBooking;
1011
1016
  }
1012
- function bookingsDeclineBooking(payload) {
1013
- function __bookingsDeclineBooking({ host }) {
1017
+ function removeBookingsFromMultiServiceBooking(payload) {
1018
+ function __removeBookingsFromMultiServiceBooking({ host }) {
1014
1019
  const metadata = {
1015
1020
  entityFqdn: "wix.bookings.v2.booking",
1016
1021
  method: "POST",
1017
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.DeclineBooking",
1022
+ methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RemoveBookingsFromMultiServiceBooking",
1018
1023
  packageName: PACKAGE_NAME,
1019
1024
  migrationOptions: {
1020
1025
  optInTransformResponse: true
1021
1026
  },
1022
- url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1023
- protoPath: "/v2/bookings/{bookingId}/decline",
1027
+ url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1028
+ protoPath: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
1024
1029
  data: payload,
1025
1030
  host
1026
1031
  }),
@@ -1029,42 +1034,65 @@ function bookingsDeclineBooking(payload) {
1029
1034
  {
1030
1035
  transformFn: transformRESTTimestampToSDKTimestamp,
1031
1036
  paths: [
1032
- { path: "booking.createdDate" },
1033
- { path: "booking.startDate" },
1034
- { path: "booking.endDate" },
1035
- { path: "booking.updatedDate" },
1036
- { path: "booking.canceledDate" }
1037
+ { path: "bookings.booking.createdDate" },
1038
+ { path: "bookings.booking.startDate" },
1039
+ { path: "bookings.booking.endDate" },
1040
+ { path: "bookings.booking.updatedDate" },
1041
+ { path: "bookings.booking.canceledDate" }
1037
1042
  ]
1038
1043
  },
1039
1044
  {
1040
1045
  transformFn: transformRESTFloatToSDKFloat,
1041
1046
  paths: [
1042
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1043
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1047
+ {
1048
+ path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
1049
+ },
1050
+ {
1051
+ path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
1052
+ }
1044
1053
  ]
1045
1054
  }
1046
1055
  ])
1047
1056
  };
1048
1057
  return metadata;
1049
1058
  }
1050
- return __bookingsDeclineBooking;
1059
+ return __removeBookingsFromMultiServiceBooking;
1051
1060
  }
1052
- function bookingsCancelBooking(payload) {
1053
- function __bookingsCancelBooking({ host }) {
1061
+ function createBooking(payload) {
1062
+ function __createBooking({ host }) {
1063
+ const serializedData = transformPaths(payload, [
1064
+ {
1065
+ transformFn: transformSDKTimestampToRESTTimestamp,
1066
+ paths: [
1067
+ { path: "booking.createdDate" },
1068
+ { path: "booking.startDate" },
1069
+ { path: "booking.endDate" },
1070
+ { path: "booking.updatedDate" },
1071
+ { path: "booking.canceledDate" }
1072
+ ]
1073
+ },
1074
+ {
1075
+ transformFn: transformSDKFloatToRESTFloat,
1076
+ paths: [
1077
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1078
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1079
+ ]
1080
+ }
1081
+ ]);
1054
1082
  const metadata = {
1055
1083
  entityFqdn: "wix.bookings.v2.booking",
1056
1084
  method: "POST",
1057
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CancelBooking",
1085
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CreateBooking",
1058
1086
  packageName: PACKAGE_NAME,
1059
1087
  migrationOptions: {
1060
1088
  optInTransformResponse: true
1061
1089
  },
1062
1090
  url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1063
- protoPath: "/v2/bookings/{bookingId}/cancel",
1064
- data: payload,
1091
+ protoPath: "/v2/bookings",
1092
+ data: serializedData,
1065
1093
  host
1066
1094
  }),
1067
- data: payload,
1095
+ data: serializedData,
1068
1096
  transformResponse: (payload2) => transformPaths(payload2, [
1069
1097
  {
1070
1098
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -1087,60 +1115,87 @@ function bookingsCancelBooking(payload) {
1087
1115
  };
1088
1116
  return metadata;
1089
1117
  }
1090
- return __bookingsCancelBooking;
1118
+ return __createBooking;
1091
1119
  }
1092
- function bookingsUpdateNumberOfParticipants(payload) {
1093
- function __bookingsUpdateNumberOfParticipants({ host }) {
1120
+ function bulkCreateBooking(payload) {
1121
+ function __bulkCreateBooking({ host }) {
1122
+ const serializedData = transformPaths(payload, [
1123
+ {
1124
+ transformFn: transformSDKTimestampToRESTTimestamp,
1125
+ paths: [
1126
+ { path: "createBookingsInfo.booking.createdDate" },
1127
+ { path: "createBookingsInfo.booking.startDate" },
1128
+ { path: "createBookingsInfo.booking.endDate" },
1129
+ { path: "createBookingsInfo.booking.updatedDate" },
1130
+ { path: "createBookingsInfo.booking.canceledDate" }
1131
+ ]
1132
+ },
1133
+ {
1134
+ transformFn: transformSDKFloatToRESTFloat,
1135
+ paths: [
1136
+ {
1137
+ path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.latitude"
1138
+ },
1139
+ {
1140
+ path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.longitude"
1141
+ }
1142
+ ]
1143
+ }
1144
+ ]);
1094
1145
  const metadata = {
1095
1146
  entityFqdn: "wix.bookings.v2.booking",
1096
1147
  method: "POST",
1097
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
1148
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCreateBooking",
1098
1149
  packageName: PACKAGE_NAME,
1099
1150
  migrationOptions: {
1100
1151
  optInTransformResponse: true
1101
1152
  },
1102
1153
  url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1103
- protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
1104
- data: payload,
1154
+ protoPath: "/v2/bulk/bookings/create",
1155
+ data: serializedData,
1105
1156
  host
1106
1157
  }),
1107
- data: payload,
1158
+ data: serializedData,
1108
1159
  transformResponse: (payload2) => transformPaths(payload2, [
1109
1160
  {
1110
1161
  transformFn: transformRESTTimestampToSDKTimestamp,
1111
1162
  paths: [
1112
- { path: "booking.createdDate" },
1113
- { path: "booking.startDate" },
1114
- { path: "booking.endDate" },
1115
- { path: "booking.updatedDate" },
1116
- { path: "booking.canceledDate" }
1163
+ { path: "results.item.createdDate" },
1164
+ { path: "results.item.startDate" },
1165
+ { path: "results.item.endDate" },
1166
+ { path: "results.item.updatedDate" },
1167
+ { path: "results.item.canceledDate" }
1117
1168
  ]
1118
1169
  },
1119
1170
  {
1120
1171
  transformFn: transformRESTFloatToSDKFloat,
1121
1172
  paths: [
1122
- { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1123
- { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1173
+ {
1174
+ path: "results.item.contactDetails.fullAddress.geocode.latitude"
1175
+ },
1176
+ {
1177
+ path: "results.item.contactDetails.fullAddress.geocode.longitude"
1178
+ }
1124
1179
  ]
1125
1180
  }
1126
1181
  ])
1127
1182
  };
1128
1183
  return metadata;
1129
1184
  }
1130
- return __bookingsUpdateNumberOfParticipants;
1185
+ return __bulkCreateBooking;
1131
1186
  }
1132
- function markBookingAsPending(payload) {
1133
- function __markBookingAsPending({ host }) {
1187
+ function rescheduleBooking(payload) {
1188
+ function __rescheduleBooking({ host }) {
1134
1189
  const metadata = {
1135
1190
  entityFqdn: "wix.bookings.v2.booking",
1136
1191
  method: "POST",
1137
- methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
1192
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.RescheduleBooking",
1138
1193
  packageName: PACKAGE_NAME,
1139
1194
  migrationOptions: {
1140
1195
  optInTransformResponse: true
1141
1196
  },
1142
1197
  url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1143
- protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
1198
+ protoPath: "/v2/bookings/{bookingId}/reschedule",
1144
1199
  data: payload,
1145
1200
  host
1146
1201
  }),
@@ -1167,83 +1222,60 @@ function markBookingAsPending(payload) {
1167
1222
  };
1168
1223
  return metadata;
1169
1224
  }
1170
- return __markBookingAsPending;
1225
+ return __rescheduleBooking;
1171
1226
  }
1172
- function createMultiServiceBooking(payload) {
1173
- function __createMultiServiceBooking({ host }) {
1174
- const serializedData = transformPaths(payload, [
1175
- {
1176
- transformFn: transformSDKTimestampToRESTTimestamp,
1177
- paths: [
1178
- { path: "bookings.createdDate" },
1179
- { path: "bookings.startDate" },
1180
- { path: "bookings.endDate" },
1181
- { path: "bookings.updatedDate" },
1182
- { path: "bookings.canceledDate" }
1183
- ]
1184
- },
1185
- {
1186
- transformFn: transformSDKFloatToRESTFloat,
1187
- paths: [
1188
- { path: "bookings.contactDetails.fullAddress.geocode.latitude" },
1189
- { path: "bookings.contactDetails.fullAddress.geocode.longitude" }
1190
- ]
1191
- }
1192
- ]);
1227
+ function bookingsConfirmBooking(payload) {
1228
+ function __bookingsConfirmBooking({ host }) {
1193
1229
  const metadata = {
1194
1230
  entityFqdn: "wix.bookings.v2.booking",
1195
1231
  method: "POST",
1196
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking",
1232
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.ConfirmBooking",
1197
1233
  packageName: PACKAGE_NAME,
1198
1234
  migrationOptions: {
1199
1235
  optInTransformResponse: true
1200
1236
  },
1201
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1202
- protoPath: "/v2/multi_service_bookings",
1203
- data: serializedData,
1237
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1238
+ protoPath: "/v2/bookings/{bookingId}/confirm",
1239
+ data: payload,
1204
1240
  host
1205
1241
  }),
1206
- data: serializedData,
1242
+ data: payload,
1207
1243
  transformResponse: (payload2) => transformPaths(payload2, [
1208
1244
  {
1209
1245
  transformFn: transformRESTTimestampToSDKTimestamp,
1210
1246
  paths: [
1211
- { path: "multiServiceBooking.bookings.booking.createdDate" },
1212
- { path: "multiServiceBooking.bookings.booking.startDate" },
1213
- { path: "multiServiceBooking.bookings.booking.endDate" },
1214
- { path: "multiServiceBooking.bookings.booking.updatedDate" },
1215
- { path: "multiServiceBooking.bookings.booking.canceledDate" }
1247
+ { path: "booking.createdDate" },
1248
+ { path: "booking.startDate" },
1249
+ { path: "booking.endDate" },
1250
+ { path: "booking.updatedDate" },
1251
+ { path: "booking.canceledDate" }
1216
1252
  ]
1217
1253
  },
1218
1254
  {
1219
1255
  transformFn: transformRESTFloatToSDKFloat,
1220
1256
  paths: [
1221
- {
1222
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
1223
- },
1224
- {
1225
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
1226
- }
1257
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1258
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1227
1259
  ]
1228
1260
  }
1229
1261
  ])
1230
1262
  };
1231
1263
  return metadata;
1232
1264
  }
1233
- return __createMultiServiceBooking;
1265
+ return __bookingsConfirmBooking;
1234
1266
  }
1235
- function rescheduleMultiServiceBooking(payload) {
1236
- function __rescheduleMultiServiceBooking({ host }) {
1267
+ function setBookingSubmissionId(payload) {
1268
+ function __setBookingSubmissionId({ host }) {
1237
1269
  const metadata = {
1238
1270
  entityFqdn: "wix.bookings.v2.booking",
1239
1271
  method: "POST",
1240
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RescheduleMultiServiceBooking",
1272
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.SetBookingSubmissionId",
1241
1273
  packageName: PACKAGE_NAME,
1242
1274
  migrationOptions: {
1243
1275
  optInTransformResponse: true
1244
1276
  },
1245
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1246
- protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
1277
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1278
+ protoPath: "/v2/bookings/{bookingId}/set-booking-submission-id",
1247
1279
  data: payload,
1248
1280
  host
1249
1281
  }),
@@ -1252,42 +1284,38 @@ function rescheduleMultiServiceBooking(payload) {
1252
1284
  {
1253
1285
  transformFn: transformRESTTimestampToSDKTimestamp,
1254
1286
  paths: [
1255
- { path: "multiServiceBooking.bookings.booking.createdDate" },
1256
- { path: "multiServiceBooking.bookings.booking.startDate" },
1257
- { path: "multiServiceBooking.bookings.booking.endDate" },
1258
- { path: "multiServiceBooking.bookings.booking.updatedDate" },
1259
- { path: "multiServiceBooking.bookings.booking.canceledDate" }
1287
+ { path: "booking.createdDate" },
1288
+ { path: "booking.startDate" },
1289
+ { path: "booking.endDate" },
1290
+ { path: "booking.updatedDate" },
1291
+ { path: "booking.canceledDate" }
1260
1292
  ]
1261
1293
  },
1262
1294
  {
1263
1295
  transformFn: transformRESTFloatToSDKFloat,
1264
1296
  paths: [
1265
- {
1266
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
1267
- },
1268
- {
1269
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
1270
- }
1297
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1298
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1271
1299
  ]
1272
1300
  }
1273
1301
  ])
1274
1302
  };
1275
1303
  return metadata;
1276
1304
  }
1277
- return __rescheduleMultiServiceBooking;
1305
+ return __setBookingSubmissionId;
1278
1306
  }
1279
- function getMultiServiceBookingAvailability(payload) {
1280
- function __getMultiServiceBookingAvailability({ host }) {
1307
+ function updateExtendedFields(payload) {
1308
+ function __updateExtendedFields({ host }) {
1281
1309
  const metadata = {
1282
1310
  entityFqdn: "wix.bookings.v2.booking",
1283
1311
  method: "POST",
1284
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability",
1312
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateExtendedFields",
1285
1313
  packageName: PACKAGE_NAME,
1286
1314
  migrationOptions: {
1287
1315
  optInTransformResponse: true
1288
1316
  },
1289
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1290
- protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
1317
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1318
+ protoPath: "/v2/bookings/{id}/update_extended_fields",
1291
1319
  data: payload,
1292
1320
  host
1293
1321
  }),
@@ -1295,20 +1323,20 @@ function getMultiServiceBookingAvailability(payload) {
1295
1323
  };
1296
1324
  return metadata;
1297
1325
  }
1298
- return __getMultiServiceBookingAvailability;
1326
+ return __updateExtendedFields;
1299
1327
  }
1300
- function cancelMultiServiceBooking(payload) {
1301
- function __cancelMultiServiceBooking({ host }) {
1328
+ function bookingsDeclineBooking(payload) {
1329
+ function __bookingsDeclineBooking({ host }) {
1302
1330
  const metadata = {
1303
1331
  entityFqdn: "wix.bookings.v2.booking",
1304
1332
  method: "POST",
1305
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CancelMultiServiceBooking",
1333
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.DeclineBooking",
1306
1334
  packageName: PACKAGE_NAME,
1307
1335
  migrationOptions: {
1308
1336
  optInTransformResponse: true
1309
1337
  },
1310
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1311
- protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
1338
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1339
+ protoPath: "/v2/bookings/{bookingId}/decline",
1312
1340
  data: payload,
1313
1341
  host
1314
1342
  }),
@@ -1317,42 +1345,38 @@ function cancelMultiServiceBooking(payload) {
1317
1345
  {
1318
1346
  transformFn: transformRESTTimestampToSDKTimestamp,
1319
1347
  paths: [
1320
- { path: "multiServiceBooking.bookings.booking.createdDate" },
1321
- { path: "multiServiceBooking.bookings.booking.startDate" },
1322
- { path: "multiServiceBooking.bookings.booking.endDate" },
1323
- { path: "multiServiceBooking.bookings.booking.updatedDate" },
1324
- { path: "multiServiceBooking.bookings.booking.canceledDate" }
1348
+ { path: "booking.createdDate" },
1349
+ { path: "booking.startDate" },
1350
+ { path: "booking.endDate" },
1351
+ { path: "booking.updatedDate" },
1352
+ { path: "booking.canceledDate" }
1325
1353
  ]
1326
1354
  },
1327
1355
  {
1328
1356
  transformFn: transformRESTFloatToSDKFloat,
1329
1357
  paths: [
1330
- {
1331
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
1332
- },
1333
- {
1334
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
1335
- }
1358
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1359
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1336
1360
  ]
1337
1361
  }
1338
1362
  ])
1339
1363
  };
1340
1364
  return metadata;
1341
1365
  }
1342
- return __cancelMultiServiceBooking;
1366
+ return __bookingsDeclineBooking;
1343
1367
  }
1344
- function markMultiServiceBookingAsPending(payload) {
1345
- function __markMultiServiceBookingAsPending({ host }) {
1368
+ function bookingsCancelBooking(payload) {
1369
+ function __bookingsCancelBooking({ host }) {
1346
1370
  const metadata = {
1347
1371
  entityFqdn: "wix.bookings.v2.booking",
1348
1372
  method: "POST",
1349
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.MarkMultiServiceBookingAsPending",
1373
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CancelBooking",
1350
1374
  packageName: PACKAGE_NAME,
1351
1375
  migrationOptions: {
1352
1376
  optInTransformResponse: true
1353
1377
  },
1354
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1355
- protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
1378
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1379
+ protoPath: "/v2/bookings/{bookingId}/cancel",
1356
1380
  data: payload,
1357
1381
  host
1358
1382
  }),
@@ -1361,42 +1385,38 @@ function markMultiServiceBookingAsPending(payload) {
1361
1385
  {
1362
1386
  transformFn: transformRESTTimestampToSDKTimestamp,
1363
1387
  paths: [
1364
- { path: "multiServiceBooking.bookings.booking.createdDate" },
1365
- { path: "multiServiceBooking.bookings.booking.startDate" },
1366
- { path: "multiServiceBooking.bookings.booking.endDate" },
1367
- { path: "multiServiceBooking.bookings.booking.updatedDate" },
1368
- { path: "multiServiceBooking.bookings.booking.canceledDate" }
1388
+ { path: "booking.createdDate" },
1389
+ { path: "booking.startDate" },
1390
+ { path: "booking.endDate" },
1391
+ { path: "booking.updatedDate" },
1392
+ { path: "booking.canceledDate" }
1369
1393
  ]
1370
1394
  },
1371
1395
  {
1372
1396
  transformFn: transformRESTFloatToSDKFloat,
1373
1397
  paths: [
1374
- {
1375
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
1376
- },
1377
- {
1378
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
1379
- }
1398
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1399
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1380
1400
  ]
1381
1401
  }
1382
1402
  ])
1383
1403
  };
1384
1404
  return metadata;
1385
1405
  }
1386
- return __markMultiServiceBookingAsPending;
1406
+ return __bookingsCancelBooking;
1387
1407
  }
1388
- function confirmMultiServiceBooking(payload) {
1389
- function __confirmMultiServiceBooking({ host }) {
1408
+ function bookingsUpdateNumberOfParticipants(payload) {
1409
+ function __bookingsUpdateNumberOfParticipants({ host }) {
1390
1410
  const metadata = {
1391
1411
  entityFqdn: "wix.bookings.v2.booking",
1392
1412
  method: "POST",
1393
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.ConfirmMultiServiceBooking",
1413
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
1394
1414
  packageName: PACKAGE_NAME,
1395
1415
  migrationOptions: {
1396
1416
  optInTransformResponse: true
1397
1417
  },
1398
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1399
- protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
1418
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1419
+ protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
1400
1420
  data: payload,
1401
1421
  host
1402
1422
  }),
@@ -1405,42 +1425,38 @@ function confirmMultiServiceBooking(payload) {
1405
1425
  {
1406
1426
  transformFn: transformRESTTimestampToSDKTimestamp,
1407
1427
  paths: [
1408
- { path: "multiServiceBooking.bookings.booking.createdDate" },
1409
- { path: "multiServiceBooking.bookings.booking.startDate" },
1410
- { path: "multiServiceBooking.bookings.booking.endDate" },
1411
- { path: "multiServiceBooking.bookings.booking.updatedDate" },
1412
- { path: "multiServiceBooking.bookings.booking.canceledDate" }
1428
+ { path: "booking.createdDate" },
1429
+ { path: "booking.startDate" },
1430
+ { path: "booking.endDate" },
1431
+ { path: "booking.updatedDate" },
1432
+ { path: "booking.canceledDate" }
1413
1433
  ]
1414
1434
  },
1415
1435
  {
1416
1436
  transformFn: transformRESTFloatToSDKFloat,
1417
1437
  paths: [
1418
- {
1419
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
1420
- },
1421
- {
1422
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
1423
- }
1438
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1439
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1424
1440
  ]
1425
1441
  }
1426
1442
  ])
1427
1443
  };
1428
1444
  return metadata;
1429
1445
  }
1430
- return __confirmMultiServiceBooking;
1446
+ return __bookingsUpdateNumberOfParticipants;
1431
1447
  }
1432
- function declineMultiServiceBooking(payload) {
1433
- function __declineMultiServiceBooking({ host }) {
1448
+ function markBookingAsPending(payload) {
1449
+ function __markBookingAsPending({ host }) {
1434
1450
  const metadata = {
1435
1451
  entityFqdn: "wix.bookings.v2.booking",
1436
1452
  method: "POST",
1437
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.DeclineMultiServiceBooking",
1453
+ methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
1438
1454
  packageName: PACKAGE_NAME,
1439
1455
  migrationOptions: {
1440
1456
  optInTransformResponse: true
1441
1457
  },
1442
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1443
- protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
1458
+ url: resolveComWixpressBookingsBookingsV2BookingsUrl({
1459
+ protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
1444
1460
  data: payload,
1445
1461
  host
1446
1462
  }),
@@ -1449,107 +1465,99 @@ function declineMultiServiceBooking(payload) {
1449
1465
  {
1450
1466
  transformFn: transformRESTTimestampToSDKTimestamp,
1451
1467
  paths: [
1452
- { path: "multiServiceBooking.bookings.booking.createdDate" },
1453
- { path: "multiServiceBooking.bookings.booking.startDate" },
1454
- { path: "multiServiceBooking.bookings.booking.endDate" },
1455
- { path: "multiServiceBooking.bookings.booking.updatedDate" },
1456
- { path: "multiServiceBooking.bookings.booking.canceledDate" }
1468
+ { path: "booking.createdDate" },
1469
+ { path: "booking.startDate" },
1470
+ { path: "booking.endDate" },
1471
+ { path: "booking.updatedDate" },
1472
+ { path: "booking.canceledDate" }
1457
1473
  ]
1458
1474
  },
1459
1475
  {
1460
1476
  transformFn: transformRESTFloatToSDKFloat,
1461
1477
  paths: [
1462
- {
1463
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
1464
- },
1465
- {
1466
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
1467
- }
1478
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1479
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1468
1480
  ]
1469
1481
  }
1470
1482
  ])
1471
1483
  };
1472
1484
  return metadata;
1473
1485
  }
1474
- return __declineMultiServiceBooking;
1486
+ return __markBookingAsPending;
1475
1487
  }
1476
- function bulkGetMultiServiceBookingAllowedActions(payload) {
1477
- function __bulkGetMultiServiceBookingAllowedActions({ host }) {
1488
+ function getAnonymousActionDetails(payload) {
1489
+ function __getAnonymousActionDetails({ host }) {
1478
1490
  const metadata = {
1479
1491
  entityFqdn: "wix.bookings.v2.booking",
1480
- method: "POST",
1481
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.BulkGetMultiServiceBookingAllowedActions",
1492
+ method: "GET",
1493
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
1482
1494
  packageName: PACKAGE_NAME,
1483
1495
  migrationOptions: {
1484
1496
  optInTransformResponse: true
1485
1497
  },
1486
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1487
- protoPath: "/v2/bulk/multi_service_bookings/get_allowed_actions",
1498
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
1499
+ protoPath: "/v2/bookings/anonymous-actions-details",
1488
1500
  data: payload,
1489
1501
  host
1490
1502
  }),
1491
- data: payload
1503
+ params: toURLSearchParams(payload)
1492
1504
  };
1493
1505
  return metadata;
1494
1506
  }
1495
- return __bulkGetMultiServiceBookingAllowedActions;
1507
+ return __getAnonymousActionDetails;
1496
1508
  }
1497
- function getMultiServiceBooking(payload) {
1498
- function __getMultiServiceBooking({ host }) {
1509
+ function cancelBookingAnonymously(payload) {
1510
+ function __cancelBookingAnonymously({ host }) {
1499
1511
  const metadata = {
1500
1512
  entityFqdn: "wix.bookings.v2.booking",
1501
- method: "GET",
1502
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBooking",
1513
+ method: "POST",
1514
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
1503
1515
  packageName: PACKAGE_NAME,
1504
1516
  migrationOptions: {
1505
1517
  optInTransformResponse: true
1506
1518
  },
1507
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1508
- protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}",
1519
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
1520
+ protoPath: "/v2/bookings/{token}/anonymous-cancel",
1509
1521
  data: payload,
1510
1522
  host
1511
1523
  }),
1512
- params: toURLSearchParams(payload),
1524
+ data: payload,
1513
1525
  transformResponse: (payload2) => transformPaths(payload2, [
1514
1526
  {
1515
1527
  transformFn: transformRESTTimestampToSDKTimestamp,
1516
1528
  paths: [
1517
- { path: "multiServiceBooking.bookings.booking.createdDate" },
1518
- { path: "multiServiceBooking.bookings.booking.startDate" },
1519
- { path: "multiServiceBooking.bookings.booking.endDate" },
1520
- { path: "multiServiceBooking.bookings.booking.updatedDate" },
1521
- { path: "multiServiceBooking.bookings.booking.canceledDate" }
1529
+ { path: "booking.createdDate" },
1530
+ { path: "booking.startDate" },
1531
+ { path: "booking.endDate" },
1532
+ { path: "booking.updatedDate" },
1533
+ { path: "booking.canceledDate" }
1522
1534
  ]
1523
1535
  },
1524
1536
  {
1525
1537
  transformFn: transformRESTFloatToSDKFloat,
1526
1538
  paths: [
1527
- {
1528
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
1529
- },
1530
- {
1531
- path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
1532
- }
1539
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1540
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1533
1541
  ]
1534
1542
  }
1535
1543
  ])
1536
1544
  };
1537
1545
  return metadata;
1538
1546
  }
1539
- return __getMultiServiceBooking;
1547
+ return __cancelBookingAnonymously;
1540
1548
  }
1541
- function addBookingsToMultiServiceBooking(payload) {
1542
- function __addBookingsToMultiServiceBooking({ host }) {
1549
+ function rescheduleBookingAnonymously(payload) {
1550
+ function __rescheduleBookingAnonymously({ host }) {
1543
1551
  const metadata = {
1544
1552
  entityFqdn: "wix.bookings.v2.booking",
1545
1553
  method: "POST",
1546
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.AddBookingsToMultiServiceBooking",
1554
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
1547
1555
  packageName: PACKAGE_NAME,
1548
1556
  migrationOptions: {
1549
1557
  optInTransformResponse: true
1550
1558
  },
1551
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1552
- protoPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
1559
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
1560
+ protoPath: "/v2/bookings/{token}/anonymous-reschedule",
1553
1561
  data: payload,
1554
1562
  host
1555
1563
  }),
@@ -1558,73 +1566,65 @@ function addBookingsToMultiServiceBooking(payload) {
1558
1566
  {
1559
1567
  transformFn: transformRESTTimestampToSDKTimestamp,
1560
1568
  paths: [
1561
- { path: "bookings.booking.createdDate" },
1562
- { path: "bookings.booking.startDate" },
1563
- { path: "bookings.booking.endDate" },
1564
- { path: "bookings.booking.updatedDate" },
1565
- { path: "bookings.booking.canceledDate" }
1569
+ { path: "booking.createdDate" },
1570
+ { path: "booking.startDate" },
1571
+ { path: "booking.endDate" },
1572
+ { path: "booking.updatedDate" },
1573
+ { path: "booking.canceledDate" }
1566
1574
  ]
1567
1575
  },
1568
1576
  {
1569
1577
  transformFn: transformRESTFloatToSDKFloat,
1570
1578
  paths: [
1571
- {
1572
- path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
1573
- },
1574
- {
1575
- path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
1576
- }
1579
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1580
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1577
1581
  ]
1578
1582
  }
1579
1583
  ])
1580
1584
  };
1581
1585
  return metadata;
1582
1586
  }
1583
- return __addBookingsToMultiServiceBooking;
1587
+ return __rescheduleBookingAnonymously;
1584
1588
  }
1585
- function removeBookingsFromMultiServiceBooking(payload) {
1586
- function __removeBookingsFromMultiServiceBooking({ host }) {
1589
+ function getBookingAnonymously(payload) {
1590
+ function __getBookingAnonymously({ host }) {
1587
1591
  const metadata = {
1588
1592
  entityFqdn: "wix.bookings.v2.booking",
1589
- method: "POST",
1590
- methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RemoveBookingsFromMultiServiceBooking",
1593
+ method: "GET",
1594
+ methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
1591
1595
  packageName: PACKAGE_NAME,
1592
1596
  migrationOptions: {
1593
1597
  optInTransformResponse: true
1594
1598
  },
1595
- url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
1596
- protoPath: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
1599
+ url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
1600
+ protoPath: "/v2/bookings/{token}/anonymous-get",
1597
1601
  data: payload,
1598
1602
  host
1599
1603
  }),
1600
- data: payload,
1604
+ params: toURLSearchParams(payload),
1601
1605
  transformResponse: (payload2) => transformPaths(payload2, [
1602
1606
  {
1603
1607
  transformFn: transformRESTTimestampToSDKTimestamp,
1604
1608
  paths: [
1605
- { path: "bookings.booking.createdDate" },
1606
- { path: "bookings.booking.startDate" },
1607
- { path: "bookings.booking.endDate" },
1608
- { path: "bookings.booking.updatedDate" },
1609
- { path: "bookings.booking.canceledDate" }
1609
+ { path: "booking.createdDate" },
1610
+ { path: "booking.startDate" },
1611
+ { path: "booking.endDate" },
1612
+ { path: "booking.updatedDate" },
1613
+ { path: "booking.canceledDate" }
1610
1614
  ]
1611
1615
  },
1612
1616
  {
1613
1617
  transformFn: transformRESTFloatToSDKFloat,
1614
1618
  paths: [
1615
- {
1616
- path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
1617
- },
1618
- {
1619
- path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
1620
- }
1619
+ { path: "booking.contactDetails.fullAddress.geocode.latitude" },
1620
+ { path: "booking.contactDetails.fullAddress.geocode.longitude" }
1621
1621
  ]
1622
1622
  }
1623
1623
  ])
1624
1624
  };
1625
1625
  return metadata;
1626
1626
  }
1627
- return __removeBookingsFromMultiServiceBooking;
1627
+ return __getBookingAnonymously;
1628
1628
  }
1629
1629
 
1630
1630
  // src/bookings-v2-booking-bookings.types.ts
@@ -1700,13 +1700,6 @@ var IdentificationDataIdentityType = /* @__PURE__ */ ((IdentificationDataIdentit
1700
1700
  IdentificationDataIdentityType2["APP"] = "APP";
1701
1701
  return IdentificationDataIdentityType2;
1702
1702
  })(IdentificationDataIdentityType || {});
1703
- var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
1704
- LocationLocationType2["UNDEFINED"] = "UNDEFINED";
1705
- LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
1706
- LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
1707
- LocationLocationType2["CUSTOM"] = "CUSTOM";
1708
- return LocationLocationType2;
1709
- })(LocationLocationType || {});
1710
1703
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1711
1704
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1712
1705
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -1715,6 +1708,13 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1715
1708
  WebhookIdentityType2["APP"] = "APP";
1716
1709
  return WebhookIdentityType2;
1717
1710
  })(WebhookIdentityType || {});
1711
+ var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
1712
+ LocationLocationType2["UNDEFINED"] = "UNDEFINED";
1713
+ LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
1714
+ LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
1715
+ LocationLocationType2["CUSTOM"] = "CUSTOM";
1716
+ return LocationLocationType2;
1717
+ })(LocationLocationType || {});
1718
1718
  var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
1719
1719
  IdentityType2["UNKNOWN"] = "UNKNOWN";
1720
1720
  IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -1730,27 +1730,27 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1730
1730
  })(SortOrder || {});
1731
1731
 
1732
1732
  // src/bookings-v2-booking-bookings.meta.ts
1733
- function getAnonymousActionDetails2() {
1734
- const payload = {};
1735
- const getRequestOptions = getAnonymousActionDetails(payload);
1733
+ function confirmOrDeclineBooking2() {
1734
+ const payload = { bookingId: ":bookingId" };
1735
+ const getRequestOptions = confirmOrDeclineBooking(payload);
1736
1736
  const getUrl = (context) => {
1737
1737
  const { url } = getRequestOptions(context);
1738
1738
  return url;
1739
1739
  };
1740
1740
  return {
1741
1741
  getUrl,
1742
- httpMethod: "GET",
1743
- path: "/v2/bookings/anonymous-actions-details",
1744
- pathParams: {},
1742
+ httpMethod: "POST",
1743
+ path: "/v2/confirmation/{bookingId}:confirmOrDecline",
1744
+ pathParams: { bookingId: "bookingId" },
1745
1745
  __requestType: null,
1746
1746
  __originalRequestType: null,
1747
1747
  __responseType: null,
1748
1748
  __originalResponseType: null
1749
1749
  };
1750
1750
  }
1751
- function cancelBookingAnonymously2() {
1752
- const payload = { token: ":token" };
1753
- const getRequestOptions = cancelBookingAnonymously(payload);
1751
+ function bulkConfirmOrDeclineBooking2() {
1752
+ const payload = {};
1753
+ const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
1754
1754
  const getUrl = (context) => {
1755
1755
  const { url } = getRequestOptions(context);
1756
1756
  return url;
@@ -1758,17 +1758,17 @@ function cancelBookingAnonymously2() {
1758
1758
  return {
1759
1759
  getUrl,
1760
1760
  httpMethod: "POST",
1761
- path: "/v2/bookings/{token}/anonymous-cancel",
1762
- pathParams: { token: "token" },
1761
+ path: "/v2/bulk/bookings/confirmOrDecline",
1762
+ pathParams: {},
1763
1763
  __requestType: null,
1764
1764
  __originalRequestType: null,
1765
1765
  __responseType: null,
1766
1766
  __originalResponseType: null
1767
1767
  };
1768
1768
  }
1769
- function rescheduleBookingAnonymously2() {
1770
- const payload = { token: ":token" };
1771
- const getRequestOptions = rescheduleBookingAnonymously(payload);
1769
+ function createMultiServiceBooking2() {
1770
+ const payload = {};
1771
+ const getRequestOptions = createMultiServiceBooking(payload);
1772
1772
  const getUrl = (context) => {
1773
1773
  const { url } = getRequestOptions(context);
1774
1774
  return url;
@@ -1776,35 +1776,35 @@ function rescheduleBookingAnonymously2() {
1776
1776
  return {
1777
1777
  getUrl,
1778
1778
  httpMethod: "POST",
1779
- path: "/v2/bookings/{token}/anonymous-reschedule",
1780
- pathParams: { token: "token" },
1779
+ path: "/v2/multi_service_bookings",
1780
+ pathParams: {},
1781
1781
  __requestType: null,
1782
1782
  __originalRequestType: null,
1783
1783
  __responseType: null,
1784
1784
  __originalResponseType: null
1785
1785
  };
1786
1786
  }
1787
- function getBookingAnonymously2() {
1788
- const payload = { token: ":token" };
1789
- const getRequestOptions = getBookingAnonymously(payload);
1787
+ function rescheduleMultiServiceBooking2() {
1788
+ const payload = { multiServiceBookingId: ":multiServiceBookingId" };
1789
+ const getRequestOptions = rescheduleMultiServiceBooking(payload);
1790
1790
  const getUrl = (context) => {
1791
1791
  const { url } = getRequestOptions(context);
1792
1792
  return url;
1793
1793
  };
1794
1794
  return {
1795
1795
  getUrl,
1796
- httpMethod: "GET",
1797
- path: "/v2/bookings/{token}/anonymous-get",
1798
- pathParams: { token: "token" },
1796
+ httpMethod: "POST",
1797
+ path: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
1798
+ pathParams: { multiServiceBookingId: "multiServiceBookingId" },
1799
1799
  __requestType: null,
1800
1800
  __originalRequestType: null,
1801
1801
  __responseType: null,
1802
1802
  __originalResponseType: null
1803
1803
  };
1804
1804
  }
1805
- function confirmOrDeclineBooking2() {
1806
- const payload = { bookingId: ":bookingId" };
1807
- const getRequestOptions = confirmOrDeclineBooking(payload);
1805
+ function getMultiServiceBookingAvailability2() {
1806
+ const payload = { multiServiceBookingId: ":multiServiceBookingId" };
1807
+ const getRequestOptions = getMultiServiceBookingAvailability(payload);
1808
1808
  const getUrl = (context) => {
1809
1809
  const { url } = getRequestOptions(context);
1810
1810
  return url;
@@ -1812,17 +1812,17 @@ function confirmOrDeclineBooking2() {
1812
1812
  return {
1813
1813
  getUrl,
1814
1814
  httpMethod: "POST",
1815
- path: "/v2/confirmation/{bookingId}:confirmOrDecline",
1816
- pathParams: { bookingId: "bookingId" },
1815
+ path: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
1816
+ pathParams: { multiServiceBookingId: "multiServiceBookingId" },
1817
1817
  __requestType: null,
1818
1818
  __originalRequestType: null,
1819
1819
  __responseType: null,
1820
1820
  __originalResponseType: null
1821
1821
  };
1822
1822
  }
1823
- function bulkConfirmOrDeclineBooking2() {
1824
- const payload = {};
1825
- const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
1823
+ function cancelMultiServiceBooking2() {
1824
+ const payload = { multiServiceBookingId: ":multiServiceBookingId" };
1825
+ const getRequestOptions = cancelMultiServiceBooking(payload);
1826
1826
  const getUrl = (context) => {
1827
1827
  const { url } = getRequestOptions(context);
1828
1828
  return url;
@@ -1830,17 +1830,17 @@ function bulkConfirmOrDeclineBooking2() {
1830
1830
  return {
1831
1831
  getUrl,
1832
1832
  httpMethod: "POST",
1833
- path: "/v2/bulk/bookings/confirmOrDecline",
1834
- pathParams: {},
1833
+ path: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
1834
+ pathParams: { multiServiceBookingId: "multiServiceBookingId" },
1835
1835
  __requestType: null,
1836
1836
  __originalRequestType: null,
1837
1837
  __responseType: null,
1838
1838
  __originalResponseType: null
1839
1839
  };
1840
1840
  }
1841
- function createBooking2() {
1842
- const payload = {};
1843
- const getRequestOptions = createBooking(payload);
1841
+ function markMultiServiceBookingAsPending2() {
1842
+ const payload = { multiServiceBookingId: ":multiServiceBookingId" };
1843
+ const getRequestOptions = markMultiServiceBookingAsPending(payload);
1844
1844
  const getUrl = (context) => {
1845
1845
  const { url } = getRequestOptions(context);
1846
1846
  return url;
@@ -1848,17 +1848,17 @@ function createBooking2() {
1848
1848
  return {
1849
1849
  getUrl,
1850
1850
  httpMethod: "POST",
1851
- path: "/v2/bookings",
1852
- pathParams: {},
1851
+ path: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
1852
+ pathParams: { multiServiceBookingId: "multiServiceBookingId" },
1853
1853
  __requestType: null,
1854
1854
  __originalRequestType: null,
1855
1855
  __responseType: null,
1856
1856
  __originalResponseType: null
1857
1857
  };
1858
1858
  }
1859
- function bulkCreateBooking2() {
1860
- const payload = {};
1861
- const getRequestOptions = bulkCreateBooking(payload);
1859
+ function confirmMultiServiceBooking2() {
1860
+ const payload = { multiServiceBookingId: ":multiServiceBookingId" };
1861
+ const getRequestOptions = confirmMultiServiceBooking(payload);
1862
1862
  const getUrl = (context) => {
1863
1863
  const { url } = getRequestOptions(context);
1864
1864
  return url;
@@ -1866,17 +1866,17 @@ function bulkCreateBooking2() {
1866
1866
  return {
1867
1867
  getUrl,
1868
1868
  httpMethod: "POST",
1869
- path: "/v2/bulk/bookings/create",
1870
- pathParams: {},
1869
+ path: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
1870
+ pathParams: { multiServiceBookingId: "multiServiceBookingId" },
1871
1871
  __requestType: null,
1872
1872
  __originalRequestType: null,
1873
1873
  __responseType: null,
1874
1874
  __originalResponseType: null
1875
1875
  };
1876
1876
  }
1877
- function rescheduleBooking2() {
1878
- const payload = { bookingId: ":bookingId" };
1879
- const getRequestOptions = rescheduleBooking(payload);
1877
+ function declineMultiServiceBooking2() {
1878
+ const payload = { multiServiceBookingId: ":multiServiceBookingId" };
1879
+ const getRequestOptions = declineMultiServiceBooking(payload);
1880
1880
  const getUrl = (context) => {
1881
1881
  const { url } = getRequestOptions(context);
1882
1882
  return url;
@@ -1884,17 +1884,19 @@ function rescheduleBooking2() {
1884
1884
  return {
1885
1885
  getUrl,
1886
1886
  httpMethod: "POST",
1887
- path: "/v2/bookings/{bookingId}/reschedule",
1888
- pathParams: { bookingId: "bookingId" },
1887
+ path: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
1888
+ pathParams: { multiServiceBookingId: "multiServiceBookingId" },
1889
1889
  __requestType: null,
1890
1890
  __originalRequestType: null,
1891
1891
  __responseType: null,
1892
1892
  __originalResponseType: null
1893
1893
  };
1894
1894
  }
1895
- function confirmBooking() {
1896
- const payload = { bookingId: ":bookingId" };
1897
- const getRequestOptions = bookingsConfirmBooking(payload);
1895
+ function bulkGetMultiServiceBookingAllowedActions2() {
1896
+ const payload = {};
1897
+ const getRequestOptions = bulkGetMultiServiceBookingAllowedActions(
1898
+ payload
1899
+ );
1898
1900
  const getUrl = (context) => {
1899
1901
  const { url } = getRequestOptions(context);
1900
1902
  return url;
@@ -1902,35 +1904,35 @@ function confirmBooking() {
1902
1904
  return {
1903
1905
  getUrl,
1904
1906
  httpMethod: "POST",
1905
- path: "/v2/bookings/{bookingId}/confirm",
1906
- pathParams: { bookingId: "bookingId" },
1907
+ path: "/v2/bulk/multi_service_bookings/get_allowed_actions",
1908
+ pathParams: {},
1907
1909
  __requestType: null,
1908
1910
  __originalRequestType: null,
1909
1911
  __responseType: null,
1910
1912
  __originalResponseType: null
1911
1913
  };
1912
1914
  }
1913
- function setBookingSubmissionId2() {
1914
- const payload = { bookingId: ":bookingId" };
1915
- const getRequestOptions = setBookingSubmissionId(payload);
1915
+ function getMultiServiceBooking2() {
1916
+ const payload = { multiServiceBookingId: ":multiServiceBookingId" };
1917
+ const getRequestOptions = getMultiServiceBooking(payload);
1916
1918
  const getUrl = (context) => {
1917
1919
  const { url } = getRequestOptions(context);
1918
1920
  return url;
1919
1921
  };
1920
1922
  return {
1921
1923
  getUrl,
1922
- httpMethod: "POST",
1923
- path: "/v2/bookings/{bookingId}/set-booking-submission-id",
1924
- pathParams: { bookingId: "bookingId" },
1924
+ httpMethod: "GET",
1925
+ path: "/v2/multi_service_bookings/{multiServiceBookingId}",
1926
+ pathParams: { multiServiceBookingId: "multiServiceBookingId" },
1925
1927
  __requestType: null,
1926
1928
  __originalRequestType: null,
1927
1929
  __responseType: null,
1928
1930
  __originalResponseType: null
1929
1931
  };
1930
1932
  }
1931
- function updateExtendedFields2() {
1932
- const payload = { id: ":id" };
1933
- const getRequestOptions = updateExtendedFields(payload);
1933
+ function addBookingsToMultiServiceBooking2() {
1934
+ const payload = {};
1935
+ const getRequestOptions = addBookingsToMultiServiceBooking(payload);
1934
1936
  const getUrl = (context) => {
1935
1937
  const { url } = getRequestOptions(context);
1936
1938
  return url;
@@ -1938,17 +1940,19 @@ function updateExtendedFields2() {
1938
1940
  return {
1939
1941
  getUrl,
1940
1942
  httpMethod: "POST",
1941
- path: "/v2/bookings/{id}/update_extended_fields",
1942
- pathParams: { id: "id" },
1943
+ path: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
1944
+ pathParams: {},
1943
1945
  __requestType: null,
1944
1946
  __originalRequestType: null,
1945
1947
  __responseType: null,
1946
1948
  __originalResponseType: null
1947
1949
  };
1948
1950
  }
1949
- function declineBooking() {
1950
- const payload = { bookingId: ":bookingId" };
1951
- const getRequestOptions = bookingsDeclineBooking(payload);
1951
+ function removeBookingsFromMultiServiceBooking2() {
1952
+ const payload = {};
1953
+ const getRequestOptions = removeBookingsFromMultiServiceBooking(
1954
+ payload
1955
+ );
1952
1956
  const getUrl = (context) => {
1953
1957
  const { url } = getRequestOptions(context);
1954
1958
  return url;
@@ -1956,17 +1960,17 @@ function declineBooking() {
1956
1960
  return {
1957
1961
  getUrl,
1958
1962
  httpMethod: "POST",
1959
- path: "/v2/bookings/{bookingId}/decline",
1960
- pathParams: { bookingId: "bookingId" },
1963
+ path: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
1964
+ pathParams: {},
1961
1965
  __requestType: null,
1962
1966
  __originalRequestType: null,
1963
1967
  __responseType: null,
1964
1968
  __originalResponseType: null
1965
1969
  };
1966
1970
  }
1967
- function cancelBooking() {
1968
- const payload = { bookingId: ":bookingId" };
1969
- const getRequestOptions = bookingsCancelBooking(payload);
1971
+ function createBooking2() {
1972
+ const payload = {};
1973
+ const getRequestOptions = createBooking(payload);
1970
1974
  const getUrl = (context) => {
1971
1975
  const { url } = getRequestOptions(context);
1972
1976
  return url;
@@ -1974,17 +1978,17 @@ function cancelBooking() {
1974
1978
  return {
1975
1979
  getUrl,
1976
1980
  httpMethod: "POST",
1977
- path: "/v2/bookings/{bookingId}/cancel",
1978
- pathParams: { bookingId: "bookingId" },
1981
+ path: "/v2/bookings",
1982
+ pathParams: {},
1979
1983
  __requestType: null,
1980
1984
  __originalRequestType: null,
1981
1985
  __responseType: null,
1982
1986
  __originalResponseType: null
1983
1987
  };
1984
1988
  }
1985
- function updateNumberOfParticipants() {
1986
- const payload = { bookingId: ":bookingId" };
1987
- const getRequestOptions = bookingsUpdateNumberOfParticipants(payload);
1989
+ function bulkCreateBooking2() {
1990
+ const payload = {};
1991
+ const getRequestOptions = bulkCreateBooking(payload);
1988
1992
  const getUrl = (context) => {
1989
1993
  const { url } = getRequestOptions(context);
1990
1994
  return url;
@@ -1992,17 +1996,17 @@ function updateNumberOfParticipants() {
1992
1996
  return {
1993
1997
  getUrl,
1994
1998
  httpMethod: "POST",
1995
- path: "/v2/bookings/{bookingId}/update_number_of_participants",
1996
- pathParams: { bookingId: "bookingId" },
1999
+ path: "/v2/bulk/bookings/create",
2000
+ pathParams: {},
1997
2001
  __requestType: null,
1998
2002
  __originalRequestType: null,
1999
2003
  __responseType: null,
2000
2004
  __originalResponseType: null
2001
2005
  };
2002
2006
  }
2003
- function markBookingAsPending2() {
2007
+ function rescheduleBooking2() {
2004
2008
  const payload = { bookingId: ":bookingId" };
2005
- const getRequestOptions = markBookingAsPending(payload);
2009
+ const getRequestOptions = rescheduleBooking(payload);
2006
2010
  const getUrl = (context) => {
2007
2011
  const { url } = getRequestOptions(context);
2008
2012
  return url;
@@ -2010,7 +2014,7 @@ function markBookingAsPending2() {
2010
2014
  return {
2011
2015
  getUrl,
2012
2016
  httpMethod: "POST",
2013
- path: "/v2/bookings/{bookingId}/mark_booking_as_pending",
2017
+ path: "/v2/bookings/{bookingId}/reschedule",
2014
2018
  pathParams: { bookingId: "bookingId" },
2015
2019
  __requestType: null,
2016
2020
  __originalRequestType: null,
@@ -2018,9 +2022,9 @@ function markBookingAsPending2() {
2018
2022
  __originalResponseType: null
2019
2023
  };
2020
2024
  }
2021
- function createMultiServiceBooking2() {
2022
- const payload = {};
2023
- const getRequestOptions = createMultiServiceBooking(payload);
2025
+ function confirmBooking() {
2026
+ const payload = { bookingId: ":bookingId" };
2027
+ const getRequestOptions = bookingsConfirmBooking(payload);
2024
2028
  const getUrl = (context) => {
2025
2029
  const { url } = getRequestOptions(context);
2026
2030
  return url;
@@ -2028,17 +2032,17 @@ function createMultiServiceBooking2() {
2028
2032
  return {
2029
2033
  getUrl,
2030
2034
  httpMethod: "POST",
2031
- path: "/v2/multi_service_bookings",
2032
- pathParams: {},
2035
+ path: "/v2/bookings/{bookingId}/confirm",
2036
+ pathParams: { bookingId: "bookingId" },
2033
2037
  __requestType: null,
2034
2038
  __originalRequestType: null,
2035
2039
  __responseType: null,
2036
2040
  __originalResponseType: null
2037
2041
  };
2038
2042
  }
2039
- function rescheduleMultiServiceBooking2() {
2040
- const payload = { multiServiceBookingId: ":multiServiceBookingId" };
2041
- const getRequestOptions = rescheduleMultiServiceBooking(payload);
2043
+ function setBookingSubmissionId2() {
2044
+ const payload = { bookingId: ":bookingId" };
2045
+ const getRequestOptions = setBookingSubmissionId(payload);
2042
2046
  const getUrl = (context) => {
2043
2047
  const { url } = getRequestOptions(context);
2044
2048
  return url;
@@ -2046,17 +2050,17 @@ function rescheduleMultiServiceBooking2() {
2046
2050
  return {
2047
2051
  getUrl,
2048
2052
  httpMethod: "POST",
2049
- path: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
2050
- pathParams: { multiServiceBookingId: "multiServiceBookingId" },
2053
+ path: "/v2/bookings/{bookingId}/set-booking-submission-id",
2054
+ pathParams: { bookingId: "bookingId" },
2051
2055
  __requestType: null,
2052
2056
  __originalRequestType: null,
2053
2057
  __responseType: null,
2054
2058
  __originalResponseType: null
2055
2059
  };
2056
2060
  }
2057
- function getMultiServiceBookingAvailability2() {
2058
- const payload = { multiServiceBookingId: ":multiServiceBookingId" };
2059
- const getRequestOptions = getMultiServiceBookingAvailability(payload);
2061
+ function updateExtendedFields2() {
2062
+ const payload = { id: ":id" };
2063
+ const getRequestOptions = updateExtendedFields(payload);
2060
2064
  const getUrl = (context) => {
2061
2065
  const { url } = getRequestOptions(context);
2062
2066
  return url;
@@ -2064,17 +2068,17 @@ function getMultiServiceBookingAvailability2() {
2064
2068
  return {
2065
2069
  getUrl,
2066
2070
  httpMethod: "POST",
2067
- path: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
2068
- pathParams: { multiServiceBookingId: "multiServiceBookingId" },
2071
+ path: "/v2/bookings/{id}/update_extended_fields",
2072
+ pathParams: { id: "id" },
2069
2073
  __requestType: null,
2070
2074
  __originalRequestType: null,
2071
2075
  __responseType: null,
2072
2076
  __originalResponseType: null
2073
2077
  };
2074
2078
  }
2075
- function cancelMultiServiceBooking2() {
2076
- const payload = { multiServiceBookingId: ":multiServiceBookingId" };
2077
- const getRequestOptions = cancelMultiServiceBooking(payload);
2079
+ function declineBooking() {
2080
+ const payload = { bookingId: ":bookingId" };
2081
+ const getRequestOptions = bookingsDeclineBooking(payload);
2078
2082
  const getUrl = (context) => {
2079
2083
  const { url } = getRequestOptions(context);
2080
2084
  return url;
@@ -2082,17 +2086,17 @@ function cancelMultiServiceBooking2() {
2082
2086
  return {
2083
2087
  getUrl,
2084
2088
  httpMethod: "POST",
2085
- path: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
2086
- pathParams: { multiServiceBookingId: "multiServiceBookingId" },
2089
+ path: "/v2/bookings/{bookingId}/decline",
2090
+ pathParams: { bookingId: "bookingId" },
2087
2091
  __requestType: null,
2088
2092
  __originalRequestType: null,
2089
2093
  __responseType: null,
2090
2094
  __originalResponseType: null
2091
2095
  };
2092
2096
  }
2093
- function markMultiServiceBookingAsPending2() {
2094
- const payload = { multiServiceBookingId: ":multiServiceBookingId" };
2095
- const getRequestOptions = markMultiServiceBookingAsPending(payload);
2097
+ function cancelBooking() {
2098
+ const payload = { bookingId: ":bookingId" };
2099
+ const getRequestOptions = bookingsCancelBooking(payload);
2096
2100
  const getUrl = (context) => {
2097
2101
  const { url } = getRequestOptions(context);
2098
2102
  return url;
@@ -2100,17 +2104,17 @@ function markMultiServiceBookingAsPending2() {
2100
2104
  return {
2101
2105
  getUrl,
2102
2106
  httpMethod: "POST",
2103
- path: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
2104
- pathParams: { multiServiceBookingId: "multiServiceBookingId" },
2107
+ path: "/v2/bookings/{bookingId}/cancel",
2108
+ pathParams: { bookingId: "bookingId" },
2105
2109
  __requestType: null,
2106
2110
  __originalRequestType: null,
2107
2111
  __responseType: null,
2108
2112
  __originalResponseType: null
2109
2113
  };
2110
2114
  }
2111
- function confirmMultiServiceBooking2() {
2112
- const payload = { multiServiceBookingId: ":multiServiceBookingId" };
2113
- const getRequestOptions = confirmMultiServiceBooking(payload);
2115
+ function updateNumberOfParticipants() {
2116
+ const payload = { bookingId: ":bookingId" };
2117
+ const getRequestOptions = bookingsUpdateNumberOfParticipants(payload);
2114
2118
  const getUrl = (context) => {
2115
2119
  const { url } = getRequestOptions(context);
2116
2120
  return url;
@@ -2118,17 +2122,17 @@ function confirmMultiServiceBooking2() {
2118
2122
  return {
2119
2123
  getUrl,
2120
2124
  httpMethod: "POST",
2121
- path: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
2122
- pathParams: { multiServiceBookingId: "multiServiceBookingId" },
2125
+ path: "/v2/bookings/{bookingId}/update_number_of_participants",
2126
+ pathParams: { bookingId: "bookingId" },
2123
2127
  __requestType: null,
2124
2128
  __originalRequestType: null,
2125
2129
  __responseType: null,
2126
2130
  __originalResponseType: null
2127
2131
  };
2128
2132
  }
2129
- function declineMultiServiceBooking2() {
2130
- const payload = { multiServiceBookingId: ":multiServiceBookingId" };
2131
- const getRequestOptions = declineMultiServiceBooking(payload);
2133
+ function markBookingAsPending2() {
2134
+ const payload = { bookingId: ":bookingId" };
2135
+ const getRequestOptions = markBookingAsPending(payload);
2132
2136
  const getUrl = (context) => {
2133
2137
  const { url } = getRequestOptions(context);
2134
2138
  return url;
@@ -2136,27 +2140,25 @@ function declineMultiServiceBooking2() {
2136
2140
  return {
2137
2141
  getUrl,
2138
2142
  httpMethod: "POST",
2139
- path: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
2140
- pathParams: { multiServiceBookingId: "multiServiceBookingId" },
2143
+ path: "/v2/bookings/{bookingId}/mark_booking_as_pending",
2144
+ pathParams: { bookingId: "bookingId" },
2141
2145
  __requestType: null,
2142
2146
  __originalRequestType: null,
2143
2147
  __responseType: null,
2144
2148
  __originalResponseType: null
2145
2149
  };
2146
2150
  }
2147
- function bulkGetMultiServiceBookingAllowedActions2() {
2151
+ function getAnonymousActionDetails2() {
2148
2152
  const payload = {};
2149
- const getRequestOptions = bulkGetMultiServiceBookingAllowedActions(
2150
- payload
2151
- );
2153
+ const getRequestOptions = getAnonymousActionDetails(payload);
2152
2154
  const getUrl = (context) => {
2153
2155
  const { url } = getRequestOptions(context);
2154
2156
  return url;
2155
2157
  };
2156
2158
  return {
2157
2159
  getUrl,
2158
- httpMethod: "POST",
2159
- path: "/v2/bulk/multi_service_bookings/get_allowed_actions",
2160
+ httpMethod: "GET",
2161
+ path: "/v2/bookings/anonymous-actions-details",
2160
2162
  pathParams: {},
2161
2163
  __requestType: null,
2162
2164
  __originalRequestType: null,
@@ -2164,27 +2166,27 @@ function bulkGetMultiServiceBookingAllowedActions2() {
2164
2166
  __originalResponseType: null
2165
2167
  };
2166
2168
  }
2167
- function getMultiServiceBooking2() {
2168
- const payload = { multiServiceBookingId: ":multiServiceBookingId" };
2169
- const getRequestOptions = getMultiServiceBooking(payload);
2169
+ function cancelBookingAnonymously2() {
2170
+ const payload = { token: ":token" };
2171
+ const getRequestOptions = cancelBookingAnonymously(payload);
2170
2172
  const getUrl = (context) => {
2171
2173
  const { url } = getRequestOptions(context);
2172
2174
  return url;
2173
2175
  };
2174
2176
  return {
2175
2177
  getUrl,
2176
- httpMethod: "GET",
2177
- path: "/v2/multi_service_bookings/{multiServiceBookingId}",
2178
- pathParams: { multiServiceBookingId: "multiServiceBookingId" },
2178
+ httpMethod: "POST",
2179
+ path: "/v2/bookings/{token}/anonymous-cancel",
2180
+ pathParams: { token: "token" },
2179
2181
  __requestType: null,
2180
2182
  __originalRequestType: null,
2181
2183
  __responseType: null,
2182
2184
  __originalResponseType: null
2183
2185
  };
2184
2186
  }
2185
- function addBookingsToMultiServiceBooking2() {
2186
- const payload = {};
2187
- const getRequestOptions = addBookingsToMultiServiceBooking(payload);
2187
+ function rescheduleBookingAnonymously2() {
2188
+ const payload = { token: ":token" };
2189
+ const getRequestOptions = rescheduleBookingAnonymously(payload);
2188
2190
  const getUrl = (context) => {
2189
2191
  const { url } = getRequestOptions(context);
2190
2192
  return url;
@@ -2192,28 +2194,26 @@ function addBookingsToMultiServiceBooking2() {
2192
2194
  return {
2193
2195
  getUrl,
2194
2196
  httpMethod: "POST",
2195
- path: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
2196
- pathParams: {},
2197
+ path: "/v2/bookings/{token}/anonymous-reschedule",
2198
+ pathParams: { token: "token" },
2197
2199
  __requestType: null,
2198
2200
  __originalRequestType: null,
2199
2201
  __responseType: null,
2200
2202
  __originalResponseType: null
2201
2203
  };
2202
2204
  }
2203
- function removeBookingsFromMultiServiceBooking2() {
2204
- const payload = {};
2205
- const getRequestOptions = removeBookingsFromMultiServiceBooking(
2206
- payload
2207
- );
2205
+ function getBookingAnonymously2() {
2206
+ const payload = { token: ":token" };
2207
+ const getRequestOptions = getBookingAnonymously(payload);
2208
2208
  const getUrl = (context) => {
2209
2209
  const { url } = getRequestOptions(context);
2210
2210
  return url;
2211
2211
  };
2212
2212
  return {
2213
2213
  getUrl,
2214
- httpMethod: "POST",
2215
- path: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
2216
- pathParams: {},
2214
+ httpMethod: "GET",
2215
+ path: "/v2/bookings/{token}/anonymous-get",
2216
+ pathParams: { token: "token" },
2217
2217
  __requestType: null,
2218
2218
  __originalRequestType: null,
2219
2219
  __responseType: null,