@wix/auto_sdk_ecom_current-cart-v-2 1.0.4 → 1.0.5

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.
@@ -1547,6 +1547,9 @@ interface V2AdditionalFee {
1547
1547
  interface TaxSummary {
1548
1548
  /**
1549
1549
  * List of taxes applied to the cart.
1550
+ * May contain multiple entries when advanced tax rates are configured by the merchant,
1551
+ * or a single entry representing the total tax amount.
1552
+ * For more details on advanced tax rates, read [this article](https://support.wix.com/en/article/setting-up-tax-calculation-using-the-manual-method#step-3-optional-customize-advanced-mode-settings).
1550
1553
  * @maxSize 100
1551
1554
  */
1552
1555
  taxes?: Tax[];
@@ -1577,7 +1580,7 @@ interface Tax {
1577
1580
  * Tax rate %, as a decimal point between 0 and 1.
1578
1581
  * @decimalValue options { gte:0, lte:1, maxScale:6 }
1579
1582
  */
1580
- rate?: string;
1583
+ rate?: string | null;
1581
1584
  /** Calculated tax, based on `taxable_amount` and `rate`. */
1582
1585
  totalTax?: MultiCurrencyPrice;
1583
1586
  }
@@ -1603,7 +1606,7 @@ interface AdditionalFeeTax {
1603
1606
  interface PriceSummary {
1604
1607
  /**
1605
1608
  * Total price of all line items after applying item-level discounts.
1606
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1609
+ * Includes tax if `tax_summary.prices_include_tax` is true.
1607
1610
  */
1608
1611
  subtotal?: MultiCurrencyPrice;
1609
1612
  /**
@@ -1614,12 +1617,12 @@ interface PriceSummary {
1614
1617
  discount?: MultiCurrencyPrice;
1615
1618
  /**
1616
1619
  * Final delivery cost for the cart.
1617
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1620
+ * Includes tax if `tax_summary.prices_include_tax` is true.
1618
1621
  */
1619
1622
  delivery?: MultiCurrencyPrice;
1620
1623
  /**
1621
1624
  * Total additional fees associated with the cart.
1622
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1625
+ * Includes tax if `tax_summary.prices_include_tax` is true.
1623
1626
  */
1624
1627
  additionalFees?: MultiCurrencyPrice;
1625
1628
  /** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_current-cart-v-2",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.ecom.v2.cart"
51
51
  }
52
52
  },
53
- "falconPackageHash": "e59de645b704295f571d847c9cd879967fa445304eb882ec708e0ec8"
53
+ "falconPackageHash": "e7d6f05cca62a74499d4f0991e01d50068287d06a87983cddcc32c23"
54
54
  }