@wix/auto_sdk_bookings_bookings 1.0.89 → 1.0.91
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 +597 -580
- package/build/cjs/index.js +1025 -934
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2337 -2373
- package/build/cjs/index.typings.js +848 -800
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1382 -1435
- package/build/cjs/meta.js +700 -659
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +597 -580
- package/build/es/index.mjs +1023 -934
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2337 -2373
- package/build/es/index.typings.mjs +847 -800
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1382 -1435
- package/build/es/meta.mjs +699 -659
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +597 -580
- package/build/internal/cjs/index.js +1025 -934
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2349 -2385
- package/build/internal/cjs/index.typings.js +848 -800
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1382 -1435
- package/build/internal/cjs/meta.js +700 -659
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +597 -580
- package/build/internal/es/index.mjs +1023 -934
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2349 -2385
- package/build/internal/es/index.typings.mjs +847 -800
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1382 -1435
- package/build/internal/es/meta.mjs +699 -659
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
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
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
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
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
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
|
-
|
|
542
|
-
|
|
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.
|
|
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:
|
|
552
|
-
protoPath: "/v2/
|
|
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
|
|
558
|
+
return __confirmOrDeclineBooking;
|
|
580
559
|
}
|
|
581
|
-
function
|
|
582
|
-
function
|
|
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.
|
|
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:
|
|
592
|
-
protoPath: "/v2/bookings/
|
|
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: "
|
|
602
|
-
{ path: "
|
|
603
|
-
{ path: "
|
|
604
|
-
{ path: "
|
|
605
|
-
{ path: "
|
|
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
|
-
{
|
|
612
|
-
|
|
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
|
|
602
|
+
return __bulkConfirmOrDeclineBooking;
|
|
620
603
|
}
|
|
621
|
-
function
|
|
622
|
-
function
|
|
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: "
|
|
626
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
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:
|
|
632
|
-
protoPath: "/v2/
|
|
633
|
-
data:
|
|
633
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
634
|
+
protoPath: "/v2/multi_service_bookings",
|
|
635
|
+
data: serializedData,
|
|
634
636
|
host
|
|
635
637
|
}),
|
|
636
|
-
|
|
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
|
-
{
|
|
652
|
-
|
|
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
|
|
665
|
+
return __createMultiServiceBooking;
|
|
660
666
|
}
|
|
661
|
-
function
|
|
662
|
-
function
|
|
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.
|
|
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:
|
|
672
|
-
protoPath: "/v2/
|
|
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
|
-
{
|
|
692
|
-
|
|
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
|
|
709
|
+
return __rescheduleMultiServiceBooking;
|
|
700
710
|
}
|
|
701
|
-
function
|
|
702
|
-
function
|
|
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.
|
|
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:
|
|
712
|
-
protoPath: "/v2/
|
|
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,306 @@ function bulkConfirmOrDeclineBooking(payload) {
|
|
|
718
749
|
{
|
|
719
750
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
720
751
|
paths: [
|
|
721
|
-
{ path: "
|
|
722
|
-
{ path: "
|
|
723
|
-
{ path: "
|
|
724
|
-
{ path: "
|
|
725
|
-
{ path: "
|
|
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: "
|
|
763
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
733
764
|
},
|
|
734
765
|
{
|
|
735
|
-
path: "
|
|
766
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
767
|
+
}
|
|
768
|
+
]
|
|
769
|
+
}
|
|
770
|
+
])
|
|
771
|
+
};
|
|
772
|
+
return metadata;
|
|
773
|
+
}
|
|
774
|
+
return __cancelMultiServiceBooking;
|
|
775
|
+
}
|
|
776
|
+
function markMultiServiceBookingAsPending(payload) {
|
|
777
|
+
function __markMultiServiceBookingAsPending({ host }) {
|
|
778
|
+
const metadata = {
|
|
779
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
780
|
+
method: "POST",
|
|
781
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.MarkMultiServiceBookingAsPending",
|
|
782
|
+
packageName: PACKAGE_NAME,
|
|
783
|
+
migrationOptions: {
|
|
784
|
+
optInTransformResponse: true
|
|
785
|
+
},
|
|
786
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
787
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
|
|
788
|
+
data: payload,
|
|
789
|
+
host
|
|
790
|
+
}),
|
|
791
|
+
data: payload,
|
|
792
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
793
|
+
{
|
|
794
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
795
|
+
paths: [
|
|
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" }
|
|
801
|
+
]
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
805
|
+
paths: [
|
|
806
|
+
{
|
|
807
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
811
|
+
}
|
|
812
|
+
]
|
|
813
|
+
}
|
|
814
|
+
])
|
|
815
|
+
};
|
|
816
|
+
return metadata;
|
|
817
|
+
}
|
|
818
|
+
return __markMultiServiceBookingAsPending;
|
|
819
|
+
}
|
|
820
|
+
function confirmMultiServiceBooking(payload) {
|
|
821
|
+
function __confirmMultiServiceBooking({ host }) {
|
|
822
|
+
const metadata = {
|
|
823
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
824
|
+
method: "POST",
|
|
825
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.ConfirmMultiServiceBooking",
|
|
826
|
+
packageName: PACKAGE_NAME,
|
|
827
|
+
migrationOptions: {
|
|
828
|
+
optInTransformResponse: true
|
|
829
|
+
},
|
|
830
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
831
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
|
|
832
|
+
data: payload,
|
|
833
|
+
host
|
|
834
|
+
}),
|
|
835
|
+
data: payload,
|
|
836
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
837
|
+
{
|
|
838
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
839
|
+
paths: [
|
|
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" }
|
|
845
|
+
]
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
849
|
+
paths: [
|
|
850
|
+
{
|
|
851
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
}
|
|
858
|
+
])
|
|
859
|
+
};
|
|
860
|
+
return metadata;
|
|
861
|
+
}
|
|
862
|
+
return __confirmMultiServiceBooking;
|
|
863
|
+
}
|
|
864
|
+
function declineMultiServiceBooking(payload) {
|
|
865
|
+
function __declineMultiServiceBooking({ host }) {
|
|
866
|
+
const metadata = {
|
|
867
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
868
|
+
method: "POST",
|
|
869
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.DeclineMultiServiceBooking",
|
|
870
|
+
packageName: PACKAGE_NAME,
|
|
871
|
+
migrationOptions: {
|
|
872
|
+
optInTransformResponse: true
|
|
873
|
+
},
|
|
874
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
875
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
|
|
876
|
+
data: payload,
|
|
877
|
+
host
|
|
878
|
+
}),
|
|
879
|
+
data: payload,
|
|
880
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
881
|
+
{
|
|
882
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
883
|
+
paths: [
|
|
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" }
|
|
889
|
+
]
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
893
|
+
paths: [
|
|
894
|
+
{
|
|
895
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
899
|
+
}
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
])
|
|
903
|
+
};
|
|
904
|
+
return metadata;
|
|
905
|
+
}
|
|
906
|
+
return __declineMultiServiceBooking;
|
|
907
|
+
}
|
|
908
|
+
function bulkGetMultiServiceBookingAllowedActions(payload) {
|
|
909
|
+
function __bulkGetMultiServiceBookingAllowedActions({ host }) {
|
|
910
|
+
const metadata = {
|
|
911
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
912
|
+
method: "POST",
|
|
913
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.BulkGetMultiServiceBookingAllowedActions",
|
|
914
|
+
packageName: PACKAGE_NAME,
|
|
915
|
+
migrationOptions: {
|
|
916
|
+
optInTransformResponse: true
|
|
917
|
+
},
|
|
918
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
919
|
+
protoPath: "/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
920
|
+
data: payload,
|
|
921
|
+
host
|
|
922
|
+
}),
|
|
923
|
+
data: payload
|
|
924
|
+
};
|
|
925
|
+
return metadata;
|
|
926
|
+
}
|
|
927
|
+
return __bulkGetMultiServiceBookingAllowedActions;
|
|
928
|
+
}
|
|
929
|
+
function getMultiServiceBooking(payload) {
|
|
930
|
+
function __getMultiServiceBooking({ host }) {
|
|
931
|
+
const metadata = {
|
|
932
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
933
|
+
method: "GET",
|
|
934
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBooking",
|
|
935
|
+
packageName: PACKAGE_NAME,
|
|
936
|
+
migrationOptions: {
|
|
937
|
+
optInTransformResponse: true
|
|
938
|
+
},
|
|
939
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
940
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}",
|
|
941
|
+
data: payload,
|
|
942
|
+
host
|
|
943
|
+
}),
|
|
944
|
+
params: toURLSearchParams(payload),
|
|
945
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
946
|
+
{
|
|
947
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
948
|
+
paths: [
|
|
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" }
|
|
954
|
+
]
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
958
|
+
paths: [
|
|
959
|
+
{
|
|
960
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
964
|
+
}
|
|
965
|
+
]
|
|
966
|
+
}
|
|
967
|
+
])
|
|
968
|
+
};
|
|
969
|
+
return metadata;
|
|
970
|
+
}
|
|
971
|
+
return __getMultiServiceBooking;
|
|
972
|
+
}
|
|
973
|
+
function addBookingsToMultiServiceBooking(payload) {
|
|
974
|
+
function __addBookingsToMultiServiceBooking({ host }) {
|
|
975
|
+
const metadata = {
|
|
976
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
977
|
+
method: "POST",
|
|
978
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.AddBookingsToMultiServiceBooking",
|
|
979
|
+
packageName: PACKAGE_NAME,
|
|
980
|
+
migrationOptions: {
|
|
981
|
+
optInTransformResponse: true
|
|
982
|
+
},
|
|
983
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
984
|
+
protoPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
985
|
+
data: payload,
|
|
986
|
+
host
|
|
987
|
+
}),
|
|
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
|
+
])
|
|
1012
|
+
};
|
|
1013
|
+
return metadata;
|
|
1014
|
+
}
|
|
1015
|
+
return __addBookingsToMultiServiceBooking;
|
|
1016
|
+
}
|
|
1017
|
+
function removeBookingsFromMultiServiceBooking(payload) {
|
|
1018
|
+
function __removeBookingsFromMultiServiceBooking({ host }) {
|
|
1019
|
+
const metadata = {
|
|
1020
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
1021
|
+
method: "POST",
|
|
1022
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RemoveBookingsFromMultiServiceBooking",
|
|
1023
|
+
packageName: PACKAGE_NAME,
|
|
1024
|
+
migrationOptions: {
|
|
1025
|
+
optInTransformResponse: true
|
|
1026
|
+
},
|
|
1027
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1028
|
+
protoPath: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
|
|
1029
|
+
data: payload,
|
|
1030
|
+
host
|
|
1031
|
+
}),
|
|
1032
|
+
data: payload,
|
|
1033
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1034
|
+
{
|
|
1035
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1036
|
+
paths: [
|
|
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" }
|
|
1042
|
+
]
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1046
|
+
paths: [
|
|
1047
|
+
{
|
|
1048
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
736
1052
|
}
|
|
737
1053
|
]
|
|
738
1054
|
}
|
|
@@ -740,7 +1056,7 @@ function bulkConfirmOrDeclineBooking(payload) {
|
|
|
740
1056
|
};
|
|
741
1057
|
return metadata;
|
|
742
1058
|
}
|
|
743
|
-
return
|
|
1059
|
+
return __removeBookingsFromMultiServiceBooking;
|
|
744
1060
|
}
|
|
745
1061
|
function createBooking(payload) {
|
|
746
1062
|
function __createBooking({ host }) {
|
|
@@ -1087,272 +1403,20 @@ function bookingsCancelBooking(payload) {
|
|
|
1087
1403
|
};
|
|
1088
1404
|
return metadata;
|
|
1089
1405
|
}
|
|
1090
|
-
return __bookingsCancelBooking;
|
|
1091
|
-
}
|
|
1092
|
-
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1093
|
-
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1094
|
-
const metadata = {
|
|
1095
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1096
|
-
method: "POST",
|
|
1097
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
|
|
1098
|
-
packageName: PACKAGE_NAME,
|
|
1099
|
-
migrationOptions: {
|
|
1100
|
-
optInTransformResponse: true
|
|
1101
|
-
},
|
|
1102
|
-
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1103
|
-
protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
1104
|
-
data: payload,
|
|
1105
|
-
host
|
|
1106
|
-
}),
|
|
1107
|
-
data: payload,
|
|
1108
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1109
|
-
{
|
|
1110
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1111
|
-
paths: [
|
|
1112
|
-
{ path: "booking.createdDate" },
|
|
1113
|
-
{ path: "booking.startDate" },
|
|
1114
|
-
{ path: "booking.endDate" },
|
|
1115
|
-
{ path: "booking.updatedDate" },
|
|
1116
|
-
{ path: "booking.canceledDate" }
|
|
1117
|
-
]
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1121
|
-
paths: [
|
|
1122
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1123
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1124
|
-
]
|
|
1125
|
-
}
|
|
1126
|
-
])
|
|
1127
|
-
};
|
|
1128
|
-
return metadata;
|
|
1129
|
-
}
|
|
1130
|
-
return __bookingsUpdateNumberOfParticipants;
|
|
1131
|
-
}
|
|
1132
|
-
function markBookingAsPending(payload) {
|
|
1133
|
-
function __markBookingAsPending({ host }) {
|
|
1134
|
-
const metadata = {
|
|
1135
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1136
|
-
method: "POST",
|
|
1137
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
|
|
1138
|
-
packageName: PACKAGE_NAME,
|
|
1139
|
-
migrationOptions: {
|
|
1140
|
-
optInTransformResponse: true
|
|
1141
|
-
},
|
|
1142
|
-
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1143
|
-
protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
1144
|
-
data: payload,
|
|
1145
|
-
host
|
|
1146
|
-
}),
|
|
1147
|
-
data: payload,
|
|
1148
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1149
|
-
{
|
|
1150
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1151
|
-
paths: [
|
|
1152
|
-
{ path: "booking.createdDate" },
|
|
1153
|
-
{ path: "booking.startDate" },
|
|
1154
|
-
{ path: "booking.endDate" },
|
|
1155
|
-
{ path: "booking.updatedDate" },
|
|
1156
|
-
{ path: "booking.canceledDate" }
|
|
1157
|
-
]
|
|
1158
|
-
},
|
|
1159
|
-
{
|
|
1160
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1161
|
-
paths: [
|
|
1162
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1163
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1164
|
-
]
|
|
1165
|
-
}
|
|
1166
|
-
])
|
|
1167
|
-
};
|
|
1168
|
-
return metadata;
|
|
1169
|
-
}
|
|
1170
|
-
return __markBookingAsPending;
|
|
1171
|
-
}
|
|
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
|
-
]);
|
|
1193
|
-
const metadata = {
|
|
1194
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1195
|
-
method: "POST",
|
|
1196
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking",
|
|
1197
|
-
packageName: PACKAGE_NAME,
|
|
1198
|
-
migrationOptions: {
|
|
1199
|
-
optInTransformResponse: true
|
|
1200
|
-
},
|
|
1201
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1202
|
-
protoPath: "/v2/multi_service_bookings",
|
|
1203
|
-
data: serializedData,
|
|
1204
|
-
host
|
|
1205
|
-
}),
|
|
1206
|
-
data: serializedData,
|
|
1207
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1208
|
-
{
|
|
1209
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1210
|
-
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" }
|
|
1216
|
-
]
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1220
|
-
paths: [
|
|
1221
|
-
{
|
|
1222
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1226
|
-
}
|
|
1227
|
-
]
|
|
1228
|
-
}
|
|
1229
|
-
])
|
|
1230
|
-
};
|
|
1231
|
-
return metadata;
|
|
1232
|
-
}
|
|
1233
|
-
return __createMultiServiceBooking;
|
|
1234
|
-
}
|
|
1235
|
-
function rescheduleMultiServiceBooking(payload) {
|
|
1236
|
-
function __rescheduleMultiServiceBooking({ host }) {
|
|
1237
|
-
const metadata = {
|
|
1238
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1239
|
-
method: "POST",
|
|
1240
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RescheduleMultiServiceBooking",
|
|
1241
|
-
packageName: PACKAGE_NAME,
|
|
1242
|
-
migrationOptions: {
|
|
1243
|
-
optInTransformResponse: true
|
|
1244
|
-
},
|
|
1245
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1246
|
-
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
|
|
1247
|
-
data: payload,
|
|
1248
|
-
host
|
|
1249
|
-
}),
|
|
1250
|
-
data: payload,
|
|
1251
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1252
|
-
{
|
|
1253
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1254
|
-
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" }
|
|
1260
|
-
]
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1264
|
-
paths: [
|
|
1265
|
-
{
|
|
1266
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1270
|
-
}
|
|
1271
|
-
]
|
|
1272
|
-
}
|
|
1273
|
-
])
|
|
1274
|
-
};
|
|
1275
|
-
return metadata;
|
|
1276
|
-
}
|
|
1277
|
-
return __rescheduleMultiServiceBooking;
|
|
1278
|
-
}
|
|
1279
|
-
function getMultiServiceBookingAvailability(payload) {
|
|
1280
|
-
function __getMultiServiceBookingAvailability({ host }) {
|
|
1281
|
-
const metadata = {
|
|
1282
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1283
|
-
method: "POST",
|
|
1284
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability",
|
|
1285
|
-
packageName: PACKAGE_NAME,
|
|
1286
|
-
migrationOptions: {
|
|
1287
|
-
optInTransformResponse: true
|
|
1288
|
-
},
|
|
1289
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1290
|
-
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
|
|
1291
|
-
data: payload,
|
|
1292
|
-
host
|
|
1293
|
-
}),
|
|
1294
|
-
data: payload
|
|
1295
|
-
};
|
|
1296
|
-
return metadata;
|
|
1297
|
-
}
|
|
1298
|
-
return __getMultiServiceBookingAvailability;
|
|
1299
|
-
}
|
|
1300
|
-
function cancelMultiServiceBooking(payload) {
|
|
1301
|
-
function __cancelMultiServiceBooking({ host }) {
|
|
1302
|
-
const metadata = {
|
|
1303
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1304
|
-
method: "POST",
|
|
1305
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CancelMultiServiceBooking",
|
|
1306
|
-
packageName: PACKAGE_NAME,
|
|
1307
|
-
migrationOptions: {
|
|
1308
|
-
optInTransformResponse: true
|
|
1309
|
-
},
|
|
1310
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1311
|
-
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
|
|
1312
|
-
data: payload,
|
|
1313
|
-
host
|
|
1314
|
-
}),
|
|
1315
|
-
data: payload,
|
|
1316
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1317
|
-
{
|
|
1318
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1319
|
-
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" }
|
|
1325
|
-
]
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1329
|
-
paths: [
|
|
1330
|
-
{
|
|
1331
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1332
|
-
},
|
|
1333
|
-
{
|
|
1334
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1335
|
-
}
|
|
1336
|
-
]
|
|
1337
|
-
}
|
|
1338
|
-
])
|
|
1339
|
-
};
|
|
1340
|
-
return metadata;
|
|
1341
|
-
}
|
|
1342
|
-
return __cancelMultiServiceBooking;
|
|
1406
|
+
return __bookingsCancelBooking;
|
|
1343
1407
|
}
|
|
1344
|
-
function
|
|
1345
|
-
function
|
|
1408
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1409
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1346
1410
|
const metadata = {
|
|
1347
1411
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1348
1412
|
method: "POST",
|
|
1349
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1413
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
|
|
1350
1414
|
packageName: PACKAGE_NAME,
|
|
1351
1415
|
migrationOptions: {
|
|
1352
1416
|
optInTransformResponse: true
|
|
1353
1417
|
},
|
|
1354
|
-
url:
|
|
1355
|
-
protoPath: "/v2/
|
|
1418
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1419
|
+
protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
1356
1420
|
data: payload,
|
|
1357
1421
|
host
|
|
1358
1422
|
}),
|
|
@@ -1361,86 +1425,59 @@ function markMultiServiceBookingAsPending(payload) {
|
|
|
1361
1425
|
{
|
|
1362
1426
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1363
1427
|
paths: [
|
|
1364
|
-
{ path: "
|
|
1365
|
-
{ path: "
|
|
1366
|
-
{ path: "
|
|
1367
|
-
{ path: "
|
|
1368
|
-
{ path: "
|
|
1428
|
+
{ path: "booking.createdDate" },
|
|
1429
|
+
{ path: "booking.startDate" },
|
|
1430
|
+
{ path: "booking.endDate" },
|
|
1431
|
+
{ path: "booking.updatedDate" },
|
|
1432
|
+
{ path: "booking.canceledDate" }
|
|
1369
1433
|
]
|
|
1370
1434
|
},
|
|
1371
1435
|
{
|
|
1372
1436
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1373
1437
|
paths: [
|
|
1374
|
-
{
|
|
1375
|
-
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1379
|
-
}
|
|
1438
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1439
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1380
1440
|
]
|
|
1381
1441
|
}
|
|
1382
1442
|
])
|
|
1383
1443
|
};
|
|
1384
1444
|
return metadata;
|
|
1385
1445
|
}
|
|
1386
|
-
return
|
|
1446
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
1387
1447
|
}
|
|
1388
|
-
function
|
|
1389
|
-
function
|
|
1448
|
+
function bulkCalculateAllowedActions(payload) {
|
|
1449
|
+
function __bulkCalculateAllowedActions({ host }) {
|
|
1390
1450
|
const metadata = {
|
|
1391
1451
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1392
1452
|
method: "POST",
|
|
1393
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1453
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCalculateAllowedActions",
|
|
1394
1454
|
packageName: PACKAGE_NAME,
|
|
1395
1455
|
migrationOptions: {
|
|
1396
1456
|
optInTransformResponse: true
|
|
1397
1457
|
},
|
|
1398
|
-
url:
|
|
1399
|
-
protoPath: "/v2/
|
|
1458
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1459
|
+
protoPath: "/v2/bulk/bookings/calculate_allowed_actions",
|
|
1400
1460
|
data: payload,
|
|
1401
1461
|
host
|
|
1402
1462
|
}),
|
|
1403
|
-
data: payload
|
|
1404
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1405
|
-
{
|
|
1406
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1407
|
-
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" }
|
|
1413
|
-
]
|
|
1414
|
-
},
|
|
1415
|
-
{
|
|
1416
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1417
|
-
paths: [
|
|
1418
|
-
{
|
|
1419
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1420
|
-
},
|
|
1421
|
-
{
|
|
1422
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1423
|
-
}
|
|
1424
|
-
]
|
|
1425
|
-
}
|
|
1426
|
-
])
|
|
1463
|
+
data: payload
|
|
1427
1464
|
};
|
|
1428
1465
|
return metadata;
|
|
1429
1466
|
}
|
|
1430
|
-
return
|
|
1467
|
+
return __bulkCalculateAllowedActions;
|
|
1431
1468
|
}
|
|
1432
|
-
function
|
|
1433
|
-
function
|
|
1469
|
+
function markBookingAsPending(payload) {
|
|
1470
|
+
function __markBookingAsPending({ host }) {
|
|
1434
1471
|
const metadata = {
|
|
1435
1472
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1436
1473
|
method: "POST",
|
|
1437
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1474
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
|
|
1438
1475
|
packageName: PACKAGE_NAME,
|
|
1439
1476
|
migrationOptions: {
|
|
1440
1477
|
optInTransformResponse: true
|
|
1441
1478
|
},
|
|
1442
|
-
url:
|
|
1443
|
-
protoPath: "/v2/
|
|
1479
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1480
|
+
protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
1444
1481
|
data: payload,
|
|
1445
1482
|
host
|
|
1446
1483
|
}),
|
|
@@ -1449,107 +1486,99 @@ function declineMultiServiceBooking(payload) {
|
|
|
1449
1486
|
{
|
|
1450
1487
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1451
1488
|
paths: [
|
|
1452
|
-
{ path: "
|
|
1453
|
-
{ path: "
|
|
1454
|
-
{ path: "
|
|
1455
|
-
{ path: "
|
|
1456
|
-
{ path: "
|
|
1489
|
+
{ path: "booking.createdDate" },
|
|
1490
|
+
{ path: "booking.startDate" },
|
|
1491
|
+
{ path: "booking.endDate" },
|
|
1492
|
+
{ path: "booking.updatedDate" },
|
|
1493
|
+
{ path: "booking.canceledDate" }
|
|
1457
1494
|
]
|
|
1458
1495
|
},
|
|
1459
1496
|
{
|
|
1460
1497
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1461
1498
|
paths: [
|
|
1462
|
-
{
|
|
1463
|
-
|
|
1464
|
-
},
|
|
1465
|
-
{
|
|
1466
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1467
|
-
}
|
|
1499
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1500
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1468
1501
|
]
|
|
1469
1502
|
}
|
|
1470
1503
|
])
|
|
1471
1504
|
};
|
|
1472
1505
|
return metadata;
|
|
1473
1506
|
}
|
|
1474
|
-
return
|
|
1507
|
+
return __markBookingAsPending;
|
|
1475
1508
|
}
|
|
1476
|
-
function
|
|
1477
|
-
function
|
|
1509
|
+
function getAnonymousActionDetails(payload) {
|
|
1510
|
+
function __getAnonymousActionDetails({ host }) {
|
|
1478
1511
|
const metadata = {
|
|
1479
1512
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1480
|
-
method: "
|
|
1481
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1513
|
+
method: "GET",
|
|
1514
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
1482
1515
|
packageName: PACKAGE_NAME,
|
|
1483
1516
|
migrationOptions: {
|
|
1484
1517
|
optInTransformResponse: true
|
|
1485
1518
|
},
|
|
1486
|
-
url:
|
|
1487
|
-
protoPath: "/v2/
|
|
1519
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1520
|
+
protoPath: "/v2/bookings/anonymous-actions-details",
|
|
1488
1521
|
data: payload,
|
|
1489
1522
|
host
|
|
1490
1523
|
}),
|
|
1491
|
-
|
|
1524
|
+
params: toURLSearchParams(payload)
|
|
1492
1525
|
};
|
|
1493
1526
|
return metadata;
|
|
1494
1527
|
}
|
|
1495
|
-
return
|
|
1528
|
+
return __getAnonymousActionDetails;
|
|
1496
1529
|
}
|
|
1497
|
-
function
|
|
1498
|
-
function
|
|
1530
|
+
function cancelBookingAnonymously(payload) {
|
|
1531
|
+
function __cancelBookingAnonymously({ host }) {
|
|
1499
1532
|
const metadata = {
|
|
1500
1533
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1501
|
-
method: "
|
|
1502
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1534
|
+
method: "POST",
|
|
1535
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
|
|
1503
1536
|
packageName: PACKAGE_NAME,
|
|
1504
1537
|
migrationOptions: {
|
|
1505
1538
|
optInTransformResponse: true
|
|
1506
1539
|
},
|
|
1507
|
-
url:
|
|
1508
|
-
protoPath: "/v2/
|
|
1540
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1541
|
+
protoPath: "/v2/bookings/{token}/anonymous-cancel",
|
|
1509
1542
|
data: payload,
|
|
1510
1543
|
host
|
|
1511
1544
|
}),
|
|
1512
|
-
|
|
1545
|
+
data: payload,
|
|
1513
1546
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1514
1547
|
{
|
|
1515
1548
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1516
1549
|
paths: [
|
|
1517
|
-
{ path: "
|
|
1518
|
-
{ path: "
|
|
1519
|
-
{ path: "
|
|
1520
|
-
{ path: "
|
|
1521
|
-
{ path: "
|
|
1550
|
+
{ path: "booking.createdDate" },
|
|
1551
|
+
{ path: "booking.startDate" },
|
|
1552
|
+
{ path: "booking.endDate" },
|
|
1553
|
+
{ path: "booking.updatedDate" },
|
|
1554
|
+
{ path: "booking.canceledDate" }
|
|
1522
1555
|
]
|
|
1523
1556
|
},
|
|
1524
1557
|
{
|
|
1525
1558
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1526
1559
|
paths: [
|
|
1527
|
-
{
|
|
1528
|
-
|
|
1529
|
-
},
|
|
1530
|
-
{
|
|
1531
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1532
|
-
}
|
|
1560
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1561
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1533
1562
|
]
|
|
1534
1563
|
}
|
|
1535
1564
|
])
|
|
1536
1565
|
};
|
|
1537
1566
|
return metadata;
|
|
1538
1567
|
}
|
|
1539
|
-
return
|
|
1568
|
+
return __cancelBookingAnonymously;
|
|
1540
1569
|
}
|
|
1541
|
-
function
|
|
1542
|
-
function
|
|
1570
|
+
function rescheduleBookingAnonymously(payload) {
|
|
1571
|
+
function __rescheduleBookingAnonymously({ host }) {
|
|
1543
1572
|
const metadata = {
|
|
1544
1573
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1545
1574
|
method: "POST",
|
|
1546
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1575
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
|
|
1547
1576
|
packageName: PACKAGE_NAME,
|
|
1548
1577
|
migrationOptions: {
|
|
1549
1578
|
optInTransformResponse: true
|
|
1550
1579
|
},
|
|
1551
|
-
url:
|
|
1552
|
-
protoPath: "/v2/
|
|
1580
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1581
|
+
protoPath: "/v2/bookings/{token}/anonymous-reschedule",
|
|
1553
1582
|
data: payload,
|
|
1554
1583
|
host
|
|
1555
1584
|
}),
|
|
@@ -1558,73 +1587,65 @@ function addBookingsToMultiServiceBooking(payload) {
|
|
|
1558
1587
|
{
|
|
1559
1588
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1560
1589
|
paths: [
|
|
1561
|
-
{ path: "
|
|
1562
|
-
{ path: "
|
|
1563
|
-
{ path: "
|
|
1564
|
-
{ path: "
|
|
1565
|
-
{ path: "
|
|
1590
|
+
{ path: "booking.createdDate" },
|
|
1591
|
+
{ path: "booking.startDate" },
|
|
1592
|
+
{ path: "booking.endDate" },
|
|
1593
|
+
{ path: "booking.updatedDate" },
|
|
1594
|
+
{ path: "booking.canceledDate" }
|
|
1566
1595
|
]
|
|
1567
1596
|
},
|
|
1568
1597
|
{
|
|
1569
1598
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1570
1599
|
paths: [
|
|
1571
|
-
{
|
|
1572
|
-
|
|
1573
|
-
},
|
|
1574
|
-
{
|
|
1575
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1576
|
-
}
|
|
1600
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1601
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1577
1602
|
]
|
|
1578
1603
|
}
|
|
1579
1604
|
])
|
|
1580
1605
|
};
|
|
1581
1606
|
return metadata;
|
|
1582
1607
|
}
|
|
1583
|
-
return
|
|
1608
|
+
return __rescheduleBookingAnonymously;
|
|
1584
1609
|
}
|
|
1585
|
-
function
|
|
1586
|
-
function
|
|
1610
|
+
function getBookingAnonymously(payload) {
|
|
1611
|
+
function __getBookingAnonymously({ host }) {
|
|
1587
1612
|
const metadata = {
|
|
1588
1613
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1589
|
-
method: "
|
|
1590
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1614
|
+
method: "GET",
|
|
1615
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
|
|
1591
1616
|
packageName: PACKAGE_NAME,
|
|
1592
1617
|
migrationOptions: {
|
|
1593
1618
|
optInTransformResponse: true
|
|
1594
1619
|
},
|
|
1595
|
-
url:
|
|
1596
|
-
protoPath: "/v2/
|
|
1620
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1621
|
+
protoPath: "/v2/bookings/{token}/anonymous-get",
|
|
1597
1622
|
data: payload,
|
|
1598
1623
|
host
|
|
1599
1624
|
}),
|
|
1600
|
-
|
|
1625
|
+
params: toURLSearchParams(payload),
|
|
1601
1626
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1602
1627
|
{
|
|
1603
1628
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1604
1629
|
paths: [
|
|
1605
|
-
{ path: "
|
|
1606
|
-
{ path: "
|
|
1607
|
-
{ path: "
|
|
1608
|
-
{ path: "
|
|
1609
|
-
{ path: "
|
|
1630
|
+
{ path: "booking.createdDate" },
|
|
1631
|
+
{ path: "booking.startDate" },
|
|
1632
|
+
{ path: "booking.endDate" },
|
|
1633
|
+
{ path: "booking.updatedDate" },
|
|
1634
|
+
{ path: "booking.canceledDate" }
|
|
1610
1635
|
]
|
|
1611
1636
|
},
|
|
1612
1637
|
{
|
|
1613
1638
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1614
1639
|
paths: [
|
|
1615
|
-
{
|
|
1616
|
-
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1620
|
-
}
|
|
1640
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1641
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1621
1642
|
]
|
|
1622
1643
|
}
|
|
1623
1644
|
])
|
|
1624
1645
|
};
|
|
1625
1646
|
return metadata;
|
|
1626
1647
|
}
|
|
1627
|
-
return
|
|
1648
|
+
return __getBookingAnonymously;
|
|
1628
1649
|
}
|
|
1629
1650
|
|
|
1630
1651
|
// src/bookings-v2-booking-bookings.types.ts
|
|
@@ -1700,13 +1721,6 @@ var IdentificationDataIdentityType = /* @__PURE__ */ ((IdentificationDataIdentit
|
|
|
1700
1721
|
IdentificationDataIdentityType2["APP"] = "APP";
|
|
1701
1722
|
return IdentificationDataIdentityType2;
|
|
1702
1723
|
})(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
1724
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1711
1725
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1712
1726
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1715,6 +1729,13 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1715
1729
|
WebhookIdentityType2["APP"] = "APP";
|
|
1716
1730
|
return WebhookIdentityType2;
|
|
1717
1731
|
})(WebhookIdentityType || {});
|
|
1732
|
+
var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
|
|
1733
|
+
LocationLocationType2["UNDEFINED"] = "UNDEFINED";
|
|
1734
|
+
LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
|
|
1735
|
+
LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
1736
|
+
LocationLocationType2["CUSTOM"] = "CUSTOM";
|
|
1737
|
+
return LocationLocationType2;
|
|
1738
|
+
})(LocationLocationType || {});
|
|
1718
1739
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
1719
1740
|
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1720
1741
|
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1730,17 +1751,35 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1730
1751
|
})(SortOrder || {});
|
|
1731
1752
|
|
|
1732
1753
|
// src/bookings-v2-booking-bookings.meta.ts
|
|
1733
|
-
function
|
|
1754
|
+
function confirmOrDeclineBooking2() {
|
|
1755
|
+
const payload = { bookingId: ":bookingId" };
|
|
1756
|
+
const getRequestOptions = confirmOrDeclineBooking(payload);
|
|
1757
|
+
const getUrl = (context) => {
|
|
1758
|
+
const { url } = getRequestOptions(context);
|
|
1759
|
+
return url;
|
|
1760
|
+
};
|
|
1761
|
+
return {
|
|
1762
|
+
getUrl,
|
|
1763
|
+
httpMethod: "POST",
|
|
1764
|
+
path: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
1765
|
+
pathParams: { bookingId: "bookingId" },
|
|
1766
|
+
__requestType: null,
|
|
1767
|
+
__originalRequestType: null,
|
|
1768
|
+
__responseType: null,
|
|
1769
|
+
__originalResponseType: null
|
|
1770
|
+
};
|
|
1771
|
+
}
|
|
1772
|
+
function bulkConfirmOrDeclineBooking2() {
|
|
1734
1773
|
const payload = {};
|
|
1735
|
-
const getRequestOptions =
|
|
1774
|
+
const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
|
|
1736
1775
|
const getUrl = (context) => {
|
|
1737
1776
|
const { url } = getRequestOptions(context);
|
|
1738
1777
|
return url;
|
|
1739
1778
|
};
|
|
1740
1779
|
return {
|
|
1741
1780
|
getUrl,
|
|
1742
|
-
httpMethod: "
|
|
1743
|
-
path: "/v2/bookings/
|
|
1781
|
+
httpMethod: "POST",
|
|
1782
|
+
path: "/v2/bulk/bookings/confirmOrDecline",
|
|
1744
1783
|
pathParams: {},
|
|
1745
1784
|
__requestType: null,
|
|
1746
1785
|
__originalRequestType: null,
|
|
@@ -1748,27 +1787,27 @@ function getAnonymousActionDetails2() {
|
|
|
1748
1787
|
__originalResponseType: null
|
|
1749
1788
|
};
|
|
1750
1789
|
}
|
|
1751
|
-
function
|
|
1752
|
-
const payload = {
|
|
1753
|
-
const getRequestOptions =
|
|
1790
|
+
function createMultiServiceBooking2() {
|
|
1791
|
+
const payload = {};
|
|
1792
|
+
const getRequestOptions = createMultiServiceBooking(payload);
|
|
1754
1793
|
const getUrl = (context) => {
|
|
1755
1794
|
const { url } = getRequestOptions(context);
|
|
1756
1795
|
return url;
|
|
1757
1796
|
};
|
|
1758
1797
|
return {
|
|
1759
1798
|
getUrl,
|
|
1760
|
-
httpMethod: "POST",
|
|
1761
|
-
path: "/v2/
|
|
1762
|
-
pathParams: {
|
|
1799
|
+
httpMethod: "POST",
|
|
1800
|
+
path: "/v2/multi_service_bookings",
|
|
1801
|
+
pathParams: {},
|
|
1763
1802
|
__requestType: null,
|
|
1764
1803
|
__originalRequestType: null,
|
|
1765
1804
|
__responseType: null,
|
|
1766
1805
|
__originalResponseType: null
|
|
1767
1806
|
};
|
|
1768
1807
|
}
|
|
1769
|
-
function
|
|
1770
|
-
const payload = {
|
|
1771
|
-
const getRequestOptions =
|
|
1808
|
+
function rescheduleMultiServiceBooking2() {
|
|
1809
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1810
|
+
const getRequestOptions = rescheduleMultiServiceBooking(payload);
|
|
1772
1811
|
const getUrl = (context) => {
|
|
1773
1812
|
const { url } = getRequestOptions(context);
|
|
1774
1813
|
return url;
|
|
@@ -1776,35 +1815,35 @@ function rescheduleBookingAnonymously2() {
|
|
|
1776
1815
|
return {
|
|
1777
1816
|
getUrl,
|
|
1778
1817
|
httpMethod: "POST",
|
|
1779
|
-
path: "/v2/
|
|
1780
|
-
pathParams: {
|
|
1818
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
|
|
1819
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1781
1820
|
__requestType: null,
|
|
1782
1821
|
__originalRequestType: null,
|
|
1783
1822
|
__responseType: null,
|
|
1784
1823
|
__originalResponseType: null
|
|
1785
1824
|
};
|
|
1786
1825
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const payload = {
|
|
1789
|
-
const getRequestOptions =
|
|
1826
|
+
function getMultiServiceBookingAvailability2() {
|
|
1827
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1828
|
+
const getRequestOptions = getMultiServiceBookingAvailability(payload);
|
|
1790
1829
|
const getUrl = (context) => {
|
|
1791
1830
|
const { url } = getRequestOptions(context);
|
|
1792
1831
|
return url;
|
|
1793
1832
|
};
|
|
1794
1833
|
return {
|
|
1795
1834
|
getUrl,
|
|
1796
|
-
httpMethod: "
|
|
1797
|
-
path: "/v2/
|
|
1798
|
-
pathParams: {
|
|
1835
|
+
httpMethod: "POST",
|
|
1836
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
|
|
1837
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1799
1838
|
__requestType: null,
|
|
1800
1839
|
__originalRequestType: null,
|
|
1801
1840
|
__responseType: null,
|
|
1802
1841
|
__originalResponseType: null
|
|
1803
1842
|
};
|
|
1804
1843
|
}
|
|
1805
|
-
function
|
|
1806
|
-
const payload = {
|
|
1807
|
-
const getRequestOptions =
|
|
1844
|
+
function cancelMultiServiceBooking2() {
|
|
1845
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1846
|
+
const getRequestOptions = cancelMultiServiceBooking(payload);
|
|
1808
1847
|
const getUrl = (context) => {
|
|
1809
1848
|
const { url } = getRequestOptions(context);
|
|
1810
1849
|
return url;
|
|
@@ -1812,17 +1851,17 @@ function confirmOrDeclineBooking2() {
|
|
|
1812
1851
|
return {
|
|
1813
1852
|
getUrl,
|
|
1814
1853
|
httpMethod: "POST",
|
|
1815
|
-
path: "/v2/
|
|
1816
|
-
pathParams: {
|
|
1854
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
|
|
1855
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1817
1856
|
__requestType: null,
|
|
1818
1857
|
__originalRequestType: null,
|
|
1819
1858
|
__responseType: null,
|
|
1820
1859
|
__originalResponseType: null
|
|
1821
1860
|
};
|
|
1822
1861
|
}
|
|
1823
|
-
function
|
|
1824
|
-
const payload = {};
|
|
1825
|
-
const getRequestOptions =
|
|
1862
|
+
function markMultiServiceBookingAsPending2() {
|
|
1863
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1864
|
+
const getRequestOptions = markMultiServiceBookingAsPending(payload);
|
|
1826
1865
|
const getUrl = (context) => {
|
|
1827
1866
|
const { url } = getRequestOptions(context);
|
|
1828
1867
|
return url;
|
|
@@ -1830,17 +1869,17 @@ function bulkConfirmOrDeclineBooking2() {
|
|
|
1830
1869
|
return {
|
|
1831
1870
|
getUrl,
|
|
1832
1871
|
httpMethod: "POST",
|
|
1833
|
-
path: "/v2/
|
|
1834
|
-
pathParams: {},
|
|
1872
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
|
|
1873
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1835
1874
|
__requestType: null,
|
|
1836
1875
|
__originalRequestType: null,
|
|
1837
1876
|
__responseType: null,
|
|
1838
1877
|
__originalResponseType: null
|
|
1839
1878
|
};
|
|
1840
1879
|
}
|
|
1841
|
-
function
|
|
1842
|
-
const payload = {};
|
|
1843
|
-
const getRequestOptions =
|
|
1880
|
+
function confirmMultiServiceBooking2() {
|
|
1881
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1882
|
+
const getRequestOptions = confirmMultiServiceBooking(payload);
|
|
1844
1883
|
const getUrl = (context) => {
|
|
1845
1884
|
const { url } = getRequestOptions(context);
|
|
1846
1885
|
return url;
|
|
@@ -1848,17 +1887,17 @@ function createBooking2() {
|
|
|
1848
1887
|
return {
|
|
1849
1888
|
getUrl,
|
|
1850
1889
|
httpMethod: "POST",
|
|
1851
|
-
path: "/v2/
|
|
1852
|
-
pathParams: {},
|
|
1890
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
|
|
1891
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1853
1892
|
__requestType: null,
|
|
1854
1893
|
__originalRequestType: null,
|
|
1855
1894
|
__responseType: null,
|
|
1856
1895
|
__originalResponseType: null
|
|
1857
1896
|
};
|
|
1858
1897
|
}
|
|
1859
|
-
function
|
|
1860
|
-
const payload = {};
|
|
1861
|
-
const getRequestOptions =
|
|
1898
|
+
function declineMultiServiceBooking2() {
|
|
1899
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1900
|
+
const getRequestOptions = declineMultiServiceBooking(payload);
|
|
1862
1901
|
const getUrl = (context) => {
|
|
1863
1902
|
const { url } = getRequestOptions(context);
|
|
1864
1903
|
return url;
|
|
@@ -1866,17 +1905,19 @@ function bulkCreateBooking2() {
|
|
|
1866
1905
|
return {
|
|
1867
1906
|
getUrl,
|
|
1868
1907
|
httpMethod: "POST",
|
|
1869
|
-
path: "/v2/
|
|
1870
|
-
pathParams: {},
|
|
1908
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
|
|
1909
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1871
1910
|
__requestType: null,
|
|
1872
1911
|
__originalRequestType: null,
|
|
1873
1912
|
__responseType: null,
|
|
1874
1913
|
__originalResponseType: null
|
|
1875
1914
|
};
|
|
1876
1915
|
}
|
|
1877
|
-
function
|
|
1878
|
-
const payload = {
|
|
1879
|
-
const getRequestOptions =
|
|
1916
|
+
function bulkGetMultiServiceBookingAllowedActions2() {
|
|
1917
|
+
const payload = {};
|
|
1918
|
+
const getRequestOptions = bulkGetMultiServiceBookingAllowedActions(
|
|
1919
|
+
payload
|
|
1920
|
+
);
|
|
1880
1921
|
const getUrl = (context) => {
|
|
1881
1922
|
const { url } = getRequestOptions(context);
|
|
1882
1923
|
return url;
|
|
@@ -1884,35 +1925,35 @@ function rescheduleBooking2() {
|
|
|
1884
1925
|
return {
|
|
1885
1926
|
getUrl,
|
|
1886
1927
|
httpMethod: "POST",
|
|
1887
|
-
path: "/v2/
|
|
1888
|
-
pathParams: {
|
|
1928
|
+
path: "/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
1929
|
+
pathParams: {},
|
|
1889
1930
|
__requestType: null,
|
|
1890
1931
|
__originalRequestType: null,
|
|
1891
1932
|
__responseType: null,
|
|
1892
1933
|
__originalResponseType: null
|
|
1893
1934
|
};
|
|
1894
1935
|
}
|
|
1895
|
-
function
|
|
1896
|
-
const payload = {
|
|
1897
|
-
const getRequestOptions =
|
|
1936
|
+
function getMultiServiceBooking2() {
|
|
1937
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1938
|
+
const getRequestOptions = getMultiServiceBooking(payload);
|
|
1898
1939
|
const getUrl = (context) => {
|
|
1899
1940
|
const { url } = getRequestOptions(context);
|
|
1900
1941
|
return url;
|
|
1901
1942
|
};
|
|
1902
1943
|
return {
|
|
1903
1944
|
getUrl,
|
|
1904
|
-
httpMethod: "
|
|
1905
|
-
path: "/v2/
|
|
1906
|
-
pathParams: {
|
|
1945
|
+
httpMethod: "GET",
|
|
1946
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}",
|
|
1947
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1907
1948
|
__requestType: null,
|
|
1908
1949
|
__originalRequestType: null,
|
|
1909
1950
|
__responseType: null,
|
|
1910
1951
|
__originalResponseType: null
|
|
1911
1952
|
};
|
|
1912
1953
|
}
|
|
1913
|
-
function
|
|
1914
|
-
const payload = {
|
|
1915
|
-
const getRequestOptions =
|
|
1954
|
+
function addBookingsToMultiServiceBooking2() {
|
|
1955
|
+
const payload = {};
|
|
1956
|
+
const getRequestOptions = addBookingsToMultiServiceBooking(payload);
|
|
1916
1957
|
const getUrl = (context) => {
|
|
1917
1958
|
const { url } = getRequestOptions(context);
|
|
1918
1959
|
return url;
|
|
@@ -1920,17 +1961,19 @@ function setBookingSubmissionId2() {
|
|
|
1920
1961
|
return {
|
|
1921
1962
|
getUrl,
|
|
1922
1963
|
httpMethod: "POST",
|
|
1923
|
-
path: "/v2/
|
|
1924
|
-
pathParams: {
|
|
1964
|
+
path: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
1965
|
+
pathParams: {},
|
|
1925
1966
|
__requestType: null,
|
|
1926
1967
|
__originalRequestType: null,
|
|
1927
1968
|
__responseType: null,
|
|
1928
1969
|
__originalResponseType: null
|
|
1929
1970
|
};
|
|
1930
1971
|
}
|
|
1931
|
-
function
|
|
1932
|
-
const payload = {
|
|
1933
|
-
const getRequestOptions =
|
|
1972
|
+
function removeBookingsFromMultiServiceBooking2() {
|
|
1973
|
+
const payload = {};
|
|
1974
|
+
const getRequestOptions = removeBookingsFromMultiServiceBooking(
|
|
1975
|
+
payload
|
|
1976
|
+
);
|
|
1934
1977
|
const getUrl = (context) => {
|
|
1935
1978
|
const { url } = getRequestOptions(context);
|
|
1936
1979
|
return url;
|
|
@@ -1938,17 +1981,17 @@ function updateExtendedFields2() {
|
|
|
1938
1981
|
return {
|
|
1939
1982
|
getUrl,
|
|
1940
1983
|
httpMethod: "POST",
|
|
1941
|
-
path: "/v2/
|
|
1942
|
-
pathParams: {
|
|
1984
|
+
path: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
|
|
1985
|
+
pathParams: {},
|
|
1943
1986
|
__requestType: null,
|
|
1944
1987
|
__originalRequestType: null,
|
|
1945
1988
|
__responseType: null,
|
|
1946
1989
|
__originalResponseType: null
|
|
1947
1990
|
};
|
|
1948
1991
|
}
|
|
1949
|
-
function
|
|
1950
|
-
const payload = {
|
|
1951
|
-
const getRequestOptions =
|
|
1992
|
+
function createBooking2() {
|
|
1993
|
+
const payload = {};
|
|
1994
|
+
const getRequestOptions = createBooking(payload);
|
|
1952
1995
|
const getUrl = (context) => {
|
|
1953
1996
|
const { url } = getRequestOptions(context);
|
|
1954
1997
|
return url;
|
|
@@ -1956,17 +1999,17 @@ function declineBooking() {
|
|
|
1956
1999
|
return {
|
|
1957
2000
|
getUrl,
|
|
1958
2001
|
httpMethod: "POST",
|
|
1959
|
-
path: "/v2/bookings
|
|
1960
|
-
pathParams: {
|
|
2002
|
+
path: "/v2/bookings",
|
|
2003
|
+
pathParams: {},
|
|
1961
2004
|
__requestType: null,
|
|
1962
2005
|
__originalRequestType: null,
|
|
1963
2006
|
__responseType: null,
|
|
1964
2007
|
__originalResponseType: null
|
|
1965
2008
|
};
|
|
1966
2009
|
}
|
|
1967
|
-
function
|
|
1968
|
-
const payload = {
|
|
1969
|
-
const getRequestOptions =
|
|
2010
|
+
function bulkCreateBooking2() {
|
|
2011
|
+
const payload = {};
|
|
2012
|
+
const getRequestOptions = bulkCreateBooking(payload);
|
|
1970
2013
|
const getUrl = (context) => {
|
|
1971
2014
|
const { url } = getRequestOptions(context);
|
|
1972
2015
|
return url;
|
|
@@ -1974,17 +2017,17 @@ function cancelBooking() {
|
|
|
1974
2017
|
return {
|
|
1975
2018
|
getUrl,
|
|
1976
2019
|
httpMethod: "POST",
|
|
1977
|
-
path: "/v2/bookings/
|
|
1978
|
-
pathParams: {
|
|
2020
|
+
path: "/v2/bulk/bookings/create",
|
|
2021
|
+
pathParams: {},
|
|
1979
2022
|
__requestType: null,
|
|
1980
2023
|
__originalRequestType: null,
|
|
1981
2024
|
__responseType: null,
|
|
1982
2025
|
__originalResponseType: null
|
|
1983
2026
|
};
|
|
1984
2027
|
}
|
|
1985
|
-
function
|
|
2028
|
+
function rescheduleBooking2() {
|
|
1986
2029
|
const payload = { bookingId: ":bookingId" };
|
|
1987
|
-
const getRequestOptions =
|
|
2030
|
+
const getRequestOptions = rescheduleBooking(payload);
|
|
1988
2031
|
const getUrl = (context) => {
|
|
1989
2032
|
const { url } = getRequestOptions(context);
|
|
1990
2033
|
return url;
|
|
@@ -1992,7 +2035,7 @@ function updateNumberOfParticipants() {
|
|
|
1992
2035
|
return {
|
|
1993
2036
|
getUrl,
|
|
1994
2037
|
httpMethod: "POST",
|
|
1995
|
-
path: "/v2/bookings/{bookingId}/
|
|
2038
|
+
path: "/v2/bookings/{bookingId}/reschedule",
|
|
1996
2039
|
pathParams: { bookingId: "bookingId" },
|
|
1997
2040
|
__requestType: null,
|
|
1998
2041
|
__originalRequestType: null,
|
|
@@ -2000,9 +2043,9 @@ function updateNumberOfParticipants() {
|
|
|
2000
2043
|
__originalResponseType: null
|
|
2001
2044
|
};
|
|
2002
2045
|
}
|
|
2003
|
-
function
|
|
2046
|
+
function confirmBooking() {
|
|
2004
2047
|
const payload = { bookingId: ":bookingId" };
|
|
2005
|
-
const getRequestOptions =
|
|
2048
|
+
const getRequestOptions = bookingsConfirmBooking(payload);
|
|
2006
2049
|
const getUrl = (context) => {
|
|
2007
2050
|
const { url } = getRequestOptions(context);
|
|
2008
2051
|
return url;
|
|
@@ -2010,7 +2053,7 @@ function markBookingAsPending2() {
|
|
|
2010
2053
|
return {
|
|
2011
2054
|
getUrl,
|
|
2012
2055
|
httpMethod: "POST",
|
|
2013
|
-
path: "/v2/bookings/{bookingId}/
|
|
2056
|
+
path: "/v2/bookings/{bookingId}/confirm",
|
|
2014
2057
|
pathParams: { bookingId: "bookingId" },
|
|
2015
2058
|
__requestType: null,
|
|
2016
2059
|
__originalRequestType: null,
|
|
@@ -2018,9 +2061,9 @@ function markBookingAsPending2() {
|
|
|
2018
2061
|
__originalResponseType: null
|
|
2019
2062
|
};
|
|
2020
2063
|
}
|
|
2021
|
-
function
|
|
2022
|
-
const payload = {};
|
|
2023
|
-
const getRequestOptions =
|
|
2064
|
+
function setBookingSubmissionId2() {
|
|
2065
|
+
const payload = { bookingId: ":bookingId" };
|
|
2066
|
+
const getRequestOptions = setBookingSubmissionId(payload);
|
|
2024
2067
|
const getUrl = (context) => {
|
|
2025
2068
|
const { url } = getRequestOptions(context);
|
|
2026
2069
|
return url;
|
|
@@ -2028,17 +2071,17 @@ function createMultiServiceBooking2() {
|
|
|
2028
2071
|
return {
|
|
2029
2072
|
getUrl,
|
|
2030
2073
|
httpMethod: "POST",
|
|
2031
|
-
path: "/v2/
|
|
2032
|
-
pathParams: {},
|
|
2074
|
+
path: "/v2/bookings/{bookingId}/set-booking-submission-id",
|
|
2075
|
+
pathParams: { bookingId: "bookingId" },
|
|
2033
2076
|
__requestType: null,
|
|
2034
2077
|
__originalRequestType: null,
|
|
2035
2078
|
__responseType: null,
|
|
2036
2079
|
__originalResponseType: null
|
|
2037
2080
|
};
|
|
2038
2081
|
}
|
|
2039
|
-
function
|
|
2040
|
-
const payload = {
|
|
2041
|
-
const getRequestOptions =
|
|
2082
|
+
function updateExtendedFields2() {
|
|
2083
|
+
const payload = { id: ":id" };
|
|
2084
|
+
const getRequestOptions = updateExtendedFields(payload);
|
|
2042
2085
|
const getUrl = (context) => {
|
|
2043
2086
|
const { url } = getRequestOptions(context);
|
|
2044
2087
|
return url;
|
|
@@ -2046,17 +2089,17 @@ function rescheduleMultiServiceBooking2() {
|
|
|
2046
2089
|
return {
|
|
2047
2090
|
getUrl,
|
|
2048
2091
|
httpMethod: "POST",
|
|
2049
|
-
path: "/v2/
|
|
2050
|
-
pathParams: {
|
|
2092
|
+
path: "/v2/bookings/{id}/update_extended_fields",
|
|
2093
|
+
pathParams: { id: "id" },
|
|
2051
2094
|
__requestType: null,
|
|
2052
2095
|
__originalRequestType: null,
|
|
2053
2096
|
__responseType: null,
|
|
2054
2097
|
__originalResponseType: null
|
|
2055
2098
|
};
|
|
2056
2099
|
}
|
|
2057
|
-
function
|
|
2058
|
-
const payload = {
|
|
2059
|
-
const getRequestOptions =
|
|
2100
|
+
function declineBooking() {
|
|
2101
|
+
const payload = { bookingId: ":bookingId" };
|
|
2102
|
+
const getRequestOptions = bookingsDeclineBooking(payload);
|
|
2060
2103
|
const getUrl = (context) => {
|
|
2061
2104
|
const { url } = getRequestOptions(context);
|
|
2062
2105
|
return url;
|
|
@@ -2064,17 +2107,17 @@ function getMultiServiceBookingAvailability2() {
|
|
|
2064
2107
|
return {
|
|
2065
2108
|
getUrl,
|
|
2066
2109
|
httpMethod: "POST",
|
|
2067
|
-
path: "/v2/
|
|
2068
|
-
pathParams: {
|
|
2110
|
+
path: "/v2/bookings/{bookingId}/decline",
|
|
2111
|
+
pathParams: { bookingId: "bookingId" },
|
|
2069
2112
|
__requestType: null,
|
|
2070
2113
|
__originalRequestType: null,
|
|
2071
2114
|
__responseType: null,
|
|
2072
2115
|
__originalResponseType: null
|
|
2073
2116
|
};
|
|
2074
2117
|
}
|
|
2075
|
-
function
|
|
2076
|
-
const payload = {
|
|
2077
|
-
const getRequestOptions =
|
|
2118
|
+
function cancelBooking() {
|
|
2119
|
+
const payload = { bookingId: ":bookingId" };
|
|
2120
|
+
const getRequestOptions = bookingsCancelBooking(payload);
|
|
2078
2121
|
const getUrl = (context) => {
|
|
2079
2122
|
const { url } = getRequestOptions(context);
|
|
2080
2123
|
return url;
|
|
@@ -2082,17 +2125,17 @@ function cancelMultiServiceBooking2() {
|
|
|
2082
2125
|
return {
|
|
2083
2126
|
getUrl,
|
|
2084
2127
|
httpMethod: "POST",
|
|
2085
|
-
path: "/v2/
|
|
2086
|
-
pathParams: {
|
|
2128
|
+
path: "/v2/bookings/{bookingId}/cancel",
|
|
2129
|
+
pathParams: { bookingId: "bookingId" },
|
|
2087
2130
|
__requestType: null,
|
|
2088
2131
|
__originalRequestType: null,
|
|
2089
2132
|
__responseType: null,
|
|
2090
2133
|
__originalResponseType: null
|
|
2091
2134
|
};
|
|
2092
2135
|
}
|
|
2093
|
-
function
|
|
2094
|
-
const payload = {
|
|
2095
|
-
const getRequestOptions =
|
|
2136
|
+
function updateNumberOfParticipants() {
|
|
2137
|
+
const payload = { bookingId: ":bookingId" };
|
|
2138
|
+
const getRequestOptions = bookingsUpdateNumberOfParticipants(payload);
|
|
2096
2139
|
const getUrl = (context) => {
|
|
2097
2140
|
const { url } = getRequestOptions(context);
|
|
2098
2141
|
return url;
|
|
@@ -2100,17 +2143,17 @@ function markMultiServiceBookingAsPending2() {
|
|
|
2100
2143
|
return {
|
|
2101
2144
|
getUrl,
|
|
2102
2145
|
httpMethod: "POST",
|
|
2103
|
-
path: "/v2/
|
|
2104
|
-
pathParams: {
|
|
2146
|
+
path: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
2147
|
+
pathParams: { bookingId: "bookingId" },
|
|
2105
2148
|
__requestType: null,
|
|
2106
2149
|
__originalRequestType: null,
|
|
2107
2150
|
__responseType: null,
|
|
2108
2151
|
__originalResponseType: null
|
|
2109
2152
|
};
|
|
2110
2153
|
}
|
|
2111
|
-
function
|
|
2112
|
-
const payload = {
|
|
2113
|
-
const getRequestOptions =
|
|
2154
|
+
function bulkCalculateAllowedActions2() {
|
|
2155
|
+
const payload = {};
|
|
2156
|
+
const getRequestOptions = bulkCalculateAllowedActions(payload);
|
|
2114
2157
|
const getUrl = (context) => {
|
|
2115
2158
|
const { url } = getRequestOptions(context);
|
|
2116
2159
|
return url;
|
|
@@ -2118,17 +2161,17 @@ function confirmMultiServiceBooking2() {
|
|
|
2118
2161
|
return {
|
|
2119
2162
|
getUrl,
|
|
2120
2163
|
httpMethod: "POST",
|
|
2121
|
-
path: "/v2/
|
|
2122
|
-
pathParams: {
|
|
2164
|
+
path: "/v2/bulk/bookings/calculate_allowed_actions",
|
|
2165
|
+
pathParams: {},
|
|
2123
2166
|
__requestType: null,
|
|
2124
2167
|
__originalRequestType: null,
|
|
2125
2168
|
__responseType: null,
|
|
2126
2169
|
__originalResponseType: null
|
|
2127
2170
|
};
|
|
2128
2171
|
}
|
|
2129
|
-
function
|
|
2130
|
-
const payload = {
|
|
2131
|
-
const getRequestOptions =
|
|
2172
|
+
function markBookingAsPending2() {
|
|
2173
|
+
const payload = { bookingId: ":bookingId" };
|
|
2174
|
+
const getRequestOptions = markBookingAsPending(payload);
|
|
2132
2175
|
const getUrl = (context) => {
|
|
2133
2176
|
const { url } = getRequestOptions(context);
|
|
2134
2177
|
return url;
|
|
@@ -2136,27 +2179,25 @@ function declineMultiServiceBooking2() {
|
|
|
2136
2179
|
return {
|
|
2137
2180
|
getUrl,
|
|
2138
2181
|
httpMethod: "POST",
|
|
2139
|
-
path: "/v2/
|
|
2140
|
-
pathParams: {
|
|
2182
|
+
path: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
2183
|
+
pathParams: { bookingId: "bookingId" },
|
|
2141
2184
|
__requestType: null,
|
|
2142
2185
|
__originalRequestType: null,
|
|
2143
2186
|
__responseType: null,
|
|
2144
2187
|
__originalResponseType: null
|
|
2145
2188
|
};
|
|
2146
2189
|
}
|
|
2147
|
-
function
|
|
2190
|
+
function getAnonymousActionDetails2() {
|
|
2148
2191
|
const payload = {};
|
|
2149
|
-
const getRequestOptions =
|
|
2150
|
-
payload
|
|
2151
|
-
);
|
|
2192
|
+
const getRequestOptions = getAnonymousActionDetails(payload);
|
|
2152
2193
|
const getUrl = (context) => {
|
|
2153
2194
|
const { url } = getRequestOptions(context);
|
|
2154
2195
|
return url;
|
|
2155
2196
|
};
|
|
2156
2197
|
return {
|
|
2157
2198
|
getUrl,
|
|
2158
|
-
httpMethod: "
|
|
2159
|
-
path: "/v2/
|
|
2199
|
+
httpMethod: "GET",
|
|
2200
|
+
path: "/v2/bookings/anonymous-actions-details",
|
|
2160
2201
|
pathParams: {},
|
|
2161
2202
|
__requestType: null,
|
|
2162
2203
|
__originalRequestType: null,
|
|
@@ -2164,27 +2205,27 @@ function bulkGetMultiServiceBookingAllowedActions2() {
|
|
|
2164
2205
|
__originalResponseType: null
|
|
2165
2206
|
};
|
|
2166
2207
|
}
|
|
2167
|
-
function
|
|
2168
|
-
const payload = {
|
|
2169
|
-
const getRequestOptions =
|
|
2208
|
+
function cancelBookingAnonymously2() {
|
|
2209
|
+
const payload = { token: ":token" };
|
|
2210
|
+
const getRequestOptions = cancelBookingAnonymously(payload);
|
|
2170
2211
|
const getUrl = (context) => {
|
|
2171
2212
|
const { url } = getRequestOptions(context);
|
|
2172
2213
|
return url;
|
|
2173
2214
|
};
|
|
2174
2215
|
return {
|
|
2175
2216
|
getUrl,
|
|
2176
|
-
httpMethod: "
|
|
2177
|
-
path: "/v2/
|
|
2178
|
-
pathParams: {
|
|
2217
|
+
httpMethod: "POST",
|
|
2218
|
+
path: "/v2/bookings/{token}/anonymous-cancel",
|
|
2219
|
+
pathParams: { token: "token" },
|
|
2179
2220
|
__requestType: null,
|
|
2180
2221
|
__originalRequestType: null,
|
|
2181
2222
|
__responseType: null,
|
|
2182
2223
|
__originalResponseType: null
|
|
2183
2224
|
};
|
|
2184
2225
|
}
|
|
2185
|
-
function
|
|
2186
|
-
const payload = {};
|
|
2187
|
-
const getRequestOptions =
|
|
2226
|
+
function rescheduleBookingAnonymously2() {
|
|
2227
|
+
const payload = { token: ":token" };
|
|
2228
|
+
const getRequestOptions = rescheduleBookingAnonymously(payload);
|
|
2188
2229
|
const getUrl = (context) => {
|
|
2189
2230
|
const { url } = getRequestOptions(context);
|
|
2190
2231
|
return url;
|
|
@@ -2192,28 +2233,26 @@ function addBookingsToMultiServiceBooking2() {
|
|
|
2192
2233
|
return {
|
|
2193
2234
|
getUrl,
|
|
2194
2235
|
httpMethod: "POST",
|
|
2195
|
-
path: "/v2/
|
|
2196
|
-
pathParams: {},
|
|
2236
|
+
path: "/v2/bookings/{token}/anonymous-reschedule",
|
|
2237
|
+
pathParams: { token: "token" },
|
|
2197
2238
|
__requestType: null,
|
|
2198
2239
|
__originalRequestType: null,
|
|
2199
2240
|
__responseType: null,
|
|
2200
2241
|
__originalResponseType: null
|
|
2201
2242
|
};
|
|
2202
2243
|
}
|
|
2203
|
-
function
|
|
2204
|
-
const payload = {};
|
|
2205
|
-
const getRequestOptions =
|
|
2206
|
-
payload
|
|
2207
|
-
);
|
|
2244
|
+
function getBookingAnonymously2() {
|
|
2245
|
+
const payload = { token: ":token" };
|
|
2246
|
+
const getRequestOptions = getBookingAnonymously(payload);
|
|
2208
2247
|
const getUrl = (context) => {
|
|
2209
2248
|
const { url } = getRequestOptions(context);
|
|
2210
2249
|
return url;
|
|
2211
2250
|
};
|
|
2212
2251
|
return {
|
|
2213
2252
|
getUrl,
|
|
2214
|
-
httpMethod: "
|
|
2215
|
-
path: "/v2/
|
|
2216
|
-
pathParams: {},
|
|
2253
|
+
httpMethod: "GET",
|
|
2254
|
+
path: "/v2/bookings/{token}/anonymous-get",
|
|
2255
|
+
pathParams: { token: "token" },
|
|
2217
2256
|
__requestType: null,
|
|
2218
2257
|
__originalRequestType: null,
|
|
2219
2258
|
__responseType: null,
|
|
@@ -2236,6 +2275,7 @@ export {
|
|
|
2236
2275
|
ValueType as ValueTypeOriginal,
|
|
2237
2276
|
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
2238
2277
|
addBookingsToMultiServiceBooking2 as addBookingsToMultiServiceBooking,
|
|
2278
|
+
bulkCalculateAllowedActions2 as bulkCalculateAllowedActions,
|
|
2239
2279
|
bulkConfirmOrDeclineBooking2 as bulkConfirmOrDeclineBooking,
|
|
2240
2280
|
bulkCreateBooking2 as bulkCreateBooking,
|
|
2241
2281
|
bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
|