@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.
@@ -1573,9 +1573,7 @@ async function refreshCurrentCart2() {
1573
1573
  async function calculateCurrentCart2(options) {
1574
1574
  const { httpClient, sideEffects } = arguments[1];
1575
1575
  const payload = renameKeysFromSDKRequestToRESTRequest({
1576
- refreshCart: options?.refreshCart,
1577
- validationsConfig: options?.validationsConfig,
1578
- customCalculationConfig: options?.customCalculationConfig
1576
+ refreshCart: options?.refreshCart
1579
1577
  });
1580
1578
  const reqOpts = calculateCurrentCart(payload);
1581
1579
  sideEffects?.onSiteCall?.();
@@ -1609,11 +1607,7 @@ async function calculateCurrentCart2(options) {
1609
1607
  err,
1610
1608
  {
1611
1609
  spreadPathsToArguments: {},
1612
- explicitPathsToArguments: {
1613
- refreshCart: "$[0].refreshCart",
1614
- validationsConfig: "$[0].validationsConfig",
1615
- customCalculationConfig: "$[0].customCalculationConfig"
1616
- },
1610
+ explicitPathsToArguments: { refreshCart: "$[0].refreshCart" },
1617
1611
  singleArgumentUnchanged: false
1618
1612
  },
1619
1613
  ["options"]
@@ -1627,6 +1621,7 @@ async function estimateCurrentCart2(options) {
1627
1621
  const payload = renameKeysFromSDKRequestToRESTRequest({
1628
1622
  refreshCart: options?.refreshCart,
1629
1623
  validationConfig: options?.validationConfig,
1624
+ calculateOrderDiscounts: options?.calculateOrderDiscounts,
1630
1625
  calculateDelivery: options?.calculateDelivery,
1631
1626
  calculateAdditionalFees: options?.calculateAdditionalFees,
1632
1627
  calculateTax: options?.calculateTax,
@@ -1667,6 +1662,7 @@ async function estimateCurrentCart2(options) {
1667
1662
  explicitPathsToArguments: {
1668
1663
  refreshCart: "$[0].refreshCart",
1669
1664
  validationConfig: "$[0].validationConfig",
1665
+ calculateOrderDiscounts: "$[0].calculateOrderDiscounts",
1670
1666
  calculateDelivery: "$[0].calculateDelivery",
1671
1667
  calculateAdditionalFees: "$[0].calculateAdditionalFees",
1672
1668
  calculateTax: "$[0].calculateTax",