@wix/auto_sdk_ecom_current-cart 1.0.207 → 1.0.209

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.
@@ -782,7 +782,6 @@ interface SubscriptionSettings {
782
782
  * are charged the item's `price`.
783
783
  *
784
784
  * When `billingCycles` is set, every entry must end on or before the last billing cycle.
785
- * @internal
786
785
  * @maxSize 1
787
786
  */
788
787
  cyclePriceOverrides?: CyclePriceOverride[];
@@ -1896,7 +1895,6 @@ interface CalculatedLineItem {
1896
1895
  /**
1897
1896
  * Cycle price overrides of the line item's subscription, one for each entry in the request's
1898
1897
  * `lineItems.subscriptionSettings.cyclePriceOverrides`, in the same order.
1899
- * @internal
1900
1898
  * @readonly
1901
1899
  * @maxSize 1
1902
1900
  */
@@ -2755,13 +2753,10 @@ interface V1Coupon extends V1CouponDiscountValueOneOf {
2755
2753
  /**
2756
2754
  * Percentage the coupon took off the price it applied to. For example, `10.5` for 10.5%.
2757
2755
  *
2758
- * The price it applied to depends on the applied discount's `discountType`: the line items' price for
2759
- * `SPECIFIC_ITEMS`, the subtotal for `GLOBAL`. In each case it's the price after the discounts applied
2760
- * before this one.
2761
- *
2762
- * On an entry supplied in the request's `appliedDiscounts` without `amount`, the discount is calculated
2763
- * again at this percentage. An amount, when present, wins.
2764
- * @internal
2756
+ * The price it applied to depends on the applied discount's `discountType`. For `SPECIFIC_ITEMS`, it's the
2757
+ * line items' price after the discounts applied before this one. For `GLOBAL`, it's the subtotal after the
2758
+ * line item discounts. An order discount applied before the coupon, such as an automatic discount on the
2759
+ * whole order, isn't taken off first.
2765
2760
  * @format DECIMAL_VALUE
2766
2761
  * @decimalValue options { gt:0, lte:100, maxScale:2 }
2767
2762
  */
@@ -2785,7 +2780,6 @@ interface V1Coupon extends V1CouponDiscountValueOneOf {
2785
2780
  * the total amount the coupon took off, whatever the type.
2786
2781
  *
2787
2782
  * Not returned for a free-shipping coupon.
2788
- * @internal
2789
2783
  */
2790
2784
  discountValueType?: DiscountValueTypeWithLiterals;
2791
2785
  }
@@ -2794,13 +2788,10 @@ interface V1CouponDiscountValueOneOf {
2794
2788
  /**
2795
2789
  * Percentage the coupon took off the price it applied to. For example, `10.5` for 10.5%.
2796
2790
  *
2797
- * The price it applied to depends on the applied discount's `discountType`: the line items' price for
2798
- * `SPECIFIC_ITEMS`, the subtotal for `GLOBAL`. In each case it's the price after the discounts applied
2799
- * before this one.
2800
- *
2801
- * On an entry supplied in the request's `appliedDiscounts` without `amount`, the discount is calculated
2802
- * again at this percentage. An amount, when present, wins.
2803
- * @internal
2791
+ * The price it applied to depends on the applied discount's `discountType`. For `SPECIFIC_ITEMS`, it's the
2792
+ * line items' price after the discounts applied before this one. For `GLOBAL`, it's the subtotal after the
2793
+ * line item discounts. An order discount applied before the coupon, such as an automatic discount on the
2794
+ * whole order, isn't taken off first.
2804
2795
  * @format DECIMAL_VALUE
2805
2796
  * @decimalValue options { gt:0, lte:100, maxScale:2 }
2806
2797
  */
@@ -2811,18 +2802,19 @@ declare enum DiscountValueType {
2811
2802
  /**
2812
2803
  * The discount takes a percentage off the price it applies to.
2813
2804
  * @documentationMaturity preview
2814
- * @internal
2815
2805
  */
2816
2806
  PERCENTAGE = "PERCENTAGE",
2817
2807
  /**
2818
2808
  * The discount takes a fixed amount off the price it applies to.
2809
+ *
2810
+ * Also returned for a discount that sets a fixed price, for a buy X for an amount discount, and for a buy X
2811
+ * get Y coupon. For each of these, the coupon's or discount rule's `amount` holds what the discount took off.
2819
2812
  * @documentationMaturity preview
2820
- * @internal
2821
2813
  */
2822
2814
  FIXED_AMOUNT = "FIXED_AMOUNT"
2823
2815
  }
2824
2816
  /** @enumType */
2825
- type DiscountValueTypeWithLiterals = DiscountValueType;
2817
+ type DiscountValueTypeWithLiterals = DiscountValueType | 'PERCENTAGE' | 'FIXED_AMOUNT';
2826
2818
  interface V1MerchantDiscount {
2827
2819
  /** Discount value. */
2828
2820
  amount?: MultiCurrencyPrice;
@@ -2840,10 +2832,6 @@ interface V1DiscountRule extends V1DiscountRuleDiscountValueOneOf {
2840
2832
  * The price it applied to depends on the applied discount's `discountType`: the line items' price for
2841
2833
  * `SPECIFIC_ITEMS`, the subtotal for `GLOBAL`. In each case it's the price after the discounts applied
2842
2834
  * before this one.
2843
- *
2844
- * On an entry supplied in the request's `appliedDiscounts` without `amount`, the discount is calculated
2845
- * again at this percentage. An amount, when present, wins.
2846
- * @internal
2847
2835
  * @format DECIMAL_VALUE
2848
2836
  * @decimalValue options { gt:0, lte:100, maxScale:2 }
2849
2837
  */
@@ -2862,7 +2850,6 @@ interface V1DiscountRule extends V1DiscountRuleDiscountValueOneOf {
2862
2850
  * `amount` holds the total amount the discount rule took off, whatever the type.
2863
2851
  *
2864
2852
  * Not returned for a free-shipping discount rule.
2865
- * @internal
2866
2853
  */
2867
2854
  discountValueType?: DiscountValueTypeWithLiterals;
2868
2855
  }
@@ -2874,10 +2861,6 @@ interface V1DiscountRuleDiscountValueOneOf {
2874
2861
  * The price it applied to depends on the applied discount's `discountType`: the line items' price for
2875
2862
  * `SPECIFIC_ITEMS`, the subtotal for `GLOBAL`. In each case it's the price after the discounts applied
2876
2863
  * before this one.
2877
- *
2878
- * On an entry supplied in the request's `appliedDiscounts` without `amount`, the discount is calculated
2879
- * again at this percentage. An amount, when present, wins.
2880
- * @internal
2881
2864
  * @format DECIMAL_VALUE
2882
2865
  * @decimalValue options { gt:0, lte:100, maxScale:2 }
2883
2866
  */
@@ -2909,7 +2892,6 @@ interface LineItemDiscount {
2909
2892
  * Number of the line item's units the discount was applied to.
2910
2893
  *
2911
2894
  * Returned only for a `SPECIFIC_ITEMS` discount.
2912
- * @internal
2913
2895
  * @min 1
2914
2896
  * @max 100000
2915
2897
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_current-cart",
3
- "version": "1.0.207",
3
+ "version": "1.0.209",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.ecom.v1.cart"
51
51
  }
52
52
  },
53
- "falconPackageHash": "fa904554a417a01e87d65acac8c8af293c5b6a6162ab7ae46ca812c1"
53
+ "falconPackageHash": "84523b655540906e65c4bba604d9a1e53a20455ed9640c6d50eb2191"
54
54
  }