@wix/auto_sdk_ecom_current-cart-v-2 1.0.66 → 1.0.67
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 +2 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +27 -2
- package/build/cjs/index.typings.js +2 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +22 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +2 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +27 -2
- package/build/es/index.typings.mjs +2 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +22 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +2 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -2
- package/build/internal/cjs/index.typings.js +2 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +22 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +2 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +27 -2
- package/build/internal/es/index.typings.mjs +2 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +22 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2037,9 +2037,15 @@ interface LineItemAdded {
|
|
|
2037
2037
|
* @minLength 1
|
|
2038
2038
|
* @maxLength 36
|
|
2039
2039
|
*/
|
|
2040
|
-
|
|
2040
|
+
catalogAppId?: string | null;
|
|
2041
2041
|
/** Whether the line item is a custom line item. */
|
|
2042
2042
|
customLineItem?: boolean;
|
|
2043
|
+
/**
|
|
2044
|
+
* ID of the app that added the line item to the cart (from the identity context).
|
|
2045
|
+
* @minLength 1
|
|
2046
|
+
* @maxLength 36
|
|
2047
|
+
*/
|
|
2048
|
+
appDefId?: string | null;
|
|
2043
2049
|
}
|
|
2044
2050
|
interface CouponAdded {
|
|
2045
2051
|
/**
|
|
@@ -2573,6 +2579,11 @@ interface CalculationConfig {
|
|
|
2573
2579
|
* Default: false
|
|
2574
2580
|
*/
|
|
2575
2581
|
calculateGiftCards?: boolean;
|
|
2582
|
+
/**
|
|
2583
|
+
* Whether to calculate order-level discounts.
|
|
2584
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
2585
|
+
*/
|
|
2586
|
+
calculateOrderDiscounts?: boolean;
|
|
2576
2587
|
}
|
|
2577
2588
|
interface CalculateCurrentCartResponse {
|
|
2578
2589
|
/** The Cart that was calculated. */
|
|
@@ -2592,6 +2603,11 @@ interface EstimateCurrentCartRequest {
|
|
|
2592
2603
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
2593
2604
|
*/
|
|
2594
2605
|
validationConfig?: ValidationsConfigWithLiterals;
|
|
2606
|
+
/**
|
|
2607
|
+
* Whether to calculate order-level discounts.
|
|
2608
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
2609
|
+
*/
|
|
2610
|
+
calculateOrderDiscounts?: boolean;
|
|
2595
2611
|
/**
|
|
2596
2612
|
* Whether to calculate delivery costs.
|
|
2597
2613
|
* Default: false
|
|
@@ -3035,7 +3051,6 @@ interface EstimateCartRequest {
|
|
|
3035
3051
|
cartId?: string;
|
|
3036
3052
|
/**
|
|
3037
3053
|
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.
|
|
3038
|
-
*
|
|
3039
3054
|
* Default: `false`
|
|
3040
3055
|
*/
|
|
3041
3056
|
refreshCart?: boolean;
|
|
@@ -3044,6 +3059,11 @@ interface EstimateCartRequest {
|
|
|
3044
3059
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
3045
3060
|
*/
|
|
3046
3061
|
validationConfig?: ValidationsConfigWithLiterals;
|
|
3062
|
+
/**
|
|
3063
|
+
* Whether to calculate order-level discounts.
|
|
3064
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
3065
|
+
*/
|
|
3066
|
+
calculateOrderDiscounts?: boolean;
|
|
3047
3067
|
/**
|
|
3048
3068
|
* Whether to calculate delivery costs.
|
|
3049
3069
|
* Default: false
|
|
@@ -4999,6 +5019,11 @@ interface EstimateCurrentCartOptions {
|
|
|
4999
5019
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
5000
5020
|
*/
|
|
5001
5021
|
validationConfig?: ValidationsConfigWithLiterals;
|
|
5022
|
+
/**
|
|
5023
|
+
* Whether to calculate order-level discounts.
|
|
5024
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
5025
|
+
*/
|
|
5026
|
+
calculateOrderDiscounts?: boolean;
|
|
5002
5027
|
/**
|
|
5003
5028
|
* Whether to calculate delivery costs.
|
|
5004
5029
|
* Default: false
|
|
@@ -1627,6 +1627,7 @@ async function estimateCurrentCart2(options) {
|
|
|
1627
1627
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1628
1628
|
refreshCart: options?.refreshCart,
|
|
1629
1629
|
validationConfig: options?.validationConfig,
|
|
1630
|
+
calculateOrderDiscounts: options?.calculateOrderDiscounts,
|
|
1630
1631
|
calculateDelivery: options?.calculateDelivery,
|
|
1631
1632
|
calculateAdditionalFees: options?.calculateAdditionalFees,
|
|
1632
1633
|
calculateTax: options?.calculateTax,
|
|
@@ -1667,6 +1668,7 @@ async function estimateCurrentCart2(options) {
|
|
|
1667
1668
|
explicitPathsToArguments: {
|
|
1668
1669
|
refreshCart: "$[0].refreshCart",
|
|
1669
1670
|
validationConfig: "$[0].validationConfig",
|
|
1671
|
+
calculateOrderDiscounts: "$[0].calculateOrderDiscounts",
|
|
1670
1672
|
calculateDelivery: "$[0].calculateDelivery",
|
|
1671
1673
|
calculateAdditionalFees: "$[0].calculateAdditionalFees",
|
|
1672
1674
|
calculateTax: "$[0].calculateTax",
|