@wix/auto_sdk_ecom_current-cart-v-2 1.0.57 → 1.0.59
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.js +34 -16
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +0 -4
- package/build/cjs/index.typings.js +34 -16
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +0 -4
- package/build/cjs/meta.js +34 -16
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +34 -16
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +0 -4
- package/build/es/index.typings.mjs +34 -16
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +0 -4
- package/build/es/meta.mjs +34 -16
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +34 -16
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -4
- package/build/internal/cjs/index.typings.js +34 -16
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +0 -4
- package/build/internal/cjs/meta.js +34 -16
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +34 -16
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -4
- package/build/internal/es/index.typings.mjs +34 -16
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +0 -4
- package/build/internal/es/meta.mjs +34 -16
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -681,6 +681,12 @@ interface ServiceProperties {
|
|
|
681
681
|
* @max 10000
|
|
682
682
|
*/
|
|
683
683
|
numberOfParticipants?: number | null;
|
|
684
|
+
/**
|
|
685
|
+
* Date and time the service is to be ended, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
686
|
+
* For example, the date and time a class will end.
|
|
687
|
+
* @internal
|
|
688
|
+
*/
|
|
689
|
+
endDate?: Date | null;
|
|
684
690
|
}
|
|
685
691
|
interface ItemDeliveryConfig {
|
|
686
692
|
/**
|
|
@@ -3958,6 +3964,12 @@ interface MembershipPaymentCredits {
|
|
|
3958
3964
|
total?: number;
|
|
3959
3965
|
/** Membership's remaining amount of credits. */
|
|
3960
3966
|
remaining?: number;
|
|
3967
|
+
/**
|
|
3968
|
+
* The amount of membership credits required to purchase the items.
|
|
3969
|
+
* @internal
|
|
3970
|
+
* @min 1
|
|
3971
|
+
*/
|
|
3972
|
+
redemptionCost?: number;
|
|
3961
3973
|
}
|
|
3962
3974
|
interface InvalidMembership {
|
|
3963
3975
|
/** Membership details. */
|
|
@@ -4516,10 +4528,6 @@ type UpdateCurrentCartApplicationErrors = {
|
|
|
4516
4528
|
code?: 'CART_ALREADY_ORDERED';
|
|
4517
4529
|
description?: string;
|
|
4518
4530
|
data?: CartAlreadyOrderedErrorData;
|
|
4519
|
-
} | {
|
|
4520
|
-
code?: 'ADDRESS_MISSING_COUNTRY';
|
|
4521
|
-
description?: string;
|
|
4522
|
-
data?: Record<string, any>;
|
|
4523
4531
|
} | {
|
|
4524
4532
|
code?: 'BUSINESS_LOCATION_NOT_FOUND';
|
|
4525
4533
|
description?: string;
|
|
@@ -120,6 +120,7 @@ function createCurrentCart(payload) {
|
|
|
120
120
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
121
121
|
},
|
|
122
122
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
123
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
123
124
|
{
|
|
124
125
|
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
125
126
|
},
|
|
@@ -127,7 +128,8 @@ function createCurrentCart(payload) {
|
|
|
127
128
|
{
|
|
128
129
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
129
130
|
},
|
|
130
|
-
{ path: "customItems.attributes.serviceProperties.scheduledDate" }
|
|
131
|
+
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
132
|
+
{ path: "customItems.attributes.serviceProperties.endDate" }
|
|
131
133
|
]
|
|
132
134
|
},
|
|
133
135
|
{
|
|
@@ -177,7 +179,8 @@ function createCurrentCart(payload) {
|
|
|
177
179
|
},
|
|
178
180
|
{
|
|
179
181
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
180
|
-
}
|
|
182
|
+
},
|
|
183
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
181
184
|
]
|
|
182
185
|
},
|
|
183
186
|
{
|
|
@@ -230,7 +233,8 @@ function getCurrentCart(payload) {
|
|
|
230
233
|
},
|
|
231
234
|
{
|
|
232
235
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
233
|
-
}
|
|
236
|
+
},
|
|
237
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
234
238
|
]
|
|
235
239
|
},
|
|
236
240
|
{
|
|
@@ -271,7 +275,8 @@ function updateCurrentCart(payload) {
|
|
|
271
275
|
{
|
|
272
276
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
273
277
|
},
|
|
274
|
-
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" }
|
|
278
|
+
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
279
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
275
280
|
]
|
|
276
281
|
},
|
|
277
282
|
{
|
|
@@ -317,7 +322,8 @@ function updateCurrentCart(payload) {
|
|
|
317
322
|
},
|
|
318
323
|
{
|
|
319
324
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
320
|
-
}
|
|
325
|
+
},
|
|
326
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
321
327
|
]
|
|
322
328
|
},
|
|
323
329
|
{
|
|
@@ -391,7 +397,8 @@ function refreshCurrentCart(payload) {
|
|
|
391
397
|
},
|
|
392
398
|
{
|
|
393
399
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
394
|
-
}
|
|
400
|
+
},
|
|
401
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
395
402
|
]
|
|
396
403
|
},
|
|
397
404
|
{
|
|
@@ -445,6 +452,7 @@ function calculateCurrentCart(payload) {
|
|
|
445
452
|
{
|
|
446
453
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
447
454
|
},
|
|
455
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
448
456
|
{
|
|
449
457
|
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
450
458
|
}
|
|
@@ -491,7 +499,8 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
491
499
|
{
|
|
492
500
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
493
501
|
},
|
|
494
|
-
{ path: "customItems.attributes.serviceProperties.scheduledDate" }
|
|
502
|
+
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
503
|
+
{ path: "customItems.attributes.serviceProperties.endDate" }
|
|
495
504
|
]
|
|
496
505
|
}
|
|
497
506
|
]);
|
|
@@ -524,7 +533,8 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
524
533
|
},
|
|
525
534
|
{
|
|
526
535
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
527
|
-
}
|
|
536
|
+
},
|
|
537
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
528
538
|
]
|
|
529
539
|
},
|
|
530
540
|
{
|
|
@@ -577,7 +587,8 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
577
587
|
},
|
|
578
588
|
{
|
|
579
589
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
580
|
-
}
|
|
590
|
+
},
|
|
591
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
581
592
|
]
|
|
582
593
|
},
|
|
583
594
|
{
|
|
@@ -630,7 +641,8 @@ function updateLineItemsInCurrentCart(payload) {
|
|
|
630
641
|
},
|
|
631
642
|
{
|
|
632
643
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
633
|
-
}
|
|
644
|
+
},
|
|
645
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
634
646
|
]
|
|
635
647
|
},
|
|
636
648
|
{
|
|
@@ -683,7 +695,8 @@ function addCouponToCurrentCart(payload) {
|
|
|
683
695
|
},
|
|
684
696
|
{
|
|
685
697
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
686
|
-
}
|
|
698
|
+
},
|
|
699
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
687
700
|
]
|
|
688
701
|
},
|
|
689
702
|
{
|
|
@@ -736,7 +749,8 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
736
749
|
},
|
|
737
750
|
{
|
|
738
751
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
739
|
-
}
|
|
752
|
+
},
|
|
753
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
740
754
|
]
|
|
741
755
|
},
|
|
742
756
|
{
|
|
@@ -789,7 +803,8 @@ function setDeliveryMethodForCurrentCart(payload) {
|
|
|
789
803
|
},
|
|
790
804
|
{
|
|
791
805
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
792
|
-
}
|
|
806
|
+
},
|
|
807
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
793
808
|
]
|
|
794
809
|
},
|
|
795
810
|
{
|
|
@@ -842,7 +857,8 @@ function addGiftCardToCurrentCart(payload) {
|
|
|
842
857
|
},
|
|
843
858
|
{
|
|
844
859
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
845
|
-
}
|
|
860
|
+
},
|
|
861
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
846
862
|
]
|
|
847
863
|
},
|
|
848
864
|
{
|
|
@@ -895,7 +911,8 @@ function removeGiftCardFromCurrentCart(payload) {
|
|
|
895
911
|
},
|
|
896
912
|
{
|
|
897
913
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
898
|
-
}
|
|
914
|
+
},
|
|
915
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
899
916
|
]
|
|
900
917
|
},
|
|
901
918
|
{
|
|
@@ -948,7 +965,8 @@ function updateFormSubmissionsInCurrentCart(payload) {
|
|
|
948
965
|
},
|
|
949
966
|
{
|
|
950
967
|
path: "cart.lineItems.attributes.serviceProperties.scheduledDate"
|
|
951
|
-
}
|
|
968
|
+
},
|
|
969
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
952
970
|
]
|
|
953
971
|
},
|
|
954
972
|
{
|