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