@wix/auto_sdk_pricing-plans_orders 1.0.129 → 1.0.131
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 +1 -1
- package/build/cjs/index.js +92 -320
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +49 -125
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +49 -125
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +92 -320
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +49 -125
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +49 -125
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +1 -1
- package/package.json +2 -2
|
@@ -2535,7 +2535,7 @@ interface MemberListOrdersOptions {
|
|
|
2535
2535
|
* Canceling during the free trial period: When a buyer cancels their order during the free trial period, the buyer's subscription expires at the end of the free trial period and they won't be billed. The buyer may continue using the benefits until the end of the free trial period.
|
|
2536
2536
|
*
|
|
2537
2537
|
* >**Note:**
|
|
2538
|
-
* >This method requires
|
|
2538
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
2539
2539
|
* @param _id - Order ID.
|
|
2540
2540
|
* @param effectiveAt - Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately.
|
|
2541
2541
|
* @public
|
|
@@ -12,6 +12,40 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
12
12
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
13
13
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
14
14
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
15
|
+
var TRANSFORM_PATHS_0 = [
|
|
16
|
+
{ path: "order.startDate" },
|
|
17
|
+
{ path: "order.endDate" },
|
|
18
|
+
{ path: "order.earliestEndDate" },
|
|
19
|
+
{ path: "order.createdDate" },
|
|
20
|
+
{ path: "order.updatedDate" },
|
|
21
|
+
{ path: "order.cancellation.requestedDate" },
|
|
22
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
23
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
24
|
+
{ path: "order.currentCycle.startedDate" },
|
|
25
|
+
{ path: "order.currentCycle.endedDate" },
|
|
26
|
+
{ path: "order.cycles.startedDate" },
|
|
27
|
+
{ path: "order.cycles.endedDate" }
|
|
28
|
+
];
|
|
29
|
+
var TRANSFORM_PATHS_1 = [
|
|
30
|
+
{ path: "sorting.origin.latitude" },
|
|
31
|
+
{ path: "sorting.origin.longitude" }
|
|
32
|
+
];
|
|
33
|
+
var TRANSFORM_PATHS_2 = [
|
|
34
|
+
{ path: "orders.startDate" },
|
|
35
|
+
{ path: "orders.endDate" },
|
|
36
|
+
{ path: "orders.earliestEndDate" },
|
|
37
|
+
{ path: "orders.createdDate" },
|
|
38
|
+
{ path: "orders.updatedDate" },
|
|
39
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
40
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
41
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
42
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
43
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
44
|
+
{ path: "orders.cycles.startedDate" },
|
|
45
|
+
{ path: "orders.cycles.endedDate" }
|
|
46
|
+
];
|
|
47
|
+
var TRANSFORM_PATHS_3 = [{ path: "endDate" }];
|
|
48
|
+
var TRANSFORM_PATHS_4 = [{ path: "startDate" }];
|
|
15
49
|
function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
|
|
16
50
|
const domainToMappings = {
|
|
17
51
|
"api._api_base_domain_": [
|
|
@@ -417,20 +451,7 @@ function managementGetOrder(payload) {
|
|
|
417
451
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
418
452
|
{
|
|
419
453
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
420
|
-
paths:
|
|
421
|
-
{ path: "order.startDate" },
|
|
422
|
-
{ path: "order.endDate" },
|
|
423
|
-
{ path: "order.earliestEndDate" },
|
|
424
|
-
{ path: "order.createdDate" },
|
|
425
|
-
{ path: "order.updatedDate" },
|
|
426
|
-
{ path: "order.cancellation.requestedDate" },
|
|
427
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
428
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
429
|
-
{ path: "order.currentCycle.startedDate" },
|
|
430
|
-
{ path: "order.currentCycle.endedDate" },
|
|
431
|
-
{ path: "order.cycles.startedDate" },
|
|
432
|
-
{ path: "order.cycles.endedDate" }
|
|
433
|
-
]
|
|
454
|
+
paths: TRANSFORM_PATHS_0
|
|
434
455
|
}
|
|
435
456
|
])
|
|
436
457
|
};
|
|
@@ -443,10 +464,7 @@ function managementListOrders(payload) {
|
|
|
443
464
|
const serializedData = transformPaths(payload, [
|
|
444
465
|
{
|
|
445
466
|
transformFn: transformSDKFloatToRESTFloat,
|
|
446
|
-
paths:
|
|
447
|
-
{ path: "sorting.origin.latitude" },
|
|
448
|
-
{ path: "sorting.origin.longitude" }
|
|
449
|
-
]
|
|
467
|
+
paths: TRANSFORM_PATHS_1
|
|
450
468
|
}
|
|
451
469
|
]);
|
|
452
470
|
const metadata = {
|
|
@@ -466,20 +484,7 @@ function managementListOrders(payload) {
|
|
|
466
484
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
467
485
|
{
|
|
468
486
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
469
|
-
paths:
|
|
470
|
-
{ path: "orders.startDate" },
|
|
471
|
-
{ path: "orders.endDate" },
|
|
472
|
-
{ path: "orders.earliestEndDate" },
|
|
473
|
-
{ path: "orders.createdDate" },
|
|
474
|
-
{ path: "orders.updatedDate" },
|
|
475
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
476
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
477
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
478
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
479
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
480
|
-
{ path: "orders.cycles.startedDate" },
|
|
481
|
-
{ path: "orders.cycles.endedDate" }
|
|
482
|
-
]
|
|
487
|
+
paths: TRANSFORM_PATHS_2
|
|
483
488
|
}
|
|
484
489
|
])
|
|
485
490
|
};
|
|
@@ -492,7 +497,7 @@ function postponeEndDate(payload) {
|
|
|
492
497
|
const serializedData = transformPaths(payload, [
|
|
493
498
|
{
|
|
494
499
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
495
|
-
paths:
|
|
500
|
+
paths: TRANSFORM_PATHS_3
|
|
496
501
|
}
|
|
497
502
|
]);
|
|
498
503
|
const metadata = {
|
|
@@ -603,7 +608,7 @@ function createOnlineOrder(payload) {
|
|
|
603
608
|
const serializedData = transformPaths(payload, [
|
|
604
609
|
{
|
|
605
610
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
606
|
-
paths:
|
|
611
|
+
paths: TRANSFORM_PATHS_4
|
|
607
612
|
}
|
|
608
613
|
]);
|
|
609
614
|
const metadata = {
|
|
@@ -623,20 +628,7 @@ function createOnlineOrder(payload) {
|
|
|
623
628
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
624
629
|
{
|
|
625
630
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
626
|
-
paths:
|
|
627
|
-
{ path: "order.startDate" },
|
|
628
|
-
{ path: "order.endDate" },
|
|
629
|
-
{ path: "order.earliestEndDate" },
|
|
630
|
-
{ path: "order.createdDate" },
|
|
631
|
-
{ path: "order.updatedDate" },
|
|
632
|
-
{ path: "order.cancellation.requestedDate" },
|
|
633
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
634
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
635
|
-
{ path: "order.currentCycle.startedDate" },
|
|
636
|
-
{ path: "order.currentCycle.endedDate" },
|
|
637
|
-
{ path: "order.cycles.startedDate" },
|
|
638
|
-
{ path: "order.cycles.endedDate" }
|
|
639
|
-
]
|
|
631
|
+
paths: TRANSFORM_PATHS_0
|
|
640
632
|
}
|
|
641
633
|
])
|
|
642
634
|
};
|
|
@@ -649,7 +641,7 @@ function createOfflineOrder(payload) {
|
|
|
649
641
|
const serializedData = transformPaths(payload, [
|
|
650
642
|
{
|
|
651
643
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
652
|
-
paths:
|
|
644
|
+
paths: TRANSFORM_PATHS_4
|
|
653
645
|
}
|
|
654
646
|
]);
|
|
655
647
|
const metadata = {
|
|
@@ -669,20 +661,7 @@ function createOfflineOrder(payload) {
|
|
|
669
661
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
670
662
|
{
|
|
671
663
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
672
|
-
paths:
|
|
673
|
-
{ path: "order.startDate" },
|
|
674
|
-
{ path: "order.endDate" },
|
|
675
|
-
{ path: "order.earliestEndDate" },
|
|
676
|
-
{ path: "order.createdDate" },
|
|
677
|
-
{ path: "order.updatedDate" },
|
|
678
|
-
{ path: "order.cancellation.requestedDate" },
|
|
679
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
680
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
681
|
-
{ path: "order.currentCycle.startedDate" },
|
|
682
|
-
{ path: "order.currentCycle.endedDate" },
|
|
683
|
-
{ path: "order.cycles.startedDate" },
|
|
684
|
-
{ path: "order.cycles.endedDate" }
|
|
685
|
-
]
|
|
664
|
+
paths: TRANSFORM_PATHS_0
|
|
686
665
|
}
|
|
687
666
|
])
|
|
688
667
|
};
|
|
@@ -695,7 +674,7 @@ function getOnlineOrderPreview(payload) {
|
|
|
695
674
|
const serializedData = transformPaths(payload, [
|
|
696
675
|
{
|
|
697
676
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
698
|
-
paths:
|
|
677
|
+
paths: TRANSFORM_PATHS_4
|
|
699
678
|
}
|
|
700
679
|
]);
|
|
701
680
|
const metadata = {
|
|
@@ -715,20 +694,7 @@ function getOnlineOrderPreview(payload) {
|
|
|
715
694
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
716
695
|
{
|
|
717
696
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
718
|
-
paths:
|
|
719
|
-
{ path: "order.startDate" },
|
|
720
|
-
{ path: "order.endDate" },
|
|
721
|
-
{ path: "order.earliestEndDate" },
|
|
722
|
-
{ path: "order.createdDate" },
|
|
723
|
-
{ path: "order.updatedDate" },
|
|
724
|
-
{ path: "order.cancellation.requestedDate" },
|
|
725
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
726
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
727
|
-
{ path: "order.currentCycle.startedDate" },
|
|
728
|
-
{ path: "order.currentCycle.endedDate" },
|
|
729
|
-
{ path: "order.cycles.startedDate" },
|
|
730
|
-
{ path: "order.cycles.endedDate" }
|
|
731
|
-
]
|
|
697
|
+
paths: TRANSFORM_PATHS_0
|
|
732
698
|
}
|
|
733
699
|
])
|
|
734
700
|
};
|
|
@@ -741,7 +707,7 @@ function getOfflineOrderPreview(payload) {
|
|
|
741
707
|
const serializedData = transformPaths(payload, [
|
|
742
708
|
{
|
|
743
709
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
744
|
-
paths:
|
|
710
|
+
paths: TRANSFORM_PATHS_4
|
|
745
711
|
}
|
|
746
712
|
]);
|
|
747
713
|
const metadata = {
|
|
@@ -761,20 +727,7 @@ function getOfflineOrderPreview(payload) {
|
|
|
761
727
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
762
728
|
{
|
|
763
729
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
764
|
-
paths:
|
|
765
|
-
{ path: "order.startDate" },
|
|
766
|
-
{ path: "order.endDate" },
|
|
767
|
-
{ path: "order.earliestEndDate" },
|
|
768
|
-
{ path: "order.createdDate" },
|
|
769
|
-
{ path: "order.updatedDate" },
|
|
770
|
-
{ path: "order.cancellation.requestedDate" },
|
|
771
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
772
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
773
|
-
{ path: "order.currentCycle.startedDate" },
|
|
774
|
-
{ path: "order.currentCycle.endedDate" },
|
|
775
|
-
{ path: "order.cycles.startedDate" },
|
|
776
|
-
{ path: "order.cycles.endedDate" }
|
|
777
|
-
]
|
|
730
|
+
paths: TRANSFORM_PATHS_0
|
|
778
731
|
}
|
|
779
732
|
])
|
|
780
733
|
};
|
|
@@ -822,20 +775,7 @@ function memberGetOrder(payload) {
|
|
|
822
775
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
823
776
|
{
|
|
824
777
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
825
|
-
paths:
|
|
826
|
-
{ path: "order.startDate" },
|
|
827
|
-
{ path: "order.endDate" },
|
|
828
|
-
{ path: "order.earliestEndDate" },
|
|
829
|
-
{ path: "order.createdDate" },
|
|
830
|
-
{ path: "order.updatedDate" },
|
|
831
|
-
{ path: "order.cancellation.requestedDate" },
|
|
832
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
833
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
834
|
-
{ path: "order.currentCycle.startedDate" },
|
|
835
|
-
{ path: "order.currentCycle.endedDate" },
|
|
836
|
-
{ path: "order.cycles.startedDate" },
|
|
837
|
-
{ path: "order.cycles.endedDate" }
|
|
838
|
-
]
|
|
778
|
+
paths: TRANSFORM_PATHS_0
|
|
839
779
|
}
|
|
840
780
|
])
|
|
841
781
|
};
|
|
@@ -848,10 +788,7 @@ function memberListOrders(payload) {
|
|
|
848
788
|
const serializedData = transformPaths(payload, [
|
|
849
789
|
{
|
|
850
790
|
transformFn: transformSDKFloatToRESTFloat,
|
|
851
|
-
paths:
|
|
852
|
-
{ path: "sorting.origin.latitude" },
|
|
853
|
-
{ path: "sorting.origin.longitude" }
|
|
854
|
-
]
|
|
791
|
+
paths: TRANSFORM_PATHS_1
|
|
855
792
|
}
|
|
856
793
|
]);
|
|
857
794
|
const metadata = {
|
|
@@ -871,20 +808,7 @@ function memberListOrders(payload) {
|
|
|
871
808
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
872
809
|
{
|
|
873
810
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
874
|
-
paths:
|
|
875
|
-
{ path: "orders.startDate" },
|
|
876
|
-
{ path: "orders.endDate" },
|
|
877
|
-
{ path: "orders.earliestEndDate" },
|
|
878
|
-
{ path: "orders.createdDate" },
|
|
879
|
-
{ path: "orders.updatedDate" },
|
|
880
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
881
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
882
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
883
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
884
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
885
|
-
{ path: "orders.cycles.startedDate" },
|
|
886
|
-
{ path: "orders.cycles.endedDate" }
|
|
887
|
-
]
|
|
811
|
+
paths: TRANSFORM_PATHS_2
|
|
888
812
|
}
|
|
889
813
|
])
|
|
890
814
|
};
|