@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
|
@@ -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
|
|
@@ -5173,7 +5193,6 @@ declare function estimateCart(cartId: string, options?: EstimateCartOptions): Pr
|
|
|
5173
5193
|
interface EstimateCartOptions {
|
|
5174
5194
|
/**
|
|
5175
5195
|
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.
|
|
5176
|
-
*
|
|
5177
5196
|
* Default: `false`
|
|
5178
5197
|
*/
|
|
5179
5198
|
refreshCart?: boolean;
|
|
@@ -5182,6 +5201,11 @@ interface EstimateCartOptions {
|
|
|
5182
5201
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
5183
5202
|
*/
|
|
5184
5203
|
validationConfig?: ValidationsConfigWithLiterals;
|
|
5204
|
+
/**
|
|
5205
|
+
* Whether to calculate order-level discounts.
|
|
5206
|
+
* TODO: Currently i's ignored and always treated as true.
|
|
5207
|
+
*/
|
|
5208
|
+
calculateOrderDiscounts?: boolean;
|
|
5185
5209
|
/**
|
|
5186
5210
|
* Whether to calculate delivery costs.
|
|
5187
5211
|
* Default: false
|
|
@@ -1775,6 +1775,7 @@ async function estimateCart2(cartId, options) {
|
|
|
1775
1775
|
cartId,
|
|
1776
1776
|
refreshCart: options?.refreshCart,
|
|
1777
1777
|
validationConfig: options?.validationConfig,
|
|
1778
|
+
calculateOrderDiscounts: options?.calculateOrderDiscounts,
|
|
1778
1779
|
calculateDelivery: options?.calculateDelivery,
|
|
1779
1780
|
calculateAdditionalFees: options?.calculateAdditionalFees,
|
|
1780
1781
|
calculateTax: options?.calculateTax,
|
|
@@ -1816,6 +1817,7 @@ async function estimateCart2(cartId, options) {
|
|
|
1816
1817
|
cartId: "$[0]",
|
|
1817
1818
|
refreshCart: "$[1].refreshCart",
|
|
1818
1819
|
validationConfig: "$[1].validationConfig",
|
|
1820
|
+
calculateOrderDiscounts: "$[1].calculateOrderDiscounts",
|
|
1819
1821
|
calculateDelivery: "$[1].calculateDelivery",
|
|
1820
1822
|
calculateAdditionalFees: "$[1].calculateAdditionalFees",
|
|
1821
1823
|
calculateTax: "$[1].calculateTax",
|