@wix/auto_sdk_ecom_cart 1.0.80 → 1.0.82
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 +36 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -0
- package/build/cjs/index.typings.js +36 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -0
- package/build/cjs/meta.js +36 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +36 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -0
- package/build/es/index.typings.mjs +36 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -0
- package/build/es/meta.mjs +36 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +36 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -2
- package/build/internal/cjs/index.typings.js +36 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +17 -0
- package/build/internal/cjs/meta.js +36 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +36 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +1 -2
- package/build/internal/es/index.typings.mjs +36 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +17 -0
- package/build/internal/es/meta.mjs +36 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -275,8 +275,7 @@ interface LineItem {
|
|
|
275
275
|
/**
|
|
276
276
|
* Custom extended fields for the line item object.
|
|
277
277
|
*
|
|
278
|
-
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
279
|
-
* @internal
|
|
278
|
+
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.
|
|
280
279
|
*/
|
|
281
280
|
extendedFields?: ExtendedFields;
|
|
282
281
|
/**
|
|
@@ -231,6 +231,9 @@ function createCart(payload) {
|
|
|
231
231
|
method: "POST",
|
|
232
232
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCart",
|
|
233
233
|
packageName: PACKAGE_NAME,
|
|
234
|
+
migrationOptions: {
|
|
235
|
+
optInTransformResponse: true
|
|
236
|
+
},
|
|
234
237
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
235
238
|
protoPath: "/v1/carts",
|
|
236
239
|
data: serializedData,
|
|
@@ -321,6 +324,9 @@ function updateCart(payload) {
|
|
|
321
324
|
method: "PATCH",
|
|
322
325
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateCart",
|
|
323
326
|
packageName: PACKAGE_NAME,
|
|
327
|
+
migrationOptions: {
|
|
328
|
+
optInTransformResponse: true
|
|
329
|
+
},
|
|
324
330
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
325
331
|
protoPath: "/v1/carts/{cartInfo.id}",
|
|
326
332
|
data: serializedData,
|
|
@@ -366,6 +372,9 @@ function getCart(payload) {
|
|
|
366
372
|
method: "GET",
|
|
367
373
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCart",
|
|
368
374
|
packageName: PACKAGE_NAME,
|
|
375
|
+
migrationOptions: {
|
|
376
|
+
optInTransformResponse: true
|
|
377
|
+
},
|
|
369
378
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
370
379
|
protoPath: "/v1/carts/{id}",
|
|
371
380
|
data: payload,
|
|
@@ -411,6 +420,9 @@ function getCartByCheckoutId(payload) {
|
|
|
411
420
|
method: "GET",
|
|
412
421
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.GetCartByCheckoutId",
|
|
413
422
|
packageName: PACKAGE_NAME,
|
|
423
|
+
migrationOptions: {
|
|
424
|
+
optInTransformResponse: true
|
|
425
|
+
},
|
|
414
426
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
415
427
|
protoPath: "/v1/carts/by-checkout-id/{id}",
|
|
416
428
|
data: payload,
|
|
@@ -482,6 +494,9 @@ function addToCart(payload) {
|
|
|
482
494
|
method: "POST",
|
|
483
495
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.AddToCart",
|
|
484
496
|
packageName: PACKAGE_NAME,
|
|
497
|
+
migrationOptions: {
|
|
498
|
+
optInTransformResponse: true
|
|
499
|
+
},
|
|
485
500
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
486
501
|
protoPath: "/v1/carts/{id}/add-to-cart",
|
|
487
502
|
data: serializedData,
|
|
@@ -527,6 +542,9 @@ function removeLineItems(payload) {
|
|
|
527
542
|
method: "POST",
|
|
528
543
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveLineItems",
|
|
529
544
|
packageName: PACKAGE_NAME,
|
|
545
|
+
migrationOptions: {
|
|
546
|
+
optInTransformResponse: true
|
|
547
|
+
},
|
|
530
548
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
531
549
|
protoPath: "/v1/carts/{id}/remove-line-items",
|
|
532
550
|
data: payload,
|
|
@@ -583,6 +601,9 @@ function createCheckout(payload) {
|
|
|
583
601
|
method: "POST",
|
|
584
602
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.CreateCheckout",
|
|
585
603
|
packageName: PACKAGE_NAME,
|
|
604
|
+
migrationOptions: {
|
|
605
|
+
optInTransformResponse: true
|
|
606
|
+
},
|
|
586
607
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
587
608
|
protoPath: "/v1/carts/{id}/create-checkout",
|
|
588
609
|
data: serializedData,
|
|
@@ -601,6 +622,9 @@ function removeCoupon(payload) {
|
|
|
601
622
|
method: "POST",
|
|
602
623
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveCoupon",
|
|
603
624
|
packageName: PACKAGE_NAME,
|
|
625
|
+
migrationOptions: {
|
|
626
|
+
optInTransformResponse: true
|
|
627
|
+
},
|
|
604
628
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
605
629
|
protoPath: "/v1/carts/{id}/remove-coupon",
|
|
606
630
|
data: payload,
|
|
@@ -646,6 +670,9 @@ function updateLineItemsQuantity(payload) {
|
|
|
646
670
|
method: "POST",
|
|
647
671
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.UpdateLineItemsQuantity",
|
|
648
672
|
packageName: PACKAGE_NAME,
|
|
673
|
+
migrationOptions: {
|
|
674
|
+
optInTransformResponse: true
|
|
675
|
+
},
|
|
649
676
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
650
677
|
protoPath: "/v1/carts/{id}/update-line-items-quantity",
|
|
651
678
|
data: payload,
|
|
@@ -702,6 +729,9 @@ function estimateTotals(payload) {
|
|
|
702
729
|
method: "POST",
|
|
703
730
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.EstimateTotals",
|
|
704
731
|
packageName: PACKAGE_NAME,
|
|
732
|
+
migrationOptions: {
|
|
733
|
+
optInTransformResponse: true
|
|
734
|
+
},
|
|
705
735
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
706
736
|
protoPath: "/v1/carts/{id}/estimate-totals",
|
|
707
737
|
data: serializedData,
|
|
@@ -776,6 +806,9 @@ function deleteCart(payload) {
|
|
|
776
806
|
method: "DELETE",
|
|
777
807
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.DeleteCart",
|
|
778
808
|
packageName: PACKAGE_NAME,
|
|
809
|
+
migrationOptions: {
|
|
810
|
+
optInTransformResponse: true
|
|
811
|
+
},
|
|
779
812
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
780
813
|
protoPath: "/v1/carts/{id}",
|
|
781
814
|
data: payload,
|
|
@@ -794,6 +827,9 @@ function removeBusinessLocation(payload) {
|
|
|
794
827
|
method: "POST",
|
|
795
828
|
methodFqn: "com.wix.ecom.cart.api.v1.CartService.RemoveBusinessLocation",
|
|
796
829
|
packageName: PACKAGE_NAME,
|
|
830
|
+
migrationOptions: {
|
|
831
|
+
optInTransformResponse: true
|
|
832
|
+
},
|
|
797
833
|
url: resolveComWixEcomCartApiV1CartServiceUrl({
|
|
798
834
|
protoPath: "/v1/carts/{id}/remove-business-location",
|
|
799
835
|
data: payload,
|