@wix/auto_sdk_ecom_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.
- package/build/cjs/index.js +4 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +61 -67
- package/build/cjs/index.typings.js +4 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +56 -56
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +4 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +61 -67
- package/build/es/index.typings.mjs +4 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +56 -56
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +4 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +61 -67
- package/build/internal/cjs/index.typings.js +4 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +56 -56
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +4 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +61 -67
- package/build/internal/es/index.typings.mjs +4 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +56 -56
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -1700,6 +1700,7 @@ async function estimateCart2(cartId, options) {
|
|
|
1700
1700
|
cartId,
|
|
1701
1701
|
refreshCart: options?.refreshCart,
|
|
1702
1702
|
validationConfig: options?.validationConfig,
|
|
1703
|
+
calculateOrderDiscounts: options?.calculateOrderDiscounts,
|
|
1703
1704
|
calculateDelivery: options?.calculateDelivery,
|
|
1704
1705
|
calculateAdditionalFees: options?.calculateAdditionalFees,
|
|
1705
1706
|
calculateTax: options?.calculateTax,
|
|
@@ -1741,6 +1742,7 @@ async function estimateCart2(cartId, options) {
|
|
|
1741
1742
|
cartId: "$[0]",
|
|
1742
1743
|
refreshCart: "$[1].refreshCart",
|
|
1743
1744
|
validationConfig: "$[1].validationConfig",
|
|
1745
|
+
calculateOrderDiscounts: "$[1].calculateOrderDiscounts",
|
|
1744
1746
|
calculateDelivery: "$[1].calculateDelivery",
|
|
1745
1747
|
calculateAdditionalFees: "$[1].calculateAdditionalFees",
|
|
1746
1748
|
calculateTax: "$[1].calculateTax",
|
|
@@ -1758,9 +1760,7 @@ async function calculateCart2(cartId, options) {
|
|
|
1758
1760
|
const { httpClient, sideEffects } = arguments[2];
|
|
1759
1761
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1760
1762
|
cartId,
|
|
1761
|
-
refreshCart: options?.refreshCart
|
|
1762
|
-
validationsConfig: options?.validationsConfig,
|
|
1763
|
-
customCalculationConfig: options?.customCalculationConfig
|
|
1763
|
+
refreshCart: options?.refreshCart
|
|
1764
1764
|
});
|
|
1765
1765
|
const reqOpts = calculateCart(payload);
|
|
1766
1766
|
sideEffects?.onSiteCall?.();
|
|
@@ -1796,9 +1796,7 @@ async function calculateCart2(cartId, options) {
|
|
|
1796
1796
|
spreadPathsToArguments: {},
|
|
1797
1797
|
explicitPathsToArguments: {
|
|
1798
1798
|
cartId: "$[0]",
|
|
1799
|
-
refreshCart: "$[1].refreshCart"
|
|
1800
|
-
validationsConfig: "$[1].validationsConfig",
|
|
1801
|
-
customCalculationConfig: "$[1].customCalculationConfig"
|
|
1799
|
+
refreshCart: "$[1].refreshCart"
|
|
1802
1800
|
},
|
|
1803
1801
|
singleArgumentUnchanged: false
|
|
1804
1802
|
},
|