@wix/auto_sdk_ecom_cart-v-2 1.0.0 → 1.0.2

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +150 -147
  2. package/build/cjs/index.js +83 -90
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +71 -78
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +110 -127
  8. package/build/cjs/meta.js +50 -50
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +150 -147
  11. package/build/es/index.mjs +82 -88
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +70 -76
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +110 -127
  17. package/build/es/meta.mjs +49 -49
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +34 -32
  20. package/build/internal/cjs/index.js +83 -90
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +187 -182
  23. package/build/internal/cjs/index.typings.js +71 -78
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +110 -127
  26. package/build/internal/cjs/meta.js +50 -50
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +34 -32
  29. package/build/internal/es/index.mjs +82 -88
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +187 -182
  32. package/build/internal/es/index.typings.mjs +70 -76
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +110 -127
  35. package/build/internal/es/meta.mjs +49 -49
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -21,7 +21,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  CalculationComponent: () => CalculationComponent,
24
- CartStatus: () => CartStatus,
25
24
  ChannelType: () => ChannelType,
26
25
  DescriptionLineType: () => DescriptionLineType,
27
26
  DiscountScope: () => DiscountScope,
@@ -47,13 +46,13 @@ __export(index_exports, {
47
46
  addGiftCard: () => addGiftCard4,
48
47
  addLineItems: () => addLineItems4,
49
48
  calculateCart: () => calculateCart4,
50
- completeCheckout: () => completeCheckout4,
51
49
  createCart: () => createCart4,
52
50
  deleteCart: () => deleteCart4,
53
51
  getCart: () => getCart4,
54
52
  getCheckoutUrl: () => getCheckoutUrl4,
55
53
  handleAsyncCheckoutCompletion: () => handleAsyncCheckoutCompletion4,
56
54
  markCartAsCompleted: () => markCartAsCompleted4,
55
+ placeOrder: () => placeOrder4,
57
56
  refreshCart: () => refreshCart4,
58
57
  removeDiscount: () => removeDiscount4,
59
58
  removeGiftCard: () => removeGiftCard4,
@@ -529,15 +528,15 @@ function getCheckoutUrl(payload) {
529
528
  }
530
529
  return __getCheckoutUrl;
531
530
  }
532
- function completeCheckout(payload) {
533
- function __completeCheckout({ host }) {
531
+ function placeOrder(payload) {
532
+ function __placeOrder({ host }) {
534
533
  const metadata = {
535
534
  entityFqdn: "wix.ecom.v2.cart",
536
535
  method: "POST",
537
- methodFqn: "wix.ecom.cart.v2.CartService.CompleteCheckout",
536
+ methodFqn: "wix.ecom.cart.v2.CartService.PlaceOrder",
538
537
  packageName: PACKAGE_NAME,
539
538
  url: resolveWixEcomCartV2CartServiceUrl({
540
- protoPath: "/v2/carts/{cartId}/complete-checkout",
539
+ protoPath: "/v2/carts/{cartId}/place-order",
541
540
  data: payload,
542
541
  host
543
542
  }),
@@ -545,7 +544,7 @@ function completeCheckout(payload) {
545
544
  };
546
545
  return metadata;
547
546
  }
548
- return __completeCheckout;
547
+ return __placeOrder;
549
548
  }
550
549
  function addLineItems(payload) {
551
550
  function __addLineItems({ host }) {
@@ -671,15 +670,15 @@ function removeLineItems(payload) {
671
670
  }
672
671
  return __removeLineItems;
673
672
  }
674
- function addDiscount(payload) {
675
- function __addDiscount({ host }) {
673
+ function updateLineItems(payload) {
674
+ function __updateLineItems({ host }) {
676
675
  const metadata = {
677
676
  entityFqdn: "wix.ecom.v2.cart",
678
677
  method: "POST",
679
- methodFqn: "wix.ecom.cart.v2.CartService.AddDiscount",
678
+ methodFqn: "wix.ecom.cart.v2.CartService.UpdateLineItems",
680
679
  packageName: PACKAGE_NAME,
681
680
  url: resolveWixEcomCartV2CartServiceUrl({
682
- protoPath: "/v2/carts/{cartId}/add-discount",
681
+ protoPath: "/v2/carts/{cartId}/update-line-items",
683
682
  data: payload,
684
683
  host
685
684
  }),
@@ -719,17 +718,17 @@ function addDiscount(payload) {
719
718
  };
720
719
  return metadata;
721
720
  }
722
- return __addDiscount;
721
+ return __updateLineItems;
723
722
  }
724
- function removeDiscount(payload) {
725
- function __removeDiscount({ host }) {
723
+ function addDiscount(payload) {
724
+ function __addDiscount({ host }) {
726
725
  const metadata = {
727
726
  entityFqdn: "wix.ecom.v2.cart",
728
727
  method: "POST",
729
- methodFqn: "wix.ecom.cart.v2.CartService.RemoveDiscount",
728
+ methodFqn: "wix.ecom.cart.v2.CartService.AddDiscount",
730
729
  packageName: PACKAGE_NAME,
731
730
  url: resolveWixEcomCartV2CartServiceUrl({
732
- protoPath: "/v2/carts/{cartId}/remove-discount",
731
+ protoPath: "/v2/carts/{cartId}/add-discount",
733
732
  data: payload,
734
733
  host
735
734
  }),
@@ -769,17 +768,17 @@ function removeDiscount(payload) {
769
768
  };
770
769
  return metadata;
771
770
  }
772
- return __removeDiscount;
771
+ return __addDiscount;
773
772
  }
774
- function addGiftCard(payload) {
775
- function __addGiftCard({ host }) {
773
+ function removeDiscount(payload) {
774
+ function __removeDiscount({ host }) {
776
775
  const metadata = {
777
776
  entityFqdn: "wix.ecom.v2.cart",
778
777
  method: "POST",
779
- methodFqn: "wix.ecom.cart.v2.CartService.AddGiftCard",
778
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveDiscount",
780
779
  packageName: PACKAGE_NAME,
781
780
  url: resolveWixEcomCartV2CartServiceUrl({
782
- protoPath: "/v2/carts/{cartId}/add-gift-card",
781
+ protoPath: "/v2/carts/{cartId}/remove-discount",
783
782
  data: payload,
784
783
  host
785
784
  }),
@@ -819,17 +818,17 @@ function addGiftCard(payload) {
819
818
  };
820
819
  return metadata;
821
820
  }
822
- return __addGiftCard;
821
+ return __removeDiscount;
823
822
  }
824
- function removeGiftCard(payload) {
825
- function __removeGiftCard({ host }) {
823
+ function addGiftCard(payload) {
824
+ function __addGiftCard({ host }) {
826
825
  const metadata = {
827
826
  entityFqdn: "wix.ecom.v2.cart",
828
827
  method: "POST",
829
- methodFqn: "wix.ecom.cart.v2.CartService.RemoveGiftCard",
828
+ methodFqn: "wix.ecom.cart.v2.CartService.AddGiftCard",
830
829
  packageName: PACKAGE_NAME,
831
830
  url: resolveWixEcomCartV2CartServiceUrl({
832
- protoPath: "/v2/carts/{cartId}/remove-gift-card",
831
+ protoPath: "/v2/carts/{cartId}/add-gift-card",
833
832
  data: payload,
834
833
  host
835
834
  }),
@@ -869,17 +868,17 @@ function removeGiftCard(payload) {
869
868
  };
870
869
  return metadata;
871
870
  }
872
- return __removeGiftCard;
871
+ return __addGiftCard;
873
872
  }
874
- function updateLineItems(payload) {
875
- function __updateLineItems({ host }) {
873
+ function removeGiftCard(payload) {
874
+ function __removeGiftCard({ host }) {
876
875
  const metadata = {
877
876
  entityFqdn: "wix.ecom.v2.cart",
878
877
  method: "POST",
879
- methodFqn: "wix.ecom.cart.v2.CartService.UpdateLineItems",
878
+ methodFqn: "wix.ecom.cart.v2.CartService.RemoveGiftCard",
880
879
  packageName: PACKAGE_NAME,
881
880
  url: resolveWixEcomCartV2CartServiceUrl({
882
- protoPath: "/v2/carts/{cartId}/update-line-items",
881
+ protoPath: "/v2/carts/{cartId}/remove-gift-card",
883
882
  data: payload,
884
883
  host
885
884
  }),
@@ -919,7 +918,7 @@ function updateLineItems(payload) {
919
918
  };
920
919
  return metadata;
921
920
  }
922
- return __updateLineItems;
921
+ return __removeGiftCard;
923
922
  }
924
923
  function markCartAsCompleted(payload) {
925
924
  function __markCartAsCompleted({ host }) {
@@ -1053,10 +1052,10 @@ var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
1053
1052
  })(TaxableAddressType || {});
1054
1053
  var ItemStatus = /* @__PURE__ */ ((ItemStatus2) => {
1055
1054
  ItemStatus2["UNKNOWN_ITEM_STATUS"] = "UNKNOWN_ITEM_STATUS";
1056
- ItemStatus2["AVAILABLE"] = "AVAILABLE";
1057
- ItemStatus2["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
1055
+ ItemStatus2["IN_STOCK"] = "IN_STOCK";
1056
+ ItemStatus2["PARTIALLY_IN_STOCK"] = "PARTIALLY_IN_STOCK";
1058
1057
  ItemStatus2["OUT_OF_STOCK"] = "OUT_OF_STOCK";
1059
- ItemStatus2["NOT_EXISTS"] = "NOT_EXISTS";
1058
+ ItemStatus2["REMOVED_FROM_CATALOG"] = "REMOVED_FROM_CATALOG";
1060
1059
  return ItemStatus2;
1061
1060
  })(ItemStatus || {});
1062
1061
  var DiscountSourceType = /* @__PURE__ */ ((DiscountSourceType2) => {
@@ -1100,23 +1099,18 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
1100
1099
  ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
1101
1100
  return ChannelType2;
1102
1101
  })(ChannelType || {});
1103
- var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
1104
- WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
1105
- WeightUnit2["KG"] = "KG";
1106
- WeightUnit2["LB"] = "LB";
1107
- return WeightUnit2;
1108
- })(WeightUnit || {});
1109
1102
  var VatType = /* @__PURE__ */ ((VatType2) => {
1110
1103
  VatType2["UNSPECIFIED"] = "UNSPECIFIED";
1111
1104
  VatType2["CPF"] = "CPF";
1112
1105
  VatType2["CNPJ"] = "CNPJ";
1113
1106
  return VatType2;
1114
1107
  })(VatType || {});
1115
- var CartStatus = /* @__PURE__ */ ((CartStatus2) => {
1116
- CartStatus2["CREATED"] = "CREATED";
1117
- CartStatus2["CHECKOUT_COMPLETED"] = "CHECKOUT_COMPLETED";
1118
- return CartStatus2;
1119
- })(CartStatus || {});
1108
+ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
1109
+ WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
1110
+ WeightUnit2["KG"] = "KG";
1111
+ WeightUnit2["LB"] = "LB";
1112
+ return WeightUnit2;
1113
+ })(WeightUnit || {});
1120
1114
  var CalculationComponent = /* @__PURE__ */ ((CalculationComponent2) => {
1121
1115
  CalculationComponent2["UNKNOWN_CALCULATION_COMPONENT"] = "UNKNOWN_CALCULATION_COMPONENT";
1122
1116
  CalculationComponent2["DISCOUNTS"] = "DISCOUNTS";
@@ -1527,7 +1521,7 @@ async function getCheckoutUrl2(cartId, options) {
1527
1521
  throw transformedError;
1528
1522
  }
1529
1523
  }
1530
- async function completeCheckout2(cartId, options) {
1524
+ async function placeOrder2(cartId, options) {
1531
1525
  const { httpClient, sideEffects } = arguments[2];
1532
1526
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1533
1527
  cartId,
@@ -1536,7 +1530,7 @@ async function completeCheckout2(cartId, options) {
1536
1530
  savePaymentMethod: options?.savePaymentMethod,
1537
1531
  delayCapture: options?.delayCapture
1538
1532
  });
1539
- const reqOpts = completeCheckout(payload);
1533
+ const reqOpts = placeOrder(payload);
1540
1534
  sideEffects?.onSiteCall?.();
1541
1535
  try {
1542
1536
  const result = await httpClient.request(reqOpts);
@@ -1676,13 +1670,13 @@ async function removeLineItems2(cartId, lineItemIds) {
1676
1670
  throw transformedError;
1677
1671
  }
1678
1672
  }
1679
- async function addDiscount2(cartId, couponCode) {
1673
+ async function updateLineItems2(cartId, options) {
1680
1674
  const { httpClient, sideEffects } = arguments[2];
1681
1675
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1682
1676
  cartId,
1683
- couponCode
1677
+ lineItems: options?.lineItems
1684
1678
  });
1685
- const reqOpts = addDiscount(payload);
1679
+ const reqOpts = updateLineItems(payload);
1686
1680
  sideEffects?.onSiteCall?.();
1687
1681
  try {
1688
1682
  const result = await httpClient.request(reqOpts);
@@ -1714,22 +1708,25 @@ async function addDiscount2(cartId, couponCode) {
1714
1708
  err,
1715
1709
  {
1716
1710
  spreadPathsToArguments: {},
1717
- explicitPathsToArguments: { cartId: "$[0]", couponCode: "$[1]" },
1711
+ explicitPathsToArguments: {
1712
+ cartId: "$[0]",
1713
+ lineItems: "$[1].lineItems"
1714
+ },
1718
1715
  singleArgumentUnchanged: false
1719
1716
  },
1720
- ["cartId", "couponCode"]
1717
+ ["cartId", "options"]
1721
1718
  );
1722
1719
  sideEffects?.onError?.(err);
1723
1720
  throw transformedError;
1724
1721
  }
1725
1722
  }
1726
- async function removeDiscount2(cartId, discountId) {
1723
+ async function addDiscount2(cartId, couponCode) {
1727
1724
  const { httpClient, sideEffects } = arguments[2];
1728
1725
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1729
1726
  cartId,
1730
- discountId
1727
+ couponCode
1731
1728
  });
1732
- const reqOpts = removeDiscount(payload);
1729
+ const reqOpts = addDiscount(payload);
1733
1730
  sideEffects?.onSiteCall?.();
1734
1731
  try {
1735
1732
  const result = await httpClient.request(reqOpts);
@@ -1761,22 +1758,22 @@ async function removeDiscount2(cartId, discountId) {
1761
1758
  err,
1762
1759
  {
1763
1760
  spreadPathsToArguments: {},
1764
- explicitPathsToArguments: { cartId: "$[0]", discountId: "$[1]" },
1761
+ explicitPathsToArguments: { cartId: "$[0]", couponCode: "$[1]" },
1765
1762
  singleArgumentUnchanged: false
1766
1763
  },
1767
- ["cartId", "discountId"]
1764
+ ["cartId", "couponCode"]
1768
1765
  );
1769
1766
  sideEffects?.onError?.(err);
1770
1767
  throw transformedError;
1771
1768
  }
1772
1769
  }
1773
- async function addGiftCard2(cartId, giftCardCode) {
1770
+ async function removeDiscount2(cartId, discountId) {
1774
1771
  const { httpClient, sideEffects } = arguments[2];
1775
1772
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1776
1773
  cartId,
1777
- giftCardCode
1774
+ discountId
1778
1775
  });
1779
- const reqOpts = addGiftCard(payload);
1776
+ const reqOpts = removeDiscount(payload);
1780
1777
  sideEffects?.onSiteCall?.();
1781
1778
  try {
1782
1779
  const result = await httpClient.request(reqOpts);
@@ -1808,22 +1805,22 @@ async function addGiftCard2(cartId, giftCardCode) {
1808
1805
  err,
1809
1806
  {
1810
1807
  spreadPathsToArguments: {},
1811
- explicitPathsToArguments: { cartId: "$[0]", giftCardCode: "$[1]" },
1808
+ explicitPathsToArguments: { cartId: "$[0]", discountId: "$[1]" },
1812
1809
  singleArgumentUnchanged: false
1813
1810
  },
1814
- ["cartId", "giftCardCode"]
1811
+ ["cartId", "discountId"]
1815
1812
  );
1816
1813
  sideEffects?.onError?.(err);
1817
1814
  throw transformedError;
1818
1815
  }
1819
1816
  }
1820
- async function removeGiftCard2(cartId, giftCardId) {
1817
+ async function addGiftCard2(cartId, giftCardCode) {
1821
1818
  const { httpClient, sideEffects } = arguments[2];
1822
1819
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1823
1820
  cartId,
1824
- giftCardId
1821
+ giftCardCode
1825
1822
  });
1826
- const reqOpts = removeGiftCard(payload);
1823
+ const reqOpts = addGiftCard(payload);
1827
1824
  sideEffects?.onSiteCall?.();
1828
1825
  try {
1829
1826
  const result = await httpClient.request(reqOpts);
@@ -1855,22 +1852,22 @@ async function removeGiftCard2(cartId, giftCardId) {
1855
1852
  err,
1856
1853
  {
1857
1854
  spreadPathsToArguments: {},
1858
- explicitPathsToArguments: { cartId: "$[0]", giftCardId: "$[1]" },
1855
+ explicitPathsToArguments: { cartId: "$[0]", giftCardCode: "$[1]" },
1859
1856
  singleArgumentUnchanged: false
1860
1857
  },
1861
- ["cartId", "giftCardId"]
1858
+ ["cartId", "giftCardCode"]
1862
1859
  );
1863
1860
  sideEffects?.onError?.(err);
1864
1861
  throw transformedError;
1865
1862
  }
1866
1863
  }
1867
- async function updateLineItems2(cartId, options) {
1864
+ async function removeGiftCard2(cartId, giftCardId) {
1868
1865
  const { httpClient, sideEffects } = arguments[2];
1869
1866
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1870
1867
  cartId,
1871
- lineItemUpdates: options?.lineItemUpdates
1868
+ giftCardId
1872
1869
  });
1873
- const reqOpts = updateLineItems(payload);
1870
+ const reqOpts = removeGiftCard(payload);
1874
1871
  sideEffects?.onSiteCall?.();
1875
1872
  try {
1876
1873
  const result = await httpClient.request(reqOpts);
@@ -1902,13 +1899,10 @@ async function updateLineItems2(cartId, options) {
1902
1899
  err,
1903
1900
  {
1904
1901
  spreadPathsToArguments: {},
1905
- explicitPathsToArguments: {
1906
- cartId: "$[0]",
1907
- lineItemUpdates: "$[1].lineItemUpdates"
1908
- },
1902
+ explicitPathsToArguments: { cartId: "$[0]", giftCardId: "$[1]" },
1909
1903
  singleArgumentUnchanged: false
1910
1904
  },
1911
- ["cartId", "options"]
1905
+ ["cartId", "giftCardId"]
1912
1906
  );
1913
1907
  sideEffects?.onError?.(err);
1914
1908
  throw transformedError;
@@ -2038,8 +2032,8 @@ function getCheckoutUrl3(httpClient) {
2038
2032
  { httpClient }
2039
2033
  );
2040
2034
  }
2041
- function completeCheckout3(httpClient) {
2042
- return (cartId, options) => completeCheckout2(
2035
+ function placeOrder3(httpClient) {
2036
+ return (cartId, options) => placeOrder2(
2043
2037
  cartId,
2044
2038
  options,
2045
2039
  // @ts-ignore
@@ -2062,6 +2056,14 @@ function removeLineItems3(httpClient) {
2062
2056
  { httpClient }
2063
2057
  );
2064
2058
  }
2059
+ function updateLineItems3(httpClient) {
2060
+ return (cartId, options) => updateLineItems2(
2061
+ cartId,
2062
+ options,
2063
+ // @ts-ignore
2064
+ { httpClient }
2065
+ );
2066
+ }
2065
2067
  function addDiscount3(httpClient) {
2066
2068
  return (cartId, couponCode) => addDiscount2(
2067
2069
  cartId,
@@ -2094,14 +2096,6 @@ function removeGiftCard3(httpClient) {
2094
2096
  { httpClient }
2095
2097
  );
2096
2098
  }
2097
- function updateLineItems3(httpClient) {
2098
- return (cartId, options) => updateLineItems2(
2099
- cartId,
2100
- options,
2101
- // @ts-ignore
2102
- { httpClient }
2103
- );
2104
- }
2105
2099
  function markCartAsCompleted3(httpClient) {
2106
2100
  return (cartId, options) => markCartAsCompleted2(
2107
2101
  cartId,
@@ -2127,20 +2121,19 @@ var deleteCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(del
2127
2121
  var refreshCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(refreshCart3);
2128
2122
  var calculateCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(calculateCart3);
2129
2123
  var getCheckoutUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCheckoutUrl3);
2130
- var completeCheckout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(completeCheckout3);
2124
+ var placeOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(placeOrder3);
2131
2125
  var addLineItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addLineItems3);
2132
2126
  var removeLineItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeLineItems3);
2127
+ var updateLineItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateLineItems3);
2133
2128
  var addDiscount4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addDiscount3);
2134
2129
  var removeDiscount4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeDiscount3);
2135
2130
  var addGiftCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addGiftCard3);
2136
2131
  var removeGiftCard4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeGiftCard3);
2137
- var updateLineItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateLineItems3);
2138
2132
  var markCartAsCompleted4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markCartAsCompleted3);
2139
2133
  var handleAsyncCheckoutCompletion4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(handleAsyncCheckoutCompletion3);
2140
2134
  // Annotate the CommonJS export names for ESM import in node:
2141
2135
  0 && (module.exports = {
2142
2136
  CalculationComponent,
2143
- CartStatus,
2144
2137
  ChannelType,
2145
2138
  DescriptionLineType,
2146
2139
  DiscountScope,
@@ -2166,13 +2159,13 @@ var handleAsyncCheckoutCompletion4 = /* @__PURE__ */ (0, import_rest_modules3.cr
2166
2159
  addGiftCard,
2167
2160
  addLineItems,
2168
2161
  calculateCart,
2169
- completeCheckout,
2170
2162
  createCart,
2171
2163
  deleteCart,
2172
2164
  getCart,
2173
2165
  getCheckoutUrl,
2174
2166
  handleAsyncCheckoutCompletion,
2175
2167
  markCartAsCompleted,
2168
+ placeOrder,
2176
2169
  refreshCart,
2177
2170
  removeDiscount,
2178
2171
  removeGiftCard,