@wix/auto_sdk_ecom_current-cart-v-2 1.0.66 → 1.0.68

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.
@@ -1644,9 +1644,7 @@ async function refreshCurrentCart2() {
1644
1644
  async function calculateCurrentCart2(options) {
1645
1645
  const { httpClient, sideEffects } = arguments[1];
1646
1646
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1647
- refreshCart: options?.refreshCart,
1648
- validationsConfig: options?.validationsConfig,
1649
- customCalculationConfig: options?.customCalculationConfig
1647
+ refreshCart: options?.refreshCart
1650
1648
  });
1651
1649
  const reqOpts = calculateCurrentCart(payload);
1652
1650
  sideEffects?.onSiteCall?.();
@@ -1680,11 +1678,7 @@ async function calculateCurrentCart2(options) {
1680
1678
  err,
1681
1679
  {
1682
1680
  spreadPathsToArguments: {},
1683
- explicitPathsToArguments: {
1684
- refreshCart: "$[0].refreshCart",
1685
- validationsConfig: "$[0].validationsConfig",
1686
- customCalculationConfig: "$[0].customCalculationConfig"
1687
- },
1681
+ explicitPathsToArguments: { refreshCart: "$[0].refreshCart" },
1688
1682
  singleArgumentUnchanged: false
1689
1683
  },
1690
1684
  ["options"]
@@ -1698,6 +1692,7 @@ async function estimateCurrentCart2(options) {
1698
1692
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1699
1693
  refreshCart: options?.refreshCart,
1700
1694
  validationConfig: options?.validationConfig,
1695
+ calculateOrderDiscounts: options?.calculateOrderDiscounts,
1701
1696
  calculateDelivery: options?.calculateDelivery,
1702
1697
  calculateAdditionalFees: options?.calculateAdditionalFees,
1703
1698
  calculateTax: options?.calculateTax,
@@ -1738,6 +1733,7 @@ async function estimateCurrentCart2(options) {
1738
1733
  explicitPathsToArguments: {
1739
1734
  refreshCart: "$[0].refreshCart",
1740
1735
  validationConfig: "$[0].validationConfig",
1736
+ calculateOrderDiscounts: "$[0].calculateOrderDiscounts",
1741
1737
  calculateDelivery: "$[0].calculateDelivery",
1742
1738
  calculateAdditionalFees: "$[0].calculateAdditionalFees",
1743
1739
  calculateTax: "$[0].calculateTax",