@wix/auto_sdk_ecom_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 -3
- 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 -3
- 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 -3
- 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 -3
- 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
|
@@ -2076,9 +2076,15 @@ interface LineItemAdded {
|
|
|
2076
2076
|
* @minLength 1
|
|
2077
2077
|
* @maxLength 36
|
|
2078
2078
|
*/
|
|
2079
|
-
|
|
2079
|
+
catalogAppId?: string | null;
|
|
2080
2080
|
/** Whether the line item is a custom line item. */
|
|
2081
2081
|
customLineItem?: boolean;
|
|
2082
|
+
/**
|
|
2083
|
+
* ID of the app that added the line item to the cart (from the identity context).
|
|
2084
|
+
* @minLength 1
|
|
2085
|
+
* @maxLength 36
|
|
2086
|
+
*/
|
|
2087
|
+
appDefId?: string | null;
|
|
2082
2088
|
}
|
|
2083
2089
|
interface CouponAdded {
|
|
2084
2090
|
/**
|
|
@@ -2612,6 +2618,11 @@ interface CalculationConfig {
|
|
|
2612
2618
|
* Default: false
|
|
2613
2619
|
*/
|
|
2614
2620
|
calculateGiftCards?: boolean;
|
|
2621
|
+
/**
|
|
2622
|
+
* Whether to calculate order-level discounts.
|
|
2623
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
2624
|
+
*/
|
|
2625
|
+
calculateOrderDiscounts?: boolean;
|
|
2615
2626
|
}
|
|
2616
2627
|
interface CalculateCurrentCartResponse {
|
|
2617
2628
|
/** The Cart that was calculated. */
|
|
@@ -2631,6 +2642,11 @@ interface EstimateCurrentCartRequest {
|
|
|
2631
2642
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
2632
2643
|
*/
|
|
2633
2644
|
validationConfig?: ValidationsConfigWithLiterals;
|
|
2645
|
+
/**
|
|
2646
|
+
* Whether to calculate order-level discounts.
|
|
2647
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
2648
|
+
*/
|
|
2649
|
+
calculateOrderDiscounts?: boolean;
|
|
2634
2650
|
/**
|
|
2635
2651
|
* Whether to calculate delivery costs.
|
|
2636
2652
|
* Default: false
|
|
@@ -3074,7 +3090,6 @@ interface EstimateCartRequest {
|
|
|
3074
3090
|
cartId: string;
|
|
3075
3091
|
/**
|
|
3076
3092
|
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.
|
|
3077
|
-
*
|
|
3078
3093
|
* Default: `false`
|
|
3079
3094
|
*/
|
|
3080
3095
|
refreshCart?: boolean;
|
|
@@ -3083,6 +3098,11 @@ interface EstimateCartRequest {
|
|
|
3083
3098
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
3084
3099
|
*/
|
|
3085
3100
|
validationConfig?: ValidationsConfigWithLiterals;
|
|
3101
|
+
/**
|
|
3102
|
+
* Whether to calculate order-level discounts.
|
|
3103
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
3104
|
+
*/
|
|
3105
|
+
calculateOrderDiscounts?: boolean;
|
|
3086
3106
|
/**
|
|
3087
3107
|
* Whether to calculate delivery costs.
|
|
3088
3108
|
* Default: false
|
|
@@ -5304,7 +5324,6 @@ declare function estimateCart(cartId: string, options?: EstimateCartOptions): Pr
|
|
|
5304
5324
|
interface EstimateCartOptions {
|
|
5305
5325
|
/**
|
|
5306
5326
|
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.
|
|
5307
|
-
*
|
|
5308
5327
|
* Default: `false`
|
|
5309
5328
|
*/
|
|
5310
5329
|
refreshCart?: boolean;
|
|
@@ -5313,6 +5332,11 @@ interface EstimateCartOptions {
|
|
|
5313
5332
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
5314
5333
|
*/
|
|
5315
5334
|
validationConfig?: ValidationsConfigWithLiterals;
|
|
5335
|
+
/**
|
|
5336
|
+
* Whether to calculate order-level discounts.
|
|
5337
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
5338
|
+
*/
|
|
5339
|
+
calculateOrderDiscounts?: boolean;
|
|
5316
5340
|
/**
|
|
5317
5341
|
* Whether to calculate delivery costs.
|
|
5318
5342
|
* Default: false
|
|
@@ -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",
|