@wix/auto_sdk_ecom_cart-v-2 1.0.65 → 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.
@@ -2083,9 +2083,15 @@ interface LineItemAdded {
2083
2083
  * @minLength 1
2084
2084
  * @maxLength 36
2085
2085
  */
2086
- appId?: string | null;
2086
+ catalogAppId?: string | null;
2087
2087
  /** Whether the line item is a custom line item. */
2088
2088
  customLineItem?: boolean;
2089
+ /**
2090
+ * ID of the app that added the line item to the cart (from the identity context).
2091
+ * @minLength 1
2092
+ * @maxLength 36
2093
+ */
2094
+ appDefId?: string | null;
2089
2095
  }
2090
2096
  interface CouponAdded {
2091
2097
  /**
@@ -2619,6 +2625,11 @@ interface CalculationConfig {
2619
2625
  * Default: false
2620
2626
  */
2621
2627
  calculateGiftCards?: boolean;
2628
+ /**
2629
+ * Whether to calculate order-level discounts.
2630
+ * TODO: Currently i's ignored and always treated as true.
2631
+ */
2632
+ calculateOrderDiscounts?: boolean;
2622
2633
  }
2623
2634
  interface CalculateCurrentCartResponse {
2624
2635
  /** The Cart that was calculated. */
@@ -2638,6 +2649,11 @@ interface EstimateCurrentCartRequest {
2638
2649
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
2639
2650
  */
2640
2651
  validationConfig?: ValidationsConfigWithLiterals;
2652
+ /**
2653
+ * Whether to calculate order-level discounts.
2654
+ * TODO: Currently i's ignored and always treated as true.
2655
+ */
2656
+ calculateOrderDiscounts?: boolean;
2641
2657
  /**
2642
2658
  * Whether to calculate delivery costs.
2643
2659
  * Default: false
@@ -3083,7 +3099,6 @@ interface EstimateCartRequest {
3083
3099
  cartId: string;
3084
3100
  /**
3085
3101
  * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.
3086
- *
3087
3102
  * Default: `false`
3088
3103
  */
3089
3104
  refreshCart?: boolean;
@@ -3092,6 +3107,11 @@ interface EstimateCartRequest {
3092
3107
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
3093
3108
  */
3094
3109
  validationConfig?: ValidationsConfigWithLiterals;
3110
+ /**
3111
+ * Whether to calculate order-level discounts.
3112
+ * TODO: Currently i's ignored and always treated as true.
3113
+ */
3114
+ calculateOrderDiscounts?: boolean;
3095
3115
  /**
3096
3116
  * Whether to calculate delivery costs.
3097
3117
  * Default: false
@@ -3948,6 +3968,15 @@ interface DiscountRuleName {
3948
3968
  */
3949
3969
  translated?: string | null;
3950
3970
  }
3971
+ interface LineItemDiscount {
3972
+ /**
3973
+ * ID of line item the discount applies to.
3974
+ * @format GUID
3975
+ */
3976
+ id?: string;
3977
+ /** Discount value. */
3978
+ totalDiscountAmount?: MultiCurrencyPrice;
3979
+ }
3951
3980
  interface ItemCombination {
3952
3981
  /**
3953
3982
  * The number of times this exact combination of items (with the specified quantities) was applied together in the order.
@@ -3977,15 +4006,6 @@ interface ItemCombinationLineItem {
3977
4006
  */
3978
4007
  quantity?: number;
3979
4008
  }
3980
- interface LineItemDiscount {
3981
- /**
3982
- * ID of line item the discount applies to.
3983
- * @format GUID
3984
- */
3985
- id?: string;
3986
- /** Discount value. */
3987
- totalDiscountAmount?: MultiCurrencyPrice;
3988
- }
3989
4009
  interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
3990
4010
  /** General shipping calculation error. */
3991
4011
  generalShippingCalculationError?: Details;